/* Fabric Store v0.5.2 — final storefront palette and contrast pass for both themes. */
:root{
  --s52-bg:#fbf7f2;--s52-soft:#f2e7de;--s52-card:#fffaf6;--s52-card2:#f5ebe4;--s52-text:#4a3e38;--s52-muted:#85736a;--s52-line:#e1d2c8;
  --s52-rose:#c9806d;--s52-rose2:#b86d5b;--s52-sage:#859985;--s52-blue:#8ca2b3;--s52-lilac:#a694a8;--s52-sand:#c6a17e;--s52-shadow:0 16px 42px rgba(90,62,48,.08);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --s52-bg:#1d1b1a;--s52-soft:#282422;--s52-card:#302b28;--s52-card2:#39322e;--s52-text:#f7f0e9;--s52-muted:#cbb9ae;--s52-line:#5a4d46;
  --s52-rose:#d38d79;--s52-rose2:#df9d8b;--s52-sage:#9daf99;--s52-blue:#9eb1c0;--s52-lilac:#b2a0b5;--s52-sand:#cfad8d;--s52-shadow:0 18px 46px rgba(0,0,0,.23);
}
html,body{background:var(--s52-bg)!important;color:var(--s52-text)!important;overflow-y:auto!important;overflow-x:hidden!important}
body main,body .lux-home,body .catalog-v037,body .categories-page,body .story-page,body .contact-page,body .contact-page-v35,body .auth-page{background:var(--s52-bg)!important;color:var(--s52-text)!important}

/* 10px geometry */
body .site-header,body .v044-header,body .v037-hero,body .catalog-v037-hero,body .hero-search-wrap,body .header-live-search,body .live-search-panel,
body .category-image-card,body .v037-product-card,body .product-card,body .editorial-card,body .intent-grid a,body .shipping-public-grid>div,body .catalog-v037-toolbar,
body .catalog-live-input,body .product-gallery,body .specs,body .buybox,body .auth-card,body .account-panel,body .story-visual,body .story-content,
body .story-steps>div,body .story-shipping,body .contact-hero-v35,body .contact-grid-v35>a,body .contact-grid-v35>div,body .contact-social-v35,
body .cookie-banner,body .newsletter,body .service-main,body .service-list,body .cart-card,body .checkout-card,body .order-card,body .modern-empty{border-radius:10px!important}
body .btn,body .btn-light,body .btn-small,body .menu-btn,body .theme-toggle,body .account-chip,body .password-eye,body input:not([type=checkbox]):not([type=radio]),body textarea,body select{border-radius:10px!important}

/* header */
body .site-header,body .v044-header{background:color-mix(in srgb,var(--s52-bg) 95%,transparent)!important;border-color:var(--s52-line)!important;color:var(--s52-text)!important;box-shadow:0 8px 28px rgba(50,36,29,.05)!important;backdrop-filter:blur(14px)!important}
body .topline{background:var(--s52-soft)!important;color:var(--s52-muted)!important;border-color:var(--s52-line)!important}
body .brand-copy b,body .desktop-nav a,body .cart-link,body .account-chip{color:var(--s52-text)!important} body .brand-copy small{color:var(--s52-muted)!important}
body .brand-mark,body .account-avatar,body .cart-link b{background:var(--s52-rose)!important;color:#fffaf6!important}
body .header-live-search,body .theme-toggle,body .menu-btn,body .account-chip{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .header-live-search input{color:var(--s52-text)!important;background:transparent!important} body .header-live-search input::placeholder{color:var(--s52-muted)!important}
body .header-live-search kbd{background:var(--s52-card2)!important;color:var(--s52-muted)!important;border-color:var(--s52-line)!important}

/* buttons */
body .btn,body .qty-row .btn,body .catalog-v037-toolbar .btn,body .cookie-banner button,body .register-link,body .hero-search-wrap button{background:var(--s52-rose)!important;color:#fffaf6!important;border:1px solid var(--s52-rose)!important;box-shadow:none!important}
body .btn:hover,body .qty-row .btn:hover,body .catalog-v037-toolbar .btn:hover,body .cookie-banner button:hover,body .register-link:hover,body .hero-search-wrap button:hover{background:var(--s52-rose2)!important;color:#fffaf6!important;border-color:var(--s52-rose2)!important}
body .btn-light,body .login-link,body .product-quick{background:var(--s52-card2)!important;color:var(--s52-text)!important;border:1px solid var(--s52-line)!important}
body .btn-light:hover,body .login-link:hover,body .product-quick:hover,body .menu-btn:hover,body .account-chip:hover,body .theme-toggle:hover,body .password-eye:hover,body .password-eye.is-visible{background:color-mix(in srgb,var(--s52-rose) 16%,var(--s52-card))!important;color:var(--s52-text)!important;border-color:color-mix(in srgb,var(--s52-rose) 45%,var(--s52-line))!important}

/* normal page headings */
body .v037-section-head h2,body .catalog-v037-hero h1,body .categories-page h1,body .contact-page h1,body .product-info h1,body .newsletter h2{color:var(--s52-text)!important}
body .v037-section-head p,body .catalog-v037-hero p,body .categories-page p,body .contact-page p,body .lead,body .stock-line{color:var(--s52-muted)!important}
html[data-theme="dark"] body .v037-section-head h2,html[data-theme="dark"] body .catalog-v037-hero h1,html[data-theme="dark"] body .product-info h1,html[data-theme="dark"] body .newsletter h2{color:#fff8f2!important}

/* home hero */
body .v037-hero{background:linear-gradient(135deg,var(--s52-soft),color-mix(in srgb,var(--s52-rose) 10%,var(--s52-soft)))!important;border-color:var(--s52-line)!important}
body .v037-hero h1,body .v037-hero-copy>p{color:var(--s52-text)!important} body .v037-hero h1 em{color:var(--s52-rose)!important}
body .hero-search-wrap,body .hero-metrics>div{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important}
body .hero-metrics b{color:var(--s52-text)!important} body .hero-metrics span{color:var(--s52-muted)!important}

/* categories over photos: always white text + stronger bottom gradient */
body .category-image-card{background:#625249!important;color:#fffaf5!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important;overflow:hidden!important}
body .category-image-card .category-image-shade{background:linear-gradient(180deg,rgba(25,19,16,.05) 12%,rgba(25,19,16,.18) 42%,rgba(23,17,15,.90) 100%)!important}
body .category-image-card .category-image-copy,body .category-image-card .category-image-copy b,body .category-image-card .category-image-copy small,body .category-image-card .category-image-copy em,body .category-image-card .category-image-copy strong{color:#fffaf5!important;text-shadow:0 2px 14px rgba(0,0,0,.34)!important}
body .category-image-index{background:rgba(86,63,54,.76)!important;color:#fff!important;border-color:rgba(255,255,255,.34)!important;backdrop-filter:blur(8px)!important}
body .category-image-card:hover{background:#625249!important;border-color:color-mix(in srgb,var(--s52-rose) 60%,var(--s52-line))!important}

/* editorial cards: photos need readable overlay in BOTH themes */
body .editorial-card{background:#5f5048!important;color:#fffaf5!important;border-color:var(--s52-line)!important;overflow:hidden!important}
body .editorial-card:after{background:linear-gradient(90deg,rgba(24,18,16,.82) 0%,rgba(24,18,16,.60) 45%,rgba(24,18,16,.18) 100%)!important}
body .editorial-card h2,body .editorial-card p,body .editorial-card strong,body .editorial-card .eyebrow{color:#fffaf5!important;text-shadow:0 2px 16px rgba(0,0,0,.32)!important}
body .editorial-card p{opacity:.92!important}

/* intent/service */
body .v037-intent{background:var(--s52-soft)!important;color:var(--s52-text)!important}
body .intent-grid a{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important}
body .intent-grid a:nth-child(1){background:color-mix(in srgb,var(--s52-blue) 9%,var(--s52-card))!important} body .intent-grid a:nth-child(2){background:color-mix(in srgb,var(--s52-sage) 9%,var(--s52-card))!important} body .intent-grid a:nth-child(3){background:color-mix(in srgb,var(--s52-lilac) 9%,var(--s52-card))!important} body .intent-grid a:nth-child(4){background:color-mix(in srgb,var(--s52-sand) 10%,var(--s52-card))!important}
body .intent-grid a b,body .intent-grid a strong{color:var(--s52-text)!important} body .intent-grid a p,body .intent-grid a small,body .intent-grid a span:last-child{color:var(--s52-muted)!important}
body .service-main{background:linear-gradient(150deg,color-mix(in srgb,var(--s52-rose) 22%,var(--s52-soft)),color-mix(in srgb,var(--s52-sand) 10%,var(--s52-soft)))!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .service-main h2,body .service-main h3{color:var(--s52-text)!important} body .service-main p{color:var(--s52-muted)!important}
body .service-list{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important} body .service-list>div{border-color:var(--s52-line)!important}
body .service-list strong,body .service-list b{color:var(--s52-text)!important} body .service-list small,body .service-list p{color:var(--s52-muted)!important}

/* info pages: story hero keeps high contrast, no dark-on-dark */
body .story-hero{background:#201c1a!important;color:#fffaf5!important;border-color:var(--s52-line)!important}
body .story-hero .story-hero-copy h1,body .story-hero .story-hero-copy p,body .story-hero .story-hero-copy .eyebrow{color:#fffaf5!important}
body .story-hero .story-hero-copy p{opacity:.92!important}
body .story-content,body .story-steps>div,body .story-shipping,body .category-page-section,body .contact-grid-v35>a,body .contact-grid-v35>div,body .contact-social-v35{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .story-content h1,body .story-content h2,body .story-content h3,body .story-steps>div b,body .contact-grid-v35 b,body .contact-social-v35 h2{color:var(--s52-text)!important}
body .story-content p,body .story-steps>div p,body .story-steps>div span:last-child,body .contact-grid-v35 small{color:var(--s52-muted)!important}
body .category-page-hero,body .contact-hero-v35{background:var(--s52-soft)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .category-page-hero h1,body .contact-hero-v35 h1{color:var(--s52-text)!important} body .category-page-hero p,body .contact-hero-v35 p{color:var(--s52-muted)!important}

/* catalog */
body .catalog-v037-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--s52-rose) 10%,var(--s52-soft)),var(--s52-soft))!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .catalog-v037-toolbar{background:color-mix(in srgb,var(--s52-card) 94%,transparent)!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important}
body .catalog-live-input,body .catalog-v037-toolbar select{background:var(--s52-card2)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .catalog-live-input input{background:transparent!important;color:var(--s52-text)!important} body .catalog-live-input input::placeholder{color:var(--s52-muted)!important}
body .stock-toggle{background:var(--s52-card2)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .catalog-category-ribbon{overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:14px!important;scrollbar-width:auto!important;scrollbar-color:color-mix(in srgb,var(--s52-rose) 58%,var(--s52-line)) var(--s52-soft)!important;overscroll-behavior-x:contain!important;cursor:grab!important}
body .catalog-category-ribbon:active{cursor:grabbing!important}
body .catalog-category-ribbon::-webkit-scrollbar{display:block!important;height:8px!important} body .catalog-category-ribbon::-webkit-scrollbar-track{background:var(--s52-soft)!important;border-radius:999px!important} body .catalog-category-ribbon::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--s52-rose) 58%,var(--s52-line))!important;border-radius:999px!important}
body .category-pill{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important} body .category-pill span{color:var(--s52-muted)!important}
body .category-pill:hover,body .category-pill.active{background:color-mix(in srgb,var(--s52-rose) 17%,var(--s52-card))!important;color:var(--s52-text)!important;border-color:color-mix(in srgb,var(--s52-rose) 46%,var(--s52-line))!important}

/* products and product page */
body .v037-product-card,body .product-card,body .specs,body .buybox,body .auth-card,body .account-panel,body .cart-card,body .checkout-card,body .order-card,body .modern-empty{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important}
body .v037-product-card:hover,body .product-card:hover{background:color-mix(in srgb,var(--s52-rose) 7%,var(--s52-card))!important;border-color:color-mix(in srgb,var(--s52-rose) 38%,var(--s52-line))!important}
body .v037-product-card .product-name,body .product-card .product-name,body .v037-product-card b,body .product-card b,body .specs b,body .buybox b,body .big-price{color:var(--s52-text)!important}
body .v037-product-card p,body .v037-product-card small,body .product-card p,body .product-card small,body .specs span,body .buybox p{color:var(--s52-muted)!important}
body .product-media{background:var(--s52-card2)!important}
body .product-page{padding-bottom:52px!important}
body .product-info input,body .product-info select,body .auth-card input,body .account-panel input{background:var(--s52-card2)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}

/* footer/newsletter */
body .newsletter{background:linear-gradient(135deg,color-mix(in srgb,var(--s52-lilac) 10%,var(--s52-soft)),var(--s52-soft))!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .newsletter h2{color:var(--s52-text)!important} body .newsletter .btn-light{background:var(--s52-rose)!important;color:#fffaf6!important;border-color:var(--s52-rose)!important}
body .footer,body .legal{background:var(--s52-soft)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .footer b,body .footer strong,body .footer a,body .footer-brand{color:var(--s52-text)!important} body .footer p,body .footer span,body .legal{color:var(--s52-muted)!important}
body .socials a{background:var(--s52-card2)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .cookie-banner{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important} body .cookie-banner p{color:var(--s52-muted)!important}

/* dark hard safety against legacy light !important rules */
html[data-theme="dark"] body .header-live-search,html[data-theme="dark"] body .theme-toggle,html[data-theme="dark"] body .menu-btn,html[data-theme="dark"] body .account-chip,
html[data-theme="dark"] body .hero-search-wrap,html[data-theme="dark"] body .hero-metrics>div,html[data-theme="dark"] body .intent-grid a,html[data-theme="dark"] body .service-list,
html[data-theme="dark"] body .catalog-v037-toolbar,html[data-theme="dark"] body .catalog-live-input,html[data-theme="dark"] body .catalog-v037-toolbar select,html[data-theme="dark"] body .category-pill,
html[data-theme="dark"] body .v037-product-card,html[data-theme="dark"] body .product-card,html[data-theme="dark"] body .specs,html[data-theme="dark"] body .buybox,
html[data-theme="dark"] body .auth-card,html[data-theme="dark"] body .account-panel,html[data-theme="dark"] body .cart-card,html[data-theme="dark"] body .checkout-card,
html[data-theme="dark"] body .order-card,html[data-theme="dark"] body .modern-empty,html[data-theme="dark"] body .newsletter,html[data-theme="dark"] body .footer,
html[data-theme="dark"] body .legal,html[data-theme="dark"] body .cookie-banner,html[data-theme="dark"] body .live-search-panel{background-color:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}

@media(max-width:900px){body .theme-toggle [data-theme-text]{display:none!important}.catalog-category-ribbon{margin-left:-10px!important;margin-right:-10px!important;padding-left:10px!important;padding-right:10px!important}.catalog-v037-toolbar{overflow-x:auto!important;grid-template-columns:minmax(260px,1fr) 170px 145px max-content max-content!important}}

/* remaining legacy hard-stop overrides */
body .intent-grid a:hover{background:color-mix(in srgb,var(--s52-rose) 12%,var(--s52-card))!important;color:var(--s52-text)!important;border-color:color-mix(in srgb,var(--s52-rose) 42%,var(--s52-line))!important;box-shadow:var(--s52-shadow)!important}
body .shipping-public-grid>div{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important;box-shadow:var(--s52-shadow)!important}
body .shipping-public-grid>div:hover{background:color-mix(in srgb,var(--s52-rose) 9%,var(--s52-card))!important;color:var(--s52-text)!important;border-color:color-mix(in srgb,var(--s52-rose) 40%,var(--s52-line))!important}
body .editorial-card:hover{background:#5f5048!important;color:#fffaf5!important}
body .product-availability.is-in{background:color-mix(in srgb,var(--s52-sage) 20%,var(--s52-card))!important;color:color-mix(in srgb,var(--s52-sage) 76%,var(--s52-text))!important}
body .product-availability.is-out{background:color-mix(in srgb,var(--s52-rose) 17%,var(--s52-card))!important;color:var(--s52-rose)!important}
body .product-attributes span{background:var(--s52-card2)!important;color:var(--s52-muted)!important}
body .order-history a{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .order-history a:hover{background:color-mix(in srgb,var(--s52-rose) 8%,var(--s52-card))!important}
body .mobile-menu{background:var(--s52-card)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .mobile-menu a{color:var(--s52-text)!important;border-color:var(--s52-line)!important}
body .cookie-banner a{color:var(--s52-rose)!important}
body .sale-badge{background:var(--s52-rose)!important;color:#fffaf6!important}
body .catalog-results-shell.is-loading:after{background:var(--s52-card2)!important;color:var(--s52-text)!important;border:1px solid var(--s52-line)!important;border-radius:999px!important}

/* story/info visual identity — warm textile instead of black slab */
body .story-hero{background:linear-gradient(135deg,#8c6d62 0%,#6f574f 100%)!important;color:#fffaf5!important;border:1px solid var(--s52-line)!important;border-radius:10px!important;overflow:hidden!important}
html[data-theme="dark"] body .story-hero{background:linear-gradient(135deg,#4c3c36 0%,#332b28 100%)!important}
body .story-hero .story-hero-copy h1{color:#fffaf5!important;text-shadow:0 2px 18px rgba(0,0,0,.16)!important}
body .story-hero .story-hero-copy p{color:#f4e9e2!important}
body .story-hero .story-hero-copy .eyebrow{color:#f3c7ba!important}
body .story-visual{background:var(--s52-card2)!important;border-color:var(--s52-line)!important}

/* newsletter button always legible */
body .newsletter .btn-light,html[data-theme="dark"] body .newsletter .btn-light{background:var(--s52-rose)!important;color:#fffaf6!important;border-color:var(--s52-rose)!important}
body .newsletter .btn-light:hover,html[data-theme="dark"] body .newsletter .btn-light:hover{background:var(--s52-rose2)!important;color:#fffaf6!important}

/* dark explicit control safety against old light !important rules */
html[data-theme="dark"] body .catalog-v037-toolbar select,
html[data-theme="dark"] body .catalog-live-input,
html[data-theme="dark"] body .catalog-live-input input,
html[data-theme="dark"] body .auth-card input,
html[data-theme="dark"] body .account-panel input,
html[data-theme="dark"] body .product-info input,
html[data-theme="dark"] body .product-info select,
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body select{background:var(--s52-card2)!important;color:var(--s52-text)!important;border-color:var(--s52-line)!important;color-scheme:dark!important}
