:root{font-family:Arial,Helvetica,sans-serif;color:#111;background:#fff;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}.top{height:106px;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;padding:34px 30px 0;position:relative}.logo{font:700 32px Georgia,'Times New Roman',serif;letter-spacing:-1.7px;text-decoration:none;margin-top:5px}.pillnav{display:flex;align-items:center;border:1px solid #dedede;border-radius:40px;padding:5px;gap:1px;width:max-content}.pillnav a,.pillnav button{border:0;background:none;text-decoration:none;padding:11px 13px;color:#858585;font-size:15px;font-weight:600;white-space:nowrap}.pillnav .selected{color:#111}.pillnav button span{font-size:11px}.topright{display:flex;justify-content:flex-end;align-items:center;gap:25px}.uk{font-size:14px}.profile-btn{background:#050505;color:white;border:0;border-radius:40px;padding:17px 30px;font-weight:600;box-shadow:0 9px 18px #00000012}.hero{min-height:695px;padding:65px 20px 100px;display:flex;align-items:center;flex-direction:column;text-align:center}.hero h1{font:500 clamp(42px,5.1vw,76px)/1.15 Georgia,'Times New Roman',serif;letter-spacing:-3.7px;margin:0 0 42px;max-width:1020px}.gender-switch{background:#f1f1f1;border:1px solid #dedede;border-radius:40px;display:flex;padding:4px;margin-bottom:34px}.gender-switch button{border:0;border-radius:30px;padding:11px 24px;background:transparent;color:#555}.gender-switch button.active{background:#000;color:#fff}.search-wrap{width:min(865px,100%);text-align:left;background:#fff;border:1px solid #dedede;border-radius:29px;box-shadow:0 18px 85px #7771b522,0 2px 5px #00000004;padding:20px 20px 16px}.search-wrap textarea{width:100%;border:0;outline:0;resize:vertical;min-height:76px;font:22px/1.5 Georgia,serif;padding:0 0 10px;color:#111}.search-wrap textarea::placeholder{color:#999}.search-actions{border-top:1px solid #eee;display:flex;align-items:center;justify-content:space-between;padding-top:10px}.upload{display:inline-flex;align-items:center;justify-content:center;width:32px;height:34px;cursor:pointer}.send{border:0;border-radius:50%;background:#050505;color:#fff;width:44px;height:44px;font-size:25px}.file-name{font-size:12px;color:#666}.suggestions{margin:38px auto 0;max-width:830px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.suggestions button,.outline{border:1px solid #cecece;border-radius:30px;background:white;padding:12px 20px;font-size:15px;color:#222}.suggestions button:hover,.outline:hover{background:#f5f5f5}.results{max-width:1540px;margin:0 auto;padding:35px 35px 100px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:11px;letter-spacing:2px;color:#777}.section-heading h2{font:500 42px Georgia,serif;margin:10px 0}.refine-panel{padding:20px;background:#fafafa;border:1px solid #eee;border-radius:18px;margin-bottom:22px}.refine-title{font-weight:700}.refine-title span{font-weight:400;color:#777;font-size:13px;margin-left:10px}.refine-row{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-top:15px}.refine-row label{font-size:12px;color:#555;display:flex;flex-direction:column;gap:6px}.refine-row input,.refine-row select{border:1px solid #ddd;background:white;border-radius:9px;padding:11px;min-width:140px}.outfit-suggestions{margin-top:15px}.outfit-links{display:flex;gap:10px;flex-wrap:wrap}.outfit-links button{border:1px solid #ddd;background:white;border-radius:22px;padding:10px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.product{border:1px solid #e6e2de;border-radius:12px;overflow:hidden}.product-media{aspect-ratio:3/4;position:relative;background:#f6f5f3}.product-media img{width:100%;height:100%;object-fit:cover}.heart{position:absolute;right:12px;top:12px;border:0;border-radius:50%;background:#fff;width:38px;height:38px;font-size:24px}.heart.liked{color:#e14b66}.info{padding:15px}.info h3{font-size:15px;line-height:1.4;margin:0 0 10px}.info p{font-size:13px;color:#777;margin:0 0 10px}.price{font-weight:700;font-size:19px;margin-bottom:12px}.info a{font-size:13px;text-underline-offset:3px}.footer-note{border-top:1px solid #eee;padding:24px 35px;display:flex;justify-content:space-between;font-size:13px;color:#777}.chat-log:empty{display:none}.chat-log{max-height:200px;overflow:auto;display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.chat-bubble{padding:9px 13px;border-radius:14px;max-width:90%;font-size:13px;line-height:1.5}.chat-bubble.user{align-self:flex-end;background:#f1f1f1}.chat-bubble.assistant{align-self:flex-start;background:#f4f2fc}.drawer-backdrop{position:fixed;inset:0;background:#0005;z-index:10}.drawer{position:fixed;z-index:11;right:0;top:0;bottom:0;width:min(440px,100%);background:#fff;padding:26px;overflow:auto;box-shadow:-15px 0 40px #0001}.drawer-head{display:flex;justify-content:space-between;align-items:center}.drawer-head h2{font:32px Georgia,serif}.drawer-head button{border:0;background:none;font-size:32px}.style-form{display:grid;gap:18px}.style-form label{display:grid;gap:8px;font-size:14px}.style-form input,.style-form select{padding:12px;border:1px solid #ddd;border-radius:9px}.style-form button{background:#111;color:#fff;border:0;border-radius:30px;padding:14px}.saved-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #eee}.saved-item img{width:95px;height:120px;object-fit:cover}.saved-item p{margin:9px 0}.saved-item button{display:block;border:0;background:none;text-decoration:underline;padding:9px 0}.saved-item a{font-size:13px}.no-photo{display:grid;place-items:center;height:100%;color:#888}#status{color:#777;font-size:13px;margin:0 0 15px}[hidden]{display:none!important}@media(max-width:850px){.top{height:90px;padding:16px;grid-template-columns:1fr auto}.logo{position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:27px}.pillnav{margin-top:54px;grid-row:2;grid-column:1/3}.pillnav a,.pillnav button{font-size:12px;padding:8px}.topright{grid-column:2;gap:8px}.uk{display:none}.profile-btn{padding:12px 16px;font-size:12px}.hero{padding:110px 15px 70px;min-height:610px}.hero h1{font-size:clamp(38px,8vw,55px);letter-spacing:-2px;margin-bottom:30px}.search-wrap{border-radius:22px;padding:16px}.search-wrap textarea{font-size:18px}.suggestions{margin-top:25px;gap:7px}.suggestions button{font-size:12px;padding:10px 12px}.results{padding:20px 15px 60px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info{padding:10px}.info h3{font-size:13px}.section-heading h2{font-size:30px}.footer-note{gap:15px;flex-wrap:wrap;padding:20px}}

.photo-preview{display:flex;align-items:center;gap:12px;margin-top:8px}.photo-preview img{width:68px;height:68px;object-fit:cover;border-radius:12px}.photo-preview button{border:1px solid #ddd;border-radius:20px;background:white;padding:8px 12px;font-size:12px}
/* Conversation history and account layer */
.account-actions{display:flex;align-items:center;gap:12px}.account-actions button{border:0;background:none;cursor:pointer;font:inherit}.chat-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(310px,85vw);z-index:50;background:#fff;border-right:1px solid #ddd;box-shadow:8px 0 32px #0001;padding:22px;overflow-y:auto}.chat-sidebar[hidden],.auth-modal[hidden],.auth-shade[hidden]{display:none}.chat-sidebar h3{font-family:Georgia,serif;font-size:25px}.chat-sidebar button{cursor:pointer}.history-item{display:flex;align-items:center;gap:6px;margin:9px 0}.history-item .open-chat{flex:1;text-align:left;border:1px solid #eee;background:#fafafa;border-radius:12px;padding:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item .delete-chat{border:0;background:transparent;color:#777}.sidebar-close{float:right;background:transparent;border:0;font-size:24px}.new-chat-btn{background:#111;color:white;border:0;border-radius:25px;padding:12px 18px;width:100%;margin:15px 0}.auth-shade{position:fixed;inset:0;background:#0006;z-index:59}.auth-modal{position:fixed;z-index:60;left:50%;top:50%;transform:translate(-50%,-50%);background:white;border-radius:20px;padding:28px;width:min(420px,calc(100vw - 30px));box-shadow:0 20px 60px #0003}.auth-modal input{display:block;width:100%;padding:13px;border:1px solid #ddd;border-radius:10px;margin:10px 0}.auth-modal button{cursor:pointer}.auth-submit{background:black;color:white;border:0;border-radius:20px;padding:13px;width:100%}.auth-close{float:right;border:0;background:transparent;font-size:24px}.account-error{color:#b22;min-height:20px}.history-toggle{border:1px solid #ddd;background:#fff;border-radius:22px;padding:9px 13px;cursor:pointer}@media(max-width:700px){.account-actions{gap:6px}.account-actions button{font-size:12px}.history-toggle{padding:8px}}

/* Daydream-inspired dedicated conversation route. Home styling remains intact. */
body.conversation-mode .hero{min-height:0;padding:0;display:contents;text-align:left}
body.conversation-mode .hero h1,body.conversation-mode .gender-switch,body.conversation-mode #suggestions{display:none!important}
body.conversation-mode main{padding-bottom:130px}
body.conversation-mode .search-wrap{position:fixed;z-index:8;left:50%;transform:translateX(-50%);bottom:18px;width:min(790px,calc(100vw - 30px));border-radius:45px;padding:10px 15px;box-shadow:0 0 0 9px #c5c5c5b8,0 12px 38px #0002;background:#fff}
body.conversation-mode #chatLog{position:fixed;bottom:130px;left:50%;transform:translateX(-50%);width:min(1210px,calc(100vw - 40px));max-height:30vh;overflow:auto;z-index:6;pointer-events:none;margin:0;gap:10px}
body.conversation-mode #chatLog .chat-bubble{pointer-events:auto;font-size:16px;padding:13px 18px;border-radius:23px;max-width:75%;box-shadow:0 1px 3px #00000008}
body.conversation-mode #chatLog .chat-bubble.assistant{background:#f7f7f7;font:19px/1.5 Georgia,serif}
body.conversation-mode #chatLog .chat-bubble.user{background:#f1f1f1}
body.conversation-mode .search-wrap textarea{font:16px Arial,sans-serif;min-height:26px;max-height:70px;padding:5px 10px;resize:none}
body.conversation-mode .search-actions{border-top:0;padding-top:0}
body.conversation-mode .search-wrap form{display:flex;align-items:center;gap:8px;flex-direction:row}
body.conversation-mode .search-wrap form textarea{flex:1;order:2}
body.conversation-mode .search-actions{display:contents}
body.conversation-mode .upload{order:1;flex:none}
body.conversation-mode .send{order:3;flex:none;width:38px;height:38px}
body.conversation-mode .results{max-width:1280px;padding:22px 28px 50px;display:block;margin:auto}
body.conversation-mode .results .section-heading{display:none}
body.conversation-mode #refinePanel{display:none}
body.conversation-mode .product-grid{gap:14px;grid-template-columns:repeat(4,minmax(0,1fr))}
body.conversation-mode .product{border-radius:20px;border:1px solid #e4e4e4}
body.conversation-mode .product-media{aspect-ratio:3/4}
body.conversation-mode .info h3{font-weight:600}
body.conversation-mode .quick-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 16px}
.quick-filters button{background:#f1f1f1;border:0;border-radius:25px;padding:12px 17px;color:#222}
.quick-filters button:hover{background:#e7e7e7}
body.conversation-mode .footer-note{display:none}
body.conversation-mode #status{margin:6px 0 15px}
@media(max-width:750px){body.conversation-mode .top{height:115px}body.conversation-mode .results{padding:15px 12px 25px}body.conversation-mode .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.conversation-mode #chatLog{bottom:115px;max-height:25vh}body.conversation-mode #chatLog .chat-bubble{font-size:13px;max-width:90%}body.conversation-mode #chatLog .chat-bubble.assistant{font-size:15px}body.conversation-mode .search-wrap{bottom:12px;border-radius:30px}body.conversation-mode .quick-filters button{font-size:12px;padding:9px 12px}}

/* FIX: conversation content stays in document flow, never overlays products */
body.conversation-mode .hero{display:block;min-height:0;padding:0}
body.conversation-mode #conversationHost{width:min(1224px,calc(100% - 48px));margin:20px auto 16px;display:block}
body.conversation-mode #chatLog{position:static!important;transform:none!important;left:auto!important;bottom:auto!important;width:100%!important;max-height:none!important;overflow:visible!important;pointer-events:auto!important;display:flex;gap:16px;margin:0!important}
body.conversation-mode #chatLog .chat-bubble{max-width:min(85%,950px);overflow-wrap:anywhere}
body.conversation-mode .results{padding-top:12px;padding-bottom:150px}
body.conversation-mode .search-wrap{z-index:8}
body.conversation-mode #status{padding:0 0 6px}
body.conversation-mode #refinePanel{display:none!important}
@media(max-width:750px){body.conversation-mode #conversationHost{width:calc(100% - 24px);margin:12px auto}body.conversation-mode .results{padding-bottom:135px}body.conversation-mode #chatLog .chat-bubble{max-width:94%}}

/* Mode-Relier responsive account controls, 2026-11-10 */
.topright{gap:12px;min-width:0}
.login-pill,.signup-pill{border-radius:999px!important;white-space:nowrap;font-weight:700!important;line-height:1.2;padding:14px 22px!important;font-size:15px!important}
.login-pill{background:#080808!important;color:#fff!important;border:1px solid #080808!important}
.signup-pill{background:#fff!important;color:#111!important;border:1px solid #d4d4d4!important}
.topright .profile-btn{display:none}
.topright .uk{white-space:nowrap;margin:0 5px}
@media(max-width:1050px){.top{grid-template-columns:auto 1fr auto;gap:10px;padding:20px 18px 0}.topright{gap:7px}.topright .uk{display:none}.login-pill,.signup-pill{padding:11px 14px!important;font-size:13px!important}}
@media(max-width:850px){
 .top{height:auto!important;min-height:148px;display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:52px auto auto;align-items:center;padding:14px 14px 12px;gap:9px 4px}
 .top .logo{position:static!important;transform:none!important;grid-column:2;grid-row:1;justify-self:center;align-self:center;margin:0;font-size:29px;white-space:nowrap;z-index:1}
 .topright{grid-column:1 / -1;grid-row:2;justify-content:center;justify-self:center;display:flex;flex-wrap:wrap;gap:9px;width:100%}
 .pillnav{grid-column:1 / -1;grid-row:3;justify-self:center;margin:0;max-width:100%;overflow-x:auto}
 .topright .history-toggle{position:absolute;top:22px;left:14px;max-width:78px;overflow:hidden;text-overflow:ellipsis;font-size:12px;padding:8px}
 .login-pill,.signup-pill{padding:11px 20px!important;font-size:14px!important}
 .hero{padding:42px 15px 65px;min-height:0}
 .hero h1{font-size:clamp(33px,8vw,49px);line-height:1.13;letter-spacing:-1.7px;margin-bottom:28px}
 body.conversation-mode .top{min-height:148px;height:auto!important}
 body.conversation-mode .results{padding-top:10px}
}
@media(max-width:390px){.top .logo{font-size:26px}.login-pill,.signup-pill{padding:10px 15px!important;font-size:13px!important}.pillnav a,.pillnav button{font-size:12px;padding:8px 10px}.hero{padding-top:30px}}


/* Mode-Relier auth modal footer links */
#authModal button[data-auth-switch],
.auth-modal .auth-switch,
.auth-modal .auth-footer button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-modal .auth-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
  color: #666;
}

.auth-modal .auth-footer button:hover {
  opacity: .65;
}

.auth-modal .auth-footer button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
  border-radius: 2px;
}


/* Keep every search result group in the same conversation. */
body.conversation-mode #productGrid, #productGrid{display:block!important}
.mode-relier-result-batch{margin-bottom:48px}
.mode-relier-batch-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0 18px}
.mode-relier-batch-heading h3{font:500 25px Georgia,serif;margin:0}
.mode-relier-batch-heading span{font-size:13px;color:#777}
.mode-relier-batch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
@media(max-width:750px){.mode-relier-batch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-relier-batch-heading h3{font-size:20px}}

/* Each search batch must occupy the entire parent grid row. */
#productGrid.product-grid {display:block !important; width:100%; min-width:0;}
#productGrid > .mode-relier-result-batch {display:block; width:100%; min-width:0; margin:0 0 48px;}
#productGrid .mode-relier-batch-grid {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; width:100%; min-width:0;}
#productGrid .mode-relier-batch-grid > .product {min-width:0; width:100%;}
#productGrid .mode-relier-batch-grid .info {min-width:0; overflow-wrap:anywhere;}
@media(max-width:750px){#productGrid .mode-relier-batch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}}



/* MODE-RELIER — AUTH FOOTER FIX */

#authModal .auth-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#authModal #authSwitch {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 4px 6px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  cursor: pointer !important;
}

#authModal #authSwitch:hover {
  opacity: 0.65;
}

#authModal #authSwitch:focus-visible {
  outline: 2px solid #111;
  outline-offset: 4px;
}

/* Mode-Relier mobile navigation + retailer CTA, 2026-11-11 */
@media (max-width: 850px) {
  body header.top { grid-template-columns: minmax(0,1fr) !important; grid-template-rows: auto auto auto !important; gap: 12px !important; padding: 18px 14px 14px !important; min-height: 0 !important; height: auto !important; }
  body header.top > .logo { grid-column: 1 !important; grid-row: 1 !important; position: static !important; justify-self: center !important; transform: none !important; margin: 0 !important; }
  body header.top > .topright { grid-column: 1 !important; grid-row: 2 !important; position: static !important; width: 100% !important; min-width: 0 !important; display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; gap: 7px !important; margin: 0 !important; }
  body header.top .topright .history-toggle { position: static !important; inset: auto !important; margin: 0 auto 0 0 !important; flex: 0 0 auto !important; max-width: none !important; white-space: nowrap !important; overflow: visible !important; text-overflow: clip !important; padding: 10px 12px !important; color: #111 !important; border: 1px solid #ddd !important; border-radius: 999px !important; background: #fff !important; font-size: 12px !important; font-weight: 600 !important; line-height: 1.2 !important; }
  body header.top .topright .login-pill, body header.top .topright .signup-pill { flex: 0 0 auto !important; margin: 0 !important; padding: 11px 13px !important; font-size: 12px !important; line-height: 1.2 !important; white-space: nowrap !important; }
  body header.top > .pillnav { grid-column: 1 !important; grid-row: 3 !important; justify-self: center !important; position: static !important; margin: 0 !important; transform: none !important; }
  body header.top .uk, body header.top .profile-btn { display: none !important; }
}
@media (max-width: 370px) {
  body header.top { padding-left: 9px !important; padding-right: 9px !important; }
  body header.top > .topright { gap: 5px !important; }
  body header.top .topright .history-toggle { padding: 9px 8px !important; font-size: 11px !important; }
  body header.top .topright .login-pill, body header.top .topright .signup-pill { padding: 10px 9px !important; font-size: 11px !important; }
}
/* Product card merchant CTA: preserve the actual merchant URL and link semantics */
#productGrid .product .info > a[href] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 43px !important;
  padding: 11px 10px !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font: 600 13px/1.25 Arial,Helvetica,sans-serif !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  transition: background .18s ease, transform .18s ease;
}
#productGrid .product .info > a[href]:hover { background: #303030 !important; transform: translateY(-1px); }
#productGrid .product .info > a[href]:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (max-width: 750px) {
  #productGrid .product .info > a[href] { min-height: 42px !important; padding: 10px 6px !important; font-size: 11px !important; letter-spacing: -.1px; }
  #productGrid .product .info { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  #productGrid .product .info > a[href] { margin-top: auto; }
}
