/*
Theme Name:   YAS Child
Description:  Blocksy child theme for Yelena Art Studio
Author:       Yury Kuczko
Template:     blocksy
Version:      0.59.1
*/

/* ============================================================
   COLOUR PALETTE — warm dark
   #141210  bg          near-black warm
   #1e1c1a  surface     dark charcoal (header, cards)
   #272422  card        dark warm grey
   #3a3632  border      subtle warm line
   #c9a96e  accent      warm gold
   #f0ece6  text        off-white
   #c8c4be  text-2      softer off-white
   #8a8278  muted       warm mid-grey
   ============================================================ */

:root {
    --yas-bg:       #141210;
    --yas-surface:  #1e1c1a;
    --yas-card:     #272422;
    --yas-border:   #3a3632;
    --yas-accent:   #c9a96e;
    --yas-accent-h: #e0c898;
    --yas-text:     #f0ece6;
    --yas-text-2:   #c8c4be;
    --yas-muted:    #8a8278;

    /* Wire into Blocksy's native palette slots */
    --theme-palette-color-1: var(--yas-accent);
    --theme-palette-color-2: var(--yas-accent-h);
    --theme-palette-color-3: var(--yas-text);
    --theme-palette-color-4: var(--yas-text-2);
    --theme-palette-color-5: var(--yas-muted);
    --theme-palette-color-6: var(--yas-border);
    --theme-palette-color-7: var(--yas-card);
    --theme-palette-color-8: var(--yas-bg);
}

/* ============================================================
   TYPOGRAPHY
   Headings : Tenor Sans (refined single-weight humanist sans)
   Body      : Nunito Sans (rounded, warm, highly readable)
   ============================================================ */

/* Self-hosted @font-face for Tenor Sans. LiteSpeed strips the Google Fonts
   <link>, so headings fell back to system sans; declaring the face inside the
   (always-loaded) child stylesheet makes it load reliably. */
@font-face {
    font-family: 'Tenor Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/tenorsans/v21/bx6ANxqUneKx06UkIXISn3V4Cg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tenor Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/tenorsans/v21/bx6ANxqUneKx06UkIXISn3t4Cl2I.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Self-hosted Nunito Sans — latin only (400/600/700).
   WebFontLoader (JS) can be blocked or delayed; declaring @font-face in the
   always-loaded child stylesheet guarantees the font is available before
   any CSS font-family rule is evaluated, matching the Tenor Sans approach. */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-s.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-s.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7txR-tCKQ.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/nunitosans/v19/pe0TMImSLYBIv1o4X1M8ce2xCx3yop4tQpF_MeTm0lfGWVpNn64CL7U8upHZIbMV51Q42ptCp7t1R-s.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --yas-font-heading: 'Tenor Sans', sans-serif;
    --yas-font-body:    'Nunito Sans', system-ui, sans-serif;
    --theme-font-family: 'Nunito Sans', system-ui, sans-serif;
}

body,
.ct-header,
.ct-footer,
input, select, textarea, button {
    font-family: var(--yas-font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0em;
}

h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.entry-title,
.page-title,
.ct-module-title,
.widget-title {
    font-family: var(--yas-font-heading) !important;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h4 { font-size: 1.4rem; }

.woocommerce-loop-product__title { font-size: 1.1rem; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* Price — body sans, medium weight */
.woocommerce ul.products li.product .price,
.woocommerce div.product span.price,
.woocommerce div.product p.price {
    font-family: var(--yas-font-body);
    font-weight: 600;
}

/* Navigation — all-caps small sans (top-level links only) */
.ct-header [data-id="menu"] > ul > li > a,
.ct-header [data-id="menu"] > ul > li > .ct-menu-link,
.main-navigation > ul > li > a {
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Submenu links — sentence case, reset all-caps */
.ct-header [data-id="menu"] .sub-menu a,
.ct-header [data-id="menu"] .sub-menu .ct-menu-link {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* Buttons */
.ct-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.add_to_cart_button,
.single_add_to_cart_button {
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Base ---- */
html { color-scheme: dark; }

body, .site {
    background-color: var(--yas-bg);
    color: var(--yas-text);
}

a { color: var(--yas-accent); }
a:hover { color: var(--yas-accent-h); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--yas-text); }

/* ---- Header ---- */
.ct-header,
.site-header {
    background-color: var(--yas-surface) !important;
    border-bottom: 1px solid var(--yas-border);
}

/* Sticky header — slightly more opaque so content behind doesn't bleed */
.ct-header.ct-sticky-header {
    background-color: rgba(30, 28, 26, 0.97) !important;
    backdrop-filter: blur(6px);
}

/* Site title — Tenor Sans, accent colour, no bold */
.site-title,
.site-title a,
[data-id="logo"] .site-title,
[data-id="logo"] .site-title a {
    font-family: var(--yas-font-heading) !important;
    font-weight: 400 !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.06em !important;
    color: var(--yas-text) !important;
    text-transform: none !important;
    text-decoration: none !important;
}

[data-id="logo"] .site-title a:hover {
    color: var(--yas-accent) !important;
}

/* Nav links */
.ct-header a,
.site-header a,
.main-navigation a {
    color: var(--yas-text) !important;
}

.ct-header a:hover,
.main-navigation a:hover {
    color: var(--yas-accent) !important;
}

/* Active nav item */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--yas-accent) !important;
}

/* Dark/light mode toggle button */
.ct-dark-mode-toggle,
[data-id="dark-mode-switcher"] button {
    color: var(--yas-text-2) !important;
    background: transparent !important;
    border: none !important;
}

.ct-dark-mode-toggle:hover,
[data-id="dark-mode-switcher"] button:hover {
    color: var(--yas-accent) !important;
}

/* Search + cart icons in header */
[data-id="search"] button,
[data-id="cart"] a {
    color: var(--yas-text-2) !important;
}

[data-id="search"] button:hover,
[data-id="cart"] a:hover {
    color: var(--yas-accent) !important;
}

/* Cart item count badge */
.ct-cart-content [data-count]::after {
    background: var(--yas-accent) !important;
    color: var(--yas-bg) !important;
}

/* ---- Footer ---- */
.ct-footer,
.site-footer {
    background-color: var(--yas-bg) !important;
    border-top: 1px solid var(--yas-border);
    color: var(--yas-muted);
}

.ct-footer a { color: var(--yas-muted); }
.ct-footer a:hover { color: var(--yas-accent); }

/* ---- Buttons ---- */
.ct-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.add_to_cart_button,
.single_add_to_cart_button {
    background-color: var(--yas-accent) !important;
    color: var(--yas-bg) !important;
    border-color: var(--yas-accent) !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.ct-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    background-color: var(--yas-accent-h) !important;
    border-color: var(--yas-accent-h) !important;
}

/* ---- Forms ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea {
    background-color: var(--yas-card) !important;
    color: var(--yas-text) !important;
    border: 1px solid #5a544e !important;
    border-radius: 3px !important;
    padding: 10px 12px !important;
    outline: none !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: var(--yas-accent) !important;
    box-shadow: 0 0 0 2px rgba(201,169,110,0.15) !important;
}
input::placeholder, textarea::placeholder { color: var(--yas-muted) !important; }

/* Checkboxes and radio — make borders visible */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--yas-accent);
    border: 1px solid #5a544e !important;
    width: 16px !important;
    height: 16px !important;
}

/* Native selects */
select {
    background-color: var(--yas-card) !important;
    color: var(--yas-text) !important;
    border: 1px solid #5a544e !important;
    border-radius: 3px !important;
    padding: 10px 12px !important;
}


/* ---- WooCommerce single product ---- */
.woocommerce div.product .product_title {
    color: var(--yas-text);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--yas-accent);
    font-size: 1.4rem;
}

.woocommerce div.product .woocommerce-product-gallery {
    background: var(--yas-surface);
    border-radius: 4px;
    padding: 8px;
}

/* ---- Product tabs ---- */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom-color: var(--yas-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: var(--yas-card);
    border-color: var(--yas-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--yas-muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: var(--yas-surface);
    border-bottom-color: var(--yas-surface);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--yas-text);
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--yas-surface);
    padding: 1.5rem;
    border: 1px solid var(--yas-border);
    border-top: none;
    color: var(--yas-text-2);
}

/* ---- Breadcrumb ---- */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
    color: var(--yas-muted) !important;
    font-size: 0.8rem;
}

/* ---- Notices ---- */
.woocommerce-info { border-top-color: var(--yas-accent); background: var(--yas-card); color: var(--yas-text); }
.woocommerce-message { border-top-color: #6e9e6e; background: var(--yas-card); color: var(--yas-text); }

/* ---- Order-received / thank-you page ---- */
.woocommerce-thankyou-order-received { background: var(--yas-card) !important; color: var(--yas-text) !important; border-top-color: #6e9e6e !important; }
.woocommerce-order { color: var(--yas-text); }
.woocommerce-order-overview { border-color: var(--yas-border); }
.woocommerce-order-overview li { color: var(--yas-text-2); border-color: var(--yas-border); }
.woocommerce-order-overview li strong { color: var(--yas-text); }
.woocommerce-order-details h2,
.woocommerce-column__title { color: var(--yas-text); }
.woocommerce-customer-details address { color: var(--yas-text-2); border-color: var(--yas-border); background: transparent; }

/* ---- Cart / checkout ---- */
.woocommerce table.shop_table {
    background: transparent;
    border-color: var(--yas-border);
    color: var(--yas-text);
}

.woocommerce table.shop_table th { color: var(--yas-text-2); border-bottom-color: var(--yas-border); }
.woocommerce table.shop_table td { border-top-color: var(--yas-border); }

/* Right-align Subtotal column heading to match the dollar values below it */
.woocommerce table.shop_table thead th.product-subtotal,
.woocommerce table.cart th.product-subtotal { text-align: right !important; }

/* Checkout: returning customer notice stacks text + login link vertically */
.woocommerce-checkout .woocommerce-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.woocommerce-checkout .woocommerce-info .showlogin {
    display: block !important;
    margin-top: 0.25rem;
    margin-left: 0 !important;
    order: unset !important;
}

/* Checkout: returning customer / coupon collapsible panels */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce form.checkout_coupon,
.woocommerce form.login {
    background: var(--yas-card) !important;
    border-color: var(--yas-border) !important;
    color: var(--yas-text) !important;
}

/* Checkout form labels and field wrappers */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .woocommerce-billing-fields label,
.woocommerce-checkout .woocommerce-shipping-fields label,
.woocommerce-checkout h3,
.woocommerce-checkout abbr,
.woocommerce form .form-row label,
.woocommerce form p label {
    color: var(--yas-text-2) !important;
    background: transparent !important;
}

/* Kill Blocksy's gold highlight on "optional" labels */
.woocommerce-checkout .optional,
.woocommerce form .optional {
    color: var(--yas-muted) !important;
}

/* Checkout page background consistency */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-page .woocommerce {
    color: var(--yas-text) !important;
}

/* "Your order" heading */
.woocommerce-checkout h3#order_review_heading {
    color: var(--yas-text) !important;
    background: transparent !important;
}

/* Checkout order review panel */
#order_review,
#order_review_heading,
.woocommerce-checkout-review-order-table {
    background: var(--yas-surface) !important;
    color: var(--yas-text) !important;
    border-color: var(--yas-border) !important;
}
#order_review .cart-subtotal th,
#order_review .cart-subtotal td,
#order_review .order-total th,
#order_review .order-total td,
#order_review .shipping th,
#order_review .shipping td {
    color: var(--yas-text) !important;
    border-color: var(--yas-border) !important;
}

/* ============================================================
   SELECT2 — WooCommerce country/state dropdowns
   ============================================================ */

/* Container (replaces the native select) */
.select2-container--default .select2-selection--single {
    background-color: var(--yas-card) !important;
    border-color: var(--yas-border) !important;
    color: var(--yas-text) !important;
    height: 42px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--yas-text) !important;
    line-height: 40px !important;
    padding-left: 12px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-top-color: var(--yas-muted) !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-bottom-color: var(--yas-muted) !important;
    border-top-color: transparent !important;
}

/* Dropdown panel */
.select2-dropdown {
    background-color: var(--yas-card) !important;
    border-color: var(--yas-border) !important;
    color: var(--yas-text) !important;
}

/* Search box inside the dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: var(--yas-surface) !important;
    border-color: var(--yas-border) !important;
    color: var(--yas-text) !important;
    outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: var(--yas-muted) !important;
}

/* Individual options */
.select2-container--default .select2-results__option {
    color: var(--yas-text-2) !important;
    background-color: var(--yas-card) !important;
    padding: 8px 12px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--yas-border) !important;
    color: var(--yas-text) !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--yas-surface) !important;
    color: var(--yas-accent) !important;
}

/* ---- Blocksy sidebar & panels ---- */
.ct-sidebar { background: var(--yas-surface); }
.ct-widget { color: var(--yas-text-2); }

/* ---- Blocksy off-canvas / mobile menu ---- */
.ct-drawer-canvas { background: var(--yas-surface) !important; }
.ct-drawer-canvas a { color: var(--yas-text) !important; }

/* ---- Shop / archive pages — full-width up to 1900px ---- */
.woocommerce-shop .ct-container,
.post-type-archive-product .ct-container,
.tax-product_cat .ct-container {
    --theme-normal-container-max-width: 1900px;
    max-width: 1900px !important;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

/* ---- Gallery / category grid — flowing masonry (CSS columns) ----
   Items flow top-to-bottom per column at natural aspect ratio — no cropping.
   Blocksy card structure: li.product > figure > a.ct-media-container > img
                                       > h2.woocommerce-loop-product__title
                                       > span.price
                                       > .yas-card-meta (injected by PHP hook)
                                       > .ct-woo-card-actions
   ---- */

.woocommerce ul.products,
.woocommerce-page ul.products {
    column-count: 4 !important;
    column-gap: 16px !important;
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    break-inside: avoid !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
}

/* Image — full width, natural height, no crop.
   Blocksy makes .ct-media-container position:relative and the img position:absolute
   inside it, which collapses the container to zero height in a column layout.
   We reset to normal flow so the img's intrinsic dimensions drive card height. */
.woocommerce ul.products li.product figure,
.woocommerce-page ul.products li.product figure {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.woocommerce ul.products li.product figure .ct-media-container,
.woocommerce-page ul.products li.product figure .ct-media-container {
    position: static !important;      /* undo Blocksy's position:relative wrapper */
    display: block !important;
    width: 100% !important;
}

.woocommerce ul.products li.product figure img,
.woocommerce-page ul.products li.product figure img {
    position: static !important;      /* undo Blocksy's position:absolute on img */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: unset !important;
    border-radius: 2px 2px 0 0;
    transition: opacity 0.2s;
}

.woocommerce ul.products li.product:hover figure img,
.woocommerce-page ul.products li.product:hover figure img {
    opacity: 0.92;
}

/* Info strip below image */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--yas-font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    color: var(--yas-text) !important;
    margin: 10px 0 4px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: block !important;
    color: var(--yas-accent) !important;
    font-family: var(--yas-font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 0 4px !important;
}

/* "Prints from $X" label */
.yas-prints-from {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--yas-muted);
    margin-top: 2px;
}

.yas-prints-from .woocommerce-Price-amount {
    color: var(--yas-muted);
    font-weight: 400;
    font-size: inherit;
}

[data-yas-scheme="light"] .yas-prints-from,
[data-yas-scheme="light"] .yas-prints-from .woocommerce-Price-amount {
    color: #7a756e !important;
}

/* Medium + dimensions injected by PHP */
.yas-card-meta {
    font-size: 0.75rem;
    color: var(--yas-muted);
    line-height: 1.5;
    margin: 2px 0 8px;
}

/* Add to cart / Select options button */
.woocommerce ul.products li.product .ct-woo-card-actions,
.woocommerce-page ul.products li.product .ct-woo-card-actions {
    margin-top: 6px !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .ct-woo-card-actions .button,
.woocommerce-page ul.products li.product .ct-woo-card-actions .button {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    padding: 7px 12px !important;
    letter-spacing: 0.08em !important;
}

/* Sold Out badge */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    background-color: var(--yas-muted) !important;
    color: var(--yas-bg) !important;
    border-radius: 2px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* Category archive header */
.woocommerce .woocommerce-products-header {
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-products-header__title {
    font-family: var(--yas-font-heading);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--yas-text);
}

/* Filter/sort bar */
.woocommerce-ordering {
    color: var(--yas-muted);
    font-size: 0.8rem;
}

.woocommerce-result-count { display: none !important; }

.woocommerce nav.woocommerce-pagination { display: none !important; }

.woocommerce-ordering select {
    background-color: var(--yas-card) !important;
    color: var(--yas-text) !important;
    border-color: var(--yas-border) !important;
    border-radius: 2px;
    padding: 4px 8px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        column-count: 3 !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        column-count: 2 !important;
        column-gap: 10px !important;
    }
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 380px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        column-count: 1 !important;
    }
}

/* ---- Single product page ---- */

/* Enquire + AR — same row, equal flex width, together span full product width */
.yas-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.yas-inquiry-btn,
.yas-ar-open-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 16px;
    border: 1px solid var(--yas-border);
    border-radius: 2px;
    background: transparent;
    color: var(--yas-text-2) !important;
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.yas-inquiry-btn:hover,
.yas-ar-open-btn:hover {
    border-color: var(--yas-accent) !important;
    color: var(--yas-accent) !important;
}

.yas-ar-open-btn svg { flex-shrink: 0; }

/* Hide the PayPal express button until a variation is selected (PPCP marks it .ppcp-disabled) */
#ppc-button-ppcp-gateway.ppcp-disabled { display: none !important; }

/* Product tab custom content */
.yas-product-tab-content {
    color: var(--yas-text-2);
    line-height: 1.7;
}

.yas-product-tab-content p { margin-bottom: 1em; }


/* Variation selector */
.woocommerce div.product .variations td.label label {
    color: var(--yas-text-2);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.woocommerce div.product .variations select {
    background-color: var(--yas-card) !important;
    color: var(--yas-text) !important;
    border-color: var(--yas-border) !important;
    border-radius: 2px;
    padding: 8px 12px;
    min-width: 180px;
}

/* Quantity — hidden by default on variable products (JS shows it for prints only) */
.woocommerce div.product form.variations_form .quantity {
    display: none;
}

/* Out of stock label */
.woocommerce div.product .stock.out-of-stock {
    color: var(--yas-muted) !important;
    font-size: 0.8rem;
}

/* Light mode — gallery grid */
[data-yas-scheme="light"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
[data-yas-scheme="light"] .woocommerce-page ul.products li.product .woocommerce-loop-product__title { color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce ul.products li.product .price,
[data-yas-scheme="light"] .woocommerce-page ul.products li.product .price { color: #4a4540 !important; }
[data-yas-scheme="light"] .yas-card-meta { color: #7a756e !important; }
[data-yas-scheme="light"] .woocommerce-ordering select { background-color: #ffffff !important; color: #1a1714 !important; border-color: #ddd8d0 !important; }

/* Light mode — product page */
[data-yas-scheme="light"] .yas-inquiry-btn,
[data-yas-scheme="light"] .yas-ar-open-btn { border-color: #ddd8d0 !important; color: #4a4540 !important; }
[data-yas-scheme="light"] .yas-inquiry-btn:hover,
[data-yas-scheme="light"] .yas-ar-open-btn:hover { border-color: #c9a96e !important; color: #c9a96e !important; }
[data-yas-scheme="light"] .yas-product-tab-content { color: #4a4540 !important; }
[data-yas-scheme="light"] .woocommerce div.product .variations select { background-color: #ffffff !important; color: #1a1714 !important; border-color: #ddd8d0 !important; }

/* ---- Dark/light mode pill toggle ---- */
.yas-scheme-switch {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    line-height: 1;
}

.yas-switch-track {
    position: relative;
    display: block;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background-color: #4a4540;
    border: 1px solid #6a6460;
    transition: background-color 0.25s, border-color 0.25s;
}

.yas-scheme-switch:hover .yas-switch-track {
    border-color: var(--yas-accent);
    background-color: #5a5550;
}

.yas-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #c8c4be;
    transition: transform 0.25s, background-color 0.25s;
}

/* Light scheme: knob slides right, track and knob turn gold */
[data-yas-scheme="light"] .yas-switch-track {
    background-color: var(--yas-accent);
    border-color: var(--yas-accent);
}

[data-yas-scheme="light"] .yas-switch-knob {
    transform: translateX(16px);
    background-color: var(--yas-bg);
}

/* ---- Light scheme overrides ----
   RULE: never rely on CSS variable overrides — Blocksy's inline <style> loads
   after our stylesheet (same :root specificity, later source order = it wins).
   Use explicit !important properties only.
   ---- */

/* Page background & base text */
[data-yas-scheme="light"] body,
[data-yas-scheme="light"] .site                    { background-color: #f8f6f2 !important; color: #1a1714 !important; }

/* Header — Blocksy sets bg via var(--theme-palette-color-8) scoped to [data-header*="type-1"] */
[data-yas-scheme="light"] .ct-header,
[data-yas-scheme="light"] .ct-header [data-row]    { background-color: #ffffff !important; background-image: none !important; }
[data-yas-scheme="light"] .ct-header               { border-bottom-color: #ddd8d0 !important; }
[data-yas-scheme="light"] .ct-header.ct-sticky-header { background-color: rgba(248,246,242,0.97) !important; }

/* Header text, nav links, icons */
[data-yas-scheme="light"] .ct-header,
[data-yas-scheme="light"] .ct-header a,
[data-yas-scheme="light"] .ct-header button,
[data-yas-scheme="light"] .ct-header .ct-menu-link { color: #1a1714 !important; }
[data-yas-scheme="light"] .ct-header a:hover,
[data-yas-scheme="light"] .ct-header .ct-menu-link:hover { color: #c9a96e !important; }

/* Site title */
[data-yas-scheme="light"] .site-title a,
[data-yas-scheme="light"] [data-id="logo"] .site-title a { color: #1a1714 !important; }

/* Search & cart icons — Blocksy uses --theme-link-initial-color and --theme-icon-color */
[data-yas-scheme="light"] .ct-header-search,
[data-yas-scheme="light"] .ct-header-search svg,
[data-yas-scheme="light"] .ct-header-cart a,
[data-yas-scheme="light"] .ct-header-cart svg,
[data-yas-scheme="light"] .ct-header-cart .ct-icon-container,
[data-yas-scheme="light"] [data-id="search"] button,
[data-yas-scheme="light"] [data-id="cart"] a      { color: #1a1714 !important; fill: currentColor !important; }

/* Headings */
[data-yas-scheme="light"] h1,
[data-yas-scheme="light"] h2,
[data-yas-scheme="light"] h3,
[data-yas-scheme="light"] h4,
[data-yas-scheme="light"] h5,
[data-yas-scheme="light"] h6                       { color: #1a1714 !important; }

/* Post cards — Blocksy sets bg via var(--theme-palette-color-8) */
[data-yas-scheme="light"] .entry-card              { background-color: #ffffff !important; color: #1a1714 !important; }
[data-yas-scheme="light"] .entry-card .entry-title a { color: #1a1714 !important; }
[data-yas-scheme="light"] .entry-card .entry-title a:hover { color: #c9a96e !important; }
[data-yas-scheme="light"] .entry-card .entry-meta,
[data-yas-scheme="light"] .entry-card .entry-meta a { color: #7a756e !important; }
[data-yas-scheme="light"] .entry-card .entry-excerpt { color: #4a4540 !important; }

/* Gallery grid — sort bar */
[data-yas-scheme="light"] .woocommerce-ordering select        { background-color: #ffffff !important; color: #1a1714 !important; border-color: #ddd8d0 !important; }

/* Footer */
[data-yas-scheme="light"] .ct-footer,
[data-yas-scheme="light"] .site-footer             { background-color: #f0ece5 !important; color: #7a756e !important; border-top-color: #ddd8d0 !important; }
[data-yas-scheme="light"] .ct-footer a             { color: #7a756e !important; }
[data-yas-scheme="light"] .ct-footer a:hover       { color: #c9a96e !important; }

/* Forms */
[data-yas-scheme="light"] input,
[data-yas-scheme="light"] select,
[data-yas-scheme="light"] textarea                 { background-color: #ffffff !important; color: #1a1714 !important; border-color: #ddd8d0 !important; }

/* Checkout notices / collapsible panels */
[data-yas-scheme="light"] .woocommerce-checkout .woocommerce-info,
[data-yas-scheme="light"] .woocommerce-checkout .woocommerce-form-login,
[data-yas-scheme="light"] .woocommerce-checkout .woocommerce-form-coupon,
[data-yas-scheme="light"] .woocommerce form.checkout_coupon,
[data-yas-scheme="light"] .woocommerce form.login { background: #f0ece5 !important; border-color: #ddd8d0 !important; color: #1a1714 !important; }

/* Checkout form labels */
[data-yas-scheme="light"] .woocommerce-checkout .form-row label,
[data-yas-scheme="light"] .woocommerce-checkout .woocommerce-billing-fields label,
[data-yas-scheme="light"] .woocommerce-checkout .woocommerce-shipping-fields label,
[data-yas-scheme="light"] .woocommerce-checkout h3,
[data-yas-scheme="light"] .woocommerce-checkout abbr,
[data-yas-scheme="light"] .woocommerce form .form-row label,
[data-yas-scheme="light"] .woocommerce form p label { color: #1a1714 !important; background: transparent !important; }
[data-yas-scheme="light"] .woocommerce-checkout .optional,
[data-yas-scheme="light"] .woocommerce form .optional { color: #7a756e !important; }

/* Checkout order review panel (right column) */
[data-yas-scheme="light"] #order_review,
[data-yas-scheme="light"] #order_review_heading,
[data-yas-scheme="light"] .woocommerce-checkout-review-order-table { background: #ffffff !important; color: #1a1714 !important; border-color: #ddd8d0 !important; }
[data-yas-scheme="light"] #order_review .cart-subtotal th,
[data-yas-scheme="light"] #order_review .cart-subtotal td,
[data-yas-scheme="light"] #order_review .order-total th,
[data-yas-scheme="light"] #order_review .order-total td,
[data-yas-scheme="light"] #order_review .shipping th,
[data-yas-scheme="light"] #order_review .shipping td { color: #1a1714 !important; border-color: #ddd8d0 !important; }

/* Checkout shop_table (order summary, cart) */
[data-yas-scheme="light"] .woocommerce table.shop_table { background: transparent !important; border-color: #ddd8d0 !important; color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce table.shop_table th { color: #4a4540 !important; border-bottom-color: #ddd8d0 !important; }
[data-yas-scheme="light"] .woocommerce table.shop_table td { border-top-color: #ddd8d0 !important; color: #1a1714 !important; }

/* Payment section */
[data-yas-scheme="light"] #payment,
[data-yas-scheme="light"] .woocommerce-checkout #payment { background: #f0ece5 !important; border-color: #ddd8d0 !important; color: #1a1714 !important; }
[data-yas-scheme="light"] #payment .payment_methods li label { color: #1a1714 !important; }

/* Order-received / thank-you page */
[data-yas-scheme="light"] .woocommerce-thankyou-order-received { background: #edf5ec !important; color: #1a4f1a !important; border-top-color: #6e9e6e !important; }
[data-yas-scheme="light"] .woocommerce-order { color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce-order-overview { border-color: #ddd8d0 !important; color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce-order-overview li { color: #4a4540 !important; border-color: #ddd8d0 !important; }
[data-yas-scheme="light"] .woocommerce-order-overview li strong { color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce-order-details h2,
[data-yas-scheme="light"] .woocommerce-column__title { color: #1a1714 !important; }
[data-yas-scheme="light"] .woocommerce-customer-details address { color: #4a4540 !important; border-color: #ddd8d0 !important; background: #faf8f5 !important; }

/* Off-canvas / mobile drawer */
[data-yas-scheme="light"] .ct-drawer-canvas        { background: #ffffff !important; }
[data-yas-scheme="light"] .ct-drawer-canvas a      { color: #1a1714 !important; }

/* Search modal */
[data-yas-scheme="light"] #search-modal            { background-color: rgba(248,246,242,0.98) !important; }

/* Strip inline colour/font styles pasted into product descriptions */
.woocommerce div.product .woocommerce-tabs .panel *,
.woocommerce div.product .woocommerce-product-details__short-description * {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background-color: transparent !important;
}

/* Hide SKU on product page */
.product_meta .sku_wrapper { display: none !important; }

/* Blocksy woocommerce.min.css hardcodes text-transform:uppercase on .product[class*=gallery] .product_meta > span
   which includes .posted_in (the Categories line). Override it. */
.product_meta > span,
.product_meta .posted_in,
.product_meta .posted_in a,
.product_meta .tagged_as,
.product_meta .tagged_as a {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
}

/* ============================================================
   PRODUCT GALLERY — thumbnails left (uses Blocksy's native .thumbs-left),
   square main viewer, no zoom, no reflow
   ============================================================ */

/* Blocksy's .thumbs-left handles the side-by-side layout;
   we just set the thumb width and tweak thumbnail appearance */
.thumbs-left {
    --thumbs-width: 72px !important;
    --thumbs-spacing: 10px !important;
}

/* Square main viewer.
   Blocksy JS sets --flexy-view-height and height via inline style on slide
   change. The MutationObserver in yas_product_lightbox strips those as they
   land. We give .flexy-view a fixed aspect-ratio square and make everything
   inside fill it absolutely. */
.woocommerce-product-gallery .flexy-view {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: 65vh !important;
    transition: none !important;
    overflow: hidden !important;
}

/* .flexy-items is a flex row of .flexy-item slides; make it fill the view */
.woocommerce-product-gallery .flexy-view .flexy-items {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Each slide: fill the flex track height */
.woocommerce-product-gallery .flexy-view .flexy-item {
    position: relative !important;
    height: 100% !important;
}

/* ct-media-container is normally position:relative with padding-bottom trick;
   replace with a simple full-size block */
.woocommerce-product-gallery .flexy-view .ct-media-container {
    position: absolute !important;
    inset: 0 !important;
    padding-bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

/* Image: fill the container, preserve aspect ratio without cropping */
.woocommerce-product-gallery .flexy-view img {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Single-image products render figure.ct-media-container directly inside
   ct-product-gallery-container (no .flexy-view wrapper). Cap and contain. */
.ct-product-gallery-container > figure.ct-media-container {
    max-height: 65vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-bottom: 0 !important;
}
.ct-product-gallery-container > figure.ct-media-container img {
    max-height: 65vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    position: static !important;
}

/* Thumbnail active state — gold border */
.thumbs-left .flexy-pills li.active,
.thumbs-left .flexy-pills li:hover {
    border: 2px solid #c9a96e !important;
    border-radius: 3px !important;
    opacity: 1 !important;
}

/* Cursors */
.woocommerce-product-gallery,
.woocommerce-product-gallery * { cursor: default !important; }
.woocommerce-product-gallery .flexy-view,
.woocommerce-product-gallery .flexy-view img { cursor: pointer !important; }
.thumbs-left .flexy-pills li { cursor: pointer !important; }

/* Disable WooCommerce zoom overlay injected by wc-single-product.js */
.woocommerce-product-gallery .zoomImg { display: none !important; }
.woocommerce-product-gallery figure.woocommerce-product-gallery__wrapper { overflow: visible !important; }

/* ============================================================
   PRODUCT IMAGE LIGHTBOX
   ============================================================ */
#yas-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#yas-lightbox.yas-lightbox-open {
    display: flex;
}
#yas-lightbox-img {
    max-width: 80vw;
    max-height: 88vh;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 60px rgba(0,0,0,0.8);
    cursor: default;
    display: block;
    flex-shrink: 0;
}
#yas-lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #f0ece6;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    transition: opacity 0.15s;
    z-index: 100000;
}
#yas-lightbox-close:hover { opacity: 1; }
#yas-lightbox-prev,
#yas-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(20, 18, 16, 0.75);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #f0ece6;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    padding: 0;
    transition: opacity 0.15s, background 0.15s;
    z-index: 100000;
    user-select: none;
}
#yas-lightbox-prev { left: 24px; }
#yas-lightbox-next { right: 24px; }
#yas-lightbox-prev:hover,
#yas-lightbox-next:hover {
    opacity: 1;
    background: rgba(20, 18, 16, 0.95);
}

/* ============================================================
   DROPDOWN NAV
   Blocksy uses [class*=animated-submenu] > .sub-menu with
   background-color: var(--dropdown-background-color, var(--theme-palette-color-4))
   and sets --theme-link-initial-color: var(--theme-palette-color-8) on links
   inside an inline <style> block with [data-header*="type-1"] specificity.
   We must match or beat that specificity and set the CSS vars + hard colours.
   ============================================================ */

/* Reset text-transform on the sub-menu container so all .ct-menu-link inside inherit none.
   Blocksy's compiled CSS: .menu .ct-menu-link { text-transform: var(--theme-text-transform) }
   Setting the variable on the container means the link reads none before we even touch it. */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
    --theme-text-transform: none !important;
}

/* Override the CSS variable Blocksy reads for the dropdown background */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
    --dropdown-background-color: #1e1c1a !important;
    background-color: #1e1c1a !important;
    border: 1px solid #3a3632 !important;
    border-top: 2px solid #c9a96e !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.65) !important;
    padding: 8px 0 !important;
    min-width: 340px !important;
    width: max-content !important;
    max-width: 520px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Ensure the parent <li> doesn't constrain the sub-menu width */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li {
    position: relative !important;
    overflow: visible !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > [class*="animated-submenu"],
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > .ct-submenu-container {
    overflow: visible !important;
    width: auto !important;
    min-width: 0 !important;
}

/* Override link colour — Blocksy sets --theme-link-initial-color: palette-color-8 (#141210 = near-black) */
/* Also override --theme-text-transform which Blocksy inherits from top-level nav and renders via text-transform */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
    --theme-link-initial-color: #c8c4be !important;
    --theme-font-size: 15px !important;
    --theme-font-weight: 400 !important;
    --theme-text-transform: none !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    color: #c8c4be !important;
    padding: 9px 20px !important;
    white-space: nowrap !important;
    transition: color 0.15s, background-color 0.15s !important;
}
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover {
    color: #c9a96e !important;
    background-color: rgba(201,169,110,0.1) !important;
}

/* "Browse by Category" — non-clickable section label (item 2477 only) */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2477 .ct-menu-link {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #8a8278 !important;
    padding: 14px 20px 6px !important;
    cursor: default !important;
    pointer-events: none !important;
}
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2477 .ct-menu-link:hover {
    background-color: transparent !important;
    color: #8a8278 !important;
}

/* Social Media sub-links are custom items too — restore clicks */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2507 .ct-menu-link,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2508 .ct-menu-link,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2509 .ct-menu-link,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2510 .ct-menu-link,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2511 .ct-menu-link {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    color: #d4c9bb !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2507 .ct-menu-link:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2508 .ct-menu-link:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2509 .ct-menu-link:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2510 .ct-menu-link:hover,
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2511 .ct-menu-link:hover {
    color: #c9a96e !important;
    background-color: rgba(201,169,110,0.07) !important;
}

/* Divider line above "Browse by Category" */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2477 {
    border-top: 1px solid #3a3632 !important;
    margin-top: 6px !important;
}

/* Category items — indent to visually nest under the label */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-object-product_cat .ct-menu-link {
    padding-left: 32px !important;
    font-size: 14px !important;
}

/* Light mode: white panel, dark text */
[data-yas-scheme="light"] [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
    --dropdown-background-color: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #ddd8d0 !important;
    border-top-color: #c9a96e !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
[data-yas-scheme="light"] [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
    --theme-link-initial-color: #4a4540 !important;
    color: #4a4540 !important;
}
[data-yas-scheme="light"] [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover {
    color: #c9a96e !important;
    background-color: rgba(201,169,110,0.07) !important;
}
[data-yas-scheme="light"] [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2477 .ct-menu-link {
    color: #8a8278 !important;
}
[data-yas-scheme="light"] [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li.menu-item-2477 {
    border-top-color: #ddd8d0 !important;
}

/* ============================================================
   SOLD-OUT BADGES — hide overlaid "SOLD OUT" ribbon on images
   (both shop grid and single product gallery)
   ============================================================ */
span.out-of-stock-badge {
    display: none !important;
}

/* ============================================================
   SOLD price replacement — matches dollar price weight/size/colour.
   !important on color beats Blocksy's inherited .price { color: var(--theme-text-color) }
   which wins on .outofstock cards without it.
   ============================================================ */
.yas-sold-label {
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--yas-accent) !important;
    display: inline !important;
}
.yas-sold-prints {
    font-size: 0.82em !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    opacity: 0.85;
}

/* ============================================================
   HEADER LOGO — signature PNG, no duplicated text
   ============================================================ */

/* Expand the header row to fit the taller logo.
   NOTE: CSS custom properties (--height) cannot be overridden with !important.
   Blocksy reads var(--height) and applies it via JS/Flexbox; we override the
   actual rendered height with min-height on the row's direct child container. */
[data-header*="type-1"] .ct-header [data-row*="middle"] > .ct-container {
    min-height: 220px !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
/* Also expand the sticky clone */
[data-header*="type-1"] .ct-header.ct-sticky-header [data-row*="middle"] > .ct-container {
    min-height: 220px !important;
    height: auto !important;
}

/* Switch to mobile hamburger below 1280px: hide desktop header, show mobile header.
   Blocksy uses separate <div data-device="desktop"> and <div data-device="mobile">
   wrappers inside #header AND inside #offcanvas. At 1000-1279px Blocksy's own JS
   still renders the desktop offcanvas pane (empty). We must force the mobile pane
   visible in both places. */
@media (max-width: 1279.98px) {
    #header [data-device="desktop"]   { display: none !important; }
    #header [data-device="mobile"]    { display: block !important; }
    /* Offcanvas: hide empty desktop pane, show mobile pane */
    #offcanvas .ct-panel-content[data-device="desktop"] { display: none !important; }
    #offcanvas .ct-panel-content[data-device="mobile"]  { display: block !important; }
}
@media (min-width: 1280px) {
    #header [data-device="desktop"] { display: block !important; }
    #header [data-device="mobile"]  { display: none !important; }
}

/* Mobile: shrink header row, tighten icon spacing */
@media (max-width: 999.98px) {
    [data-header*="type-1"] .ct-header [data-row*="middle"] > .ct-container {
        min-height: 70px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    [data-header*="type-1"] .ct-header.ct-sticky-header [data-row*="middle"] > .ct-container {
        min-height: 70px !important;
    }
    /* Tighten gap between header icons */
    [data-header*="type-1"] .ct-header [data-row*="middle"] [data-column="end"] {
        gap: 6px !important;
    }
}

/* Hide site name text — only the calligraphy image should show */
[data-id="logo"] .site-title-container,
[data-id="logo"] .site-title,
.site-branding .site-title-container {
    display: none !important;
}

/* Logo image: 240px tall on desktop, 52px on mobile (mobile rule above wins
   because it is inside a media query with equal specificity but later source order) */
[data-id="logo"] img,
.site-branding img,
.site-logo-container img {
    height: 240px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

@media (max-width: 999.98px) {
    [data-id="logo"] img,
    .site-branding img,
    .site-logo-container img {
        height: 52px !important;
    }
}

/* Hide "Home" page title — Blocksy renders it inside .hero-section > header.entry-header */
.home .hero-section,
.home .hero-section .entry-header,
.home header.entry-header {
    display: none !important;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* ---- Hero ---- */
/*
 * WP 6.x global-styles-inline-css applies to all direct children of
 * .is-layout-constrained (except .alignfull):
 *   max-width: var(--wp--style--global--content-size); margin-left: auto !important
 * That rule has specificity (0,1,0) via `:root :where(...)`, same as .yas-hero.
 * But it loads AFTER our stylesheet so it wins at equal specificity.
 * Fix: bump our specificity to (0,2,0) via body .yas-hero so we beat it.
 */
body .yas-hero {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
    height: 48vw;
    min-height: 380px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Home: drop the content-area top spacing so the hero sits flush under the header.
 * The actual DOM is: #main > article > .entry-content.is-layout-constrained > section.yas-hero
 * WP global styles also adds margin-block-start: var(--theme-content-spacing) to first child.
 * Zero it with a higher-specificity match. */
.home .entry-content.is-layout-constrained,
.page-id-2495 .entry-content.is-layout-constrained {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* WP sets margin-block-start on children of .is-layout-constrained — zero it for the hero */
.home .entry-content .yas-hero,
.page-id-2495 .entry-content .yas-hero {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Also target the Blocksy article/container wrappers */
.home #main > .ct-container-full,
.home #main .ct-container-full[data-vertical-spacing],
.home article.page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Prevent body/html from clipping the 100vw breakout */
body.home, body.page-id-2495 {
    overflow-x: clip;
}

.yas-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.yas-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0.6) 100%);
    z-index: 1;
}

.yas-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
}

.yas-hero-tagline {
    font-family: var(--yas-font-heading);
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 400;
    color: #f0ece6;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.yas-hero-sub {
    font-family: var(--yas-font-body);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(240,236,230,0.85);
    letter-spacing: 0.04em;
    margin: 0 0 2.5rem;
}

.yas-hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 1px solid rgba(201,169,110,0.8);
    color: #c9a96e !important;
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.yas-hero-cta:hover {
    background: rgba(201,169,110,0.15);
    border-color: #c9a96e;
    color: #e0c898 !important;
}

/* ---- Home sections ---- */
.yas-home-section {
    padding: 80px 0;
}

.yas-home-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.yas-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.yas-section-title {
    font-family: var(--yas-font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--yas-text);
    margin: 0;
}

.yas-section-more {
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yas-accent) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.yas-section-more:hover { color: var(--yas-accent-h) !important; }

/* ---- Featured works: 3-col grid inside home section ---- */
.yas-home-featured .woocommerce ul.products,
.yas-home-featured .woocommerce-page ul.products {
    column-count: 3 !important;
}

/* ---- About section ---- */
.yas-home-about {
    background: var(--yas-surface);
    border-top: 1px solid var(--yas-border);
    border-bottom: 1px solid var(--yas-border);
}

.yas-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.yas-about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.yas-about-text h2 {
    margin-top: 0;
}

.yas-about-text p {
    color: var(--yas-text-2);
    line-height: 1.75;
    margin-bottom: 1.2em;
}

.yas-about-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--yas-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yas-accent) !important;
    text-decoration: none !important;
}

.yas-about-link:hover { color: var(--yas-accent-h) !important; }

/* Light mode home */
[data-yas-scheme="light"] .yas-home-about         { background: #f0ece5 !important; border-color: #ddd8d0 !important; }
[data-yas-scheme="light"] .yas-about-text p       { color: #4a4540 !important; }
[data-yas-scheme="light"] .yas-section-title      { color: #1a1714 !important; }

@media (max-width: 800px) {
    .yas-about-grid { grid-template-columns: 1fr; gap: 32px; }
    .yas-home-featured .woocommerce ul.products,
    .yas-home-featured .woocommerce-page ul.products { column-count: 2 !important; }
}

@media (max-width: 480px) {
    .yas-hero-content { padding: 0 16px; }
    .yas-home-section { padding: 48px 0; }
    .yas-home-featured .woocommerce ul.products,
    .yas-home-featured .woocommerce-page ul.products { column-count: 1 !important; }
}

/* ============================================================
   HOME PAGE — CATEGORY TILES
   2 rows × 3 cols, uniform fixed-height tiles, name above image
   ============================================================ */

/* Ensure .yas-home-section direct child of .is-layout-constrained can use full width.
   WP global styles caps it at --theme-block-max-width (~1290px) + margin:auto — that's fine.
   But we must ensure the section itself doesn't shrink from the outer max-width constraint. */
.home .entry-content .yas-home-section,
.page-id-2495 .entry-content .yas-home-section {
    width: 100% !important;
    box-sizing: border-box !important;
}

.yas-home-categories {
    background: var(--yas-bg);
}

.yas-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

.yas-cat-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    background: var(--yas-surface);
    border: 1px solid var(--yas-border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.yas-cat-tile:hover {
    border-color: var(--yas-accent);
}

.yas-cat-tile-name {
    font-family: var(--yas-font-heading);
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 400;
    color: var(--yas-text);
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 14px 16px 12px;
    display: block;
    flex-shrink: 0;
}

.yas-cat-tile:hover .yas-cat-tile-name {
    color: var(--yas-accent);
}

.yas-cat-tile-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.yas-cat-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.yas-cat-tile:hover .yas-cat-tile-img img {
    transform: scale(1.04);
}

/* Archive & Sold Works tile — greyed image with SOLD stamp */
.yas-cat-tile--sold-archive .yas-cat-tile-img img {
    filter: grayscale(45%) brightness(0.72);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.yas-cat-tile--sold-archive:hover .yas-cat-tile-img img {
    filter: grayscale(30%) brightness(0.8);
}

.yas-cat-tile-img {
    position: relative;
}

.yas-sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-family: var(--yas-font-body);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 0.18em;
    color: rgba(210, 40, 40, 0.95);
    border: 4px solid rgba(210, 40, 40, 0.9);
    padding: 5px 16px;
    border-radius: 3px;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.4);
}

/* Light mode */
[data-yas-scheme="light"] .yas-home-categories { background: #f8f6f2; }
[data-yas-scheme="light"] .yas-cat-tile { background: #ffffff; border-color: #ddd8d0; }
[data-yas-scheme="light"] .yas-cat-tile-name { color: #1a1714; }
[data-yas-scheme="light"] .yas-cat-tile:hover { border-color: #c9a96e; }
[data-yas-scheme="light"] .yas-cat-tile:hover .yas-cat-tile-name { color: #c9a96e; }

/* Responsive */
@media (max-width: 900px) {
    .yas-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .yas-cat-tile-img { height: 180px; }
}

@media (max-width: 520px) {
    .yas-cat-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .yas-cat-tile-img { height: 160px; }
}

/* ============================================================
   STATIC PAGES — shared intro style
   ============================================================ */
.yas-page-intro {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--yas-color-text-secondary, #c8bfb2);
    margin-bottom: 2rem;
}

/* ============================================================
   EXHIBITIONS — year timeline
   ============================================================ */
.yas-exhibitions {
    max-width: 760px;
}
.yas-ex-year {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(201,169,110,0.18);
}
.yas-ex-year:last-child {
    border-bottom: 1px solid rgba(201,169,110,0.18);
}
.yas-ex-year-label {
    font-family: var(--yas-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #c9a96e;
    padding-top: 0.15rem;
    white-space: nowrap;
}
.yas-ex-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.yas-ex-list li {
    padding: 0.2rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}
.yas-ex-list li + li {
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 600px) {
    .yas-ex-year {
        grid-template-columns: 1fr;
        gap: 0.4rem 0;
    }
}

/* ============================================================
   COMMISSIONS — value cards + numbered steps
   ============================================================ */
.yas-commission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}
.yas-commission-value {
    background: rgba(201,169,110,0.07);
    border: 1px solid rgba(201,169,110,0.18);
    border-top: 2px solid #c9a96e;
    padding: 1.5rem;
    border-radius: 3px;
}
.yas-commission-value h3 {
    font-family: var(--yas-font-heading);
    font-size: 1rem;
    color: #c9a96e;
    margin: 0 0 0.6rem;
}
.yas-commission-value p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    color: var(--yas-color-text-secondary, #c8bfb2);
}

.yas-commission-steps {
    list-style: none;
    margin: 1rem 0 2.5rem;
    padding: 0;
    max-width: 640px;
    counter-reset: none;
}
.yas-commission-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.yas-commission-steps li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.yas-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #c9a96e;
    color: #c9a96e;
    font-family: var(--yas-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.yas-commission-steps strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--yas-color-text, #e8e0d8);
}
.yas-commission-steps p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--yas-color-text-secondary, #c8bfb2);
}

@media (max-width: 640px) {
    .yas-commission-values { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT — two-column layout
   ============================================================ */
.yas-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}
.yas-contact-info h2 {
    font-family: var(--yas-font-heading);
    font-size: 1.35rem;
    color: #c9a96e;
    margin-bottom: 1rem;
}
.yas-contact-info a {
    color: #c9a96e;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,169,110,0.4);
}
.yas-contact-info a:hover {
    border-bottom-color: #c9a96e;
}

@media (max-width: 700px) {
    .yas-contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   BIOGRAPHY — photo layouts
   ============================================================ */

/* Lead: text left, portrait right */
.yas-bio-lead {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3.5rem;
}
.yas-bio-lead-img img {
    width: 100%;
    border-radius: 3px;
    display: block;
}

/* Section rows: img left or right beside text */
.yas-bio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(201,169,110,0.14);
}
.yas-bio-section--img-right { grid-template-columns: 1fr 380px; }
.yas-bio-section--img-left  { grid-template-columns: 320px 1fr; }

.yas-bio-section--img-left  .yas-bio-section-img  { order: 1; }
.yas-bio-section--img-left  .yas-bio-section-text { order: 2; }
.yas-bio-section--img-right .yas-bio-section-text { order: 1; }
.yas-bio-section--img-right .yas-bio-section-img  { order: 2; }

.yas-bio-section-img img {
    width: 100%;
    border-radius: 3px;
    display: block;
}
.yas-bio-img-caption {
    display: block;
    font-size: 0.78rem;
    color: var(--yas-color-text-secondary, #c8bfb2);
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.03em;
}
.yas-bio-section h2 {
    margin-top: 0;
}

@media (max-width: 860px) {
    .yas-bio-lead,
    .yas-bio-section,
    .yas-bio-section--img-right,
    .yas-bio-section--img-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .yas-bio-lead-img,
    .yas-bio-section--img-left  .yas-bio-section-img,
    .yas-bio-section--img-right .yas-bio-section-img {
        order: -1;
    }
    .yas-bio-lead-img img,
    .yas-bio-section-img img {
        max-height: 420px;
        object-fit: cover;
        object-position: center top;
    }
}

/* ============================================================
   AR — trigger button + modal
   ============================================================ */

/* Modal backdrop */
#yas-ar-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#yas-ar-modal[hidden] { display: none; }

/* Modal panel */
#yas-ar-modal-inner {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    background: #1a1815;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#yas-ar-modal-title {
    margin: 0;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    font-family: var(--yas-font-heading);
    font-size: 1rem;
    color: var(--yas-text);
    border-bottom: 1px solid var(--yas-border);
    flex-shrink: 0;
}

#yas-ar-modal-inner model-viewer {
    flex: 1;
    min-height: 0;
    aspect-ratio: 4/3;
    width: 100%;
    display: block;
}

/* Close button */
#yas-ar-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--yas-text-2);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    padding: 0.25rem 0.5rem;
}
#yas-ar-close:hover { color: var(--yas-accent); }

/* AR slot button inside modal */
.yas-ar-slot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,169,110,0.92);
    color: #1a1815;
    border: none;
    border-radius: 3px;
    padding: 0.65rem 1.2rem;
    font-family: var(--yas-font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.yas-ar-slot-btn:hover { background: rgba(201,169,110,1); }
.yas-ar-slot-btn svg { flex-shrink: 0; }

/* ============================================================
   Gallery/Welcome page — landscape images fill text height
   ============================================================ */
.page-id-1804 .yas-bio-lead,
.page-id-1804 .yas-bio-section {
    align-items: stretch;
}
.page-id-1804 .yas-bio-section--img-right {
    grid-template-columns: 1fr 340px !important;
}
.page-id-1804 .yas-bio-lead-img,
.page-id-1804 .yas-bio-section-img {
    display: flex;
    flex-direction: column;
}
.page-id-1804 .yas-bio-lead-img a,
.page-id-1804 .yas-bio-section-img a {
    display: block;
    flex: 1;
    min-height: 0;
}
.page-id-1804 .yas-bio-lead-img img,
.page-id-1804 .yas-bio-section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
    display: block;
}

/* Search in off-canvas panel: make it look and behave like a top-level nav item.
   Blocksy adds ct-hidden-sm (display:none !important) — we override inside the panel. */
#offcanvas .ct-panel-content[data-device="mobile"] .ct-header-search {
    display: flex !important;
    flex-direction: row-reverse !important; /* icon right, label left — matches Blocksy default */
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
    border: none !important;
    border-bottom: 1px solid var(--yas-border) !important;
    background: transparent !important;
    cursor: pointer !important;
    text-align: left !important;

    /* Match mobile-menu nav item typography */
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--yas-text) !important;
}

#offcanvas .ct-panel-content[data-device="mobile"] .ct-header-search:hover {
    color: var(--yas-accent) !important;
}

/* Show "Search" label */
#offcanvas .ct-panel-content[data-device="mobile"] .ct-header-search .ct-label {
    display: inline !important;
    order: 1 !important;
}

/* Icon on the right, sized to match */
#offcanvas .ct-panel-content[data-device="mobile"] .ct-header-search .ct-icon {
    order: 2 !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   ARTMOST LOGOTYPE — footer copyright
   ============================================================ */
/* Footer copyright text — force visible in both schemes */
.ct-footer-copyright {
    color: var(--yas-muted) !important;
}
[data-yas-scheme="light"] .ct-footer-copyright {
    color: #7a756e !important;
}

.artmost-logo-link {
    text-decoration: none !important;
    border: none !important;
}
.artmost-logo {
    font-family: "Zodiak", Georgia, serif;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: 1.45em;
    line-height: 1;
    color: var(--yas-muted);
    display: inline;
    vertical-align: -0.05em;
}
.artmost-logo .ring {
    display: inline-block;
    width: .46em;
    height: .46em;
    border: .07em solid #E8500A;
    border-radius: 50%;
    margin-inline: .03em;
    vertical-align: 0.05em;
}
.artmost-logo .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.artmost-logo-link:hover .artmost-logo {
    color: #E8500A;
}
[data-yas-scheme="light"] .artmost-logo {
    color: #7a756e;
}

/* Mobile header: injected search + cart icons */
@media (max-width: 999.98px) {
    #header [data-device="mobile"] .yas-mobile-icon {
        color: var(--yas-text-2) !important;
        pointer-events: auto !important;
    }
    #header [data-device="mobile"] .yas-mobile-icon:hover {
        color: var(--yas-accent) !important;
    }
    /* hide cart dropdown — tap goes straight to cart page */
    #header [data-device="mobile"] .ct-header-cart [data-placement] {
        display: none !important;
    }
}

/* ============================================================
   PRINT / TYPE SELECTOR — product page
   ============================================================ */

.yas-type-selector {
    margin: 1.25rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* Original button */
.yas-orig-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .8rem 1.1rem;
    background: transparent;
    border: 1.5px solid var(--yas-border);
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: var(--yas-text);
    transition: border-color .18s, background .18s;
    font-family: inherit;
}
.yas-orig-btn:hover {
    border-color: var(--yas-accent);
}
.yas-orig-btn.is-selected {
    border-color: var(--yas-accent);
    background: color-mix(in srgb, var(--yas-accent) 8%, transparent);
}
.yas-type-label {
    font-family: 'Tenor Sans', serif;
    font-size: .95rem;
    letter-spacing: .03em;
    flex: 1;
}
.yas-type-badge {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--yas-accent);
    border: 1px solid var(--yas-accent);
    padding: .15em .45em;
    border-radius: 3px;
    white-space: nowrap;
}

/* Print section */
.yas-print-heading {
    font-family: 'Tenor Sans', serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yas-muted);
    margin-bottom: .5rem;
}

.yas-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .45rem;
}

.yas-print-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .55rem .4rem;
    background: transparent;
    border: 1.5px solid var(--yas-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--yas-text);
    transition: border-color .18s, background .18s;
    font-family: inherit;
    line-height: 1.25;
    gap: .15rem;
}
.yas-print-btn:hover {
    border-color: var(--yas-accent);
}
.yas-print-btn.is-selected {
    border-color: var(--yas-accent);
    background: color-mix(in srgb, var(--yas-accent) 8%, transparent);
}
.yas-print-size {
    font-size: .82rem;
    font-weight: 600;
}
.yas-print-dims {
    font-size: .68rem;
    color: var(--yas-muted);
}

/* Light scheme overrides */
[data-yas-scheme="light"] .yas-orig-btn,
[data-yas-scheme="light"] .yas-print-btn {
    border-color: #d9d4cb;
    color: #2a2520;
}
[data-yas-scheme="light"] .yas-orig-btn.is-selected,
[data-yas-scheme="light"] .yas-print-btn.is-selected {
    background: color-mix(in srgb, var(--yas-accent) 10%, #fff);
}
[data-yas-scheme="light"] .yas-print-dims {
    color: #7a756e;
}

@media (max-width: 480px) {
    .yas-print-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }
}

/* ============================================================
   IN THE MEDIA PAGE
   ============================================================ */

.yas-media-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.yas-media-card {
    display: grid;
    grid-template-columns: 392px 1fr;
    gap: 2rem;
    align-items: start;
    border-top: 1px solid var(--yas-border);
    padding-top: 2.5rem;
}

.yas-media-card:first-child {
    border-top: none;
    padding-top: 0;
}

.yas-media-thumb {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    background: var(--yas-card);
}

.yas-media-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.yas-media-thumb--video {
    aspect-ratio: 16 / 9;
}

.yas-media-thumb--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yas-media-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.yas-media-outlet {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yas-accent);
}

.yas-media-outlet-sep {
    color: var(--yas-border);
    font-weight: 400;
}

.yas-media-date {
    font-size: 0.72rem;
    color: var(--yas-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.yas-media-title {
    font-family: var(--yas-font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--yas-text);
    line-height: 1.35;
    margin: 0;
}

.yas-media-desc {
    font-size: 0.9rem;
    color: var(--yas-text-2);
    line-height: 1.65;
    margin: 0;
}

.yas-media-audio {
    margin-top: 0.25rem;
}

.yas-media-audio audio {
    width: 100%;
    height: 36px;
    accent-color: var(--yas-accent);
}

.yas-media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yas-accent) !important;
    text-decoration: none !important;
    margin-top: 0.25rem;
    transition: color 0.15s;
}

.yas-media-link:hover { color: var(--yas-accent-h) !important; }

/* Light mode */
[data-yas-scheme="light"] .yas-media-card { border-top-color: #ddd8d0; }
[data-yas-scheme="light"] .yas-media-thumb { background: #f0ece5; }
[data-yas-scheme="light"] .yas-media-title { color: #1a1714; }
[data-yas-scheme="light"] .yas-media-desc  { color: #4a4540; }

@media (max-width: 760px) {
    .yas-media-card {
        grid-template-columns: 1fr;
    }
    .yas-media-thumb--video {
        position: relative;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* ============================================================
   PRODUCT PAGE UX — round 2
   ============================================================ */

/* Remove PayPal "Pay in 4" (Pay Later) messaging widget */
.ppcp-messages { display: none !important; }

/* Paper Type — buttons matching the print-size selector, 50% width each */
.yas-paper-section {
    margin-top: .35rem;
}
.yas-paper-heading {
    font-family: 'Tenor Sans', serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yas-muted);
    margin-bottom: .5rem;
}
.yas-paper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}
.yas-paper-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .6rem .5rem;
    background: transparent;
    border: 1.5px solid var(--yas-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--yas-text);
    transition: border-color .18s, background .18s;
    font-family: inherit;
    line-height: 1.25;
    gap: .15rem;
}
.yas-paper-btn:hover { border-color: var(--yas-accent); }
.yas-paper-btn.is-selected {
    border-color: var(--yas-accent);
    background: color-mix(in srgb, var(--yas-accent) 8%, transparent);
}
.yas-paper-name { font-size: .82rem; font-weight: 600; }
.yas-paper-desc { font-size: .68rem; color: var(--yas-muted); }
[data-yas-scheme="light"] .yas-paper-btn { border-color: #d9d4cb; color: #2a2520; }
[data-yas-scheme="light"] .yas-paper-btn.is-selected { background: color-mix(in srgb, var(--yas-accent) 10%, #fff); }
[data-yas-scheme="light"] .yas-paper-desc { color: #7a756e; }

/* Clear selection — clickable text link, not a full-width bar */
.yas-clear-btn {
    display: inline-block;
    margin-top: .75rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--yas-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}
.yas-clear-btn:hover { color: var(--yas-accent-h); }

/* ---- Light-theme fixes ---- */

/* Breadcrumb current item was light-on-light */
[data-yas-scheme="light"] .ct-breadcrumbs { color: #4a4540; }

/* Menu dropdown arrows stayed light on the now-white header */
[data-yas-scheme="light"] .ct-header .ct-toggle-dropdown-desktop svg { fill: #1a1714; }

/* Product tabs + panel kept the dark palette in light mode */
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom-color: #ddd8d0; }
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li { background: #f0ece5; border-color: #ddd8d0; }
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #7a756e; }
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #ffffff; border-bottom-color: #ffffff; }
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #1a1714; }
[data-yas-scheme="light"] .woocommerce div.product .woocommerce-tabs .panel { background: #ffffff; border-color: #ddd8d0; color: #2a2520; }

/* Light theme: selected type/print/paper option needs the gold border (the light
   base-border override was hiding it, leaving only a faint background tint) */
[data-yas-scheme="light"] .yas-orig-btn.is-selected,
[data-yas-scheme="light"] .yas-print-btn.is-selected,
[data-yas-scheme="light"] .yas-paper-btn.is-selected {
    border-color: var(--yas-accent);
    background: color-mix(in srgb, var(--yas-accent) 16%, #fff);
}

/* ============================================================
   PRODUCT META SEPARATOR + CART
   ============================================================ */

/* Material · dimensions separator on the product page */
.yas-artwork-medium + .yas-artwork-dims::before {
    content: "\00B7";
    margin: 0 0.5em;
    color: var(--yas-muted);
}

/* ---- Cart ---- */

/* Delete icon: larger and visible, not stranded far right */
.woocommerce-cart .cart_item td.product-subtotal,
.woocommerce-cart thead th.product-subtotal { text-align: right; }
.woocommerce-cart .cart_item td.product-remove,
.woocommerce-cart thead th.product-remove {
    width: 44px;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}
.woocommerce-cart .cart_item a.remove svg { width: 18px !important; height: 18px !important; }
.woocommerce-cart .cart_item a.remove { color: var(--yas-text-2) !important; }
.woocommerce-cart .cart_item a.remove:hover { color: #b92c3e !important; background: none !important; }

/* Empty cart + cart notices: clean text, not ugly white boxes */
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--yas-text-2);
    text-align: center;
    font-size: 1.1rem;
    padding: 1.5rem 0;
}
.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .woocommerce-message::before { display: none !important; }

/* Light theme: cart boxes were stark white with low-contrast text */
[data-yas-scheme="light"] .woocommerce-cart table.shop_table,
[data-yas-scheme="light"] .woocommerce-cart table.shop_table td,
[data-yas-scheme="light"] .woocommerce-cart table.shop_table th,
[data-yas-scheme="light"] .woocommerce-cart .cart_totals table,
[data-yas-scheme="light"] .woocommerce-cart .cart_totals td,
[data-yas-scheme="light"] .woocommerce-cart .cart_totals th {
    background: transparent !important;
    color: #2a2520;
}
[data-yas-scheme="light"] .woocommerce-cart table.cart.shop_table {
    border: 1px solid #e5e0d8;
    border-radius: 6px;
}
/* Inner totals table stays borderless/transparent (the thin 0-margin frame it
   used to carry was the complaint); the block itself is framed below. */
.woocommerce-cart .cart_totals table,
.woocommerce-cart .cart_totals table td,
.woocommerce-cart .cart_totals table th {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}
/* Frame the whole Cart-totals block as a card, matching the checkout order
   card (.ct-order-review: 2px solid #8a8278). */
.woocommerce-cart .cart_totals {
    background: transparent !important;
    border: 2px solid #8a8278 !important;
    border-radius: 0 !important;
    padding: 30px 32px !important;
}
[data-yas-scheme="light"] .woocommerce-cart .cart_item .product-name .amount { color: #7a756e; }

/* Mixed-cart shipping explainer (originals + prints ship separately). */
.yas-shipping-note td { padding-top: 4px !important; border: 0 !important; }
.yas-shipping-note small {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: var(--yas-text-2, #c8c4be);
    opacity: 0.9;
}
[data-yas-scheme="light"] .yas-shipping-note small { color: #7a756e; }

/* Remove control: the real one is a 10px SVG in td.product-remove -> too faint
   and pinned to the far edge. Enlarge, darken, and pull it in from the edge. */
.woocommerce-cart td.product-remove { text-align: center; padding-right: 12px; }
.woocommerce-cart td.product-remove a.remove { color: #3a3632 !important; }
.woocommerce-cart td.product-remove a.remove .ct-icon,
.woocommerce-cart td.product-remove a.remove svg {
    width: 17px !important;
    height: 17px !important;
    opacity: 1 !important;
    fill: currentColor !important;
}
.woocommerce-cart td.product-remove a.remove:hover { color: var(--yas-accent) !important; }

/* ============================================================
   CHECKOUT + MINI-CART
   ============================================================ */

/* Hide express payment buttons on the cart page (before checkout) */
.woocommerce-cart #wc-stripe-express-checkout-element,
.woocommerce-cart .cart_totals [class*="wc-stripe-express"],
.woocommerce-cart .cart_totals .ppcp-button-container,
.woocommerce-cart .cart_totals [id*="ppc-button"],
.woocommerce-cart .cart_totals [class*="payment-request"] { display: none !important; }

/* Create-account / terms checkboxes were appearance:none with a ::before overlay
   covering the hit area -> unclickable. Restore native, clickable checkboxes.
   Kill ::before AND ::after broadly across all checkout labels — Blocksy renders
   its custom check indicator in ::after and it leaked as a stray mark below the
   shipping row whenever a consent/terms checkbox was ticked. */
.woocommerce-checkout form.checkout label::before,
.woocommerce-checkout form.checkout label::after,
.woocommerce-checkout .woocommerce-form__label-for-checkbox::before,
.woocommerce-checkout .woocommerce-form__label-for-checkbox::after {
    content: none !important;
    display: none !important;
}
.woocommerce-checkout form.checkout input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    display: inline-block !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 8px 0 0 !important;
    accent-color: var(--yas-accent);
}
/* Kill Blocksy's ::before overlay on the input itself — it's a custom check
   indicator that escapes when position:static removes the containing block.
   The native appearance:auto checkbox already draws its own checkmark. */
.woocommerce-checkout form.checkout input[type="checkbox"]::before,
.woocommerce-checkout form.checkout input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

/* Native checkboxes render from the root color-scheme (always dark) -> solid
   black boxes even in light mode. Flip them to the light scheme so they follow
   the day/night switch. */
[data-yas-scheme="light"] .woocommerce-checkout input[type="checkbox"],
[data-yas-scheme="light"] .woocommerce-checkout input[type="radio"],
[data-yas-scheme="light"] .woocommerce-form-login input[type="checkbox"],
[data-yas-scheme="light"] input#terms {
    color-scheme: light !important;
    accent-color: #c9a96e !important;
}

/* Mini-cart popup follows the light palette (Blocksy hardcodes it dark) */
/* Blocksy paints the mini-cart from an inline custom prop (customizer), so the
   var override alone loses to it -> panel stayed dark in light mode. Force the
   background and text directly. */
[data-yas-scheme="light"] [data-id="cart"] .ct-cart-content {
    --mini-cart-background-color: #ffffff !important;
    --theme-text-color: #2a2520 !important;
    background-color: #ffffff !important;
    color: #2a2520 !important;
}
/* Mini-cart "View Cart" / "Checkout" buttons — dark text on gold, both schemes */
[data-id="cart"] .ct-cart-content .woocommerce-mini-cart__buttons .button,
[data-id="cart"] .ct-cart-content .woocommerce-mini-cart__buttons a.button { color: var(--yas-bg) !important; }

[data-yas-scheme="light"] [data-id="cart"] .ct-cart-content a:not(.button):not(.ct-button),
[data-yas-scheme="light"] [data-id="cart"] .ct-cart-content .woocommerce-mini-cart__total,
[data-yas-scheme="light"] [data-id="cart"] .ct-cart-content .ct-cart-total,
[data-yas-scheme="light"] [data-id="cart"] .ct-cart-content .quantity { color: #2a2520 !important; }

/* ============================================================
   ARCHIVE / GALLERY HERO BAND (shop, categories)
   ============================================================ */

/* The band stays dark in both schemes, so the title reads cream in both -- in
   light mode it was dark-on-grey and near-illegible. Also trim the 250px band. */
.archive .hero-section .entry-header {
    min-height: 150px !important;
    padding-top: 38px !important;
    padding-bottom: 38px !important;
    max-width: 1140px !important;
}
.archive .hero-section .page-title,
[data-yas-scheme="light"] .archive .hero-section .page-title { color: #f0ece6 !important; }

/* Subtle separator between the available and sold masonry blocks (inserted by
   yas_gallery_sold_split). Centred label flanked by hairline rules. */
.yas-sold-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0 32px;
}
.yas-sold-divider::before,
.yas-sold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--yas-border, #3a3632);
}
.yas-sold-divider span {
    font-family: var(--yas-font-heading, 'Tenor Sans'), serif;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yas-text-2, #c8c4be);
    white-space: nowrap;
}
[data-yas-scheme="light"] .yas-sold-divider::before,
[data-yas-scheme="light"] .yas-sold-divider::after { background: #d9d4cb; }
[data-yas-scheme="light"] .yas-sold-divider span { color: #7a756e; }

/* Country / State (Select2 + native) follow the light switch */
[data-yas-scheme="light"] .woocommerce .select2-container .select2-selection,
[data-yas-scheme="light"] .woocommerce-checkout select,
[data-yas-scheme="light"] .woocommerce .select2-dropdown {
    background: #ffffff !important;
    color: #2a2520 !important;
    border-color: #d9d4cb !important;
}
[data-yas-scheme="light"] .woocommerce .select2-selection__rendered { color: #2a2520 !important; }
[data-yas-scheme="light"] .woocommerce .select2-selection__arrow b { border-color: #6b655e transparent transparent !important; }

/* "Your order" heading was near-white on the light checkout. The base
   .woocommerce-checkout h3#order_review_heading rule (var(--yas-text)) outranks a
   plain scheme override, so this light rule carries the same base specificity. */
[data-yas-scheme="light"] .woocommerce-checkout h3#order_review_heading,
[data-yas-scheme="light"] #order_review_heading { color: #1a1714 !important; }

/* "Your order" details were stark white -> blend into the bordered review box */
[data-yas-scheme="light"] .woocommerce-checkout #order_review,
[data-yas-scheme="light"] .woocommerce-checkout #order_review table,
[data-yas-scheme="light"] .woocommerce-checkout #order_review table tbody,
[data-yas-scheme="light"] .woocommerce-checkout #order_review table tr,
[data-yas-scheme="light"] .woocommerce-checkout #order_review table td,
[data-yas-scheme="light"] .woocommerce-checkout #order_review table th {
    background: transparent !important;
    color: #2a2520;
}

/* The order-review panel should read as part of the page, not a boxed card:
   no frame (was a thin 0-margin border in light) and no filled surface (was a
   near-black block behind the totals in dark). Transparent in both schemes. */
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Consent checkbox spacing — sits just above Place Order, matching the terms row */
.yas-consent-row {
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}
.yas-consent-row label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    cursor: pointer;
}
.yas-consent-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.2em;
}

/* Hide express payment buttons and their OR separator at checkout.
   No one-click purchase — customers go through cart → checkout flow only. */
.woocommerce-checkout #wc-stripe-express-checkout-element,
.woocommerce-checkout [class*="wc-stripe-express"],
.woocommerce-checkout .wc-stripe-express-checkout-wrapper,
.woocommerce-checkout .wc-stripe-express-checkout-button-separator,
form.checkout [class*="payment-request"],
form.checkout .wc-stripe-express-checkout-element-divider,
form.checkout .wc-stripe-express-checkout-button-separator { display: none !important; }

/* ============================================================
   FIX: Category descriptions on mobile
   Blocksy wraps in page-description ct-hidden-sm which hides at <=690px.
   Override so descriptions always show on category archive pages.
   ============================================================ */
.hero-section .page-description.ct-hidden-sm {
    display: block !important;
}

/* ============================================================
   FIX: Sort bar on mobile — align icon with select using flex
   ============================================================ */
.woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.woocommerce-ordering select {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   FIX: Gallery page — force single-column on mobile
   The page-id-1804 override uses !important so add a
   higher-specificity media-query override to re-stack.
   ============================================================ */
@media (max-width: 860px) {
    .page-id-1804 .yas-bio-section--img-right,
    .page-id-1804 .yas-bio-lead {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   Mobile menu — top-level group items (Gallery, About Yelena,
   Social Media): make the entire row the expand/collapse toggle.
   The <a> carries the visible label but must not navigate; the
   <button.ct-toggle-dropdown-mobile> is stretched to cover the
   whole row so any tap anywhere on the row toggles the group.
   ============================================================ */
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent {
    position: relative;
    cursor: pointer;
}

/* Suppress the link navigation — the row tap is handled by the button */
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent > a.ct-menu-link {
    pointer-events: none;
}

/* Stretch the toggle button to fill the whole parent row; arrow SVG shows flush right */
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent > .ct-toggle-dropdown-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 !important;
    z-index: 1;
    cursor: pointer;
}

/* Keep the arrow SVG visible (it sits behind the transparent overlay) */
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent > .ct-toggle-dropdown-mobile + *,
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent {
    /* ensure the arrow remains visible below the overlay */
    isolation: isolate;
}

/* Show a chevron at the right end of every top-level group row */
#offcanvas .ct-panel-content[data-device="mobile"]
  .mobile-menu > ul > li.menu-item-has-children
  > .ct-sub-menu-parent > a.ct-menu-link {
    flex: 1;
}

/* ============================================================
   Mobile menu — "Browse by Category" (item 2477): render as a
   non-interactive uppercase section label, matching desktop style.
   ============================================================ */
#offcanvas .ct-panel-content[data-device="mobile"]
  li.menu-item-2477 > a.ct-menu-link {
    pointer-events: none !important;
    cursor: default !important;
    color: var(--yas-muted) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding-top: 1.2rem !important;
    padding-bottom: 0.3rem !important;
    opacity: 1 !important;
}
#offcanvas .ct-panel-content[data-device="mobile"]
  li.menu-item-2477 > a.ct-menu-link:hover {
    color: var(--yas-muted) !important;
    background: transparent !important;
}

/* ============================================================
   Mobile menu — submenu items (2478+) indented right to match
   desktop dropdown tab, and smaller than top-level items.
   ============================================================ */
#offcanvas .ct-panel-content[data-device="mobile"]
  li.menu-item-2477 ~ li > a.ct-menu-link {
    padding-left: 2rem !important;
    font-size: 0.9em !important;
}

/* ============================================================
   Mobile menu — font face.
   --theme-font-family on :root wires all Blocksy selectors
   (including .mobile-menu a) to Nunito Sans. The explicit rule
   here is a belt-and-braces override for any specificity edge case.
   ============================================================ */
#offcanvas .ct-panel-content[data-device="mobile"] .mobile-menu .ct-menu-link,
#offcanvas .ct-panel-content[data-device="mobile"] .mobile-menu a {
    font-family: 'Nunito Sans', system-ui, sans-serif !important;
}
