/* ============================================================
   SCITBOSS SHOES - Storefront styles
   ============================================================ */
.shop-topbar { background: var(--accent); color: #fff; font-size: .8rem; text-align: center; padding: .45rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; }
.site-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: .3px; }
.site-logo img { height: 38px; width: auto; }
.site-logo .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.site-logo span { color: var(--primary); }
.main-nav { display: flex; gap: 1.1rem; margin-left: .5rem; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .9rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.search-box { position: relative; }
.search-box input { padding-left: 2.1rem; min-width: 220px; }
.search-box .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: .66rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.mobile-toggle { display: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, var(--primary-dark) 130%); color: #fff; position: relative; overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 3.5rem 0; }
.hero h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 1rem; }
.hero p { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero .hero-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero .badge-pill { display: inline-block; background: rgba(255,255,255,.12); padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; margin-bottom: 1rem; letter-spacing: .04em; }
@media (max-width: 820px) { .hero .inner { grid-template-columns: 1fr; padding: 2.2rem 0; } .hero h1 { font-size: 2rem; } .hero .hero-img { order: -1; } }

/* Sections */
.section { padding: 2.6rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.4rem; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; margin: 0; }
.section-head .sub { color: var(--muted); font-size: .9rem; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--surface-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 2.5rem; }
.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.product-card .body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product-card .nm { font-weight: 700; font-size: .95rem; margin: .15rem 0 .4rem; line-height: 1.3; }
.product-card .nm a { color: var(--text); }
.product-card .rating { color: #f59e0b; font-size: .8rem; margin-bottom: .4rem; }
.price { font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.price .old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .82rem; margin-left: .4rem; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .7rem; }
.sizes-mini { display: flex; gap: .2rem; flex-wrap: wrap; }
.sizes-mini span { font-size: .66rem; border: 1px solid var(--line); border-radius: 5px; padding: 0 .28rem; color: var(--muted); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile .ov { position: relative; width: 100%; padding: 1rem; background: linear-gradient(transparent, rgba(15,23,42,.85)); color: #fff; font-weight: 700; }

/* Banner */
.promo-banner { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 200px; display: flex; align-items: center; background: linear-gradient(120deg, #0f172a, #334155); }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.promo-banner .content { position: relative; color: #fff; padding: 2rem; }
.promo-banner h3 { font-size: 1.6rem; }

/* Footer */
.site-footer { background: var(--accent); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
[data-theme="dark"] .site-footer { background: #0a0f1d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-grid a { color: #cbd5e1; display: block; padding: .22rem 0; font-size: .86rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand .site-logo { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: #94a3b8; }
.dev-credit { color: var(--primary); font-weight: 700; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Filters / catalog */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.filter-card { position: sticky; top: calc(var(--header-h) + 1rem); }
.filter-group { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.filter-group h4 { font-size: .85rem; margin-bottom: .5rem; }
.chk { display: flex; align-items: center; gap: .5rem; font-size: .86rem; padding: .2rem 0; font-weight: 500; }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } .filter-card { position: static; } }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.gallery-thumbs img:hover { border-color: var(--primary); }
.option-label { font-weight: 700; font-size: .84rem; margin: .9rem 0 .4rem; }
.opt-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.opt { border: 1px solid var(--line); border-radius: 9px; padding: .45rem .8rem; cursor: pointer; font-size: .86rem; background: var(--surface); font-weight: 600; }
.opt:hover { border-color: var(--primary); }
.opt.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.opt.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }

/* Cart / checkout */
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.summary-line { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .9rem; }
.summary-total { display: flex; justify-content: space-between; padding: .7rem 0; font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.checkout-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.6rem; align-items: start; }
@media (max-width: 820px) { .checkout-layout { grid-template-columns: 1fr; } }

/* Auth */
.auth-wrap { max-width: 420px; margin: 3rem auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .5rem .8rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--primary); border-color: var(--primary); }

.shop-mobile-nav { display: none; }
@media (max-width: 900px) {
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .2s; z-index: 55; gap: .2rem; }
    .main-nav.open { transform: none; }
    .search-box { display: none; }
    .mobile-toggle { display: inline-flex; }
}

/* Utilities */
.narrow { max-width: 820px; margin: 0 auto; }

/* Quantity stepper (storefront) */
.qty-ctrl { display: inline-flex; align-items: center; gap: .3rem; }
.qty-ctrl button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text); }
.qty-ctrl button:hover { border-color: var(--primary); color: var(--primary); }
.qty-ctrl span { min-width: 28px; text-align: center; font-weight: 700; }
.qty-ctrl.sm { gap: .2rem; }
.qty-ctrl.sm button { width: 26px; height: 26px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
.cart-layout .table img { border-radius: 8px; }
.summary-card { position: sticky; top: calc(var(--header-h) + 1rem); }
.sumrow { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .9rem; }
.sumrow.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; font-weight: 800; font-size: 1.15rem; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } }

/* Payment options */
.pay-opt { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.pay-opt:hover { border-color: var(--primary); }
.pay-opt input { margin: 0; }

/* Account */
.account-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
@media (max-width: 820px) { .account-layout { grid-template-columns: 1fr; } }

.dashboard-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 820px) { .dashboard-layout { grid-template-columns: 1fr; } }
.account-sidebar { padding: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.account-user { display: flex; align-items: center; gap: .7rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: .7rem; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex: 0 0 auto; }
.account-nav { display: flex; flex-direction: column; gap: .15rem; }
.account-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text); }
.account-nav a:hover { background: var(--surface-2); }
.account-nav a.active { background: var(--primary); color: #fff; }
.account-nav a .ico { display: inline-flex; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
@media (max-width: 720px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-card .v { font-size: 1.4rem; font-weight: 800; }
.stat-card .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.notif-item { display: flex; gap: .7rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: .45rem; flex: 0 0 auto; }
.notif-item.read .dot { background: var(--line); }
.address-card { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .8rem; position: relative; }
.address-card.default { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.wish-cell { display: flex; flex-direction: column; gap: .5rem; }
.wish-cell .product-card { flex: 1; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1.4rem; align-items: start; }
.contact-info .ci-row { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-row:last-child { border-bottom: 0; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; padding-left: 1.4rem; }
.tl-item { position: relative; padding: 0 0 1.1rem 1rem; border-left: 2px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; }
.tl-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }

/* Confirmation */
.success-check { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }

/* ============================================================
   Home page enhancements
   ============================================================ */
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; border-radius: 11px; }

.hero { position: relative; }
.hero .hero-copy, .hero .hero-visual { position: relative; z-index: 1; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.hero-glow.g1 { width: 320px; height: 320px; background: var(--primary); top: -90px; right: -30px; opacity: .5; }
.hero-glow.g2 { width: 260px; height: 260px; background: #0ea5e9; bottom: -110px; left: -60px; opacity: .35; }
.hero-card { position: relative; display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hero-card img { width: 100%; display: block; }
.hero-float { position: absolute; left: 1rem; bottom: 1rem; background: rgba(15,23,42,.85); color: #fff; padding: .55rem .95rem; border-radius: 12px; display: flex; flex-direction: column; line-height: 1.15; }
.hero-float strong { font-size: 1.2rem; }
.hero-stats { display: flex; gap: 1.8rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; color: #fff; }
.hero-stats span { font-size: .72rem; color: #cbd5e1; text-transform: uppercase; letter-spacing: .05em; }

.feature-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.1rem 0; }
.feature-item { display: flex; align-items: center; gap: .7rem; }
.fi-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr 1fr; } }

.countdown { display: flex; gap: .4rem; }
.cd-box { background: var(--accent); color: #fff; border-radius: 9px; padding: .35rem .55rem; text-align: center; min-width: 50px; display: flex; flex-direction: column; }
[data-theme="dark"] .cd-box { background: #1e293b; }
.cd-box b { font-size: 1.05rem; }
.cd-box i { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: #cbd5e1; font-style: normal; }

.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.deal-media { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.deal-media img { width: 100%; display: block; }
.deal-off { position: absolute; top: .8rem; left: .8rem; font-size: .82rem; }
.deal-info h3 { font-size: 1.6rem; margin: .25rem 0 .5rem; }
.deal-price { display: flex; align-items: baseline; gap: .7rem; margin: .9rem 0 1.2rem; }
.deal-price .price { font-size: 1.9rem; }
.deal-price .old { font-size: 1rem; }
@media (max-width: 760px) { .deal-grid { grid-template-columns: 1fr; } }

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.promo-tile { position: relative; border-radius: 16px; padding: 2rem; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 190px; }
.promo-tile > svg { width: 120px; height: 120px; opacity: .22; flex: 0 0 auto; }
.promo-dark { background: linear-gradient(120deg, #0f172a, #334155); }
.promo-accent { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); }
.promo-tile h3 { font-size: 1.5rem; margin: .55rem 0 .35rem; color: #fff; }
.promo-tile p { font-size: .9rem; opacity: .92; margin-bottom: .9rem; color: #e2e8f0; }
.pt-copy { position: relative; z-index: 1; }
.promo-tile .badge-pill { background: rgba(255,255,255,.2); color: #fff; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; display: inline-block; }
@media (max-width: 760px) { .promo-grid { grid-template-columns: 1fr; } }

.brand-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.brand-strip { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.brand-chip { font-weight: 800; font-size: 1.05rem; color: var(--muted); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 10px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow); }
.testimonial .stars { color: #f59e0b; margin-bottom: .5rem; }
.testimonial p { font-size: .93rem; line-height: 1.65; }
.testimonial .who { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.testimonial .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial .who small { display: block; color: var(--muted); }
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }

.newsletter-band { background: linear-gradient(120deg, #0f172a, #334155); color: #fff; padding: 2.6rem 0; margin-top: 2rem; }
.nb-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.nb-inner h3 { color: #fff; display: flex; align-items: center; gap: .5rem; }
.nb-inner .muted { color: #cbd5e1; }
.nb-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.nb-form input { min-width: 260px; }
