/* Mobile-only layout; desktop and provider logic unchanged. */
@media (max-width: 850px) {
html { -webkit-text-size-adjust:100%; }
*, *::before, *::after {box-sizing:border-box;}
button {color:inherit;}
.hero {padding:24px 16px 36px;min-height:0;}
.hero h1 {font-size:clamp(30px,8vw,40px);line-height:1.12;letter-spacing:-1.3px;margin:0 0 16px;}
.hero .hero-lede {font-size:15px;line-height:1.5;margin:0 auto 20px;max-width:340px;}
.gender-switch {margin-bottom:20px;}
.gender-switch button {padding:9px 20px;font-size:14px;}
.hero .search-wrap {padding:12px;border-radius:18px;box-shadow:0 8px 24px #0000000a;}
.hero .search-wrap textarea {font:16px/1.45 Arial,sans-serif;min-height:66px;resize:none;}
.suggestions {margin-top:16px;gap:6px;}
.suggestions button {font-size:12px;padding:8px 11px;max-width:100%;white-space:normal;}
#productGrid .mode-relier-batch-grid {gap:10px;}
#productGrid .product,.rt-product {display:flex;flex-direction:column;min-width:0;}
#productGrid .product .info {display:flex;flex:1;flex-direction:column;padding:10px;gap:6px;}
#productGrid .info h3 {font-size:13px;line-height:1.35;margin:0;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#productGrid .info p {font-size:12px;line-height:1.35;margin:0;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
#productGrid .info .price {font-size:16px;line-height:1.3;margin:0 0 4px;}
#productGrid .info .pc-card-button {margin:auto 0 0;min-height:38px;font-size:12px;padding:7px 4px;}
#productGrid .info > a {display:flex;align-items:center;justify-content:center;text-align:center;min-height:42px;font-size:11px;line-height:1.25;padding:8px 5px;overflow-wrap:anywhere;margin:0;}
#productGrid .heart {color:#111;width:34px;height:34px;font-size:22px;right:8px;top:8px;}
#productGrid .heart.liked {color:#b74759;}
.mode-relier-batch-heading {flex-wrap:wrap;gap:4px;}
body.conversation-mode .search-wrap,#rt-form {bottom:calc(8px + env(safe-area-inset-bottom,0px));width:calc(100% - 24px);border:1px solid #d8d8d8;border-radius:24px;padding:6px 8px;box-shadow:0 4px 18px #0002;background:#fff;}
body.conversation-mode .search-wrap textarea {font:16px/1.3 Arial,sans-serif;min-width:0;min-height:36px;max-height:60px;padding:6px 4px;}
body.conversation-mode .send,#rt-form button {width:40px;height:40px;flex:none;}
body.conversation-mode .results,.rt-main {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px));}
#rt-form input {font-size:16px;padding:8px;}
.rt-main .rt-product-title {font:500 14px/1.35 Arial,sans-serif;min-height:3.5em;overflow-wrap:anywhere;}
.rt-product p {font-size:12px;margin:6px 0;}
.rt-main .rt-product .pc-card-button {margin:auto 0 0;background:#fff;color:#111;border:1px solid #ddd;border-radius:9px;font-size:12px;padding:9px 5px;min-height:38px;}
#mode-relierProductModal {padding:0;align-items:end;}
#mode-relierProductModal .product-dialog {box-sizing:border-box;width:100%;max-width:100%;max-height:94dvh;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;}
#mode-relierProductModal .product-dialog-close {position:sticky;top:0;float:right;width:40px;height:40px;border-radius:50%;color:#111;background:#fff;box-shadow:0 2px 8px #0002;z-index:30;}
#mode-relierProductModal .product-dialog-gallery {clear:both;height:38dvh;min-height:0;max-height:340px;gap:8px;}
#mode-relierProductModal .product-dialog-photo {border-radius:12px;}
#mode-relierProductModal .product-dialog-info {padding:18px 0 0;min-width:0;width:100%;}
#mode-relierProductModal .product-dialog-info h2 {font-size:25px;line-height:1.2;margin:8px 0 12px;overflow-wrap:anywhere;}
#mode-relierProductModal .product-dialog-price {font-size:23px;margin:0 0 10px;}
#mode-relierProductModal .product-dialog-description {font-size:14px;line-height:1.55;margin:8px 0 16px;}
#mode-relierProductModal .product-dialog-actions button {color:#111;font-size:13px;padding:10px 13px;}
#mode-relierProductModal .price-compare {margin-top:20px;min-width:0;}
#mode-relierProductModal .price-compare li a {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 10px;font-size:13px;}
#mode-relierProductModal .pc-store {word-break:normal;overflow-wrap:anywhere;}
#mode-relierProductModal .pc-price {display:flex;flex-direction:column;align-items:flex-end;white-space:normal;gap:2px;text-align:right;}
#mode-relierProductModal .pc-price s {font-size:11px;}
#mode-relierProductModal .product-dialog-bottom {padding-top:22px;}
#mode-relierProductModal .product-dialog-buy {font-size:14px;padding:14px 16px;margin-top:9px;overflow-wrap:anywhere;}
}
@media(max-width:850px){
body{background:#fff;color:#151515}
body header.top{gap:7px!important;padding:12px 16px 0!important;background:rgba(255,255,255,.94);border-bottom:1px solid #ececec}
body header.top .logo{font-family:Georgia,serif;font-size:29px!important;letter-spacing:-1px}
body header.top .pillnav{gap:24px;padding:0;box-shadow:none;background:transparent}
.hero{padding:36px 16px 30px!important}
.hero h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(34px,8.8vw,46px);line-height:1.16;letter-spacing:-1.6px}
.hero .hero-lede{font-size:15px;line-height:1.5;color:#666}
.hero .search-wrap{border:1px solid #dedde2;border-radius:25px;padding:16px;box-shadow:0 14px 48px #7665bb24;background:white}
.hero .search-wrap textarea{font:18px/1.4 Georgia,serif;min-height:80px}
.hero .suggestions{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto;max-width:100%;gap:8px;margin:24px 0 0;padding:2px 0 8px;scrollbar-width:none}
.hero .suggestions::-webkit-scrollbar{display:none}
.hero .suggestions button{flex:0 0 auto;white-space:nowrap;max-width:none;font-size:13px;padding:10px 15px;border-radius:999px;background:white}
#productGrid .mode-relier-batch-grid,#rt-grid{gap:22px 12px!important}
#productGrid .product{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible}
#productGrid .product-media,.rt-main .rt-media{border:0!important;border-radius:14px!important;overflow:hidden;background:#f7f7f7}
#productGrid .product .info{padding:10px 0 0!important;gap:6px!important}
#productGrid .info h3,.rt-main .rt-product-title{font:500 16px/1.3 Georgia,serif!important;letter-spacing:-.25px;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#productGrid .info p{font-size:12px;min-height:2.6em;color:#555}
#productGrid .info .price{font-size:16px;font-weight:600}
#productGrid .info .pc-card-button,.rt-main .rt-product .pc-card-button{border-radius:999px;min-height:36px;background:white;border:1px solid #d9d9d9;font-size:12px}
#productGrid .product .info > a[href]{font-weight:500!important;font-size:11px!important;line-height:1.35!important;min-height:40px!important;padding:9px 8px!important;display:block!important;white-space:normal;overflow-wrap:anywhere;text-align:center;border-radius:999px;transform:none}
#productGrid .heart{background:#ffffffdf;box-shadow:0 2px 12px #0000000c;color:#222;border:0}
body.conversation-mode .search-wrap,#rt-form{border:1px solid #d6d3d0!important;border-radius:999px!important;box-shadow:0 4px 20px #0002!important;padding:6px 8px!important;background:#fffffff5!important;backdrop-filter:blur(12px);width:calc(100% - 28px)!important}
body.conversation-mode .search-wrap textarea{font-size:15px;line-height:1.35}
#mode-relierProductModal .product-dialog{display:block!important;padding:16px!important;border-radius:0!important;max-height:100dvh!important;background:#fff;gap:0!important}
#mode-relierProductModal .product-dialog-gallery{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/5;margin-bottom:16px}
#mode-relierProductModal .product-dialog-photo .product-dialog-main{max-height:none!important;object-fit:contain}
#mode-relierProductModal .product-dialog-info{padding:0!important}
#mode-relierProductModal .product-dialog-info h2{font:500 30px/1.17 Georgia,serif;letter-spacing:-.8px}
#mode-relierProductModal .product-dialog-actions{display:flex;gap:8px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
#mode-relierProductModal .product-dialog-actions button{white-space:nowrap;border-radius:999px;flex:none}
#mode-relierProductModal .product-dialog-description{font:16px/1.55 Georgia,serif;color:#444}
#mode-relierProductModal .product-dialog-buy{border-radius:999px;min-height:48px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:10px}
#mode-relierProductModal .price-compare li a{padding:13px 12px;align-items:center}
#mode-relierProductModal .pc-price{font-variant-numeric:tabular-nums}
.rt-main{padding-left:16px!important;padding-right:16px!important}
.rt-main .rt-hero{border-radius:14px}
.rt-cat-wrap>button{flex-basis:34px;height:34px}
}
