:root{
  --bg:#f7f8fb;
  --surface:#ffffff;
  --ink:#171717;
  --muted:#66616a;
  --line:#e2e8f0;
  --brand:#0f9f8f;
  --brand-2:#f97316;
  --accent:#4f46e5;
  --danger:#ef4444;
  --shadow:0 24px 70px rgba(31,23,42,.12);
  --radius:26px;
}


*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:radial-gradient(circle at top left,rgba(15,159,143,.16),transparent 34%),radial-gradient(circle at top right,rgba(249,115,22,.16),transparent 35%),linear-gradient(180deg,#fff 0%,var(--bg) 42%);color:var(--ink);line-height:1.6;min-height:100vh}

a{color:inherit}img{max-width:100%;display:block}button,input,textarea,select{font:inherit}body.dark{--bg:#0d0b14;--surface:#171321;--ink:#fffaff;--muted:#ddd4ea;--line:#3b314a;--shadow:0 24px 70px rgba(0,0,0,.35)}

header{width:min(1180px,92%);margin:24px auto 0;padding:18px;background:rgba(255,255,255,.74);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(16px)}body.dark header{background:rgba(23,19,33,.78)}
.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.brand-area{display:grid;gap:10px;justify-items:start}.header-actions{display:flex;justify-content:flex-end;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-left:auto}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:white;display:grid;place-items:center;font-size:1.4rem;font-weight:800;box-shadow:0 10px 28px rgba(124,58,237,.32)}.brand strong{display:block;font-size:1.15rem}.brand small{display:block;color:var(--muted);font-size:.82rem;margin-top:-2px}.dropdown-nav{margin-left:4px}.menu-dropdown{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}.menu-dropdown summary{list-style:none;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-weight:800;cursor:pointer}.menu-dropdown summary::-webkit-details-marker{display:none}.nav-menu{list-style:none;display:grid;gap:8px;padding:10px;margin:8px 0 0;min-width:190px;max-width:min(260px,86vw);background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 42px rgba(31,23,42,.16)}.nav-menu a,.nav-action,.header-auth a{display:flex;align-items:center;gap:8px;text-decoration:none;padding:10px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-weight:700;color:var(--ink);transition:.2s ease}.nav-menu a:hover,.nav-action:hover,.header-auth a:hover,.menu-dropdown summary:hover{transform:translateY(-2px);border-color:rgba(124,58,237,.4);box-shadow:0 10px 24px rgba(124,58,237,.14)}.nav-action{cursor:pointer}.header-auth{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.cart-pill{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;min-width:24px;height:24px;display:inline-grid;place-items:center;border-radius:999px;font-size:.8rem;padding:0 7px}.search-container{position:relative;max-width:520px;margin-top:14px}.search-container i{position:absolute;left:16px;top:50%;translate:0 -50%;color:var(--muted)}#searchBar{width:100%;padding:14px 16px 14px 44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);outline:none}#searchBar:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(124,58,237,.14)}

main{width:min(1180px,92%);margin:24px auto;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}article,aside,.hero,.cart-summary,.notice{background:rgba(255,255,255,.82);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}body.dark article,body.dark aside,body.dark .hero,body.dark .cart-summary,body.dark .notice{background:rgba(23,19,33,.82)}article{padding:24px}aside{padding:22px;position:sticky;top:16px}aside h3{margin-top:0}.hero{padding:40px;display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:center;overflow:hidden;position:relative}.hero:before{content:"";position:absolute;inset:auto -15% -40% auto;width:360px;height:360px;background:linear-gradient(135deg,var(--brand),var(--brand-2));filter:blur(20px);opacity:.2;border-radius:50%}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:var(--brand);font-size:.76rem;font-weight:800;margin:0 0 8px}.hero h1,.page-title h1{font-size:clamp(2.1rem,5vw,4.6rem);line-height:.98;margin:0 0 18px;letter-spacing:-.06em}.hero p,.page-title p{color:var(--muted);font-size:1.05rem}.hero-card{background:linear-gradient(145deg,#171717,#3b1f58);color:#fff;border-radius:24px;padding:28px;box-shadow:0 24px 60px rgba(124,58,237,.25);position:relative}.hero-card p{color:#ddd}.hero-card strong{font-size:1.8rem}.spark{font-size:2rem}.hero-actions,.section-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.section-head{justify-content:space-between;margin:28px 0 18px}.section-head h2,.page-title h1{margin-top:0}.btn,.ghost-btn{border:0;border-radius:999px;padding:12px 18px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.2s ease}.btn:hover,.ghost-btn:hover{transform:translateY(-2px)}.primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 14px 28px rgba(124,58,237,.22)}.secondary,.ghost-btn{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.filter-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 18px}.filter-bar select{width:100%;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:800}.product-grid,.category-list,.dashboard-cards,.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.product-card,.category-item,.dash-card,details,.cart-row{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(31,23,42,.08);transition:.2s ease}.product-card{cursor:pointer}.product-card:hover,.category-item:hover,.dash-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px rgba(31,23,42,.13)}.product-img,.product-card-media{height:190px;border-radius:18px;background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(236,72,153,.2));display:grid;place-items:center;margin-bottom:14px;overflow:hidden}.product-card-media{text-decoration:none;color:inherit}.product-img img,.product-card-media img{width:100%;height:100%;object-fit:cover}.product-img i,.product-card-media i{font-size:3rem;color:var(--brand)}.product-title-link{text-decoration:none;color:inherit}.product-card h3,.category-item h3{margin:6px 0}.price{font-weight:900;font-size:1.15rem}.tag{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(124,58,237,.1);color:var(--brand);font-size:.78rem;font-weight:800;text-transform:capitalize}.category-item i,.dash-card i{font-size:2rem;color:var(--brand)}.dash-card{text-align:left;text-decoration:none;color:var(--ink);cursor:pointer}.dash-card button{all:unset}.cart-list{display:grid;gap:12px}.cart-row{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center}.qty-controls{display:flex;align-items:center;gap:8px}.icon-btn{width:36px;height:36px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}.remove-btn{color:var(--danger)}.cart-summary{padding:20px;margin-top:18px;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.cart-summary strong{font-size:1.6rem}.checkout-form,.mini-form{display:grid;gap:14px;margin-top:18px}.checkout-form label,.mini-form label{display:grid;gap:6px;font-weight:800}.checkout-form input,.checkout-form textarea,.checkout-form select,.mini-form textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);outline:none}.checkout-form textarea,.mini-form textarea{min-height:110px;resize:vertical}.hidden{display:none!important}.notice{padding:16px;margin-top:16px}.notice.success{border-color:rgba(15,159,143,.4);background:rgba(15,159,143,.12);color:var(--ink)}.notice.error{border-color:rgba(239,68,68,.4);background:rgba(239,68,68,.1);color:var(--ink)}body.dark .notice.success{background:rgba(15,159,143,.18)}body.dark .notice.error{background:rgba(239,68,68,.18)}.empty-state{text-align:center;padding:36px;color:var(--muted);border:1px dashed var(--line);border-radius:22px}.review-list{display:grid;gap:8px;margin-top:14px}.review{padding:10px 12px;border-radius:14px;background:rgba(124,58,237,.08);font-size:.9rem}.page-title{margin-bottom:22px}details summary{cursor:pointer;font-weight:900}details p{color:var(--muted)}footer{width:min(1180px,92%);margin:0 auto 24px;padding:22px;text-align:center;color:var(--muted)}footer a{font-weight:800;color:var(--brand)}
.auth-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 14px 34px rgba(31,23,42,.08)}.auth-card h2{margin-top:0}.auth-switch,.muted{color:var(--muted)}.auth-switch a{color:var(--brand);font-weight:800}.account-panel{display:grid;gap:10px;align-content:center}.account-avatar{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;display:grid;place-items:center;font-size:1.4rem;overflow:hidden}.shop-list{display:grid;gap:12px}.shop-item{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);text-decoration:none;color:var(--ink);transition:.2s ease}.shop-item:hover{transform:translateY(-3px);border-color:rgba(15,159,143,.35);box-shadow:0 14px 30px rgba(31,23,42,.1)}.shop-item .account-avatar{width:44px;height:44px;border-radius:14px;font-size:1rem}.shop-list-logo img{width:100%;height:100%;object-fit:cover}.shop-item p{margin:2px 0 0;color:var(--muted);font-size:.9rem}
.app-toast{position:fixed;right:20px;bottom:20px;z-index:1000;max-width:min(340px,calc(100vw - 32px));padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;font-weight:900;box-shadow:0 18px 44px rgba(31,23,42,.24);opacity:0;transform:translateY(14px);pointer-events:none;transition:opacity .2s ease,transform .2s ease}.app-toast.show{opacity:1;transform:translateY(0)}
.home-shell{grid-template-columns:minmax(0,1fr) 300px}.home-content{display:grid;gap:22px}.campus-hero{padding:28px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr);gap:20px;align-items:center;border-radius:var(--radius);background:linear-gradient(135deg,#08111f 0%,#103d3a 52%,#f97316 130%);color:#fff;box-shadow:var(--shadow);overflow:hidden;position:relative}.campus-hero:after{content:"";position:absolute;right:-64px;top:-64px;width:190px;height:190px;border:28px solid rgba(255,255,255,.1);border-radius:50%}.campus-hero h1{font-size:clamp(2rem,4.8vw,3.9rem);line-height:1;margin:0 0 12px;font-weight:900}.campus-hero p{color:rgba(255,255,255,.82);font-size:.98rem;margin:0 0 12px}.campus-hero .eyebrow{color:#99f6e4}.campus-hero .secondary{background:#fff;color:#101828}.campus-visual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;position:relative;z-index:1}.deal-card{min-height:96px;border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:14px;background:rgba(255,255,255,.12);backdrop-filter:blur(14px);display:grid;align-content:end}.deal-card.featured{grid-column:1/-1;min-height:124px;background:rgba(255,255,255,.18)}.deal-card span,.deal-card i{color:#fde68a;font-weight:900}.deal-card strong{font-size:1.05rem;line-height:1.2}.market-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.market-band span,.seller-cta,.trust-grid,.shop-profile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 16px 38px rgba(31,23,42,.08)}.market-band span{padding:16px}.shop-showcase{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.shop-card{display:grid;text-decoration:none;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 14px 34px rgba(31,23,42,.08);transition:.2s ease}.shop-card:hover{transform:translateY(-5px);box-shadow:0 22px 46px rgba(31,23,42,.13)}.shop-card-body{padding:14px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.shop-logo,.shop-profile-logo{display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);overflow:hidden}.shop-logo{width:54px;height:54px;border-radius:16px}.shop-logo img,.shop-profile-logo img{width:100%;height:100%;object-fit:cover}.trust-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:5px 9px;border-radius:999px;background:rgba(15,159,143,.12);color:#087466;font-size:.76rem;font-weight:900}.card-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.trust-grid{padding:26px;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px;align-items:start}.trust-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.trust-cards section{background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:16px}.trust-cards i{color:var(--brand);font-size:1.4rem}.seller-cta{padding:28px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.12)),var(--surface)}.campus-categories a{text-decoration:none}.image-preview-wrap{grid-column:1/-1;display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:end}.image-preview-wrap.single{grid-template-columns:120px}.image-preview{width:120px;height:120px;object-fit:cover;border-radius:18px;border:1px solid var(--line);background:var(--surface);box-shadow:0 10px 26px rgba(31,23,42,.08)}.shop-profile{overflow:hidden}.shop-profile-body{padding:24px;display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start}.shop-profile-logo{width:96px;height:96px;border-radius:26px;box-shadow:0 16px 34px rgba(31,23,42,.18)}.shop-profile h1{margin:0 0 10px;font-size:clamp(2rem,4vw,3.6rem);line-height:1}.shop-meta{display:flex;gap:8px;flex-wrap:wrap}.shop-meta span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:var(--bg);border:1px solid var(--line);font-size:.88rem;font-weight:800}
.cart-action{width:48px;height:48px;border-radius:16px;display:inline-grid;place-items:center;position:relative;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none;box-shadow:0 10px 24px rgba(31,23,42,.08);transition:.2s ease}.cart-action:hover{transform:translateY(-2px);border-color:rgba(15,159,143,.38)}.cart-action .cart-pill{position:absolute;right:-7px;top:-7px}.floating-cart-action{position:fixed;right:24px;bottom:24px;z-index:900;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;border:0;box-shadow:0 18px 42px rgba(31,23,42,.28)}.floating-cart-action:hover{border-color:transparent;box-shadow:0 22px 48px rgba(31,23,42,.34)}.floating-cart-action .cart-pill{background:var(--surface);color:var(--ink);border:1px solid var(--line);right:-6px;top:-8px}.footer-links{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:8px 0 0}.footer-links a{text-decoration:none}
.filter-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0 0 20px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 14px 34px rgba(31,23,42,.08)}.filter-panel label{display:grid;gap:6px;color:var(--muted);font-size:.82rem;font-weight:900}.filter-panel input,.filter-panel select,.trend-control select{width:100%;min-width:0;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-weight:800;outline:none}.filter-panel input:focus,.filter-panel select:focus,.trend-control select:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(15,159,143,.12)}.filter-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.trend-control{display:grid;gap:6px;color:var(--muted);font-size:.82rem;font-weight:900;min-width:210px}.trend-tag{background:rgba(249,115,22,.12);color:#c2410c}
.filter-dropdown{margin:0 0 16px;padding:0;background:transparent;border:0;box-shadow:none}.filter-dropdown summary{width:max-content;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:800;cursor:pointer}.filter-dropdown .filter-panel{margin:12px 0 0}
.checkout-history-section{margin-top:26px}.checkout-history-list{display:grid;gap:12px}.checkout-history-card{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 12px 28px rgba(31,23,42,.07)}.checkout-status-stack{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.checkout-item-list{display:grid;gap:8px}.checkout-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}.checkout-history-item strong{display:block}.checkout-history-item span{display:block;color:var(--muted);font-size:.88rem;font-weight:700}.checkout-history-item>div:last-child{display:grid;gap:5px;justify-items:end}
.chat-seller-link,.cart-chat-link,.checkout-chat-link{white-space:nowrap}.checkout-chat-link{padding:8px 10px;min-height:auto;font-size:.82rem}.product-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}.product-actions .btn,.product-actions .ghost-btn{width:100%}
@media(max-width:700px){.checkout-history-card{padding:13px;border-radius:16px}.checkout-status-stack{justify-content:flex-start}.checkout-history-item{grid-template-columns:1fr}.checkout-history-item>div:last-child{justify-items:start}}
.contact-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}.contact-card,.contact-form-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(31,23,42,.08)}.contact-list{display:grid;gap:10px;margin:14px 0}.contact-list a,.contact-list span{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:800}.contact-form{display:grid;gap:12px}.contact-form label{display:grid;gap:6px;font-weight:900}.contact-form input,.contact-form textarea{width:100%;padding:13px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);outline:none}.contact-form textarea{min-height:130px;resize:vertical}.contact-mini{margin-top:22px;padding:24px;border-radius:var(--radius);background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.12)),var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.faq-page-list{display:grid;gap:12px}.faq-page-list details{background:var(--surface)}.faq-page-list summary{display:flex;justify-content:space-between;gap:12px;align-items:center}.faq-page-list summary:after{content:"+";font-size:1.25rem;color:var(--brand)}.faq-page-list details[open] summary:after{content:"-"}
.billing-copy{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:0 0 16px}.billing-copy p,.payment-instructions{margin:0;padding:14px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,rgba(15,159,143,.1),rgba(249,115,22,.1)),var(--surface);font-weight:900}.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.pricing-card{display:grid;gap:12px;padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 14px 34px rgba(31,23,42,.08)}.pricing-card.active{border-color:rgba(15,159,143,.55);box-shadow:0 18px 44px rgba(15,159,143,.18)}.pricing-card h3{margin:0;font-size:1.8rem}.pricing-card h3 span{font-size:.9rem;color:var(--muted)}.pricing-card ul{margin:0;padding-left:18px;color:var(--muted)}.billing-form{margin:18px 0}.payment-instructions{grid-column:1/-1;display:grid;gap:6px}.promo-tag{background:rgba(249,115,22,.14);color:#c2410c}
.category-photo-card{position:relative;min-height:260px;padding:0;overflow:hidden;color:#fff;background:#111827}.category-photo-card img{width:100%;height:100%;min-height:260px;object-fit:cover;transition:transform .35s ease}.category-photo-card:hover img{transform:scale(1.06)}.category-photo-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.34) 45%,rgba(0,0,0,.78) 100%)}.category-overlay{position:absolute;inset:auto 0 0;z-index:1;padding:18px;display:grid;gap:6px}.category-photo-card i{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.16);color:#fff;backdrop-filter:blur(10px)}.category-photo-card h3,.category-photo-card p{margin:0;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.42)}.category-photo-card p{color:rgba(255,255,255,.86)}
.variant-builder{grid-column:1/-1;display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--bg)}.variant-builder .section-head{margin:0}.variant-builder h3{margin:0}.variant-rows{display:grid;gap:12px}.variant-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.variant-row label{display:grid;gap:6px;font-weight:900}.variant-row input{width:100%;min-width:0}.modal-shell{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:18px;background:rgba(10,10,16,.58);backdrop-filter:blur(10px)}.option-modal{position:relative;width:min(720px,100%);max-height:92vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 28px 80px rgba(0,0,0,.28);padding:22px}.modal-close{position:absolute;right:16px;top:16px;z-index:2}.option-head{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;align-items:center;margin-bottom:16px}.option-head .product-img{height:150px;margin:0}.variant-choice-list{display:grid;gap:10px;margin:16px 0}.variant-choice{display:grid;grid-template-columns:auto 70px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--bg);cursor:pointer}.variant-choice input{width:18px;height:18px}.variant-choice-img{width:70px;height:70px;border-radius:16px;overflow:hidden;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center}.variant-choice-img img{width:100%;height:100%;object-fit:cover}.variant-choice small{display:block;color:var(--muted);font-weight:800}.shop-card .shop-logo{width:46px;height:46px;border-radius:14px}.product-img img{cursor:zoom-in}.image-lightbox{position:relative;width:100%;height:100%;display:grid;place-items:center}.image-lightbox img{max-width:min(94vw,1040px);max-height:86vh;object-fit:contain;border-radius:22px;background:var(--surface);box-shadow:0 28px 90px rgba(0,0,0,.34)}.image-lightbox-close{position:fixed;right:24px;top:24px;z-index:2}
.password-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.password-field input{min-width:0}.password-toggle{border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);padding:11px 12px;display:inline-flex;align-items:center;gap:6px;font-weight:800;cursor:pointer}
.nav-menu .nav-action{width:100%;justify-content:flex-start}
.admin-layout{grid-template-columns:minmax(0,1fr) 280px}.admin-dashboard,.admin-section,.admin-list{display:grid;gap:18px}.admin-section{margin-top:26px}.admin-row{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:12px;box-shadow:0 12px 28px rgba(31,23,42,.07)}.admin-row-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.admin-row-title{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center}.admin-media{width:64px;height:64px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(135deg,rgba(15,159,143,.13),rgba(249,115,22,.16));display:grid;place-items:center;overflow:hidden;color:var(--brand);font-size:1.25rem;flex:0 0 auto}.admin-media img{width:100%;height:100%;object-fit:cover}.admin-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}.admin-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-actions select,.admin-actions input,.admin-actions textarea{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:10px}.admin-product-form{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.admin-product-form label:nth-of-type(4),.admin-product-form label:nth-of-type(5),.admin-product-form .hero-actions{grid-column:1/-1}.inline-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;font-weight:800}.inline-check input{width:auto}.status-pill{display:inline-flex;border-radius:999px;padding:5px 9px;background:rgba(124,58,237,.1);color:var(--brand);font-size:.78rem;font-weight:900;text-transform:capitalize}.status-pill.positive{background:rgba(15,159,143,.12);color:#087466}.status-pill.waiting{background:rgba(249,115,22,.13);color:#c2410c}.status-pill.inactive{background:rgba(239,68,68,.1);color:var(--danger)}.review-edit{width:100%;min-height:80px}
@media(max-width:900px){main,.home-shell{grid-template-columns:1fr}.hero,.campus-hero,.trust-grid,.contact-grid{grid-template-columns:1fr}.market-band{grid-template-columns:1fr}aside{position:static}.nav-menu a,.nav-action,.header-auth a{font-size:.92rem}.cart-row{grid-template-columns:1fr}.topbar{align-items:flex-start}.campus-visual{grid-template-columns:1fr 1fr}}
@media(max-width:560px){header,main,footer{width:94%}header{padding:14px;border-radius:22px}.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}.brand-area{min-width:0;gap:8px}.brand{gap:9px}.brand-mark{width:42px;height:42px;border-radius:14px}.brand strong{font-size:1rem}.brand small{max-width:168px;font-size:.74rem;line-height:1.25}.dropdown-nav{margin-left:0}.menu-dropdown{position:relative}.menu-dropdown summary{padding:9px 12px}.nav-menu{position:absolute;left:0;top:100%;z-index:50;margin-top:8px;min-width:210px;max-width:calc(100vw - 32px)}.header-actions{justify-items:end;align-content:start;gap:8px;max-width:50vw}.header-actions .ghost-btn{padding:9px 11px;white-space:nowrap}.cart-action{width:42px;height:42px;border-radius:14px}.header-auth{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap}.header-auth a,.nav-action{padding:9px 11px;white-space:nowrap}.search-container{max-width:none;margin-top:12px}.filter-panel{grid-template-columns:1fr;padding:14px}.filter-actions,.filter-actions .btn,.filter-actions .ghost-btn{width:100%}.hero,article{padding:20px}.campus-hero{padding:14px}.hero h1,.page-title h1{letter-spacing:-.04em}.product-grid,.category-list,.dashboard-cards,.faq-grid,.campus-visual{grid-template-columns:1fr}.admin-product-form{grid-template-columns:1fr}.image-preview-wrap,.shop-profile-body,.option-head,.variant-choice{grid-template-columns:1fr}.variant-choice-img{width:100%;height:150px}.shop-profile-logo{margin-top:-58px}.campus-hero h1{font-size:2rem}}

/* Softer typography and tighter sections */
body{font-family:Inter,"Trebuchet MS",system-ui,-apple-system,Segoe UI,sans-serif;font-weight:400;line-height:1.55}
h1,h2,h3,.hero h1,.page-title h1,.campus-hero h1,.shop-profile h1{font-family:"Trebuchet MS",Inter,system-ui,sans-serif;font-weight:650;letter-spacing:0;line-height:1.08}
.hero h1,.page-title h1{font-size:clamp(1.85rem,3.8vw,3.35rem)}
.campus-hero h1{font-size:clamp(1.9rem,4vw,3.25rem)}
.shop-profile h1{font-size:clamp(1.8rem,3vw,2.75rem)}
h2{font-size:clamp(1.35rem,2.2vw,2rem)}
h3{font-size:1.05rem}
strong,.brand strong,.price,.btn,.ghost-btn,.menu-dropdown summary,.nav-menu a,.nav-action,.header-auth a,.checkout-form label,.mini-form label,.contact-form label,.variant-row label,.filter-panel label,.trend-control,.status-pill,.tag,.trust-badge,footer a{font-weight:650}
.eyebrow{font-weight:650;letter-spacing:.08em;font-size:.72rem}
header{margin-top:18px;padding:15px}.brand-mark{font-weight:650}.brand strong{font-size:1.05rem}.brand small{font-size:.78rem}
main{margin:18px auto;gap:18px}article{padding:20px}aside{padding:18px}.hero{padding:28px;gap:18px}.campus-hero{padding:24px;gap:16px}.hero-card{padding:20px}.hero-card strong{font-size:1.35rem;font-weight:650}.spark{font-size:1.55rem}
main.single-column{grid-template-columns:1fr}
.section-head{margin:20px 0 12px}.admin-section{margin-top:18px}.admin-dashboard,.admin-section,.admin-list{gap:14px}
.product-card,.category-item,.dash-card,details,.cart-row,.admin-row,.auth-card,.contact-card,.contact-form-card,.pricing-card{padding:15px;border-radius:18px}
.product-grid,.category-list,.dashboard-cards,.faq-grid,.pricing-grid{gap:14px}.product-img,.product-card-media{height:165px;border-radius:15px}.product-img i,.product-card-media i{font-size:2.35rem}
.empty-state{padding:24px}.cart-summary{padding:16px}.cart-summary strong{font-size:1.25rem;font-weight:650}
.campus-visual{gap:8px}.deal-card{min-height:86px;padding:12px}.deal-card.featured{min-height:108px}.deal-card strong{font-size:.96rem;font-weight:650}
.market-band span,.trust-cards section,.seller-cta,.trust-grid{padding:18px}.billing-copy p,.payment-instructions{font-weight:600;padding:12px}.pricing-card h3{font-size:1.45rem;font-weight:650}
.filter-panel{padding:14px;margin-bottom:14px}.filter-panel input,.filter-panel select,.trend-control select,.checkout-form input,.checkout-form textarea,.checkout-form select,.contact-form input,.contact-form textarea{padding:11px 12px;font-weight:500}
.copy-link-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:14px}.copy-link-box input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink)}
.category-photo-card,.category-photo-card img{min-height:210px}.category-overlay{padding:14px}.shop-profile-body{padding:20px}.shop-profile-logo{width:82px;height:82px;border-radius:22px}
.app-toast{font-weight:650}.status-pill,.tag,.trust-badge{font-size:.75rem}.billing-copy{gap:8px}.contact-mini{padding:18px}
@media(max-width:560px){.hero,article{padding:16px}.campus-hero{padding:14px}.hero h1,.page-title h1{font-size:clamp(1.75rem,9vw,2.45rem)}.campus-hero h1{font-size:1.95rem}.product-img,.product-card-media{height:150px}.deal-card,.deal-card.featured{min-height:78px}.category-photo-card,.category-photo-card img{min-height:190px}.copy-link-box{grid-template-columns:1fr}.copy-link-box .btn{width:100%}}

/* ============================================================
   Image upload and preview
   ============================================================ */
.image-preview{margin-top:6px;width:128px;height:128px;object-fit:cover;border-radius:18px;border:1px solid var(--line);background:var(--bg);box-shadow:0 10px 24px rgba(31,23,42,.1)}
.image-preview.hidden{display:none}
.image-preview-wrap{display:grid;gap:8px}
.image-preview-wrap.single{justify-items:start}
/* Friendly file input affordance */
.checkout-form input[type=file],.contact-form input[type=file]{padding:11px 12px;border:1px dashed var(--line);border-radius:16px;background:var(--bg);color:var(--muted);cursor:pointer;font-weight:600}
.checkout-form input[type=file]::file-selector-button{margin-right:12px;border:0;border-radius:999px;padding:9px 16px;font-weight:650;cursor:pointer;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff}
.checkout-form input[type=file]:hover{border-color:var(--brand)}
/* ============================================================
   De-crowded seller / admin forms
   ============================================================ */
.admin-product-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:start}
/* Reset the brittle nth-child full-width hack */
.admin-product-form label:nth-of-type(4),.admin-product-form label:nth-of-type(5){grid-column:auto}
.admin-product-form label{align-self:start}
.admin-product-form label:has(textarea),.admin-product-form label:has(input[type=file]),.admin-product-form .variant-builder,.admin-product-form .hero-actions,.admin-product-form .inline-check,.admin-product-form>button[type=submit],.admin-product-form .image-preview,.admin-product-form .image-preview-wrap{grid-column:1/-1}
.admin-product-form>button[type=submit]{justify-self:start;padding-left:28px;padding-right:28px}

/* ============================================================
   Dashboard tab navigation (seller + admin)
   ============================================================ */
.dashboard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 4px;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 12px 30px rgba(31,23,42,.07);position:sticky;top:12px;z-index:20;backdrop-filter:blur(10px)}
body.dark .dashboard-tabs{background:rgba(23,19,33,.9)}
.dashboard-swipe-hint{display:none}
.dashboard-tab{border:0;border-radius:13px;padding:10px 16px;font-weight:650;font-size:.92rem;cursor:pointer;background:transparent;color:var(--muted);transition:.18s ease;white-space:nowrap}
.dashboard-tab:hover{background:var(--bg);color:var(--ink)}
.dashboard-tab.active{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 10px 22px rgba(15,159,143,.26)}
.dash-panel{margin-top:14px;animation:dashFade .25s ease}
@keyframes dashFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.dashboard-swipe-hint{display:flex;align-items:center;gap:8px;margin:14px 0 8px;padding:10px 12px;border:1px dashed rgba(15,159,143,.45);border-radius:14px;background:rgba(15,159,143,.08);color:var(--ink);font-size:.86rem;font-weight:650}.dashboard-swipe-hint i{color:var(--brand)}.dashboard-tabs{flex-wrap:nowrap;overflow-x:auto;position:static;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:thin}.dashboard-tab{flex:0 0 auto;scroll-snap-align:start}.admin-product-form{grid-template-columns:1fr}}

/* ============================================================
   Seller Profile Page
   ============================================================ */
.seller-profile-header{background:linear-gradient(135deg,#08111f 0%,#103d3a 52%,#f97316 130%);color:#fff;padding:40px;border-radius:var(--radius);margin-bottom:28px;box-shadow:0 18px 50px rgba(31,23,42,.18)}
.seller-header-content{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center}
.seller-info{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start}
.seller-avatar{width:120px;height:120px;border-radius:24px;border:3px solid rgba(255,255,255,.3);object-fit:cover;box-shadow:0 12px 28px rgba(0,0,0,.25)}
.seller-bio{margin:2px 0 10px;color:rgba(255,255,255,.86);font-size:.95rem}
.seller-stats{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px}
.seller-stats .stat{display:flex;flex-direction:column;gap:2px;font-size:.9rem;color:rgba(255,255,255,.9)}
.seller-stats .stat strong{font-size:1.2rem;color:#fde68a}
.seller-contact .btn{background:#fff;color:#103d3a}
.seller-section{margin-bottom:32px}
.seller-section h2{font-size:1.8rem;margin:0 0 20px;color:var(--ink)}
.seller-description{color:var(--muted);line-height:1.7;font-size:1.02rem;margin-bottom:18px}
.shop-details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-top:16px}
.detail-item{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.detail-item i{font-size:1.4rem;color:var(--brand)}
.detail-item strong{display:block;color:var(--ink);font-size:.9rem}
.detail-item p{margin:2px 0 0;color:var(--muted);font-size:.95rem}
.reviews-list{display:grid;gap:16px}
.review-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.review-card h4{margin:0 0 6px;font-size:1rem}
.review-card .rating{color:#fbbf24;font-size:.95rem;margin-bottom:8px}
.review-card p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.6}
.seller-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.seller-product-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;cursor:pointer;transition:.2s ease;box-shadow:0 12px 28px rgba(31,23,42,.08)}
.seller-product-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(31,23,42,.13)}
.seller-product-card-img{width:100%;height:160px;background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.12));display:grid;place-items:center;overflow:hidden}
.seller-product-card-img img{width:100%;height:100%;object-fit:cover}
.seller-product-card-body{padding:14px}
.seller-product-card-body h3{margin:0 0 6px;font-size:1.05rem;color:var(--ink)}
.seller-product-card-price{font-weight:900;font-size:1.1rem;color:var(--brand);margin:8px 0}
@media(max-width:900px){.seller-header-content{grid-template-columns:1fr}.seller-info{grid-template-columns:auto 1fr}.shop-details-grid{grid-template-columns:1fr}}
@media(max-width:700px){.seller-profile-header{padding:24px}.seller-stats{gap:16px}.seller-avatar{width:90px;height:90px}}

/* ============================================================
   Enhanced Cart Item Cards
   ============================================================ */
.cart-item-card{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 10px 24px rgba(31,23,42,.08);transition:.2s ease}
.cart-item-card:hover{box-shadow:0 14px 32px rgba(31,23,42,.12);transform:translateY(-2px)}
.cart-item-image{width:90px;height:90px;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.12));display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line)}
.cart-item-image img{width:100%;height:100%;object-fit:cover}
.cart-item-image i{font-size:2rem;color:var(--brand)}
.cart-item-details{display:grid;gap:4px;min-width:0}
.cart-item-details strong{display:block;font-size:1.02rem;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-item-price{margin:0;font-weight:900;color:var(--brand);font-size:1rem}
.cart-item-details p{margin:2px 0 0;color:var(--muted);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-item-subtotal{margin:6px 0 0 !important;font-weight:800 !important;color:var(--ink) !important}
.cart-item-controls{display:flex;flex-direction:column;align-items:center;gap:8px}
.qty-controls{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;padding:4px}
.qty-controls button{width:28px;height:28px;padding:0;border-radius:8px}
.qty-controls strong{font-weight:900;min-width:24px;text-align:center;font-size:.95rem}
@media(max-width:900px){.cart-item-card{grid-template-columns:70px minmax(0,1fr) auto;gap:10px}.cart-item-image{width:70px;height:70px}}
@media(max-width:640px){.cart-item-card{grid-template-columns:60px minmax(0,1fr) 50px;gap:8px}.cart-item-image{width:60px;height:60px;border-radius:12px}.cart-item-details strong{font-size:.95rem}.qty-controls{flex-direction:column}.qty-controls button{width:24px;height:24px;font-size:.8rem}.qty-controls strong{font-size:.9rem}}

/* ============================================================
   Modern Navbar
   ============================================================ */
.navbar{width:100%;position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);box-shadow:0 4px 16px rgba(31,23,42,.08);backdrop-filter:blur(12px);padding:12px 0}
body.dark .navbar{background:rgba(23,19,33,.95)}
.nav-container{width:min(1180px,94%);margin:0 auto;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:0 16px}
.logo{font-size:1.4rem;font-weight:900;text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:8px;letter-spacing:-.03em}
.logo::before{content:"P";display:inline-block}
.navbar .nav-menu{list-style:none;display:flex;gap:28px;margin:0;padding:0}
.navbar .nav-menu a{text-decoration:none;color:var(--ink);font-weight:700;font-size:.95rem;transition:.2s ease;position:relative}
.navbar .nav-menu a:hover{color:var(--brand)}
.navbar .nav-menu a:hover::after{content:"";position:absolute;bottom:-4px;left:0;right:0;height:2px;background:var(--brand);border-radius:1px}
.auth-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.search-input{width:200px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:.9rem;outline:none;transition:.2s ease}
.search-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,159,143,.1)}
.user-menu-btn{width:36px;height:36px;border-radius:12px}
.dropdown-menu{position:absolute;top:100%;right:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(31,23,42,.15);min-width:160px;display:grid}
.dropdown-menu.hidden{display:none}
.dropdown-menu a{display:block;padding:10px 14px;text-decoration:none;color:var(--ink);font-weight:700;border-bottom:1px solid var(--line);transition:.15s ease}
.dropdown-menu a:last-child{border-bottom:none}
.dropdown-menu a:hover{background:var(--bg);color:var(--brand)}
@media(max-width:900px){.navbar .nav-menu{gap:16px}.search-input{width:140px}.nav-container{gap:16px}}
@media(max-width:700px){.nav-container{grid-template-columns:auto 1fr auto;gap:12px}.navbar .nav-menu{gap:12px;font-size:.9rem}.search-input{width:120px;padding:8px 12px}.navbar{padding:10px 0}}

/* ============================================================
   Cart Shop Grouping
   ============================================================ */
.cart-shop-group{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);margin-bottom:12px}
.cart-shop-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line);font-weight:800;color:var(--brand);font-size:1rem;flex-wrap:wrap}.cart-shop-header>span{display:inline-flex;align-items:center;gap:8px}
.cart-shop-header i{font-size:1.2rem}
.cart-item-card{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,rgba(15,159,143,.02),rgba(249,115,22,.02));transition:.2s ease}
.cart-item-card:hover{box-shadow:0 12px 28px rgba(31,23,42,.1);transform:translateY(-2px)}
.cart-item-image{width:90px;height:90px;border-radius:12px;overflow:hidden;background:var(--bg);display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line)}
.cart-item-image img{width:100%;height:100%;object-fit:cover}
.cart-item-image i{font-size:1.8rem;color:var(--brand)}
.cart-item-details{display:grid;gap:3px;min-width:0}
.cart-item-details strong{display:block;font-size:1rem;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-item-price{margin:0;font-weight:900;color:var(--brand);font-size:.95rem}
.cart-item-details p{margin:0;color:var(--muted);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-item-subtotal{margin:6px 0 0 !important;font-weight:800 !important;color:var(--ink) !important;font-size:.92rem !important}
.cart-item-controls{display:flex;flex-direction:column;align-items:center;gap:8px}
.qty-controls{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:3px;background:var(--bg)}
.qty-controls button{width:26px;height:26px;padding:0;border-radius:6px;font-size:.85rem}
.qty-controls strong{font-weight:900;min-width:20px;text-align:center;font-size:.9rem}
@media(max-width:900px){.cart-item-card{grid-template-columns:70px minmax(0,1fr) auto;gap:10px}.cart-item-image{width:70px;height:70px}}
@media(max-width:640px){.cart-item-card{grid-template-columns:60px minmax(0,1fr) 50px;gap:8px}.cart-item-image{width:60px;height:60px;border-radius:10px}.cart-item-details strong{font-size:.9rem}.qty-controls{flex-direction:column;gap:4px;padding:2px}.qty-controls button{width:22px;height:22px;font-size:.7rem}.qty-controls strong{font-size:.85rem}}

/* ============================================================
   Shopper trust, promotions, and product detail
   ============================================================ */
.home-category-grid,.testimonial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.home-category-card{position:relative;min-height:190px;border-radius:20px;overflow:hidden;text-decoration:none;color:#fff;background:#111827;box-shadow:0 14px 34px rgba(31,23,42,.12)}
.home-category-card img{width:100%;height:100%;min-height:190px;object-fit:cover;transition:transform .3s ease}
.home-category-card:hover img{transform:scale(1.05)}
.home-category-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.72))}
.home-category-card span{position:absolute;left:14px;right:14px;bottom:14px;z-index:1;display:flex;align-items:center;gap:8px;font-weight:800;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.offer-strip{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.14)),var(--surface);box-shadow:0 16px 38px rgba(31,23,42,.08)}
.offer-strip h2{margin:0 0 10px}
.offer-strip img{width:100%;height:210px;object-fit:cover;border-radius:20px;border:1px solid rgba(255,255,255,.5);box-shadow:0 14px 34px rgba(31,23,42,.14)}
.testimonial-card{display:grid;gap:8px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 14px 34px rgba(31,23,42,.08)}
.testimonial-card p{margin:0;color:var(--muted)}
.testimonial-card strong{margin-top:6px}
.testimonial-card span{color:var(--muted);font-size:.88rem}
.brand-strip{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;padding:18px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 14px 34px rgba(31,23,42,.08)}
.brand-strip span{padding:9px 14px;border-radius:999px;background:var(--bg);border:1px solid var(--line);font-weight:800;color:var(--muted)}
.product-rating{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:.9rem}
.rating-stars{color:#f59e0b;letter-spacing:1px;font-weight:900}
.product-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;align-items:center;margin-top:8px}
.product-actions .btn,.product-actions .ghost-btn{padding:10px 14px}
.product-detail{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:28px;align-items:start}
.product-detail-media{min-height:420px;border-radius:24px;overflow:hidden;background:linear-gradient(135deg,rgba(15,159,143,.12),rgba(249,115,22,.14));display:grid;place-items:center;border:1px solid var(--line)}
.product-detail-media img{width:100%;height:100%;min-height:420px;object-fit:contain}
.product-detail-media i{font-size:5rem;color:var(--brand)}
.product-detail-copy{display:grid;gap:12px}
.product-detail-copy h1{font-size:clamp(2rem,4vw,3.4rem);margin:0;line-height:1.05}
.product-detail-copy p{margin:0;color:var(--muted)}
.product-detail-options{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--bg)}
.product-detail-options h3{margin:0}
.product-detail-options span{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.product-detail-options span:first-of-type{border-top:0}
@media(max-width:820px){.offer-strip,.product-detail{grid-template-columns:1fr}.product-detail-media,.product-detail-media img{min-height:300px}}
@media(max-width:560px){.home-category-card,.home-category-card img{min-height:160px}.offer-strip{padding:16px}.offer-strip img{height:170px}.product-actions .btn,.product-actions .ghost-btn{width:100%}}

/* ============================================================
   Mobile responsive polish
   ============================================================ */
@media(max-width:900px){
  :root{--radius:22px}
  body{font-size:15px;line-height:1.55;overflow-x:hidden}
  header,main,footer{width:min(100% - 24px,1180px)}
  header{margin-top:12px}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:10px 12px}
  .brand-area{display:contents;min-width:0}
  .brand{grid-column:1;grid-row:1;align-self:start;min-width:0}
  .brand span:last-child{min-width:0;white-space:nowrap}
  .brand-mark{flex:0 0 48px}
  .header-actions{display:contents}
  .header-actions .ghost-btn{grid-column:2;grid-row:1;justify-self:end}
  .header-actions>.cart-action{grid-column:3;grid-row:1;justify-self:end}
  .header-auth a{justify-self:end}
  .header-auth .admin-action,.header-auth .login-action{grid-column:3;grid-row:2}
  .header-auth .login-action{grid-column:2/4;display:inline-flex;justify-content:center;min-width:92px;border-color:rgba(15,159,143,.32);background:linear-gradient(135deg,rgba(15,159,143,.1),rgba(249,115,22,.08)),var(--surface)}
  .header-auth{display:contents}
  .floating-cart-action{display:inline-grid;right:18px;bottom:18px;width:54px;height:54px;border-radius:17px}
  .dropdown-nav{grid-column:1/-1;grid-row:3;width:100%;max-width:100%;margin:0;justify-self:start;align-self:start}
  .menu-dropdown{width:100%;max-width:100%;position:relative}
  .menu-dropdown summary{width:auto;justify-content:flex-start}
  .nav-menu{position:static;z-index:50;width:100%;max-width:100%;min-width:0;margin-top:8px}
  .search-container{max-width:none}
  main,.home-shell,.admin-layout{grid-template-columns:1fr;gap:16px;margin-top:16px}
  article,aside{min-width:0}
  aside{position:static}
  .campus-hero,.hero,.trust-grid,.contact-grid,.offer-strip,.product-detail,.seller-header-content{grid-template-columns:1fr}
  .market-band{grid-template-columns:1fr}
  .product-grid,.category-list,.dashboard-cards,.faq-grid,.pricing-grid,.shop-showcase,.home-category-grid,.testimonial-grid,.seller-product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
  .admin-row-title{grid-template-columns:auto minmax(0,1fr)}
  .admin-actions{align-items:stretch}
  .admin-actions .btn,.admin-actions .ghost-btn,.admin-actions select,.admin-actions input{min-width:0}
}

@media(max-width:700px){
  html{font-size:15px}
  body{background:linear-gradient(180deg,#fff 0%,var(--bg) 42%)}
  header,main,footer{width:calc(100% - 20px)}
  header{padding:12px;border-radius:18px}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:10px 12px}
  .brand-area{display:contents;min-width:0}
  .brand{grid-column:1;grid-row:1;align-self:start;min-width:0}
  .brand span:last-child{min-width:0;white-space:nowrap}
  .brand strong{font-size:1.02rem;line-height:1.1;white-space:nowrap;overflow-wrap:normal;word-break:normal}
  .brand small{display:none}
  .brand-mark{width:40px;height:40px;min-width:40px;flex:0 0 40px;border-radius:13px;font-size:1.15rem}
  .header-actions{display:contents}
  .header-actions .ghost-btn{grid-column:2;grid-row:1;justify-self:end}
  .header-actions>.cart-action{grid-column:3;grid-row:1;justify-self:end}
  .header-auth a{justify-self:end}
  .header-auth .admin-action,.header-auth .login-action{grid-column:3;grid-row:2}
  .header-auth .login-action{grid-column:2/4;display:inline-flex;justify-content:center;min-width:86px;border-color:rgba(15,159,143,.34);background:linear-gradient(135deg,rgba(15,159,143,.1),rgba(249,115,22,.08)),var(--surface)}
  .header-actions .ghost-btn,.header-auth a{padding:8px 10px;font-size:.82rem;min-height:40px;white-space:nowrap}
  .header-auth{display:contents}
  .header-auth a{max-width:100%;white-space:nowrap}
  .cart-action{width:40px;height:40px;border-radius:13px}
  .floating-cart-action{display:inline-grid;right:16px;bottom:16px;width:52px;height:52px;border-radius:17px}
  .dropdown-nav{grid-column:1/-1;grid-row:3;width:100%;max-width:100%;margin:0;justify-self:start;align-self:start}
  .menu-dropdown{width:100%;max-width:100%;position:relative}
  .menu-dropdown summary{width:auto;justify-content:flex-start;padding:9px 12px;font-size:.9rem}
  .nav-menu{position:static;z-index:50;width:100%;max-width:100%;min-width:0;margin-top:8px}
  .search-container{max-width:none;margin-top:12px}
  #searchBar{padding:11px 13px 11px 38px;font-size:.95rem}
  article{padding:14px;border-radius:18px}
  aside{padding:14px;border-radius:18px}
  .page-title{margin-bottom:16px}
  .page-title h1,.hero h1{font-size:clamp(1.75rem,9vw,2.35rem);letter-spacing:0;line-height:1.05;margin-bottom:10px}
  .campus-hero h1{font-size:clamp(1.65rem,8vw,2.05rem);letter-spacing:0;line-height:1.05;margin-bottom:8px}
  .page-title p,.hero p,.campus-hero p{font-size:.95rem}
  .section-head{align-items:flex-start;gap:10px;margin:18px 0 12px}
  .section-head h2,.seller-cta h2,.contact-mini h2,.offer-strip h2{font-size:1.28rem;line-height:1.2;margin:0}
  .eyebrow{font-size:.68rem;letter-spacing:.06em}
  .btn,.ghost-btn{padding:10px 13px;font-size:.9rem;min-height:40px}
  .hero-actions{gap:8px}
  .hero-actions .btn,.hero-actions .ghost-btn{flex:1 1 160px}
  .hero{padding:16px;border-radius:18px;gap:16px}
  .campus-hero{padding:14px;border-radius:18px;gap:12px}
  .campus-visual{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .deal-card,.deal-card.featured{min-height:76px;padding:10px;border-radius:15px}
  .deal-card strong{font-size:.88rem;line-height:1.15}
  .market-band span,.seller-cta,.trust-grid,.contact-mini,.offer-strip{padding:14px;border-radius:18px}
  .trust-cards{grid-template-columns:1fr;gap:10px}
  .trust-cards section,.testimonial-card,.auth-card,.contact-card,.contact-form-card,.pricing-card,.dash-card,.product-card,.category-item,details,.admin-row{padding:14px;border-radius:16px}
  .product-grid,.category-list,.dashboard-cards,.faq-grid,.pricing-grid,.shop-showcase,.home-category-grid,.testimonial-grid,.seller-product-grid{grid-template-columns:1fr;gap:12px}
  .product-img,.product-card-media{height:142px;border-radius:14px}
  .product-card h3,.category-item h3,.dash-card h3{font-size:1rem;line-height:1.25}
  .product-card p,.category-item p,.dash-card p,.testimonial-card p,.shop-card p{font-size:.9rem}
  .product-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .product-actions .btn,.product-actions .ghost-btn{width:100%}
  .home-category-card,.home-category-card img{min-height:148px;border-radius:16px}
  .category-photo-card,.category-photo-card img{min-height:160px}
  .offer-strip{gap:12px}
  .offer-strip img{height:150px;border-radius:15px}
  .filter-panel,.auth-grid,.checkout-form,.mini-form,.contact-form,.admin-product-form{grid-template-columns:1fr;gap:12px}
  .filter-panel{padding:12px;border-radius:16px}
  .filter-actions,.filter-actions .btn,.filter-actions .ghost-btn{width:100%}
  .checkout-form input,.checkout-form textarea,.checkout-form select,.mini-form textarea,.contact-form input,.contact-form textarea,.filter-panel input,.filter-panel select,.trend-control select{padding:10px 11px;border-radius:12px;font-size:.95rem}
  .checkout-form textarea,.mini-form textarea{min-height:92px}
  .password-field{grid-template-columns:minmax(0,1fr)}
  .password-toggle{justify-content:center;padding:9px 11px}
  .cart-summary{display:grid;grid-template-columns:1fr;align-items:stretch;padding:14px;border-radius:16px}
  .cart-summary .btn{width:100%}
  .cart-shop-group{padding:10px;border-radius:14px}
  .cart-item-card{grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:start;padding:10px;border-radius:12px}
  .cart-item-image{width:56px;height:56px;border-radius:10px}
  .cart-item-controls{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;justify-items:stretch;width:100%}
  .qty-controls{justify-content:center;flex-direction:row}
  .cart-item-details strong,.cart-item-details p{white-space:normal}
  .admin-row-head,.admin-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .admin-row-title{grid-template-columns:48px minmax(0,1fr)}
  .admin-media{width:48px;height:48px;border-radius:13px}
  .admin-meta{gap:6px;font-size:.82rem}
  .admin-actions .btn,.admin-actions .ghost-btn,.admin-actions select,.admin-actions input,.admin-actions textarea{width:100%}
  .dashboard-tabs{margin-top:14px;padding:6px;border-radius:14px}
  .dashboard-tab{padding:9px 12px;font-size:.84rem}
  .copy-link-box{grid-template-columns:1fr}
  .copy-link-box .btn{width:100%}
  .shop-profile-body{grid-template-columns:1fr;padding:16px;gap:12px}
  .shop-profile-logo{width:76px;height:76px;margin:0;border-radius:20px}
  .shop-profile h1{font-size:1.9rem}
  .shop-meta span{width:100%;justify-content:flex-start;border-radius:13px}
  .product-detail-media,.product-detail-media img{min-height:230px;border-radius:16px}
  .product-detail-copy h1{font-size:1.85rem;letter-spacing:0}
  .product-detail-options span{display:grid;grid-template-columns:1fr;gap:2px}
  .seller-profile-header{padding:16px;border-radius:18px}
  .seller-info{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .seller-avatar{width:64px;height:64px;border-radius:16px}
  .seller-section h2{font-size:1.35rem;margin-bottom:12px}
  .seller-stats{gap:10px}
  .seller-product-card-img{height:140px}
  .image-preview,.image-preview-wrap.single .image-preview{width:96px;height:96px;border-radius:14px}
  .option-modal{padding:16px;border-radius:18px}
  .option-head,.variant-choice{grid-template-columns:1fr}
  .variant-choice-img{width:100%;height:130px}
  footer{padding:14px 6px;font-size:.86rem}
}

@media(max-width:430px){
  .brand{gap:9px}
  .brand-mark{width:40px;height:40px;min-width:40px;flex:0 0 40px}
  .brand strong{font-size:.95rem}
  .header-actions{max-width:none;gap:6px}
  .header-actions .ghost-btn,.header-auth a{padding:8px 9px;font-size:.8rem}
  .header-auth .login-action{grid-column:2/4;min-width:78px;padding:8px 11px}
  .header-actions .ghost-btn i,.header-auth a i{font-size:.95rem}
  .header-auth{display:contents}
}

@media(max-width:380px){
  header,main,footer{width:calc(100% - 14px)}
  article,aside,.campus-hero,.hero{padding:12px}
  .header-actions{max-width:none;justify-content:end;gap:6px}
  .header-actions .ghost-btn,.header-auth a{width:40px;padding:0;font-size:0}
  .header-actions .ghost-btn i,.header-auth a i,.cart-action i{display:none}
  .header-auth .login-action{grid-column:2/4;width:auto;min-width:70px;padding:0 10px;font-size:0}
  .header-actions .ghost-btn::after{content:"T";font-size:.86rem;font-weight:800}
  .cart-action::before{content:"C";font-size:.86rem;font-weight:800}
  .header-auth a::after{content:"In";font-size:.78rem;font-weight:800}
  .header-auth .login-action::after{content:"Login";font-size:.78rem;font-weight:800}
  .header-auth .seller-action::after{content:"Sell"}
  .header-auth .admin-action::after{content:"Adm"}
  .header-auth .login-action::after{content:"Login"}
  .header-auth{display:contents}
  .btn,.ghost-btn,.header-auth a{font-size:.84rem}
  .header-actions .ghost-btn,.header-auth a{font-size:0}
  .campus-visual{grid-template-columns:1fr}
  .page-title h1,.hero h1,.campus-hero h1{font-size:1.72rem}
  .brand{gap:7px}
  .brand-mark{width:36px;height:36px;min-width:36px;font-size:1rem}
  .brand strong{font-size:.88rem}
}

@media(max-width:300px){
  .brand{gap:5px}
  .brand-mark{width:32px;height:32px;min-width:32px;border-radius:10px}
  .brand strong{display:block;font-size:.78rem}
}

/* ============================================================
   Product image/card clarity
   ============================================================ */
.product-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
}
.product-grid{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;
}
.shop-showcase{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:12px;
}
.shop-card{
  border-radius:18px;
}
.shop-card-body{
  padding:10px;
  gap:8px;
}
.shop-card-body>div{
  min-width:0;
}
.shop-card-body strong{
  display:block;
  font-size:.9rem;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shop-card-body p{
  margin:2px 0 0;
  font-size:.78rem;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shop-card .tag{
  padding:4px 7px;
  font-size:.68rem;
}
.product-card-media,.product-img,.product-img-wrap,.product-image{
  width:100%;
  height:138px;
  margin:0;
  padding:7px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(135deg,#f8fafc,#eef7f5);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
body.dark .product-card-media,body.dark .product-img,body.dark .product-img-wrap,body.dark .product-image{
  background:linear-gradient(135deg,#1f1a29,#172722);
}
.product-card-media img,.product-img img,.product-img-wrap img,.product-image img,.product-card>.product-img img,.product-card img,.option-modal .product-img img,.variant-choice-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.product-card-media i,.product-img i,.product-img-wrap i,.product-image i,.product-card>.product-img i{
  font-size:3rem;
}
.product-card-body,.product-info{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.product-card .card-tags{
  gap:5px;
}
.product-title{
  font-size:.92rem;
  font-weight:700;
  line-height:1.2;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-price{
  font-weight:800;
  font-size:.98rem;
  margin:0;
}
.product-description,.product-desc{
  font-size:.9rem;
  line-height:1.35;
  color:var(--muted);
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card .product-rating,.product-card .product-shop-line,.product-card .muted{
  font-size:.84rem;
}
.product-card .product-actions{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}
.product-card .product-actions .btn,.product-card .product-actions .ghost-btn{
  width:100%;
  min-height:36px;
  padding:8px 10px;
  font-size:.82rem;
}
.product-card .tag{
  padding:4px 7px;
  font-size:.68rem;
}
.seller-product-card-img,.product-detail-media{
  background:linear-gradient(135deg,#f8fafc,#eef7f5);
}
body.dark .seller-product-card-img,body.dark .product-detail-media{
  background:linear-gradient(135deg,#1f1a29,#172722);
}
.seller-product-card-img{
  height:220px;
  padding:10px;
  align-items:center;
  justify-items:center;
}
.seller-product-card-img img,.product-detail-media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.product-detail-media{
  padding:12px;
}

@media(max-width:700px){
  .shop-showcase{
    grid-template-columns:repeat(auto-fill,minmax(128px,1fr));
    gap:10px;
  }
  .shop-card-body{
    grid-template-columns:1fr;
    justify-items:start;
    padding:9px;
  }
  .shop-card .shop-logo{
    width:42px;
    height:42px;
    border-radius:13px;
  }
  .product-grid{
    grid-template-columns:repeat(auto-fill,minmax(128px,1fr));
    gap:10px;
  }
  .product-card-media,.product-img,.product-img-wrap,.product-image{
    height:118px;
    padding:6px;
    border-radius:16px 16px 0 0;
  }
  .seller-product-card-img{
    height:210px;
    padding:8px;
  }
  .product-card-body,.product-info{
    padding:8px;
    gap:5px;
  }
  .product-title{
    font-size:.86rem;
  }
  .product-description,.product-desc{
    font-size:.85rem;
    -webkit-line-clamp:2;
  }
  .product-card .product-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
  }
  .product-card .product-actions .btn,.product-card .product-actions .ghost-btn{
    width:100%;
    padding:8px 9px;
    min-height:34px;
    font-size:.78rem;
  }
  .product-card .product-rating,.product-card .product-shop-line,.product-card .product-card-body>.muted{
    display:none;
  }
}

@media(max-width:380px){
  .shop-showcase{
    grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
  }
  .product-grid{
    grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
  }
  .product-card-media,.product-img,.product-img-wrap,.product-image{
    height:108px;
  }
  .seller-product-card-img{
    height:190px;
  }
}

/* ============================================================
   Dark mode readability
   ============================================================ */
body.dark{
  color:var(--ink);
}
body.dark p,
body.dark .muted,
body.dark .brand small,
body.dark .page-title p,
body.dark .hero p,
body.dark details p,
body.dark .product-desc,
body.dark .product-description,
body.dark .product-rating,
body.dark .product-detail-copy p,
body.dark .seller-description,
body.dark .seller-bio,
body.dark .review-card p,
body.dark .cart-item-details p,
body.dark .admin-meta,
body.dark .detail-item p,
body.dark footer{
  color:var(--muted);
  font-weight:560;
}
body.dark h1,
body.dark h2,
body.dark h3,
body.dark strong,
body.dark .product-title,
body.dark .product-price,
body.dark .price,
body.dark .section-head h2,
body.dark .page-title h1{
  color:var(--ink);
  font-weight:800;
}
body.dark .eyebrow,
body.dark .filter-panel label,
body.dark .checkout-form label,
body.dark .mini-form label,
body.dark .contact-form label,
body.dark .trend-control,
body.dark .dashboard-tab,
body.dark .status-pill,
body.dark .tag,
body.dark .trust-badge{
  font-weight:800;
}
body.dark input,
body.dark textarea,
body.dark select{
  color:var(--ink);
  background:#201a2b;
  border-color:#4a3c5e;
}
body.dark input::placeholder,
body.dark textarea::placeholder{
  color:#cfc4dc;
  opacity:1;
}
body.dark .secondary,
body.dark .ghost-btn,
body.dark .menu-dropdown summary,
body.dark .nav-menu a,
body.dark .header-auth a,
body.dark .cart-action,
body.dark .filter-dropdown summary,
body.dark .password-toggle{
  color:var(--ink);
  border-color:#4a3c5e;
  font-weight:800;
}
body.dark .campus-hero .secondary{
  background:#fff;
  color:#101828;
  border-color:rgba(255,255,255,.82);
}
body.dark .brand-strip span,
body.dark .shop-meta span,
body.dark .admin-meta span,
body.dark .billing-copy p,
body.dark .payment-instructions,
body.dark .empty-state{
  color:#eee7f7;
  font-weight:700;
}

/* Legal pages and consent controls */
.legal-shell{
  display:block;
  max-width:980px;
  margin:0 auto;
  padding:clamp(18px,4vw,48px);
}
.legal-document{
  display:grid;
  gap:18px;
  min-width:0;
}
.legal-heading,.legal-document>section,.legal-note,.legal-toc{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:clamp(18px,3vw,30px);
  box-shadow:var(--shadow);
}
.legal-heading h1{
  margin:.2rem 0 .65rem;
}
.legal-document h2{
  margin:0 0 .65rem;
  font-size:clamp(1.1rem,3vw,1.45rem);
}
.legal-document p,.legal-document li{
  line-height:1.7;
}
.legal-document ul{
  display:grid;
  gap:.5rem;
  padding-left:1.25rem;
}
.legal-toc{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.legal-toc a{
  padding:8px 12px;
  border-radius:999px;
  background:var(--soft);
  font-weight:700;
}
.legal-note{
  border-left:5px solid var(--primary);
}
.consent-label{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:10px;
  line-height:1.5;
}
.consent-label input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
}
.terms-gate-modal{
  position:relative;
  width:min(560px,100%);
  max-height:92vh;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  padding:26px;
  display:grid;
  gap:14px;
}
.terms-gate-modal .consent-label{
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg);
}
.clipboard-helper{
  position:fixed;
  opacity:0;
  pointer-events:none;
}
@media(max-width:560px){
  .legal-shell{padding:14px}
  .legal-heading,.legal-document>section,.legal-note,.legal-toc{border-radius:16px;padding:17px}
}

/* ============================================================
   UI/UX overhaul: sticky header, inline desktop nav,
   mobile bottom nav, loading skeletons, cart & card polish
   ============================================================ */

/* --- Desktop: sticky compact header + inline nav --- */
@media(min-width:901px){
  header{position:sticky;top:10px;z-index:400;padding:14px 18px}
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px}
  .brand-area{display:flex;align-items:center;gap:14px;min-width:0}
  .header-actions{align-items:center;flex-wrap:nowrap}
  .search-container{margin-top:10px}
  .auth-grid{grid-template-columns:minmax(0,480px);justify-content:center}
  aside{top:158px}
}
.nav-inline .menu-dropdown summary{display:none}
.nav-inline .nav-menu{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:0;margin:0;min-width:0;max-width:none;background:transparent;border:0;box-shadow:none;border-radius:0}
.nav-inline .nav-menu li{list-style:none}
.nav-inline .nav-menu a,.nav-inline .nav-menu .nav-action{border:0;background:transparent;padding:8px 10px;box-shadow:none;font-size:.95rem;white-space:nowrap}
.nav-inline .nav-menu a:hover,.nav-inline .nav-menu .nav-action:hover{transform:none;background:rgba(15,159,143,.09);box-shadow:none;border:0}

/* --- Mobile: compact header (menu joins login row, icon-only theme) --- */
@media(max-width:900px){
  header{position:relative;z-index:500}
  .dropdown-nav{grid-column:1;grid-row:2;width:auto;max-width:100%;margin:0;justify-self:start;align-self:center}
  .menu-dropdown{width:auto;max-width:100%;position:relative}
  .menu-dropdown summary{width:auto;justify-content:flex-start}
  .nav-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:650;width:min(280px,84vw);max-width:84vw;min-width:0;margin:0;box-shadow:0 24px 54px rgba(31,23,42,.28)}
  #themeToggle{font-size:0;gap:0;width:40px;min-width:40px;padding:0;justify-content:center}
  #themeToggle i{font-size:1rem}
}

/* --- Mobile: app-style bottom navigation --- */
.bottom-nav{display:none}
@media(max-width:900px){
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:800;display:grid;grid-template-columns:repeat(5,1fr);padding:6px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-top:1px solid var(--line)}
  body.dark .bottom-nav{background:rgba(23,19,33,.95)}
  .bottom-nav-item{position:relative;display:grid;justify-items:center;gap:3px;padding:7px 4px 5px;text-decoration:none;color:var(--muted);font-size:.62rem;font-weight:800;border-radius:12px;-webkit-tap-highlight-color:transparent}
  .bottom-nav-item i{font-size:1.05rem}
  .bottom-nav-item.active{color:var(--brand)}
  .bottom-nav-item:active{background:rgba(15,159,143,.1)}
  .bottom-nav-pill{position:absolute;top:2px;right:calc(50% - 22px);min-width:18px;height:18px;font-size:.66rem;padding:0 5px}
  .bottom-nav-label{line-height:1}
  body{padding-bottom:76px}
  .floating-cart-action{display:none!important}
}

/* --- Loading skeletons --- */
.skeleton-card{pointer-events:none}
.sk-img{height:190px;border-radius:18px;margin-bottom:14px}
.sk-line{height:14px;border-radius:8px;margin:8px 0}
.sk-line.short{width:55%}
.sk-img,.sk-line{background:linear-gradient(90deg,rgba(148,163,184,.16) 25%,rgba(148,163,184,.32) 50%,rgba(148,163,184,.16) 75%);background-size:200% 100%;animation:skShimmer 1.4s ease-in-out infinite}
@keyframes skShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.sk-img,.sk-line{animation:none}}
@media(max-width:700px){.sk-img{height:142px}}

/* --- Cart summary: label above amount, clear hierarchy --- */
.cart-summary>div{display:grid;gap:2px}
.cart-summary>div>span{color:var(--muted);font-weight:800;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}

/* --- Readability: accessible teal for text (brand teal is too light for small text) --- */
:root{--brand-text:#0f766e}
body.dark{--brand-text:#3ddbc9}
.eyebrow,footer a,.auth-switch a,.tag,.contact-list a,.muted a,.notice a,aside a:not(.btn):not(.ghost-btn){color:var(--brand-text)}
body.dark .trend-tag,body.dark .promo-tag{color:#fdba74}

/* --- Performance: instant theme switch, cheaper mobile paints --- */
.theme-instant,.theme-instant *,.theme-instant *::before,.theme-instant *::after{transition:none!important}
@media(max-width:900px){
  header{backdrop-filter:none;background:rgba(255,255,255,.96)}
  body.dark header{background:rgba(23,19,33,.97)}
  .bottom-nav{backdrop-filter:none;background:#fff;border-top:1px solid var(--line)}
  body.dark .bottom-nav{background:#171321}
}

/* --- Brand logo image inside the rounded mark --- */
.brand-mark.brand-logo{background:#000;overflow:hidden;padding:0;width:56px;height:56px;border-radius:18px;border:1.5px solid rgba(46,139,87,.55);box-shadow:0 10px 28px rgba(46,139,87,.32);transition:.2s ease}
.brand:hover .brand-mark.brand-logo{transform:translateY(-1px) scale(1.03);box-shadow:0 14px 34px rgba(46,139,87,.42)}
.brand-mark.brand-logo img{width:100%;height:100%;object-fit:cover;display:block}
body.dark .brand-mark.brand-logo{border-color:rgba(46,139,87,.7);box-shadow:0 10px 30px rgba(46,139,87,.45)}
@media(max-width:900px){.brand-mark.brand-logo{width:46px;height:46px;min-width:46px;flex:0 0 46px;border-radius:15px}}

/* --- Shop cards: let names wrap to two lines instead of truncating --- */
.shop-card-body strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}

/* --- Brand wordmark: "Pepe" picks up the same gradient as the logo mark --- */
.brand-pepe{background:linear-gradient(135deg,var(--brand),var(--brand-2));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ==========================================================================
   Ambience lighting: layered glow background + brand-colored light accents
   on hover/focus, replacing flat neutral shadows with soft teal/orange glow.
   ========================================================================== */

/* Richer, three-point ambient glow behind every page instead of the flat
   two-blob version; fixed attachment reads as a soft light source rather
   than scrolling with the page, but that alone can cause mobile scroll
   jank, so it's scoped to wider viewports below. */
body{
  background:
    radial-gradient(560px circle at 6% -8%,rgba(15,159,143,.22),transparent 60%),
    radial-gradient(620px circle at 98% 2%,rgba(249,115,22,.18),transparent 62%),
    radial-gradient(900px circle at 50% 130%,rgba(79,70,229,.14),transparent 65%),
    linear-gradient(180deg,#fff 0%,var(--bg) 42%);
}
body.dark{
  background:
    radial-gradient(560px circle at 6% -8%,rgba(15,159,143,.30),transparent 60%),
    radial-gradient(620px circle at 98% 2%,rgba(249,115,22,.22),transparent 62%),
    radial-gradient(900px circle at 50% 130%,rgba(124,58,237,.26),transparent 65%),
    linear-gradient(180deg,#0d0b14 0%,#0d0b14 42%);
}
@media(min-width:901px){
  body{background-attachment:fixed}
}

/* Hero: a second, cooler glow blob behind the first for more depth. */
.hero:after{
  content:"";
  position:absolute;
  inset:-20% auto auto -10%;
  width:280px;
  height:280px;
  background:linear-gradient(135deg,var(--accent),var(--brand));
  filter:blur(30px);
  opacity:.16;
  border-radius:50%;
  pointer-events:none;
}
body.dark .hero:before,body.dark .hero:after{opacity:.32}

/* Hero card + campus hero: inner glow ring instead of a flat dark panel. */
.hero-card{box-shadow:0 24px 60px rgba(124,58,237,.25),inset 0 1px 0 rgba(255,255,255,.08)}
.campus-hero:before{
  content:"";
  position:absolute;
  left:-70px;
  bottom:-90px;
  width:220px;
  height:220px;
  background:radial-gradient(circle,rgba(153,246,228,.28),transparent 70%);
  filter:blur(6px);
  pointer-events:none;
}

/* Brand mark: a soft breathing glow behind the logo. Purely decorative, so
   it's skipped entirely for anyone who's asked for reduced motion. */
@media(prefers-reduced-motion:no-preference){
  .brand-mark.brand-logo{position:relative}
  .brand-mark.brand-logo:before{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:inherit;
    background:radial-gradient(circle,rgba(46,139,87,.45),transparent 70%);
    z-index:-1;
    animation:brandGlowPulse 3.6s ease-in-out infinite;
  }
  @keyframes brandGlowPulse{
    0%,100%{opacity:.35;transform:scale(.96)}
    50%{opacity:.75;transform:scale(1.08)}
  }
}

/* Cards: swap the flat neutral hover shadow for a warm brand-colored glow. */
.product-card:hover,.category-item:hover,.dash-card:hover,.shop-card:hover,.shop-item:hover{
  box-shadow:0 24px 55px rgba(15,159,143,.18),0 10px 26px rgba(249,115,22,.12);
}
.auth-card,.pricing-card,.contact-card,.contact-form-card,.terms-gate-modal{
  transition:box-shadow .25s ease,transform .25s ease;
}
.auth-card:hover,.pricing-card:hover{
  box-shadow:0 22px 52px rgba(15,159,143,.14),0 8px 22px rgba(124,58,237,.1);
}

/* Buttons: primary CTA gets a stronger glow on hover; ghost/secondary get a
   faint brand-colored ring instead of a plain lift. */
.primary:hover,.primary:focus-visible{
  box-shadow:0 20px 44px rgba(15,159,143,.4),0 8px 20px rgba(249,115,22,.24);
}
.secondary:hover,.ghost-btn:hover{
  border-color:rgba(15,159,143,.4);
  box-shadow:0 12px 26px rgba(15,159,143,.14);
}

/* Keyboard focus: a soft glow ring everywhere, on top of (not replacing)
   any element-specific focus style already set earlier in this file. */
a:focus-visible,button:focus-visible,.btn:focus-visible,.ghost-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(15,159,143,.32),0 0 20px rgba(15,159,143,.22);
}

/* Modals: a faint brand-colored halo around the card instead of a plain
   dark dropshadow, so they read as lit rather than just "on top". */
.option-modal,.terms-gate-modal{
  box-shadow:0 28px 80px rgba(0,0,0,.28),0 0 0 1px rgba(15,159,143,.12),0 0 60px rgba(15,159,143,.08);
}

/* Floating cart button: brand glow instead of a flat dark shadow. */
.floating-cart-action{
  box-shadow:0 18px 42px rgba(15,159,143,.35),0 8px 20px rgba(249,115,22,.2);
}
.floating-cart-action:hover{
  box-shadow:0 22px 50px rgba(15,159,143,.42),0 10px 24px rgba(249,115,22,.26);
}

/* Mobile: keep the ambience but drop the fixed attachment and the looping
   glow animation so scrolling and battery life stay smooth. */
@media(max-width:900px){
  body{background-attachment:scroll}
  .brand-mark.brand-logo:before{animation:none;opacity:.5}
}
