/* PATCH-044A — Asala Atelier. All selectors are opt-in via body class.
   Layout-only product rules intentionally leave dashboard typography and
   palette declarations on the existing generated stylesheet authoritative. */
body.asala-atelier {
    --atelier-paper: #ffffff;
    --atelier-surface: #fffdf9;
    --atelier-ink: #29231e;
    --atelier-espresso: #3c3027;
    --atelier-gold: #b79860;
    --atelier-line: #dfd5c6;
    background: var(--atelier-paper);
    color: var(--atelier-ink);
}
body.asala-atelier :is(.asala-header, .asala-global-footer, .asala-home-v2, .asala-shop-page) {
    font-family: 'Asala Noto', Tahoma, Arial, sans-serif;
}
body.asala-atelier .asala-header { background: var(--atelier-surface); border-color: var(--atelier-line); }
body.asala-atelier .asala-topbar { background: #302820; color: #f4ead9; }
body.asala-atelier .asala-topbar-inner { min-height: 34px; }
body.asala-atelier .asala-topbar-item { font-size: 11px; font-weight: 500; color: #f4ead9; }
body.asala-atelier .asala-topbar-icon { color: #d3b77d; }
body.asala-atelier .asala-navigation { background: var(--atelier-surface); border-color: #e9e1d6; }
body.asala-atelier .asala-menu > li > a { color: #594b3c; font-weight: 500; font-size: 13px; }
body.asala-atelier .asala-menu > li > a:hover,
body.asala-atelier .asala-menu .current-menu-item > a { color: #352b22; border-bottom-color: #b79860; }
body.asala-atelier .asala-header-action { color: #4f4132; }
body.asala-atelier .asala-search-form .search-field { background: #f7f3ec; border-color: #e4dbce !important; border-radius: 4px !important; font-family: inherit; }
body.asala-atelier .asala-search-form button { background: #3c3027 !important; border-radius: 4px !important; }
body.asala-atelier .asala-cart-count { background: #6b5438; color: white; }

/* Homepage — generous section rhythm and a restrained warm palette. */
body.asala-atelier .asala-home-v2 { background: var(--atelier-paper); }
body.asala-atelier .asala-home-hero-overlay-v2 { background: linear-gradient(90deg, rgba(36,28,22,.12), rgba(36,28,22,.6)); }
body.asala-atelier .asala-home-hero-title-v2 { font-family: 'Asala Noto', Tahoma, sans-serif; font-weight: 600; line-height: 1.5; }
body.asala-atelier .asala-home-hero-button-v2 { background: #e7d8b9; color: #332a20; border: 1px solid #e7d8b9; border-radius: 4px; box-shadow: none; }
body.asala-atelier :is(.asala-home-brand-section-v3, .asala-home-products-section-v3) { background: var(--atelier-paper); padding-block: clamp(38px, 5vw, 78px); }
body.asala-atelier :is(.asala-home-section-title-v2, .asala-home-products-title-v3) { color: #3c3027; font-family: 'Asala Noto', Tahoma, sans-serif; font-weight: 500; }
body.asala-atelier .asala-home-section-kicker-v2 { color: #856b43; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
body.asala-atelier .asala-home-brand-card-v3 { background: var(--atelier-surface); border-color: var(--atelier-line); border-radius: 6px; padding: 24px; box-shadow: none; gap: 16px; }
body.asala-atelier .asala-home-brand-card-v3:hover { border-color: #b79860; box-shadow: 0 12px 30px #3c30270b; transform: translateY(-2px); }
body.asala-atelier .asala-home-brand-logo-v3 { border-radius: 2px; }
body.asala-atelier .asala-home-brand-name-v3 { font-weight: 500; font-size: 19px; color: #3c3027; }
body.asala-atelier .asala-home-products-view-all-v3 { border: 0; border-bottom: 1px solid #b79860; border-radius: 0; background: transparent; color: #59462f; font-size: 12px; }
body.asala-atelier .asala-home-benefits-section-v1 { background: #f0e9dd; border-color: #e5dbc9; }
body.asala-atelier .asala-home-benefit-card-v1 { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body.asala-atelier .asala-home-benefit-icon-v1 { background: transparent; color: #8c7048; border: 1px solid #cdb995; border-radius: 50%; }
body.asala-atelier .asala-home-benefit-title-v1 { color: #3c3027; font-weight: 600; font-size: 15px; }

/* Canonical cards — applies to shop, home, archives, wishlist and related. */
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card { background: #fffdf9; border: 1px solid #e5dccf; border-radius: 6px; box-shadow: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card:hover { border-color: #c6ac81; box-shadow: 0 14px 30px #3c30270d; transform: translateY(-3px); }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-image-wrap { background: #fff; border-bottom: 1px solid #f0e9df; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-content { padding: 20px 16px 16px; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card .asala-loop-title,
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card .asala-loop-title a { font-family: 'Asala Noto', Tahoma, sans-serif !important; font-weight: 600 !important; font-size: 18px !important; line-height: 1.75 !important; color: #342a20 !important; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card .asala-loop-title a:hover { color: #8b6d40 !important; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-price { color: #5e452c; }
html body#asala-page.asala-atelier .asala-loop-product-item :is(.asala-loop-add-to-cart, .asala-loop-buy-now) { border-radius: 4px !important; box-shadow: none !important; min-height: 44px; font-family: 'Asala Noto', Tahoma, sans-serif; font-size: 12px !important; font-weight: 600 !important; line-height: 1.6; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-add-to-cart { background: #3c3027 !important; border: 1px solid #3c3027 !important; color: #fffdf9 !important; }
html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-buy-now { background: #ece0c9 !important; border: 1px solid #d5c19b !important; color: #3c3027 !important; }
body.asala-atelier .asala-shop-content { background: var(--atelier-paper); }
body.asala-atelier .asala-filter-panel { border-color: #dfd5c6; border-radius: 6px; box-shadow: none; }

/* Product composition. Keep gallery/variation/cart DOM and event bindings. */
body#asala-page.asala-atelier.single-product .asala-product-reference { padding: 0 0 56px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference * { box-sizing: border-box; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-breadcrumb { padding: 22px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--asala-line); color: var(--asala-muted); font-size: 11px; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main,
body#asala-page.asala-atelier.single-product .asala-product-reference.product-type-variable .asala-product-main { display: grid !important; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) !important; grid-template-areas: "gallery summary" !important; gap: clamp(28px, 4vw, 68px) !important; margin: 36px 0 0 !important; align-items: start !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-gallery-shell { width: 100% !important; display: flex !important; flex-direction: column !important; padding: 18px !important; gap: 16px !important; box-shadow: 0 14px 45px #392b1c08 !important; border-width: 1px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main-image { order: 0 !important; width: 100% !important; height: clamp(360px, 39vw, 550px) !important; min-height: 0 !important; border-radius: 3px !important; position: relative; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link,
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link > img,
body#asala-page.asala-atelier.single-product .asala-product-reference #asala-product-main-image { display: block !important; min-height: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-thumbnails { order: 1 !important; display: flex !important; flex-direction: row !important; width: 100% !important; gap: 10px !important; max-height: none !important; overflow-x: auto !important; overflow-y: hidden !important; padding: 4px !important; scrollbar-width: thin; scrollbar-color: #c9b899 transparent; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-thumbnails.is-empty { display: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-thumb { flex: 0 0 70px !important; width: 70px !important; min-width: 70px !important; height: 70px !important; border-radius: 3px !important; border: 1px solid var(--asala-line) !important; opacity: .7; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-thumb.is-active { border: 1px solid var(--asala-brown) !important; box-shadow: 0 0 0 2px #b7986026 !important; opacity: 1; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-zoom-button { background: #fffdf9 !important; color: #4f4132 !important; border: 1px solid #dfd5c6 !important; box-shadow: none !important; border-radius: 50% !important; width: 42px !important; height: 42px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-gallery-assurance { display: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-summary { padding: 10px 0 0 !important; }
body.asala-atelier .asala-atelier-signature { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; color: #8e7147; margin-bottom: 18px; }
body.asala-atelier .asala-atelier-signature > span:first-child { font-size: 18px; }
body.asala-atelier .asala-atelier-signature-line { display: block; width: 54px; height: 1px; background: #c4ac82; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-title { line-height: 1.55 !important; letter-spacing: 0 !important; overflow-wrap: anywhere; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-single-favorite { border-radius: 50% !important; flex-basis: 42px !important; width: 42px !important; height: 42px !important; box-shadow: none !important; background: transparent !important; border-color: var(--asala-line) !important; position: static !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-sku { font-size: 10px !important; color: var(--asala-muted) !important; margin: 8px 0 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-gender-badge { border: 1px solid var(--asala-line) !important; background: transparent !important; color: var(--asala-brown) !important; border-radius: 2px !important; font-size: 11px !important; padding: 4px 12px !important; box-shadow: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-rating { margin-block: 12px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-rating.has-no-reviews { display: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-intro { margin: 18px 0 22px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-purchase-panel { padding: 22px 0 0 !important; margin: 0 !important; border-top: 1px solid var(--asala-line) !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-price-icon { display: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-price { line-height: 1.5 !important; font-weight: 600 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-price ins { background: transparent !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-price del { font-size: .48em !important; color: var(--asala-muted) !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-yemeni-price { font-weight: 400 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-stock-status { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 10px 0 22px !important; border-radius: 0 !important; font-weight: 500 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-variation-chip { border-radius: 3px !important; min-height: 46px !important; min-width: 84px !important; font-weight: 500 !important; padding: 10px 18px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-variation-chip.is-selected { box-shadow: 0 0 0 2px #b7986028 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-variation-chip.asala-variation-chip-image { min-width: 98px !important; padding: 6px !important; background: #fffdf9 !important; color: var(--asala-brown) !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-variation-chip.asala-variation-chip-image.is-selected { border-color: var(--asala-brown) !important; box-shadow: 0 0 0 2px #b7986040 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-cart-area .quantity { width: 148px !important; max-width: 100% !important; flex: 0 0 148px !important; border: 0 !important; margin: 0 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-qty-control { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px !important; height: 48px !important; min-height: 48px !important; border-radius: 3px !important; border: 1px solid var(--asala-line) !important; margin: 0 !important; box-shadow: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(.asala-qty-minus, .asala-qty-plus) { display: grid !important; place-items: center !important; min-width: 44px !important; width: 44px !important; height: 46px !important; padding: 0 !important; background: transparent !important; font-weight: 400 !important; border-radius: 0 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-qty-slot input.qty { height: 46px !important; font-size: 16px !important; font-weight: 500 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(.single_add_to_cart_button, .asala-buy-now-button) { min-height: 54px !important; padding: 12px 20px !important; line-height: 1.5 !important; border-radius: 3px !important; font-weight: 600 !important; box-shadow: none !important; transition: filter .2s, transform .2s; }
body#asala-page.asala-atelier.single-product .asala-product-reference button.single_add_to_cart_button::before { display: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference button.single_add_to_cart_button { border-color: transparent !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-buy-now-button { border-color: #cdb78d !important; margin-top: 10px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(.single_add_to_cart_button, .asala-buy-now-button):hover { filter: brightness(.96); transform: translateY(-1px); }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(button:disabled, .is-disabled) { cursor: not-allowed; transform: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-buy-now-icon { display: none; }

/* Secondary information feels like one editorial page, not a stack of tiles. */
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-support { margin-top: 48px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-trust { display: grid !important; background: transparent !important; border: 0 !important; border-block: 1px solid var(--asala-line) !important; border-radius: 0 !important; box-shadow: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-trust-item { background: transparent !important; padding: 24px 12px !important; min-height: 110px !important; border-color: var(--asala-line) !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-trust-icon { color: #9a7d4e !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-logistics { gap: 24px !important; margin-top: 28px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-logistics > * { border-radius: 6px !important; padding: 24px !important; box-shadow: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-details { margin-top: 34px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-detail-box { margin-bottom: 14px !important; box-shadow: none !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-detail-box summary { padding: 22px 24px !important; min-height: 70px !important; font-weight: 500 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-detail-summary-icon { color: #9a7d4e !important; background: transparent !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-detail-content { padding: 0 24px 24px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-bundle-promo { border-radius: 6px !important; box-shadow: none !important; padding: 24px !important; background: #fffdf9; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-bundle-text { border-radius: 3px !important; margin-top: 20px !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(.asala-product-reviews, .asala-related-products) { margin-top: 48px !important; padding-top: 28px !important; border-top: 1px solid var(--asala-line) !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference :is(.asala-product-reviews-heading h2, .asala-related-heading h2) { font-weight: 500 !important; }
body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-service-strip { padding: 20px !important; box-shadow: none !important; }
body.asala-atelier .asala-global-footer { background: #2c251f; border-top: 3px solid #ad9060; margin-top: 0; }
body.asala-atelier .asala-global-footer__inner { padding-block: 56px 42px; }
body.asala-atelier .asala-global-footer__column h2 { color: #dac39a; font-weight: 500; }
body.asala-atelier .asala-global-footer__column a { color: #e0d6c8; font-weight: 400; }
body.asala-atelier .asala-global-footer__assurance span { border-radius: 3px; }
body.asala-atelier :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #98713d !important; outline-offset: 3px; }
body.asala-atelier .asala-global-footer :is(a, button):focus-visible { outline-color: #ead2a3 !important; }

@media (max-width: 1023px) {
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main,
    body#asala-page.asala-atelier.single-product .asala-product-reference.product-type-variable .asala-product-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 24px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main-image { height: 390px !important; }
}
@media (max-width: 767px) {
    body.asala-atelier .asala-topbar-item { font-size: 10px; }
    body.asala-atelier .asala-home-brand-card-v3 { padding: 14px; }
    body.asala-atelier .asala-home-brand-name-v3 { font-size: 16px; }
    html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-content { padding: 14px 10px 10px; }
    html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card .asala-loop-title,
    html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card .asala-loop-title a { font-size: 16px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-container { width: calc(100% - 32px) !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-breadcrumb { padding: 14px 0 !important; font-size: 10px; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main,
    body#asala-page.asala-atelier.single-product .asala-product-reference.product-type-variable .asala-product-main { display: grid !important; grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "gallery" "summary" !important; gap: 24px !important; margin-top: 18px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-gallery { margin: 0 !important; display: block !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-gallery-shell { padding: 10px !important; gap: 10px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-main-image { height: clamp(270px, 80vw, 430px) !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-thumb { flex-basis: 58px !important; width: 58px !important; min-width: 58px !important; height: 58px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-summary { padding: 0 !important; }
    body.asala-atelier .asala-atelier-signature { margin-bottom: 12px; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-intro { margin: 14px 0 20px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-support { margin-top: 32px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-trust-item { padding: 18px 8px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-trust { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-logistics { grid-template-columns: minmax(0,1fr) !important; gap: 12px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-reference-logistics > * { padding: 18px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-detail-box summary { padding: 18px 16px !important; min-height: 64px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-detail-content { padding: 0 16px 20px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-bundle-promo { padding: 16px !important; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-bundle-item { min-width: 0; }
    body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-bundle-item-title { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(body.asala-atelier) { scroll-behavior: auto !important; }
    body.asala-atelier *, body.asala-atelier *::before, body.asala-atelier *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html body#asala-page.asala-atelier .asala-loop-product-item .asala-loop-card:hover,
    body#asala-page.asala-atelier.single-product .asala-product-reference :is(.single_add_to_cart_button, .asala-buy-now-button):hover { transform: none !important; }
}
