:root{--ink:#152538;--blue:#1b3551;--muted:#6b7682;--paper:#f8f7f4;--line:#e2e5e9;--accent:#c5a06c}*{box-sizing:border-box}body{margin:0;font:15px/1.55 system-ui,Segoe UI,Arial;color:var(--ink);background:var(--paper)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.wrap{max-width:1200px;padding:0 22px;margin:auto}.top{background:#15283e;color:white;text-align:center;padding:9px;font-size:12px;letter-spacing:1px}.head{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:900;font-size:26px;letter-spacing:3px}.navlinks{display:flex;gap:25px;color:#435063}.nav button,.solid{background:var(--blue);color:white;border:0;border-radius:8px;padding:12px 18px}.hero{background:linear-gradient(110deg,#142a43 45%,#365875);color:white;padding:85px 0}.eyebrow{text-transform:uppercase;letter-spacing:3px;color:#f2d7af;font-size:13px}.hero h1{font-size:clamp(34px,5vw,64px);line-height:1.08;max-width:720px;margin:15px 0}.hero p{max-width:510px;color:#dce3ec}.hero a{display:inline-block;margin-top:17px;background:white;color:var(--blue);font-weight:700;padding:13px 22px;border-radius:8px}.section{padding:54px 0}.section h2{font-size:30px;margin:0 0 6px}.sub{color:var(--muted);margin:0 0 25px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.toolbar input,.toolbar select,.form input,.form select,.form textarea{border:1px solid #ccd2d9;border-radius:8px;background:white;padding:12px 13px;min-height:46px}.toolbar input{flex:1;min-width:180px}.products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.product{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.photo{height:260px;background:linear-gradient(135deg,#c8d4e0,#6e879f);display:flex;align-items:center;justify-content:center;color:white;font-weight:800;letter-spacing:3px;font-size:25px}.photo img{width:100%;height:100%;object-fit:cover}.product .info{padding:18px}.tag{color:var(--muted);font-size:12px}.product h3{font-size:17px;margin:5px 0 8px}.price{font-size:19px;font-weight:800;color:#a14335}.old{text-decoration:line-through;color:#8b939b;font-size:13px;margin-left:7px}.desc{font-size:13px;color:var(--muted);min-height:40px}.product button{width:100%;margin-top:10px}.shade{position:fixed;inset:0;background:#0917288e;z-index:20}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(480px,100%);background:white;z-index:21;display:flex;flex-direction:column;box-shadow:-15px 0 50px #0003}.dhead{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.close{border:0;background:transparent;font-size:28px}.scroll{padding:18px 22px;overflow-y:auto;flex:1}.foot{padding:18px 22px;border-top:1px solid var(--line)}.flex{display:flex;justify-content:space-between;align-items:center;gap:12px}.row{padding:14px 0;border-bottom:1px solid var(--line)}.small{font-size:12px;color:var(--muted)}.form{display:grid;gap:12px}.form label{font-size:13px;font-weight:650;display:grid;gap:5px}.form textarea{min-height:75px}.danger{color:#bc453a}.ok{color:#267b53}.modal{position:fixed;z-index:22;top:50%;left:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 24px));background:white;padding:25px;border-radius:14px;max-height:90vh;overflow:auto}.modal h2{margin:0 0 10px}.modal select{width:100%}.hidden{display:none!important}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;text-align:center}.feature{padding:24px;background:white;border:1px solid var(--line);border-radius:13px}footer{padding:30px 0;background:#13283d;color:#cbd5df;margin-top:30px}.admin-layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#14293f;color:white;padding:28px 20px}.sidebar button{display:block;width:100%;margin:10px 0;background:#29425e;color:white;text-align:left;border:0;border-radius:6px;padding:12px}.main{padding:30px;overflow:auto}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin-bottom:20px}table{width:100%;border-collapse:collapse;min-width:730px}td,th{border-bottom:1px solid var(--line);padding:12px;text-align:left;vertical-align:top}th{background:#f1f3f5}table button{border:1px solid #bbc6d2;border-radius:6px;background:white;padding:6px 10px}.login{max-width:440px;margin:12vh auto;background:white;padding:30px;border-radius:13px;border:1px solid var(--line)}.notice{padding:12px;background:#f4efe2;border-radius:8px;font-size:13px}@media(max-width:850px){.products{grid-template-columns:repeat(2,1fr)}.navlinks{display:none}.admin-layout{grid-template-columns:1fr}.sidebar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sidebar button{width:auto;margin:0}.main{padding:15px}}@media(max-width:550px){.products{grid-template-columns:1fr 1fr;gap:10px}.photo{height:175px;font-size:18px}.product .info{padding:11px}.product h3{font-size:14px}.price{font-size:15px}.desc{display:none}.hero{padding:54px 0}.section{padding:34px 0}.features{grid-template-columns:1fr}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar input{grid-column:span 2}.wrap{padding:0 14px}}

/* MD Denim v2 multi-photo upload and product gallery */
.upload-zone{padding:16px;border:1px dashed #95a4ba;border-radius:10px;background:#f8fafc}.upload-zone input{margin:10px 0;max-width:100%}.image-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:12px}.img-tile{border:1px solid #d7dce5;border-radius:8px;overflow:hidden;background:white}.img-tile img{width:100%;height:132px;object-fit:cover;display:block}.img-actions{display:flex;flex-wrap:wrap;gap:3px;padding:6px}.img-actions button{font-size:11px;padding:5px;border-radius:5px}.modal-gallery{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}.modal-gallery img{width:160px;height:180px;flex-shrink:0;object-fit:cover;border-radius:8px;scroll-snap-align:start}.modal-gallery:empty{display:none}

/* V3: separate stacked collections for men and women */
.product-sections{display:flex;flex-direction:column;gap:44px}
.gender-section{scroll-margin-top:102px}
.gender-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px;padding:22px 24px;border-radius:12px;background:#e9edf1;border-left:5px solid #1b3551}
.gender-heading h3{font-size:clamp(24px,3vw,34px);letter-spacing:.045em;line-height:1.15;margin:4px 0 8px}
.gender-heading p{margin:0;color:#5d6978}
.gender-heading .gender-kicker{font-size:11px;letter-spacing:2px;color:#64798b;font-weight:700}
.gender-count{white-space:nowrap;background:white;border:1px solid #dae1e8;border-radius:20px;padding:7px 12px;color:#34465a;font-size:12px}
@media(max-width:550px){.gender-heading{padding:16px;align-items:start;flex-direction:column;gap:10px}.product-sections{gap:32px}}

/* MD S22 size advisor */
.size-guide{background:#f4f7fb;border:1px solid #cfd8e6;border-radius:10px;padding:13px;margin:12px 0}
.size-guide h3{font-size:15px;margin:0 0 10px}
.size-guide-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.size-guide-inputs label{min-width:0}
.size-guide-inputs select{width:100%;min-width:0}
.size-recommendation{background:#e9f3ed;border-radius:7px;padding:10px;font-size:13px;color:#205b3d}
.size-guide details{margin-top:10px}
.size-guide summary{cursor:pointer;font-weight:700;color:#1b3551}
.size-chart{width:100%;height:auto;margin-top:10px;border-radius:5px;border:1px solid #ddd}
@media(max-width:430px){.size-guide-inputs{grid-template-columns:1fr}}

/* MD Denim: one-row horizontal browsing + full product photographs */
.gender-section .products{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 44px)/3);
  grid-template-columns:none;
  gap:22px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:#aab6c5 transparent;
  padding:0 1px 12px;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}
.gender-section .products .product{scroll-snap-align:start;min-width:0;height:100%;display:flex;flex-direction:column}
.gender-section .products .product .info{display:flex;flex-direction:column;flex:1}
.gender-section .products .product .desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.gender-section .products .product button{margin-top:auto}
.gender-section .photo{height:325px;background:#f1f2f4;color:#52657e}
.gender-section .photo img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.modal-gallery img{object-fit:contain;background:#f1f2f4}
.gender-heading .gender-heading-actions{display:flex;align-items:center;gap:8px}
.gender-scroll-btn{border:1px solid #cdd6e1;background:#fff;color:#1b3551;border-radius:9px;font-size:22px;line-height:1;padding:8px 13px;min-width:42px;min-height:42px}
.gender-scroll-btn:hover{background:#dae5f0}
.gender-scroll-btn:focus-visible{outline:3px solid #619dd4;outline-offset:2px}
@media(max-width:850px){
 .gender-section .products{grid-auto-columns:calc((100% - 16px)/2);gap:16px}
 .gender-section .photo{height:295px}
}
@media(max-width:550px){
 .gender-section .products{grid-auto-columns:min(75vw,290px);gap:12px}
 .gender-section .photo{height:270px}
 .gender-section .product .info{padding:13px}
 .gender-section .products .product .desc{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2}
 .gender-heading .gender-heading-actions{width:100%;justify-content:space-between}
 .gender-scroll-btn{min-width:44px}
}

/* Product image zoom */
[data-zoom-product],#modal-gallery img{cursor:zoom-in}
[data-zoom-product]:focus-visible{outline:3px solid #427db6;outline-offset:-3px}
.image-lightbox{position:fixed;inset:0;z-index:100;background:rgba(7,16,29,.94);display:flex;align-items:center;justify-content:center;padding:55px 66px;color:white}
.image-lightbox img{display:block;max-width:100%;max-height:calc(100dvh - 110px);width:auto;height:auto;object-fit:contain;cursor:zoom-out}
.lightbox-close,.lightbox-arrow{position:absolute;z-index:1;border:1px solid #ffffff55;background:#182c41dd;color:#fff;border-radius:12px;display:grid;place-items:center;cursor:pointer}
.lightbox-close{top:14px;right:16px;font-size:34px;width:48px;height:48px}
.lightbox-arrow{top:50%;transform:translateY(-50%);font-size:44px;line-height:1;width:50px;height:60px}
.lightbox-prev{left:10px}.lightbox-next{right:10px}
.lightbox-arrow[hidden]{display:none}
.lightbox-counter{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:13px;color:#e4ebf5}
body.lightbox-open{overflow:hidden}
@media(max-width:600px){.image-lightbox{padding:70px 38px}.image-lightbox img{max-height:calc(100dvh - 155px)}.lightbox-arrow{width:34px;height:56px;font-size:32px}.lightbox-prev{left:2px}.lightbox-next{right:2px}}

/* Checkout: mobile usability and safe-area padding. */
@media(max-width:550px){.drawer{width:100%;max-width:100vw}.drawer .scroll{min-height:0;padding-bottom:24px}.drawer .foot{padding-bottom:max(18px,env(safe-area-inset-bottom))}.modal{max-height:calc(100dvh - 20px)}.nav{min-height:64px;height:auto}.nav #open-cart{white-space:nowrap}.form input,.form select,.form textarea{font-size:16px}}

/* MD Denim editorial storefront — additive, no changes to server or checkout data */
:root{--ink:#18242d;--blue:#1d333e;--muted:#69737c;--paper:#f6f4f0;--line:#dddcd7;--accent:#b69a76}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--paper);color:var(--ink)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #aa8255;outline-offset:3px}
.top{background:#17232a;color:#f2eee7;letter-spacing:.14em;font-size:10px;font-weight:700}
.top span{padding:0 13px;color:#a89a86}
.head{box-shadow:0 1px 10px #131e250a;background:#fdfcfa}
.nav{height:80px}
.brand{font-family:Georgia,serif;font-size:26px;letter-spacing:-.07em;white-space:nowrap}
.brand-separator{color:#a78a65;padding:0 5px;font-family:system-ui;font-weight:300}
.brand-dot{color:#b88e60}
.navlinks{gap:31px;font-size:13px;font-weight:650;letter-spacing:.01em}
.navlinks a:hover{color:#946c3d}
.nav button{border-radius:3px;padding:11px 16px;background:#192831;font-size:13px;font-weight:750}
.cart-pill{display:inline-grid;place-items:center;background:#bba182;color:#15232b;min-width:25px;height:25px;margin-left:5px;border-radius:50%;font-variant-numeric:tabular-nums}
.hero{background:#1c2b34;color:#f8f4ed;padding:0;overflow:hidden}
.hero-layout{display:grid;grid-template-columns:1.1fr .9fr;min-height:550px;align-items:stretch;gap:4%}
.hero-copy{padding:86px 0 58px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hero .eyebrow{color:#c3a887;font-size:11px;letter-spacing:.23em;font-weight:700;display:flex;align-items:center;gap:12px}
.hero-line{width:32px;height:1px;background:#c3a887}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(65px,7.5vw,108px);line-height:.95;letter-spacing:-.07em;margin:27px 0}
.hero h1 em{font-weight:400;color:#d2b694}
.hero p{max-width:460px;font-size:16px;line-height:1.85;color:#e2ddd5}
.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:30px}
.hero a.hero-primary{margin:0;border-radius:2px;background:#d7b991;color:#16242d;padding:16px 23px;font-size:13px;letter-spacing:.04em}
.hero a.hero-primary:hover{background:#f0d5af}
.hero a.hero-secondary{margin:0;background:transparent;color:#f1e8dd;border-bottom:1px solid #ad987e;border-radius:0;padding:10px 0;font-size:13px}
.hero-proof{display:flex;gap:24px;color:#b7b8b3;font-size:11px;letter-spacing:.03em;margin-top:54px;flex-wrap:wrap}
.hero-visual{position:relative;min-height:500px;display:flex;justify-content:center;background:#6f7475;overflow:hidden}
.hero-visual img{width:100%;height:100%;object-fit:cover;object-position:50% 42%;display:block}
.hero-visual:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#14212b80);pointer-events:none}
.hero-visual-label{position:absolute;z-index:1;bottom:22px;left:22px;color:#fff;font-size:11px;letter-spacing:.2em}
.collection-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:34px;margin-bottom:12px}
.collection-shortcuts a{border:1px solid #dcd6ce;background:#eeebe4;min-height:160px;padding:25px 28px;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,background .2s}
.collection-shortcuts a:last-child{background:#e7e3dd}
.collection-shortcuts a:hover{background:#dcd5ca;transform:translateY(-2px)}
.shortcut-number,.collection-shortcuts a>span:last-child{font-size:11px;letter-spacing:.09em;color:#687077}
.collection-shortcuts a strong{font-family:Georgia,serif;font-size:clamp(25px,3vw,39px);font-weight:500;letter-spacing:-.04em}
.collection-shortcuts a b{float:right;font-size:18px;font-weight:400;color:#4e4b42}
.section{padding:74px 0}
.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end}
.overline,.section-aside{font-size:11px;letter-spacing:.2em;font-weight:750;color:#a08260}
.section-heading h2{font-family:Georgia,serif;font-weight:500;font-size:clamp(36px,4.2vw,57px);letter-spacing:-.05em;line-height:1.1;margin:14px 0}
.section-heading h2 em{color:#967a5e;font-weight:400}
.section-aside{white-space:nowrap;padding-bottom:26px;color:#7b7771}
.toolbar{padding:18px 0 10px;margin:20px 0 27px}
.toolbar input,.toolbar select{background:#fdfcf9;border-radius:3px;border-color:#d9d7d1;font-size:14px}
.gender-heading{border-radius:0;border-left:0;border-bottom:1px solid #d4d0c9;background:transparent;padding:10px 0 19px}
.gender-heading h3{font-family:Georgia,serif;font-weight:500;letter-spacing:-.03em}
.gender-heading .gender-kicker{color:#997a57}
.gender-heading p{font-size:13px}
.gender-count{background:#ebe7df;border-color:#dcd6cb}
.gender-scroll-btn{border-radius:2px;border-color:#d4d1cb;background:#fdfbf7;color:#1f3038}
.gender-section .products{gap:18px;grid-auto-columns:calc((100% - 36px)/3)}
.product{border:1px solid #e0ddd6;border-radius:2px;background:#fffdfa;transition:box-shadow .18s,transform .18s}
.product:hover{box-shadow:0 9px 28px #19252d14;transform:translateY(-2px)}
.gender-section .photo{height:365px;background:#eceae6}
.gender-section .photo img{object-fit:contain}
.gender-section .product .info{padding:18px}
.product .tag{color:#87765f;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.product h3{font-family:Georgia,serif;font-size:20px;font-weight:500;line-height:1.3;min-height:50px}
.product .price{color:#1d303b;font-size:20px}
.card-meta{display:flex;justify-content:space-between;gap:8px;color:#8a7760;font-size:10px;font-weight:700;letter-spacing:.04em;margin:2px 0 13px}
.product button.solid,.purchase-actions button{border-radius:2px;min-height:47px;font-weight:750;font-size:13px}
.product button.solid{display:flex;justify-content:space-between;align-items:center;padding:12px 15px}
.product button.solid:hover,#place-order:hover{background:#38515b}
.features{text-align:left;gap:15px}
.feature{border-radius:2px;background:#eeebe5;border-color:#e1dbd1;padding:25px}
.feature-icon{color:#a6865c;letter-spacing:.15em;font-weight:750;font-size:12px}
.feature h3{font-family:Georgia,serif;font-size:23px;font-weight:500;margin:15px 0 7px}
.feature p{color:#616c6f;font-size:13px;line-height:1.8}
footer{background:#17242c;padding:45px 0}
.modal{width:min(820px,calc(100vw - 28px));border-radius:4px;padding:25px 28px;box-shadow:0 25px 80px #09121e55}
.modal .flex{align-items:start}
.modal h2{font-family:Georgia,serif;font-weight:500;font-size:27px;line-height:1.2;margin:4px 0 13px}
.modal-eyebrow{letter-spacing:.2em;font-size:10px;color:#a4865c;font-weight:700}
.modal-gallery{gap:10px;margin:12px 0 20px;scroll-padding:8px}
.modal-gallery img{width:clamp(155px,30vw,230px);height:clamp(200px,30vw,280px);background:#f1f0ed;border-radius:2px}
#modal-price{font-weight:800;font-size:25px;color:#1b3440;margin:8px 0 17px}
.purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.purchase-actions .secondary-buy{border:1px solid #203740;background:#fff;color:#203740}
.purchase-promise{text-align:center;color:#746d60;font-size:12px;margin:2px 0 0}
.drawer{box-shadow:-18px 0 65px #05111e38}
.dhead h2{font-family:Georgia,serif;font-size:28px;font-weight:500}
.drawer .foot{box-shadow:0 -7px 25px #13232f0a;background:#fffefa}
#place-order{border-radius:2px;min-height:51px;font-weight:800}
@media(max-width:850px){
 .hero-layout{grid-template-columns:1fr 0.85fr;gap:2%;min-height:480px}
 .hero-copy{padding:55px 0}
 .hero h1{font-size:clamp(55px,7.3vw,80px)}
 .hero-proof{margin-top:35px}
 .gender-section .products{grid-auto-columns:calc((100% - 16px)/2);gap:16px}
 .gender-section .photo{height:310px}
 .section-aside{display:none}
}
@media(max-width:600px){
 .top{font-size:9px;letter-spacing:.055em;padding:8px 4px}
 .top span{padding:0 6px}
 .nav{height:62px;min-height:62px}
 .brand{font-size:23px}
 .nav button{font-size:12px;padding:9px 10px}
 .hero-layout{grid-template-columns:1fr;gap:0}
 .hero-copy{padding:45px 0 40px;order:2}
 .hero-visual{order:1;height:310px;min-height:0;margin:0 -14px}
 .hero-visual img{object-position:center 40%}
 .hero h1{font-size:clamp(54px,12vw,78px);margin:18px 0}
 .hero p{font-size:14px;line-height:1.7}
 .hero-actions{gap:16px;margin-top:20px}
 .hero a.hero-primary{padding:14px 18px}
 .hero-proof{margin-top:28px}
 .collection-shortcuts{gap:9px;margin-top:16px}
 .collection-shortcuts a{min-height:138px;padding:16px 13px}
 .collection-shortcuts a strong{font-size:23px}
 .collection-shortcuts a>span:last-child{font-size:10px}
 .section{padding:44px 0}
 .section-heading h2{font-size:35px}
 .toolbar{margin:12px 0 17px}
 .gender-heading{padding:12px 0 15px}
 .gender-heading h3{font-size:29px}
 .gender-section .products{grid-auto-columns:min(77vw,290px);gap:12px}
 .gender-section .photo{height:305px}
 .gender-section .product .info{padding:14px}
 .product h3{font-size:17px;min-height:0}
 .product .price{font-size:17px}
 .card-meta{font-size:9px}
 .modal{max-height:calc(100dvh - 16px);padding:18px 16px;width:calc(100vw - 16px)}
 .modal-gallery img{width:170px;height:220px}
 .modal h2{font-size:24px}
 .purchase-actions{gap:7px}
 .purchase-actions button{font-size:12px;padding:11px 9px}
 .purchase-promise{font-size:10px}
 .features{gap:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.product,.collection-shortcuts a{transition:none}}

/* Order desk — responsive filters and concise stats */
.order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.order-actions button,.order-filter-panel button{padding:11px 15px;border:1px solid #c9cbd0;border-radius:5px;background:#fff;color:#233744;font-weight:650}
.order-actions button.solid{background:#233744;color:#fff;border-color:#233744}
.order-filter-panel{display:grid;grid-template-columns:minmax(180px,2fr) minmax(145px,1fr) minmax(135px,1fr) minmax(135px,1fr) auto;gap:10px;align-items:end;background:#fefdfb;border:1px solid #e0dfda;padding:16px;border-radius:8px;margin:10px 0 16px}
.order-filter-panel label{min-width:0;display:flex;flex-direction:column;gap:5px;font-size:12px;color:#5d6870;font-weight:700}
.order-filter-panel input,.order-filter-panel select{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #cccfd0;border-radius:5px;background:#fff}
.order-filter-panel button{min-height:42px;white-space:nowrap}
.order-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
.order-stat{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #e3e2de;border-radius:7px;padding:15px}
.order-stat span{font-size:12px;color:#64717a}
.order-stat strong{font-size:clamp(18px,2vw,25px);font-variant-numeric:tabular-nums}
#orders-body select{max-width:175px;min-height:40px;border:1px solid #cfd5d6;border-radius:5px;padding:5px;background:#fff}
@media(max-width:1100px){.order-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.order-filter-panel label:first-child{grid-column:span 2}}
@media(max-width:650px){.order-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.order-filter-panel{grid-template-columns:1fr 1fr;padding:12px}.order-filter-panel label:first-child{grid-column:span 2}.order-actions button{flex:1}.order-stat{padding:12px}}

/* MD Denim policy & brand pages */
.md-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.15fr;gap:42px;padding-bottom:26px}
.md-footer-grid nav{display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.md-footer-grid nav h3{font-size:14px;color:#fff;margin:0 0 6px}
.md-footer-grid nav a{font-size:13px;color:#d6d8d9}
.md-footer-grid nav a:hover,.policy-footer a:hover{text-decoration:underline;color:#fff}
.md-footer-brand strong{font-family:Georgia,serif;font-size:28px;color:#fff}
.md-footer-brand p{font-size:13px;max-width:360px;line-height:1.7}
.md-footer-caution{max-width:275px}
.footer-admin{font-size:12px;text-decoration:underline}
.md-footer-bottom{border-top:1px solid #40505a;padding-top:17px;display:flex;justify-content:space-between;gap:14px;font-size:11px;letter-spacing:.06em}
.policy-home-link{padding:10px 17px;border:1px solid #bfc4c4;font-size:12px;font-weight:700}
.policy-wrap{padding-top:42px;padding-bottom:85px;min-height:65vh}
.policy-crumb{font-size:12px;color:#797f7e;margin:0 0 32px}
.policy-crumb a{text-decoration:underline}
.policy-title{border-bottom:1px solid #d9d4cc;padding-bottom:28px;margin-bottom:32px}
.policy-title h1{font:normal clamp(40px,6vw,68px)/1.12 Georgia,serif;letter-spacing:-.055em;margin:12px 0}
.policy-title>p{font-size:16px;color:#687078;max-width:650px;line-height:1.7}
.policy-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:64px;align-items:start}
.policy-article{font-size:15px;line-height:1.95;max-width:740px}
.policy-article h2{font:normal 27px/1.35 Georgia,serif;margin:33px 0 12px;color:#203039}
.policy-article h2:first-child{margin-top:0}
.policy-article p{margin:0 0 16px}
.policy-article li{margin:7px 0}
.policy-article a{text-decoration:underline;text-underline-offset:3px}
.policy-article ul,.policy-article ol{padding-left:22px;margin:0 0 23px}
.policy-draft{margin-top:34px;background:#f0ebe2;border:1px solid #d7ccba;padding:20px}
.policy-draft strong{font-size:15px;color:#594b34}
.policy-draft p{font-size:13px;color:#665e50;margin:8px 0 0}
.policy-side{position:sticky;top:110px;border-top:2px solid #20323a;padding-top:16px;display:flex;flex-direction:column;gap:4px}
.policy-side strong{font-size:13px;margin-bottom:8px}
.policy-side a{display:flex;justify-content:space-between;border-bottom:1px solid #dedbd5;padding:12px 0;font-size:13px}
.policy-side a[aria-current="page"]{color:#99734b;font-weight:800}
.policy-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0}
.policy-contact-grid>div{background:#fff;border:1px solid #e3ded6;padding:18px}
.policy-contact-grid span{display:block;font-size:12px;color:#777;padding-bottom:7px}
.policy-contact-grid strong{font-size:13px}
.policy-footer{background:#192932;color:#dae1e3;padding:38px 0}
.policy-footer strong{font:normal 27px Georgia,serif;color:#fff}
.policy-footer p{font-size:12px}
.policy-footer nav{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin-top:22px}
@media(max-width:750px){.md-footer-grid{grid-template-columns:1fr 1fr;gap:24px}.md-footer-brand{grid-column:1/-1}.policy-layout{grid-template-columns:1fr}.policy-side{position:static;order:-1;display:grid;grid-template-columns:1fr 1fr;gap:4px 15px}.policy-side strong{grid-column:1/-1}.policy-wrap{padding-top:24px;padding-bottom:48px}.policy-title{margin-bottom:20px}}
@media(max-width:480px){.md-footer-grid{grid-template-columns:1fr}.md-footer-brand{grid-column:auto}.md-footer-bottom{flex-direction:column}.policy-contact-grid{grid-template-columns:1fr}.policy-side{grid-template-columns:1fr}.policy-article h2{font-size:24px}.policy-title h1{font-size:42px}.policy-home-link{padding:9px 10px;font-size:11px}}

/* Optional marketing consent: checkout remains usable without Meta Pixel. */
.marketing-consent{position:fixed;bottom:14px;left:14px;right:14px;max-width:850px;margin:0 auto;z-index:9999;background:#fff;color:#1a2b32;border:1px solid #c5cbd0;border-radius:10px;padding:18px 20px;box-shadow:0 8px 32px #0003;display:flex;align-items:center;justify-content:space-between;gap:18px}
.marketing-consent.hidden,.marketing-settings.hidden{display:none}
.marketing-consent strong{font-size:15px}
.marketing-consent p{font-size:12px;line-height:1.65;margin:5px 0 0;color:#48565e}
.marketing-consent a{text-decoration:underline}
.marketing-buttons{display:flex;gap:8px;flex-shrink:0}
.marketing-buttons button{border:1px solid #233744;border-radius:5px;padding:11px 14px;background:#fff;color:#233744;font-weight:700;cursor:pointer;white-space:nowrap}
#marketing-accept{background:#233744;color:#fff}
.marketing-settings{position:fixed;bottom:10px;left:12px;z-index:20;background:#fff;color:#22363d;border:1px solid #d2d4d6;border-radius:6px;padding:7px 9px;font-size:11px;cursor:pointer;box-shadow:0 2px 9px #0001}
@media(max-width:620px){.marketing-consent{flex-direction:column;align-items:stretch;bottom:8px;left:8px;right:8px;padding:14px}.marketing-buttons button{flex:1}.marketing-settings{bottom:8px}}

/* Full-width editorial product detail, matching MD Denim reference layout. */
.product-detail{min-height:100dvh;background:#fff;color:#1d2529;padding:22px max(24px,calc((100vw - 1460px)/2));}
body.detail-open{background:#fff;}
body.detail-open>.top,body.detail-open>.head,body.detail-open>.hero,body.detail-open>.collection-shortcuts,body.detail-open>main,body.detail-open>footer{display:none!important}
.detail-topline{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}
.detail-return,.detail-x{background:#fff;border:1px solid #e4e4e4;color:#333;border-radius:30px;padding:10px 18px;font-size:12px}
.detail-x{width:40px;height:40px;padding:0;font-size:23px}
.detail-layout{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);gap:clamp(28px,6vw,90px);align-items:start;padding:0 10px 70px 0}
.detail-media{min-width:0}
.detail-main-photo{background:#f4f4f4;position:relative;display:flex;align-items:center;justify-content:center;min-height:470px;overflow:hidden}
.detail-main-photo>img{display:block;width:100%;max-height:75vh;height:auto;aspect-ratio:4/5;object-fit:contain;cursor:zoom-in}
.detail-photo-prev,.detail-photo-next{position:absolute;top:50%;transform:translateY(-50%);z-index:1;background:#fff;border:0;border-radius:50%;height:42px;width:42px;display:grid;place-items:center;font-size:19px;box-shadow:0 2px 12px #0002}
.detail-photo-prev{left:12px}.detail-photo-next{right:12px}
.detail-photo-prev[hidden],.detail-photo-next[hidden]{display:none}
.detail-image-count{position:absolute;bottom:12px;right:12px;background:#141414b5;color:white;padding:5px 8px;font-size:11px}
.detail-thumbnails{display:flex;gap:9px;overflow-x:auto;margin:12px 0}
.detail-thumb{flex:0 0 70px;width:70px;height:90px;padding:2px;background:#fff;border:1px solid #dedede;cursor:pointer}
.detail-thumb.active{border:2px solid #1d333e}
.detail-thumb img{width:100%;height:100%;object-fit:contain}
.detail-info{padding-top:clamp(18px,5vw,80px);min-width:0}
.detail-kicker{font-size:11px;font-weight:750;letter-spacing:2px;color:#5c666b;text-transform:uppercase}
.detail-info h1{font:normal clamp(34px,4vw,58px)/1.13 Georgia,'Times New Roman',serif;letter-spacing:-.045em;margin:14px 0 30px}
.detail-policy{margin-bottom:24px}.detail-policy strong,.detail-description strong{font-size:12px;letter-spacing:.04em}
.detail-policy p,.detail-description p{font-size:14px;color:#687079;line-height:1.85;margin:8px 0 0}
.detail-policy a{text-decoration:underline;text-underline-offset:3px}
.detail-description{margin-bottom:20px}
.detail-facts{border-top:1px solid #e4e4e4;border-bottom:1px solid #e4e4e4}
.detail-facts>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #eee;font-size:12px}
.detail-facts>div:last-child{border:0}.detail-facts span{color:#7a8388}.detail-facts strong{font-weight:600;text-align:right}
.detail-price{font-size:25px;font-weight:750;margin:22px 0;padding-bottom:21px;border-bottom:1px solid #eee}
.detail-form{display:grid;gap:14px}
.detail-choose{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:center;border-bottom:1px solid #eee;padding:8px 0 16px}
.detail-choose>span{font-size:13px;font-weight:650}
.detail-choose select,.detail-choose input{border:1px solid #d2d6da;background:#fff;border-radius:2px;min-height:42px;padding:8px 12px;max-width:300px;width:100%;font-size:15px}
.product-detail .size-guide{background:#fbfbfa;border:1px solid #e6e6e6;border-radius:2px;padding:16px;margin:4px 0}
.product-detail .size-guide details{margin-top:16px}
.product-detail .size-guide .size-chart{width:100%;max-height:none;object-fit:contain;background:white}
.product-detail .purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.product-detail .purchase-actions button{min-height:52px;border-radius:2px;font-weight:700}
.product-detail #buy-now{background:#1d333e;color:white;border:1px solid #1d333e}
.product-detail #add-item{border:1px solid #1d333e;background:white;color:#1d333e}
.product-detail .purchase-promise{font-size:12px;color:#6d787d;text-align:center}
@media(max-width:860px){.product-detail{padding:16px}.detail-layout{grid-template-columns:1fr;gap:16px;padding:0 0 60px}.detail-info{padding-top:6px}.detail-main-photo{min-height:0}.detail-main-photo>img{max-height:68vh}.detail-info h1{margin-bottom:20px}}
@media(max-width:440px){.detail-info h1{font-size:36px}.detail-choose{grid-template-columns:95px minmax(0,1fr)}.detail-thumb{flex-basis:60px;width:60px;height:78px}.product-detail .purchase-actions{grid-template-columns:1fr}.detail-facts>div{gap:10px}}

/* MD Denim checkout sheet: airy order summary and slim COD form. */
.drawer{width:min(440px,100%);box-shadow:-22px 0 80px #0002;background:#fff;}
.shade{background:rgba(0,0,0,.5)}
.drawer .dhead{padding:24px 28px 14px;border-bottom:0;align-items:flex-start}
.checkout-eyebrow{font-size:10px;letter-spacing:2.5px;color:#4a5358;font-weight:700}
#checkout-title{font:normal 34px/1.15 Georgia,'Times New Roman',serif;margin:14px 0 0;letter-spacing:-.04em}
.drawer .scroll{padding:12px 28px;min-height:0}
.checkout-line{display:flex;gap:14px;padding:20px 0;border-bottom:1px solid #e6e6e6;align-items:flex-start}
.checkout-line>img{width:77px;height:99px;object-fit:contain;background:#f4f4f4;flex:none}
.checkout-line-info{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}
.checkout-line-info strong{font-weight:700;line-height:1.45}
.checkout-line-info span{color:#5e666b;font-size:12px}
.checkout-line-info b{font-size:16px}
.checkout-line-info button{border:0;background:transparent;color:#747b81;text-align:left;padding:1px 0;text-decoration:underline;align-self:flex-start}
.checkout-heading{font:normal 27px/1.22 Georgia,'Times New Roman',serif;margin:25px 0 14px}
.drawer .form{gap:14px}
.drawer .form label{font-size:12px;font-weight:600;color:#373c41}
.drawer .form input,.drawer .form textarea{border:0;border-bottom:1px solid #c9ccce;border-radius:0;padding:12px 0 9px;min-height:39px;background:transparent}
.drawer .form input:focus,.drawer .form textarea:focus{outline-offset:0}
.drawer .foot{padding:16px 28px 26px;border-top:1px solid #e8e8e8}
.drawer .foot .flex{font-size:12px;margin-bottom:8px}
.drawer #place-order{border-radius:0;padding:16px;background:#101313;min-height:52px}
.drawer #place-order:disabled{opacity:.65}
@media(max-width:550px){.drawer .dhead{padding:20px 20px 10px}.drawer .scroll{padding:10px 20px}.drawer .foot{padding:12px 20px max(20px,env(safe-area-inset-bottom))}#checkout-title{font-size:30px}}

/* Mobile checkout keyboard: prioritize the field being edited over large heading and fixed summary. */
@media(max-width:700px){
 .drawer{top:var(--checkout-visible-top,0px);bottom:auto;height:var(--checkout-visible-height,100dvh);max-height:var(--checkout-visible-height,100dvh);min-height:0;overflow:hidden}
 .drawer>.scroll{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-top:18px;scroll-padding-bottom:32px}
 .drawer.checkout-typing>.dhead{flex:none;min-height:42px;padding:3px 16px;align-items:center;border-bottom:1px solid #eee}
 .drawer.checkout-typing>.dhead>div{display:none}
 .drawer.checkout-typing>.dhead>.close{margin-left:auto;font-size:27px;line-height:36px}
 .drawer.checkout-typing>.foot{display:none}
 .drawer.checkout-typing>.scroll{padding-top:5px;padding-bottom:32px}
 .drawer.checkout-typing #cart-lines{display:none}
 .drawer.checkout-typing .checkout-heading{display:none}
 .drawer.checkout-typing .form{gap:12px}
 .drawer.checkout-typing .form input,.drawer.checkout-typing .form textarea{font-size:16px;scroll-margin-block:22px}
}

/* Mobile Messenger chat actions link directly to each page conversation. */
.mobile-messenger-help{display:none}
@media(max-width:700px){
.mobile-messenger-help{display:flex;position:fixed;right:9px;top:53%;transform:translateY(-50%);z-index:19;flex-direction:column;gap:9px}
.messenger-action{width:68px;min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;border-radius:13px;color:#fff;font-weight:750;font-size:11px;text-align:center;line-height:1.3;box-shadow:0 4px 14px #0003}
.messenger-action span{font-size:20px;line-height:1}
.messenger-men{background:#1877f2}.messenger-women{background:#ac567c}
body.lightbox-open .mobile-messenger-help,body:has(#drawer:not(.hidden)) .mobile-messenger-help,body:has(#marketing-consent:not(.hidden)) .mobile-messenger-help{display:none}
}
