*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Vazirmatn,Tahoma,sans-serif;background:#070b10;color:#edf2f7;direction:rtl;line-height:1.9}.site-bg{position:fixed;inset:0;z-index:-2;background:radial-gradient(circle at 80% 5%,rgba(26,177,116,.13),transparent 28%),radial-gradient(circle at 10% 45%,rgba(64,120,255,.08),transparent 25%),#070b10}.site-bg:after{content:"";position:absolute;inset:0;opacity:.035;background-image:linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px);background-size:48px 48px}.container{width:min(1180px,calc(100% - 36px));margin:auto}.topbar{position:sticky;top:0;z-index:20;background:rgba(7,11,16,.82);backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.07)}.nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:17px}.brand b{display:block;line-height:1;font-size:19px}.brand small{display:block;font-size:8px;letter-spacing:4px;color:#8e9aa8;margin-top:4px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;font-size:13px;background:linear-gradient(135deg,#c9ff36,#56d89b);color:#06100b;box-shadow:0 8px 28px rgba(142,255,54,.18)}.main-nav{display:flex;gap:28px}.main-nav a,.icon-link,.user-chip{color:#aab5c1;text-decoration:none;font-size:14px;transition:.25s}.main-nav a:hover,.icon-link:hover{color:#d8ff63}.nav-actions{display:flex;align-items:center;gap:10px}.user-chip{padding:8px 12px;background:#101821;border:1px solid #1d2935;border-radius:12px}.cart-btn{color:#08100a;text-decoration:none;background:#d5ff45;padding:10px 15px;border-radius:12px;font-weight:800;font-size:13px}.cart-btn span{display:inline-grid;place-items:center;min-width:21px;height:21px;background:#0b1118;color:#d5ff45;border-radius:99px;margin-right:5px}.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:23px}.hero{min-height:650px;display:flex;align-items:center;overflow:hidden}.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#b8d95a;font-weight:800}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.2;margin:18px 0;font-weight:900;letter-spacing:-2px}.hero h1 em{font-style:normal;color:#d6ff46}.hero p{color:#99a5b2;max-width:590px;font-size:16px}.hero-actions{display:flex;gap:12px;margin:30px 0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:48px;padding:11px 20px;border-radius:13px;text-decoration:none;border:1px solid transparent;font:inherit;font-weight:800;cursor:pointer;transition:.25s}.btn.primary{background:#d5ff45;color:#07100b;box-shadow:0 12px 30px rgba(186,255,44,.12)}.btn.primary:hover{transform:translateY(-2px);box-shadow:0 16px 35px rgba(186,255,44,.22)}.btn.ghost{border-color:#283441;color:#dce3ea;background:#0d141c}.btn.light{background:#fff;color:#07100b}.btn.full{width:100%}.hero-stats{display:flex;gap:32px;margin-top:36px}.hero-stats div{display:flex;flex-direction:column}.hero-stats b{font-size:19px}.hero-stats small{color:#73808d;font-size:11px}.hero-art{height:500px;position:relative;display:grid;place-items:center}.orb{width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,#e2ff68 0,#9ce72d 25%,#17351f 67%,transparent 68%);filter:blur(.2px);opacity:.95;box-shadow:0 0 100px rgba(165,255,47,.14)}.shoe-visual{position:absolute;width:240px;height:160px;border-radius:55% 25% 40% 20%;transform:rotate(-20deg);background:linear-gradient(145deg,#e9f3ec,#8c9b93);color:#111;display:grid;place-items:center;font-weight:900;font-size:58px;box-shadow:30px 35px 50px #020405, inset -20px -18px 40px rgba(0,0,0,.22);border-bottom:16px solid #1c2724}.hero-card{position:absolute;background:rgba(15,23,30,.85);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(14px);padding:14px 17px;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.35);font-weight:900}.hero-card span{display:block;font-size:9px;color:#8b98a5;letter-spacing:1.8px}.card-one{top:90px;right:8%}.card-two{bottom:95px;left:6%}.section{padding:80px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.section-head h2{font-size:30px;margin:5px 0}.section-head>a{color:#bfe54d;text-decoration:none;font-size:13px}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.category-card{padding:25px 18px;background:linear-gradient(145deg,#101820,#0b1117);border:1px solid #1c2732;border-radius:18px;text-decoration:none;color:#fff;transition:.3s}.category-card:hover{transform:translateY(-6px);border-color:#9bcd3a;background:#121c24}.cat-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#17211b;color:#d4ff4a;font-size:24px;margin-bottom:14px}.category-card h3{margin:0 0 3px;font-size:15px}.category-card small{color:#6f7c89}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:#0d141b;border:1px solid #1b2630;border-radius:20px;overflow:hidden;animation:rise .55s both}.product-card:hover{border-color:#33434f;transform:translateY(-3px);transition:.25s}.product-image{height:245px;display:block;position:relative;background:#121a21;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover;transition:.5s}.product-card:hover .product-image img{transform:scale(1.05)}.badge{position:absolute;top:12px;right:12px;background:#d5ff45;color:#07100b;padding:4px 9px;border-radius:99px;font-size:10px;font-weight:900}.badge.warning{background:#ffbf4b}.product-body{padding:15px}.product-body>small{color:#667482;font-size:10px}.product-body h3{font-size:14px;margin:7px 0 15px;min-height:44px}.product-body h3 a{color:#eaf0f5;text-decoration:none}.product-bottom{display:flex;justify-content:space-between;align-items:center}.product-bottom strong{font-size:16px}.product-bottom strong small{font-size:9px;color:#76828f}.add-btn{width:38px;height:38px;border:0;border-radius:11px;background:#18231a;color:#d7ff4b;font-size:23px;cursor:pointer}.shipping-banner{margin:0 0 80px}.shipping-banner .container{background:linear-gradient(110deg,#bdf33b,#e4ff79);color:#07100b;border-radius:28px;padding:38px 46px;display:flex;justify-content:space-between;align-items:center}.shipping-banner h2{margin:4px 0;font-size:28px}.shipping-banner p{margin:0;color:#394719}.page-hero{padding:70px 0 50px;border-bottom:1px solid #121c25;background:radial-gradient(circle at 50% 0,rgba(164,240,58,.08),transparent 45%)}.page-hero h1{font-size:42px;margin:7px 0}.page-hero p{color:#8b98a5}.page-hero.compact{padding:48px 0 35px}.shop-layout{display:grid;grid-template-columns:220px 1fr;gap:28px}.filters{position:sticky;top:95px;height:max-content;background:#0c131a;border:1px solid #1b2731;border-radius:18px;padding:18px}.filters input:not([type=radio]),.filters label{width:100%}.filters>form>input{padding:12px;background:#121b23;border:1px solid #26333e;color:#fff;border-radius:10px}.filters h4{margin:25px 0 10px}.filters label{display:block;color:#9aa6b1;padding:7px 0;font-size:13px}.filters label input{accent-color:#c9f84a}.reset{display:block;text-align:center;color:#74818d;text-decoration:none;font-size:11px;margin-top:13px}.shop-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;color:#82909d;font-size:13px}.shop-toolbar select{background:#0d151c;color:#dbe3ea;border:1px solid #24303a;padding:9px 12px;border-radius:10px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.detail-image{height:570px;border-radius:28px;overflow:hidden;background:#101820;border:1px solid #1d2933}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-copy h1{font-size:44px;line-height:1.4;margin:12px 0}.code{color:#667581;font-size:12px}.detail-price{font-size:31px;font-weight:900;color:#d7ff48;margin:28px 0}.detail-price small{font-size:12px;color:#8b97a3}.detail-copy>p{color:#9ba7b3}.stock{color:#aede42;margin:18px 0}.buy-form{display:flex;gap:10px}.qty{display:flex;border:1px solid #293642;border-radius:13px;overflow:hidden}.qty button{width:40px;background:#101820;color:#fff;border:0;font-size:22px}.qty input{width:48px;background:#101820;border:0;color:#fff;text-align:center;font:inherit}.trust-row{display:flex;gap:20px;margin-top:28px;color:#7d8a96;font-size:11px}.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:25px}.cart-items{display:flex;flex-direction:column;gap:10px}.cart-item{display:grid;grid-template-columns:80px 1fr 75px 130px 35px;gap:15px;align-items:center;background:#0d141b;border:1px solid #1b2731;padding:12px;border-radius:17px}.cart-item img{width:80px;height:80px;border-radius:12px;object-fit:cover}.cart-info h3{font-size:14px;margin:0}.cart-info small,.cart-info strong{display:block}.cart-info small{color:#64717d;font-size:10px}.cart-info strong{margin-top:7px}.cart-qty{width:65px;background:#101820;border:1px solid #273440;color:#fff;border-radius:9px;padding:8px}.line-total{font-weight:800}.remove{border:0;background:none;color:#ff6d78;font-size:25px;cursor:pointer}.remove-id{display:none}.summary,.panel{background:#0d141b;border:1px solid #1b2731;border-radius:18px;padding:22px}.summary{height:max-content;position:sticky;top:95px}.summary h3{margin-top:0}.summary>div{display:flex;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px}.summary hr{border:0;border-top:1px solid #25313b}.summary .total{font-size:16px}.summary-note{color:#687580;font-size:10px}.empty-state{text-align:center;padding:70px 20px;color:#87939f;background:#0d141b;border:1px dashed #26333e;border-radius:20px}.empty-state.wide{grid-column:1/-1}.empty-icon{font-size:42px}.auth-section{min-height:calc(100vh - 170px);display:grid;place-items:center;padding:55px 15px}.auth-card{width:min(460px,100%);background:rgba(13,20,27,.92);border:1px solid #202d38;border-radius:25px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.35);animation:rise .5s both}.auth-card.wide{width:min(700px,100%)}.auth-logo{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#d5ff45;color:#08100b;font-weight:900;font-size:18px;margin-bottom:20px}.auth-card h1{font-size:29px;margin:7px 0}.auth-card>p{color:#7e8b97;font-size:13px}.auth-card form{margin-top:25px}.auth-card label,.form-grid label{display:block;color:#9ca8b4;font-size:12px;margin-bottom:14px}.auth-card input,.form-grid input,.form-grid textarea{display:block;width:100%;margin-top:7px;background:#101820;border:1px solid #273540;border-radius:11px;padding:12px;color:#fff;font:inherit;outline:none}.auth-card input:focus,.form-grid input:focus,.form-grid textarea:focus{border-color:#b6df4a;box-shadow:0 0 0 3px rgba(182,223,74,.08)}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:18px;font-size:11px}.auth-links a{color:#a8d83f;text-decoration:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-grid .form-span{grid-column:1/-1}.account-grid{display:grid;grid-template-columns:240px 1fr;gap:24px}.account-menu{background:#0d141b;border:1px solid #1b2731;border-radius:18px;padding:22px;height:max-content}.avatar{width:56px;height:56px;border-radius:18px;background:#d5ff45;color:#08100b;display:grid;place-items:center;font-size:22px;font-weight:900}.account-menu h3{margin:10px 0 0}.account-menu>small{color:#697782;display:block;font-size:10px;direction:ltr;text-align:right;overflow:hidden}.account-menu a{display:block;color:#8895a1;text-decoration:none;padding:10px;border-radius:9px;margin-top:6px;font-size:12px}.account-menu a.active,.account-menu a:hover{background:#141f27;color:#d6ff4b}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.stat-cards div{padding:18px;background:#0d141b;border:1px solid #1b2731;border-radius:15px}.stat-cards span,.stat-cards b{display:block}.stat-cards span{color:#6f7c87;font-size:11px}.stat-cards b{font-size:25px}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:18px}.panel-head a{color:#bce542;text-decoration:none;font-size:11px}.order-row{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#dce4eb;text-decoration:none;border-top:1px solid #1c2731;padding:15px 0}.order-row small,.order-row strong{display:block}.order-row small{font-size:10px;color:#66737f}.order-row strong{font-size:12px;margin-top:3px}.status{display:inline-block;padding:3px 8px;border-radius:99px;font-size:9px;background:#202b34;color:#a8b4bf}.status.paid{background:#172b1c;color:#bdf151}.status.pending{background:#332a15;color:#ffca59}.checkout-grid{display:grid;grid-template-columns:1fr 350px;gap:25px}.checkout-form h2{font-size:20px}.order-success{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid #27333d;background:#0d141b;border-radius:18px;margin-bottom:20px}.success-icon{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#d5ff45;color:#08100b;font-weight:900;font-size:24px}.order-success.pending .success-icon{background:#ffbd4a}.order-success h2{margin:0;font-size:18px}.order-success p{margin:4px 0;color:#7e8b97;font-size:11px}.order-layout{display:grid;grid-template-columns:1fr 330px;gap:20px}.order-item{display:flex;justify-content:space-between;border-top:1px solid #1c2731;padding:14px 0}.order-item small{display:block;color:#697682;font-size:10px}.invoice-totals{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:15px;padding-top:15px;border-top:1px solid #27323b;font-size:12px}.info-list>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #1d2831;padding:12px 0;font-size:11px}.info-list span{color:#6d7a86}.tracking{color:#d5ff45}.alert{padding:12px 14px;border-radius:11px;margin:15px 0;font-size:12px}.alert.error{background:#321b20;color:#ffabb3;border:1px solid #582b32}.alert.success{background:#162c1d;color:#c9f775;border:1px solid #294b2d}.alert ul{margin:0;padding-right:18px}.footer{border-top:1px solid #141f28;padding:50px 0 20px;background:#060a0e}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer p,.footer span,.footer a{display:block;color:#687580;font-size:11px;text-decoration:none;margin:8px 0}.footer h4{font-size:12px}.copyright{text-align:center;border-top:1px solid #111a22;margin-top:35px;padding-top:18px;color:#46515c;font-size:10px}@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@media(max-width:900px){.main-nav{display:none}.main-nav.open{display:flex;position:absolute;top:76px;right:18px;left:18px;padding:18px;background:#0b1219;border:1px solid #1e2a34;border-radius:16px;flex-direction:column;gap:5px}.menu-toggle{display:block}.hero-inner,.detail-grid{grid-template-columns:1fr}.hero{padding:50px 0}.hero-art{height:360px;order:-1}.hero-copy{text-align:center}.hero-copy p{margin-inline:auto}.hero-actions,.hero-stats{justify-content:center}.category-grid{grid-template-columns:repeat(3,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.shop-layout{grid-template-columns:1fr}.filters{position:static}.cart-layout,.checkout-grid,.order-layout,.account-grid{grid-template-columns:1fr}.summary{position:static}.account-menu{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;align-items:center}.account-menu .avatar{grid-row:span 2}.account-menu a{margin:0}.stat-cards{grid-template-columns:1fr 1fr}.detail-image{height:430px}.detail-copy h1{font-size:34px}}@media(max-width:600px){.container{width:min(100% - 24px,1180px)}.nav{height:66px}.brand-mark{width:36px;height:36px}.brand b{font-size:16px}.icon-link,.user-chip{display:none}.hero h1{font-size:41px}.hero-art{height:300px}.orb{width:240px;height:240px}.shoe-visual{width:180px;height:120px;font-size:40px}.card-one{top:35px}.card-two{bottom:30px}.section{padding:55px 0}.category-grid{grid-template-columns:repeat(2,1fr)}.product-grid{gap:10px}.product-image{height:180px}.product-body{padding:11px}.product-body h3{font-size:12px}.product-bottom strong{font-size:13px}.shipping-banner .container{padding:28px 20px;display:block}.shipping-banner .btn{margin-top:20px;width:100%}.cart-item{grid-template-columns:60px 1fr 35px}.cart-item img{width:60px;height:60px}.cart-qty{grid-column:2}.line-total{grid-column:2}.remove{grid-column:3;grid-row:1}.form-grid{grid-template-columns:1fr}.form-grid .form-span{grid-column:auto}.auth-card{padding:25px}.hero-stats{gap:14px}.hero-stats b{font-size:14px}.hero-stats small{font-size:9px}.section-head h2{font-size:24px}.footer-grid{grid-template-columns:1fr}.detail-image{height:330px}.buy-form{flex-direction:column}.qty{justify-content:center}.order-row{align-items:flex-start}.order-row>div:nth-child(2){text-align:left}}
/* ========================================================================== */
/* Stories module — additive styles only                                      */
/* ========================================================================== */
.stories-bar{padding:16px 0 8px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(7,11,16,.5)}
.stories-inner{display:flex;align-items:center;gap:18px}.stories-heading{display:flex;align-items:center;gap:9px;min-width:190px}.stories-heading strong,.stories-heading small{display:block}.stories-heading strong{font-size:12px}.stories-heading small{font-size:9px;color:#65727e}.stories-live-dot{width:9px;height:9px;border-radius:50%;background:#d5ff45;box-shadow:0 0 0 5px rgba(213,255,69,.08),0 0 18px rgba(213,255,69,.5);animation:storyPulse 1.8s infinite}.stories-list{display:flex;gap:13px;overflow:auto;scrollbar-width:none;flex:1;padding:2px 2px 7px}.stories-list::-webkit-scrollbar{display:none}.story-bubble{border:0;background:none;color:#c9d2da;font:inherit;cursor:pointer;min-width:68px;display:flex;flex-direction:column;align-items:center;gap:4px}.story-bubble>span:last-child{font-size:9px;max-width:68px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.story-ring{width:58px;height:58px;padding:2px;border-radius:50%;background:linear-gradient(135deg,#d5ff45,#55d59b,#8a67ff);box-shadow:0 7px 20px rgba(0,0,0,.3);transition:.25s}.story-ring img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid #0a1016}.story-bubble:hover .story-ring{transform:translateY(-3px) scale(1.05)}.stories-all{font-size:10px;color:#bfe84a;text-decoration:none;white-space:nowrap}.story-lock{overflow:hidden}.story-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:18px}.story-modal.is-open{display:flex}.story-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(12px)}.story-viewer{position:relative;width:min(430px,100%);height:min(780px,calc(100vh - 28px));border-radius:24px;overflow:hidden;background:#03070a;border:1px solid rgba(255,255,255,.13);box-shadow:0 35px 100px rgba(0,0,0,.6);display:flex;flex-direction:column}.story-media{position:absolute;inset:0;display:grid;place-items:center;background:#05080b}.story-media img,.story-media video{width:100%;height:100%;object-fit:cover}.story-media video{outline:none}.story-viewer:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 25%,transparent 68%,rgba(0,0,0,.7))}.story-progress{position:absolute;z-index:4;top:12px;left:14px;right:14px;height:3px;border-radius:99px;background:rgba(255,255,255,.24);overflow:hidden;direction:ltr}.story-progress span{display:block;width:100%;height:100%;transform:scaleX(0);transform-origin:left;background:#fff;border-radius:inherit}.story-close{position:absolute;z-index:6;top:25px;right:16px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:27px;line-height:1;cursor:pointer}.story-nav{position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:42px;height:64px;border:0;background:rgba(0,0,0,.18);color:#fff;font-size:48px;cursor:pointer}.story-prev{right:0}.story-next{left:0}.story-caption{position:absolute;z-index:5;bottom:20px;left:18px;right:18px;display:flex;align-items:end;justify-content:space-between;gap:12px}.story-caption strong,.story-caption small{display:block;color:#fff}.story-caption strong{font-size:15px}.story-caption small{font-size:9px;color:#c4cbd1;margin-top:3px}.story-link{min-height:40px;padding:7px 13px}.stories-page-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.story-page-card{padding:0;border:1px solid #1b2731;background:#0d141b;border-radius:18px;overflow:hidden;text-align:right;color:#fff;cursor:pointer;font:inherit;transition:.25s}.story-page-card:hover{transform:translateY(-4px);border-color:#34434e}.story-page-card img{display:block;width:100%;aspect-ratio:9/14;object-fit:cover}.story-page-card span{display:block;padding:12px}.story-page-card b,.story-page-card small{display:block}.story-page-card b{font-size:12px}.story-page-card small{font-size:9px;color:#6f7c87;margin-top:3px}@keyframes storyPulse{50%{opacity:.45;transform:scale(.85)}}
@media(max-width:900px){.stories-heading{min-width:150px}.stories-page-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.stories-inner{gap:10px}.stories-heading{min-width:auto}.stories-heading div{display:none}.stories-live-dot{margin-right:2px}.stories-all{display:none}.stories-page-grid{grid-template-columns:repeat(2,1fr)}.story-viewer{height:calc(100vh - 10px);width:100%;border-radius:18px}}

/* ========================================================================== */
/* MERSAD SPORT — PREMIUM LIGHT THEME OVERRIDE                              */
/* Visual-only layer. Existing PHP/HTML/DB behaviour remains untouched.      */
/* ========================================================================== */
:root{
  --m-bg:#f4f7f1;--m-white:#fff;--m-ink:#18231c;--m-muted:#6f7c73;
  --m-line:#e1e8de;--m-soft:#eef7e5;--m-accent:#96d94a;--m-accent2:#70b92f;
  --m-shadow:0 16px 45px rgba(39,62,44,.08);--m-shadow-sm:0 7px 22px rgba(39,62,44,.06);
  --m-ease:cubic-bezier(.22,.8,.2,1);
}
html{background:var(--m-bg)}
body{background:var(--m-bg);color:var(--m-ink)}
.site-bg{
  background:
    radial-gradient(circle at 88% 3%,rgba(161,221,84,.20),transparent 25%),
    radial-gradient(circle at 4% 35%,rgba(100,178,121,.09),transparent 22%),
    linear-gradient(180deg,#fbfcfa 0%,#f4f7f1 60%,#f1f5ee 100%)!important;
}
.site-bg:after{opacity:.18;background-size:58px 58px}
.topbar{background:rgba(255,255,255,.86);border-bottom:1px solid rgba(218,228,216,.9);box-shadow:0 5px 25px rgba(39,61,43,.035)}
.brand{color:var(--m-ink)}
.brand small{color:#87938b}
.brand-mark{background:linear-gradient(145deg,#c7f276,#83cc3b);color:#233514;box-shadow:0 10px 26px rgba(111,181,40,.18)}
.main-nav a,.icon-link,.user-chip{color:#637168}
.main-nav a:hover,.icon-link:hover{color:#64a72b}
.user-chip{background:#f3f7f0;border-color:#dfe8dc}
.cart-btn{background:linear-gradient(135deg,#b8ed65,#89cf3e);color:#20310f;box-shadow:0 9px 24px rgba(103,173,38,.17)}
.cart-btn span{background:#fff;color:#589622}
.menu-toggle{background:#f0f5ec;border-color:#dbe5d8;color:#2b392f}

.hero{position:relative}
.hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;left:-220px;top:-130px;background:radial-gradient(circle,rgba(164,222,86,.18),transparent 68%);filter:blur(5px);animation:mAmbient 9s ease-in-out infinite}
.hero h1{color:#18231c}
.hero h1 em{color:#67aa2b}
.hero h1 em:after{background:#d9efb5}
.hero p{color:#68756d}
.eyebrow{color:#68a52c}
.btn.primary{background:linear-gradient(135deg,#b9ee63,#8bd13f);color:#213410;box-shadow:0 12px 28px rgba(102,171,39,.18)}
.btn.primary:hover{box-shadow:0 18px 38px rgba(102,171,39,.25)}
.btn.ghost{background:rgba(255,255,255,.82);border-color:#d9e3d6;color:#46544b}
.btn.ghost:hover{background:#fff;border-color:#bdd5af}
.hero-stats b{color:#29372f}.hero-stats small{color:#89958d}
.orb{background:radial-gradient(circle at 40% 35%,#e1f7b0 0,#b6e96c 25%,#8dce48 48%,rgba(130,204,66,.15) 67%,transparent 68%);box-shadow:0 35px 95px rgba(102,172,40,.18);animation:mOrb 6s ease-in-out infinite}
.shoe-visual{background:linear-gradient(145deg,#fff,#dce5df);color:#243229;box-shadow:25px 35px 50px rgba(36,56,42,.18),inset -20px -18px 40px rgba(40,61,46,.07);border-bottom-color:#bdc9c0;animation:mShoe 5s ease-in-out infinite}
.hero-card{background:rgba(255,255,255,.88);border-color:rgba(216,226,213,.95);box-shadow:0 20px 50px rgba(38,57,43,.10);color:#27362d}
.hero-card span{color:#87938b}.card-one{animation:mCard 5s .2s ease-in-out infinite}.card-two{animation:mCard 5s 1s ease-in-out infinite}

.section-head h2,.page-hero h1{color:#1d2a22}.section-head>a{color:#659f2b}
.category-card,.product-card,.summary,.panel,.cart-item,.account-menu,.stat-cards div,.order-success,.story-page-card,.auth-card{
  background:rgba(255,255,255,.94)!important;border-color:var(--m-line)!important;box-shadow:var(--m-shadow-sm)
}
.category-card:hover,.product-card:hover,.story-page-card:hover{border-color:#c6dbb9!important;box-shadow:0 22px 48px rgba(43,68,48,.11)}
.cat-icon{background:#edf7e4;color:#65a22b}.category-card h3,.product-body h3 a{color:#27352c}
.category-card small,.product-body>small{color:#87938c}
.product-image{background:linear-gradient(145deg,#eef3eb,#e4ece1)}
.product-image:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 28%,rgba(255,255,255,.48) 50%,transparent 70%);transform:translateX(-120%);transition:transform .7s var(--m-ease)}
.product-card:hover .product-image:after{transform:translateX(120%)}
.product-image img{transition:transform .65s var(--m-ease),filter .65s var(--m-ease)}
.product-card:hover .product-image img{transform:scale(1.055);filter:saturate(1.04)}
.badge{background:#e8f7d9;color:#528d21;border:1px solid #d2e7bd}.badge.warning{background:#fff0d2;color:#a36a13;border-color:#f0dcae}
.product-body h3 a:hover{color:#67a62b}.product-bottom strong{color:#2a382f}.product-bottom strong small{color:#8a958e}
.add-btn{background:#edf7e4;border:1px solid #d6e8c9;color:#5e9b26}.add-btn:hover{background:#e1f2d0;box-shadow:0 8px 18px rgba(96,158,41,.14)}

.shipping-banner .container{background:linear-gradient(120deg,#b8e967,#dff4b9);color:#243514;box-shadow:0 24px 55px rgba(90,137,43,.12)}
.shipping-banner p{color:#536738}.shipping-banner .btn.light{background:#fff;color:#2d421b}
.page-hero{background:linear-gradient(180deg,rgba(255,255,255,.56),rgba(245,248,242,.25));border-bottom-color:#e1e8de}
.page-hero p{color:#7d8982}
.filters{background:rgba(255,255,255,.90);border-color:var(--m-line);box-shadow:var(--m-shadow-sm)}
.filters>form>input,.shop-toolbar select,.cart-qty{background:#f8faf7;border-color:#dbe5d8;color:#35443a}
.filters label{color:#68766e}.reset{color:#8b968f}
.shop-toolbar{color:#7d8982}
.detail-image{background:#e9efe7;border-color:#dce5da;box-shadow:var(--m-shadow)}
.detail-copy h1{color:#1d2a22}.detail-price{color:#63a32a}.detail-copy>p{color:#6e7b73}.code,.trust-row{color:#89948d}.stock{color:#67a72c}
.qty{border-color:#d7e1d5;background:#fff}.qty button{background:#f1f6ee;color:#445247}.qty input{background:#fff;color:#29372f}
.cart-item:hover{box-shadow:var(--m-shadow)}.cart-info small{color:#89948d}.line-total{color:#2d3b32}
.summary>div{color:#4b584f}.summary hr{border-top-color:#e2e9df}.summary-note{color:#8a958e}
.empty-state{color:#7f8b84;background:rgba(255,255,255,.75);border-color:#d5dfd2}
.auth-card h1{color:#1d2a22}.auth-card>p,.auth-card label,.form-grid label{color:#69766e}
.auth-card input,.form-grid input,.form-grid textarea{background:#f9fbf8;border-color:#d9e3d7;color:#27362d}
.auth-card input:focus,.form-grid input:focus,.form-grid textarea:focus{border-color:#a6d277;box-shadow:0 0 0 4px rgba(139,199,73,.11);background:#fff}
.auth-logo{background:linear-gradient(145deg,#c7f276,#8fd345);color:#243513;box-shadow:0 12px 25px rgba(106,172,44,.18)}
.auth-links a{color:#639e2a}
.account-menu h3,.stat-cards b{color:#29372f}.account-menu>small{color:#8b958e}.account-menu a{color:#7a867f}.account-menu a.active,.account-menu a:hover{background:#edf7e5;color:#5e9928}
.stat-cards span{color:#7d8982}.order-row{color:#344239;border-top-color:#e5ebe3}.order-row small{color:#8a958e}.order-row:hover{background:#f8faf7}.status{background:#edf1ed;color:#748078}.status.paid{background:#e6f6d8;color:#559321}.status.pending{background:#fff0d4;color:#a16d1a}
.order-success{border-color:var(--m-line);background:rgba(255,255,255,.94)}.success-icon{background:#e7f7d8;color:#57951f}.order-success.pending .success-icon{background:#fff0d4;color:#a16d1a}
.order-success p,.info-list span,.order-item small{color:#808c84}.order-item,.info-list>div{border-color:#e5ebe3}.tracking{color:#5f9d27}
.alert.error{background:#fff0f0;color:#b44747;border-color:#f0d2d2}.alert.success{background:#edf8e4;color:#568e27;border-color:#d3e8c1}
.footer{background:rgba(255,255,255,.66);border-top-color:#dfe7dc}.footer p,.footer span,.footer a{color:#7d8982}.footer h4{color:#344239}.copyright{border-top-color:#e4eae1;color:#9aa39d}

/* Stories */
.stories-bar{background:rgba(255,255,255,.78);border-bottom-color:#e0e8dc;box-shadow:0 4px 18px rgba(42,64,45,.025)}
.stories-heading strong{color:#27352c}.stories-heading small{color:#89948e}.stories-live-dot{background:#77bf32;box-shadow:0 0 0 5px rgba(119,191,50,.10),0 0 18px rgba(119,191,50,.35)}
.story-bubble{color:#59665d}.story-ring{background:conic-gradient(from 20deg,#8fd43c,#d0f07e,#65bc9c,#8a75dc,#8fd43c);box-shadow:0 7px 20px rgba(41,64,44,.10)}
.story-ring img{border-color:#fff}.story-bubble:hover .story-ring{box-shadow:0 12px 25px rgba(75,126,48,.17)}.stories-all{color:#659e2b}
.story-backdrop{background:rgba(20,27,22,.72);backdrop-filter:blur(14px)}
.story-viewer{box-shadow:0 35px 100px rgba(16,28,19,.42);animation:mViewer .42s var(--m-ease) both}
.story-close{transition:transform .2s,background .2s}.story-close:hover{transform:rotate(90deg);background:rgba(0,0,0,.55)}
.story-page-card{background:#fff!important}.story-page-card b{color:#29372f}.story-page-card small{color:#87928b}

/* Make the admin form match the new visual language too. */
select,.story-admin select,.panel select{background:#f8faf6!important;color:#26342b!important;border-color:#d9e3d7!important}

/* Staggered entrance without changing application behaviour. */
.product-card:nth-child(2){animation-delay:.05s}.product-card:nth-child(3){animation-delay:.10s}.product-card:nth-child(4){animation-delay:.15s}.product-card:nth-child(5){animation-delay:.20s}.product-card:nth-child(6){animation-delay:.25s}.product-card:nth-child(7){animation-delay:.30s}.product-card:nth-child(8){animation-delay:.35s}
.category-card:nth-child(2){animation-delay:.04s}.category-card:nth-child(3){animation-delay:.08s}.category-card:nth-child(4){animation-delay:.12s}.category-card:nth-child(5){animation-delay:.16s}.category-card:nth-child(6){animation-delay:.20s}

@keyframes mAmbient{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(28px,18px,0)}}
@keyframes mOrb{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-13px) scale(1.018)}}
@keyframes mShoe{0%,100%{transform:translateY(0) rotate(-20deg)}50%{transform:translateY(-14px) rotate(-17deg)}}
@keyframes mCard{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(-1deg)}}
@keyframes mViewer{from{opacity:0;transform:scale(.94) translateY(12px)}to{opacity:1;transform:none}}

@media(max-width:900px){
  .main-nav.open{background:rgba(255,255,255,.97);border-color:#dfe7dc;box-shadow:var(--m-shadow)}
  .menu-toggle{background:#f0f5ec;border-color:#dbe5d8;color:#2b392f}
  .stories-bar{background:rgba(255,255,255,.88)}
}
@media(max-width:600px){
  .hero h1{letter-spacing:-1px}.product-card{border-radius:17px}.auth-card{box-shadow:0 20px 55px rgba(39,62,44,.11)}
  .stories-bar{padding-top:10px}.story-viewer{box-shadow:0 20px 70px rgba(16,28,19,.40)}
}
@media(prefers-reduced-motion:reduce){
  .hero:before,.orb,.shoe-visual,.hero-card,.product-card,.category-card{animation:none!important}
}


/* ==========================================================================
   Account profile editor
   ========================================================================== */
.profile-panel {
    margin-bottom: 20px;
}

.profile-panel-head {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-panel-head h2 {
    margin: 0 0 5px;
}

.profile-panel-head p {
    margin: 0;
    color: #697782;
    font-size: 11px;
}

.profile-lock {
    flex: 0 0 auto;
    color: #8e9aa5;
    background: #111a21;
    border: 1px solid #26343f;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 10px;
}

.profile-form {
    margin-top: 8px;
}

.profile-form .field-hint {
    display: block;
    margin-top: 6px;
    color: #667580;
    font-size: 9px;
}

.profile-form input[readonly] {
    color: #7d8993;
    cursor: not-allowed;
    opacity: .85;
}

.profile-save {
    min-width: 170px;
    margin-top: 4px;
}

.alert.success {
    background: #122619;
    border: 1px solid #285536;
    color: #bff36e;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 16px;
    font-size: 12px;
}

.alert.error {
    margin-bottom: 16px;
}

.alert.error ul {
    margin: 0;
    padding-right: 18px;
}

@media (max-width: 760px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-menu {
        padding: 18px;
    }

    .profile-panel-head {
        flex-direction: column;
    }

    .profile-lock {
        width: max-content;
    }

    .profile-save {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .profile-form {
        grid-template-columns: 1fr;
    }

    .profile-form .form-span {
        grid-column: 1;
    }
}


/* --------------------------------------------------------------------------
   Product color variants
   -------------------------------------------------------------------------- */
.product-colors{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0 2px}
.product-colors>span{font-size:11px;color:#777}
.color-dot{display:inline-block;width:19px;height:19px;border-radius:50%;background:var(--swatch,#ddd);border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.16);text-decoration:none}
.variant-picker{margin:20px 0}
.variant-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-weight:700}
.variant-title strong{font-weight:600;color:#666}
.variant-list{display:flex;gap:9px;flex-wrap:wrap}
.variant-option{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #ddd;border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit;transition:.2s}
.variant-option:hover{transform:translateY(-1px);border-color:#999}
.variant-option.selected{border-color:#111;box-shadow:0 0 0 2px rgba(0,0,0,.08)}
.variant-option.disabled{opacity:.48;cursor:not-allowed}
.variant-option small{font-size:10px;color:#999}
.variant-swatch{width:20px;height:20px;border-radius:50%;background:var(--swatch,#ddd);border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.cart-color{display:flex;align-items:center;gap:6px;font-size:12px;color:#666;margin:4px 0}
.cart-color i{width:13px;height:13px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:inline-block}
.product-detail .buy-form button:disabled{opacity:.5;cursor:not-allowed}


/* --------------------------------------------------------------------------
   Cart + quick-add polish
   -------------------------------------------------------------------------- */
.quick-add-form{margin:0;padding:0}
.add-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.add-btn:hover{transform:translateY(-2px) scale(1.03)}
.add-btn.quick-add{font:inherit;font-size:24px;line-height:1;border-radius:13px;box-shadow:0 7px 16px rgba(82,137,40,.10)}
.add-btn.quick-add:active{transform:scale(.94)}
.add-btn.quick-add.is-loading{background:#dff3bd;color:#3e7620}
.add-btn-select{width:auto!important;min-width:58px;padding:0 11px;font-size:11px;font-weight:800}

.cart-items{gap:14px}
.cart-item{position:relative;grid-template-columns:86px minmax(0,1fr) auto auto 52px;padding:15px;gap:16px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(247,250,246,.96));border:1px solid #dfe8dc;box-shadow:0 9px 28px rgba(44,67,48,.06);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.cart-item:hover{transform:translateY(-2px);border-color:#cbdcc4;box-shadow:0 15px 34px rgba(44,67,48,.10)}
.cart-item img{width:86px;height:86px;border-radius:16px;border:1px solid #e0e8dd;box-shadow:0 6px 15px rgba(32,50,37,.08)}
.cart-info h3{font-size:15px;color:#26352c;margin:0 0 2px}
.cart-info strong{color:#4d8427;font-size:14px}
.cart-color{width:max-content;padding:3px 8px;border-radius:999px;background:#f0f6eb;color:#647068!important}
.cart-qty-wrap{display:flex;align-items:center;gap:0;border:1px solid #d8e3d3;background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 4px 12px rgba(38,57,43,.05)}
.cart-qty{width:42px!important;border:0!important;background:#fff!important;text-align:center;font-weight:800;padding:8px 2px!important;outline:none}
.qty-mini{width:34px;height:40px;border:0;background:#f3f8ef;color:#4f7d31;font-size:20px;cursor:pointer;transition:.18s}
.qty-mini:hover{background:#e5f1dc;color:#315c1b}
.remove{width:40px;height:40px;border-radius:11px!important;border:1px solid #f0d4d7!important;background:#fff5f5!important;color:#d34d5b!important;font:inherit!important;font-size:11px!important;font-weight:800;transition:.2s}
.remove:hover{background:#ffe8ea!important;transform:translateY(-1px)}
.cart-remove-form{display:none}
.cart-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:4px}
.continue-shopping{color:#679d38;text-decoration:none;font-size:12px;font-weight:700}
.continue-shopping:hover{text-decoration:underline}
.summary{background:linear-gradient(145deg,#fff,#f7faf5);border-color:#dfe8dc;box-shadow:0 15px 40px rgba(44,67,48,.07)}
.summary h3{color:#26352c}
.summary .total b{color:#4f8d27;font-size:19px}
.empty-state.wide{box-shadow:0 15px 40px rgba(44,67,48,.06)}

@media(max-width:900px){
  .cart-item{grid-template-columns:72px minmax(0,1fr) 45px;gap:11px}
  .cart-item img{width:72px;height:72px}
  .cart-qty-wrap{grid-column:2;justify-self:start}
  .line-total{grid-column:2;grid-row:3;font-size:13px}
  .remove{grid-column:3;grid-row:1;justify-self:end}
}
@media(max-width:600px){
  .cart-item{grid-template-columns:60px minmax(0,1fr) 40px;padding:11px}
  .cart-item img{width:60px;height:60px;border-radius:13px}
  .cart-info h3{font-size:13px}
  .cart-info strong{font-size:12px}
  .cart-qty-wrap{grid-column:2;grid-row:2}
  .line-total{grid-column:2;grid-row:3}
  .remove{grid-column:3;grid-row:1}
  .cart-actions{flex-direction:column-reverse;align-items:stretch}
  .cart-actions .btn{width:100%}
  .continue-shopping{text-align:center}
}

/* ------------------------------------------------------------------
   Color + Size storefront polish
------------------------------------------------------------------ */
.size-picker{margin:22px 0}
.size-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.size-option{position:relative;min-width:58px;padding:11px 15px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.045);color:inherit;font-weight:800;cursor:pointer;transition:.2s ease;box-shadow:0 6px 18px rgba(0,0,0,.08)}
.size-option:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(255,255,255,.28)}
.size-option.selected{border-color:currentColor;box-shadow:0 0 0 2px rgba(255,255,255,.08),0 10px 25px rgba(0,0,0,.14);background:rgba(255,255,255,.1)}
.size-option:disabled,.size-option.disabled{opacity:.35;cursor:not-allowed;text-decoration:line-through}
.size-option small{display:block;font-size:9px;margin-top:3px;opacity:.7}
.product-sizes-mini{display:flex;align-items:center;gap:7px;margin:10px 0 0;font-size:11px;opacity:.85}
.product-sizes-mini b{padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.06)}
.cart-size{display:inline-flex;align-items:center;width:max-content;margin-top:6px;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.06);font-size:12px}
.cart-color{display:inline-flex;align-items:center;gap:6px;width:max-content}
.cart-color i{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid rgba(255,255,255,.25)}
@media(max-width:700px){
 .size-list{gap:7px}.size-option{min-width:52px;padding:10px 12px}
}

/* Anchor targets under the fixed/sticky navigation */
#profile, #orders { scroll-margin-top: 110px; }
