/*
Theme Name:   Ayeshla Child
Theme URI:    https://ayeshla.lk
Description:  Divi 5 child theme for the Ayeshla online store. Version 2 (shop-first) design.
Author:       Nisajith
Template:     Divi
Version:      0.1.0
Text Domain:  ayeshla-child
*/

/* =========================================================
   Design tokens (ported from ayeshla-website-v2/css/ayeshla.css + v2.css)
   Keep in sync with the Divi global colours and variables.
   Version 2 values win over the shared ones (white ground, #111 ink).
   ========================================================= */
:root {
  /* Colour */
  --ay-bg: #ffffff;
  --ay-ink: #111111;
  --ay-soft: #f4f2ef;
  --ay-line: #e6e3de;
  --ay-muted: #6b6762;
  --ay-sale: #b3261e;
  --ay-accent: #7b3f3a;
  --ay-success: #2e5b45;
  --ay-deep: #2b2622;
  --ay-on-dark: #fbf9f6;
  --ay-focus: #7b3f3a;

  /* Type */
  --ay-font-display: "Bodoni Moda";
  --ay-font-body: "Jost";
  --ay-ls-label: 0.16em;
  --ay-ls-nav: 0.14em;

  /* Spacing (8pt) */
  --ay-space-xs: 8px;
  --ay-space-sm: 12px;
  --ay-space-md: 16px;
  --ay-space-lg: 24px;
  --ay-space-xl: 32px;
  --ay-space-2xl: 48px;
  --ay-space-3xl: 64px;

  /* Motion */
  --ay-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ay-dur: 280ms;
}

/* ---------- Base ---------- */
body { background: var(--ay-bg); color: var(--ay-ink); }

/* Visible focus on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.et_pb_button:focus-visible {
  outline: 2px solid var(--ay-focus);
  outline-offset: 2px;
}

/* ---------- Skip link: hidden until a keyboard user tabs to it ---------- */
.ay-skip { display: block; height: 0; overflow: hidden; background: var(--ay-ink); color: var(--ay-on-dark); text-align: center; font-size: 14px; }
.ay-skip:focus { height: auto; padding: 12px; outline: 2px solid var(--ay-accent); outline-offset: -2px; }

/* ---------- Header icons ([ay_header_icons]) ---------- */
.ay-icons { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.ay-icon { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; color: var(--ay-ink); }
.ay-icon:hover { color: var(--ay-accent); }
.ay-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ay-bag-count { font-size: 11px; line-height: 1; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ay-ink); color: var(--ay-on-dark); display: inline-flex; align-items: center; justify-content: center; }
.ay-bag-count[hidden] { display: none; }

/* ---------- Main menu ---------- */
/* Sale item in the sale colour (menu item class "ay-sale") */
.et_pb_menu .ay-sale > a,
.et_mobile_menu .ay-sale > a { color: var(--ay-sale) !important; }

/* Mobile menu: the hamburger sits in a narrow column, so anchor the dropdown
   to the header row and let it span the full bar instead of that column. */
@media (max-width: 980px) {
  .ay-header .et_pb_column,
  .ay-header .et_pb_menu,
  .ay-header .et_pb_menu_inner_container,
  .ay-header .et_pb_menu__wrap,
  .ay-header .et_pb_menu__menu,
  .ay-header .et_mobile_nav_menu,
  .ay-header .mobile_nav { position: static; }
  .ay-header .et_pb_row { position: relative; }
  .ay-header .et_mobile_menu { left: 0; right: 0; width: auto; top: 100%; border-top: 1px solid var(--ay-line); box-shadow: none; padding: var(--ay-space-xs) var(--ay-space-lg) var(--ay-space-md); }
  .ay-header .et_mobile_menu li a { padding: 14px 0; border-bottom: 1px solid var(--ay-line); }
  .ay-header .et_mobile_menu .sub-menu li a { padding-left: var(--ay-space-md); font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important; }
  .ay-header .et_mobile_menu li.ay-sale > a { color: var(--ay-sale) !important; }
}

/* ---------- Product rows (Divi Woo Products module in a wrapper with class "ay-rail") ---------- */
.ay-rail .woocommerce ul.products,
.ay-rail ul.products {
  display: flex; flex-wrap: nowrap; gap: 16px; margin: 0; padding: 0 0 var(--ay-space-sm);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.ay-rail ul.products::before, .ay-rail ul.products::after { display: none; }
.ay-rail .related > h2, .ay-rail .related.products > h2 { display: none; }
.ay-rail .related.products { margin: 0; padding: 0; }
body .ay-rail .et_pb_module ul.products li.product:nth-child(n) {
  flex: 0 0 calc((100% - 16px * 3) / 4.3); min-width: 220px; width: auto !important;
  margin: 0 !important; float: none !important; clear: none !important; scroll-snap-align: start;
}

/* Product card (rows and shop grids) */
.woocommerce ul.products li.product a img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; margin: 0 0 10px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ay-font-body), sans-serif !important; font-size: 13px !important; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--ay-ink); padding: 0 0 4px;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce ul.products li.product .price { font-size: 14px; color: var(--ay-ink) !important; margin-bottom: 8px; }
.woocommerce ul.products li.product .price del { color: var(--ay-muted); opacity: 1; }
.woocommerce ul.products li.product .price ins { color: var(--ay-sale); text-decoration: none; }
body .woocommerce ul.products li.product .onsale,
body .woocommerce span.onsale,
body .et_pb_module .onsale {
  min-width: 0; min-height: 0; padding: 4px 8px !important; border-radius: 0 !important; line-height: 1.3; margin: 12px !important;
  background: var(--ay-sale) !important; color: #fff !important; font-size: 11px !important; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.ay-rail ul.products li.product .button,
.ay-rail ul.products li.product .added_to_cart { display: none; }

/* Size chips */
.ay-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.ay-sizes span { font-size: 11px; min-width: 34px; height: 26px; padding: 0 6px; border: 1px solid var(--ay-line); display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.04em; color: var(--ay-ink); }
.ay-sizes span.off { color: var(--ay-muted); text-decoration: line-through; background: var(--ay-soft); }

/* Row arrows */
.ay-arrows { display: inline-flex; gap: var(--ay-space-xs); }
.ay-arrow { width: 44px; height: 44px; border: 1px solid var(--ay-line); border-radius: 50%; background: var(--ay-bg); color: var(--ay-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ay-arrow:hover { border-color: var(--ay-ink); }
.ay-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Shop the look list */
.ay-look { display: flex; flex-direction: column; gap: var(--ay-space-md); }
.ay-look-item { display: flex; gap: var(--ay-space-md); align-items: center; padding-bottom: var(--ay-space-md); border-bottom: 1px solid var(--ay-line); color: var(--ay-ink); }
.ay-look-item img { width: 96px; flex-shrink: 0; aspect-ratio: 3 / 4; object-fit: cover; }
.ay-look-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.ay-look-name { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.ay-look-meta { font-size: 14px; color: var(--ay-muted); }
.ay-look-price { font-size: 14px; white-space: nowrap; }
.ay-look-price del { color: var(--ay-muted); }
.ay-look-price ins { color: var(--ay-sale); text-decoration: none; }
.ay-look-item:hover .ay-look-name { text-decoration: underline; text-underline-offset: 3px; }

/* Square photos (Instagram tiles) */
.ay-square .et_pb_image,
.ay-square .et_pb_image a,
.ay-square .et_pb_image_wrap { display: block; width: 100%; }
.ay-square img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block; }

/* ---------- Listing pages ---------- */
.ay-banner { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 360px; padding: var(--ay-space-3xl) var(--ay-space-lg); background-color: var(--ay-soft); background-size: cover; background-position: center 30%; text-align: center; }
.ay-banner-label, h1.ay-banner-label { font-family: var(--ay-font-display), serif !important; font-weight: 400 !important; font-size: 40px !important; line-height: 1.1 !important; letter-spacing: 0; text-transform: none; color: #fff !important; background: rgba(17, 17, 17, 0.62); padding: 8px 22px !important; margin: 0; }
body .ay-listing-title { font-family: var(--ay-font-body), sans-serif !important; font-weight: 500 !important; font-size: clamp(20px, 2.3vw, 30px) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ay-ink); margin: 0; padding: 0; line-height: 1.2; }
.ay-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ay-sort-label { color: var(--ay-muted); }
.ay-sort .woocommerce-ordering { margin: 0 !important; float: none; }
.ay-sort select { border: 0; background: transparent; font-family: var(--ay-font-body), sans-serif; font-weight: 500; font-size: 14px; padding: 8px 4px; cursor: pointer; color: var(--ay-ink); }
.ay-chips { display: flex; gap: var(--ay-space-xs); flex-wrap: wrap; }
body .et_pb_module a.ay-chip, .ay-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--ay-space-md); border: 1px solid var(--ay-line); border-radius: 999px; font-size: 14px; color: var(--ay-ink); white-space: nowrap; }
.ay-chip:hover { border-color: var(--ay-ink); }
body .et_pb_module a.ay-chip.is-current, .ay-chip.is-current { background: var(--ay-ink); border-color: var(--ay-ink); color: var(--ay-on-dark) !important; }
.ay-intro p { margin: 0; padding: 0; font-size: 16px; line-height: 1.6; color: var(--ay-ink); max-width: 640px; }

/* Product grid (Divi Woo Products module in a wrapper with class "ay-grid") */
.ay-grid ul.products { display: flex !important; flex-wrap: wrap; gap: var(--ay-space-2xl) 16px; margin: 0 !important; }
.ay-grid ul.products::before, .ay-grid ul.products::after { display: none; }
body .ay-grid .et_pb_shop ul.products li.product:nth-child(n) { width: calc((100% - 16px * 3) / 4) !important; margin: 0 !important; float: none !important; clear: none !important; }
.ay-grid ul.products li.product .button, .ay-grid ul.products li.product .added_to_cart { display: none; }
.ay-grid .woocommerce-pagination { margin-top: var(--ay-space-2xl); }
/* The template has its own heading and Sort, so hide WooCommerce's duplicates */
.ay-grid .woocommerce-result-count, .ay-grid .woocommerce-ordering { display: none !important; }

@media (max-width: 980px) {
  body .ay-grid .et_pb_shop ul.products li.product:nth-child(n) { width: calc((100% - 16px * 2) / 3) !important; margin: 0 !important; }
}
@media (max-width: 767px) {
  .ay-banner-label, h1.ay-banner-label { font-size: 34px !important; }
  .ay-chips { flex-wrap: nowrap; overflow-x: auto; }
  .ay-grid ul.products { gap: var(--ay-space-xl) 12px; }
  body .ay-grid .et_pb_shop ul.products li.product:nth-child(n) { width: calc((100% - 12px) / 2) !important; margin: 0 !important; }
}

/* ---------- Product page ---------- */
/* Badge row over the photo: zero height, so the photo below never moves */
.ay-flags { display: flex; align-items: flex-start; height: 0; overflow: visible; position: relative; z-index: 2; }
.ay-badge-new { display: inline-block; margin: 12px; padding: 4px 8px; background: var(--ay-bg); color: var(--ay-ink); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; line-height: 1.3; }
body .ay-flags .onsale, body .woocommerce ul.products li.product .ay-flags .onsale { position: static !important; top: auto; left: auto; margin: 12px !important; display: inline-block; }

/* Divi's hover overlay on shop photos hid the photo; the title underline is the hover cue instead */
.et_shop_image .et_overlay { display: none !important; }
.et_shop_image { display: block; }
.ay-eyebrow { margin: 0; padding: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ay-muted); }
.woocommerce-breadcrumb, .et_pb_wc_breadcrumb { font-size: 13px; color: var(--ay-muted); }
.et_pb_wc_breadcrumb a { color: var(--ay-muted); }
.et_pb_wc_breadcrumb a:hover { color: var(--ay-ink); text-decoration: underline; }

body .et_pb_wc_price .price, body .et_pb_wc_price .price .amount { color: var(--ay-ink) !important; font-size: 20px !important; font-family: var(--ay-font-body), sans-serif; }
body .et_pb_wc_price .price del { color: var(--ay-muted) !important; opacity: 1; }
body .et_pb_wc_price .price del .amount { color: var(--ay-muted) !important; }
body .et_pb_wc_price .price ins, body .et_pb_wc_price .price ins .amount { color: var(--ay-sale) !important; text-decoration: none; }

/* Gallery */
.ay-gallery-track { display: flex; flex-wrap: wrap; gap: var(--ay-space-xs); }
.ay-gallery-item { margin: 0; width: calc((100% - var(--ay-space-xs)) / 2); display: flex; flex-direction: column; background: var(--ay-soft); }
.ay-gallery-item.is-main { width: 100%; }
.ay-gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ay-gallery-dots { display: none; }

/* Options (colour swatches, size buttons) */
.ay-hidden-select { display: none !important; }
.woocommerce div.product form.cart .variations { margin: 0; }
.ay-option { display: flex; flex-direction: column; gap: var(--ay-space-sm); margin-bottom: var(--ay-space-lg); }
.ay-option-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 0; font-size: 14px; color: var(--ay-ink); }
.ay-option-label strong { font-weight: 500; }
.ay-size-guide { font-size: 14px; color: var(--ay-ink); text-decoration: underline; text-underline-offset: 3px; }
.ay-swatches { display: flex; gap: 4px; align-items: center; }
.ay-swatch-ring { display: inline-flex; padding: 3px; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer; }
.ay-swatch-ring.is-selected { border-color: var(--ay-ink); }
.ay-swatch-ring.is-unavailable { opacity: 0.35; cursor: not-allowed; }
.ay-swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(23, 21, 19, 0.2); display: inline-block; }
.ay-sizes-pick { display: flex; gap: var(--ay-space-xs); flex-wrap: wrap; }
.ay-size-option { min-width: 56px; height: 48px; padding: 0 var(--ay-space-md); border: 1px solid var(--ay-line); background: transparent; color: var(--ay-ink); font-family: var(--ay-font-body), sans-serif; font-size: 14px; cursor: pointer; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; }
.ay-size-option:hover { border-color: var(--ay-ink); }
.ay-size-option.is-selected { border-color: var(--ay-ink); background: var(--ay-ink); color: var(--ay-on-dark); }
.ay-size-option.is-unavailable { color: var(--ay-muted); text-decoration: line-through; background: var(--ay-soft); border-color: var(--ay-soft); cursor: not-allowed; }
.ay-size-note { margin: 0 0 var(--ay-space-lg); padding: 0; font-size: 14px; color: var(--ay-muted); }
.ay-size-note a { color: var(--ay-ink); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce div.product form.cart .reset_variations,
.woocommerce-variation-price { display: none !important; }
.woocommerce div.product .stock { display: flex; align-items: center; gap: var(--ay-space-xs); margin: 0 0 var(--ay-space-md); font-size: 14px; color: var(--ay-ink) !important; }
.woocommerce div.product .stock.in-stock { padding-left: 16px; background: radial-gradient(circle at 4px 50%, var(--ay-success) 4px, transparent 4.5px) no-repeat; }
.woocommerce div.product .stock.out-of-stock { color: var(--ay-sale) !important; }

/* Quantity and Add to bag */
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) { display: flex; gap: var(--ay-space-sm); align-items: stretch; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0 !important; display: inline-flex; align-items: center; border: 1px solid var(--ay-line); height: 56px; flex-shrink: 0; }
.woocommerce div.product form.cart div.quantity input.qty { width: 36px; height: 100%; border: 0; background: transparent; font-size: 15px; text-align: center; padding: 0; -moz-appearance: textfield; }
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ay-qty-btn { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--ay-ink); }
body .woocommerce div.product form.cart .single_add_to_cart_button,
body #page-container .et_pb_section .et_pb_wc_add_to_cart .single_add_to_cart_button {
  flex: 1 1 auto; min-height: 56px; margin: 0 !important; padding: 0 var(--ay-space-lg) !important; border: 1px solid var(--ay-ink) !important; border-radius: 0 !important;
  background: var(--ay-ink) !important; color: var(--ay-on-dark) !important; font-family: var(--ay-font-body), sans-serif !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0.12em !important; text-transform: uppercase; line-height: 1.2 !important;
}
body .woocommerce div.product form.cart .single_add_to_cart_button:hover,
body #page-container .et_pb_section .et_pb_wc_add_to_cart .single_add_to_cart_button:hover { background: var(--ay-accent) !important; border-color: var(--ay-accent) !important; }
body #page-container .et_pb_wc_add_to_cart .single_add_to_cart_button::after { display: none !important; }
body .woocommerce div.product form.cart .single_add_to_cart_button.disabled { background: #e8dfd2 !important; border-color: #e8dfd2 !important; color: var(--ay-muted) !important; cursor: not-allowed; }

/* WhatsApp, perks, accordions */
.ay-btn-ghost { display: flex; align-items: center; justify-content: center; gap: var(--ay-space-sm); min-height: 52px; padding: 0 var(--ay-space-xl); border: 1px solid var(--ay-line); color: var(--ay-ink); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.ay-btn-ghost:hover { border-color: var(--ay-ink); }
.ay-btn-ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ay-perks { display: flex; flex-wrap: wrap; gap: var(--ay-space-xs) var(--ay-space-lg); padding: var(--ay-space-md) 0; border-top: 1px solid var(--ay-line); border-bottom: 1px solid var(--ay-line); }
.ay-perks span { font-size: 14px; color: var(--ay-ink); }
.ay-koko { font-weight: 600; letter-spacing: 0.04em; }
.ay-info .et_pb_toggle { margin: 0 !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid var(--ay-line) !important; background: transparent !important; }
.ay-info .et_pb_toggle:first-child { border-top: 1px solid var(--ay-line) !important; }
.ay-info .et_pb_toggle_title { display: flex; align-items: center; min-height: 56px; padding: 0 28px 0 0 !important; font-family: var(--ay-font-body), sans-serif !important; font-size: 14px !important; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500 !important; color: var(--ay-ink) !important; }
.ay-info .et_pb_toggle_title::before { right: 0 !important; color: var(--ay-ink) !important; font-size: 16px !important; }
.ay-info .et_pb_toggle_content { padding: 0 0 var(--ay-space-lg) !important; font-size: 15px; color: #3a3632; }
.ay-info .et_pb_toggle_content p { padding-bottom: var(--ay-space-sm); }
.ay-specs { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ay-spec { display: flex; gap: var(--ay-space-md); }
.ay-spec dt { width: 120px; flex-shrink: 0; color: var(--ay-muted); font-weight: 400; }
.ay-spec dd { margin: 0; }

@media (max-width: 767px) {
  .ay-gallery { margin: 0 calc(var(--gvid-ay-gutter, 20px) * -1); }
  body .woocommerce div.product form.cart .single_add_to_cart_button, body #page-container .et_pb_section .et_pb_wc_add_to_cart .single_add_to_cart_button { font-size: 13px !important; letter-spacing: 0.06em !important; padding: 0 var(--ay-space-sm) !important; }
  .ay-gallery-track { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .ay-gallery-track::-webkit-scrollbar { display: none; }
  .ay-gallery-item, .ay-gallery-item.is-main { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
  .ay-gallery-dots { display: flex; justify-content: center; gap: 8px; padding-top: var(--ay-space-sm); }
  .ay-gallery-dots span { width: 24px; height: 2px; background: rgba(17, 17, 17, 0.25); }
  .ay-gallery-dots span.is-current { width: 40px; background: var(--ay-ink); }
}

/* ---------- Bag, checkout, account (shared) ---------- */
.ay-page-title { font-family: var(--ay-font-body), sans-serif !important; font-weight: 500 !important; font-size: clamp(22px, 2.6vw, 34px) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ay-ink); margin: 0; padding: 0; line-height: 1.2; }
.ay-summary-title { font-family: var(--ay-font-body), sans-serif !important; font-weight: 500 !important; font-size: 14px !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ay-ink); margin: 0; padding: 0; }
.ay-link { color: var(--ay-ink); text-decoration: underline; text-underline-offset: 3px; }
.ay-link:hover { color: var(--ay-accent); }
.ay-muted, .ay-note { color: var(--ay-muted); font-size: 14px; }
.ay-progress { margin: 0; padding: 10px 12px; background: var(--ay-soft); font-size: 14px; color: var(--ay-ink); }
.ay-koko-line { font-size: 14px; color: var(--ay-muted); margin: 0; }
.ay-hidden-field { display: none !important; }
.ay-btn-primary, .ay-btn-secondary,
body .woocommerce a.ay-btn-primary, body .woocommerce button.ay-btn-primary, body .woocommerce button.ay-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--ay-space-xl) !important; border-radius: 0 !important;
  font-family: var(--ay-font-body), sans-serif !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.12em !important; text-transform: uppercase; line-height: 1.2 !important; border: 1px solid var(--ay-ink) !important;
}
.ay-btn-primary, body .woocommerce a.ay-btn-primary, body .woocommerce button.ay-btn-primary { background: var(--ay-ink) !important; color: var(--ay-on-dark) !important; }
.ay-btn-primary:hover, body .woocommerce a.ay-btn-primary:hover, body .woocommerce button.ay-btn-primary:hover { background: var(--ay-accent) !important; border-color: var(--ay-accent) !important; }
.ay-btn-secondary, body .woocommerce button.ay-btn-secondary { background: transparent !important; color: var(--ay-ink) !important; }
.ay-btn-secondary:hover, body .woocommerce button.ay-btn-secondary:hover { background: var(--ay-ink) !important; color: var(--ay-on-dark) !important; }
body .woocommerce a.button::after, body .woocommerce button.button::after { display: none !important; }

/* Form fields */
body .woocommerce form .form-row label { font-size: 14px; color: var(--ay-ink); margin-bottom: 6px; }
body .woocommerce form .form-row input.input-text,
body .woocommerce form .form-row textarea,
body .woocommerce form .form-row select,
body .woocommerce .select2-container .select2-selection--single,
.ay-coupon-row input.input-text {
  border: 1px solid var(--ay-line) !important; border-radius: 0 !important; background: #fff !important; min-height: 48px; padding: 10px 14px !important; font-size: 15px !important; color: var(--ay-ink) !important; box-shadow: none !important;
}
body .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
body .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 11px; right: 8px; }
body .woocommerce form .form-row input.input-text:focus, body .woocommerce form .form-row textarea:focus, body .woocommerce form .form-row select:focus { border-color: var(--ay-ink) !important; }
body .woocommerce form .form-row .description { font-size: 13px; color: var(--ay-muted); padding: 6px 0 0; background: none; }
.ay-field-hint { display: block; font-size: 13px; color: var(--ay-muted); padding-top: 6px; }

/* Notices */
body .woocommerce-message, body .woocommerce-info, body .woocommerce-error { background: var(--ay-soft) !important; color: var(--ay-ink) !important; border: 0 !important; border-left: 3px solid var(--ay-ink) !important; border-radius: 0 !important; padding: 14px 18px !important; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
body .woocommerce-message::before, body .woocommerce-info::before { display: none; }
body .woocommerce-message .button { display: none !important; }

/* Bag */
.ay-cart { display: flex; gap: var(--ay-space-3xl); align-items: flex-start; }
.ay-cart-main { flex: 7 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--ay-space-lg); }
.ay-cart-head { display: flex; align-items: baseline; gap: var(--ay-space-md); }
.ay-cart-count { color: var(--ay-muted); font-size: 14px; }
.ay-cart-items { display: flex; flex-direction: column; border-top: 1px solid var(--ay-line); }
.ay-cart-item { display: flex; gap: var(--ay-space-md); padding: var(--ay-space-lg) 0; border-bottom: 1px solid var(--ay-line); }
.ay-cart-thumb { width: 112px; flex-shrink: 0; }
.ay-cart-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ay-cart-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ay-cart-line { display: flex; justify-content: space-between; gap: var(--ay-space-md); }
.ay-cart-name { margin: 0; padding: 0; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.ay-cart-name a { color: var(--ay-ink); }
.ay-cart-price { margin: 0; padding: 0; font-size: 14px; white-space: nowrap; text-align: right; }
.ay-cart-price del { color: var(--ay-muted); }
.ay-cart-meta { margin: 0; padding: 0; font-size: 14px; color: var(--ay-muted); }
.ay-cart-status { margin: 0; padding: 0; font-size: 13px; }
.ay-cart-status.is-ok { padding-left: 16px; background: radial-gradient(circle at 4px 50%, var(--ay-success) 4px, transparent 4.5px) no-repeat; }
.ay-cart-status.is-final { color: var(--ay-sale); }
.ay-cart-actions { display: flex; align-items: center; gap: var(--ay-space-lg); margin-top: auto; padding-top: var(--ay-space-xs); }
.ay-cart-actions .quantity { display: inline-flex; align-items: center; border: 1px solid var(--ay-line); height: 40px; }
.ay-cart-actions .quantity input.qty { width: 36px; height: 100%; border: 0 !important; background: transparent; text-align: center; padding: 0 !important; font-size: 14px; -moz-appearance: textfield; }
.ay-cart-actions .quantity input.qty::-webkit-inner-spin-button, .ay-cart-actions .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ay-cart-actions .ay-qty-btn { width: 36px; font-size: 16px; }
body .woocommerce a.remove.ay-remove { width: auto; height: auto; font-size: 13px !important; line-height: 1.4; color: var(--ay-muted) !important; background: none !important; border-radius: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
body .woocommerce a.remove.ay-remove:hover { color: var(--ay-ink) !important; }
.ay-cart-update { display: none; }
.ay-continue { align-self: flex-start; color: var(--ay-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.ay-cart-summary { flex: 5 1 0; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: var(--ay-space-md); padding: var(--ay-space-xl); background: var(--ay-soft); }
.ay-cart-summary .cart-collaterals, .ay-cart-summary .cart_totals { width: 100% !important; float: none !important; }
.ay-cart-summary .cart_totals > h2 { display: none; }
.ay-cart-summary .cart_totals { display: flex; flex-direction: column; gap: var(--ay-space-md); }
.ay-cart-summary table.shop_table { border: 0 !important; margin: 0 !important; }
.ay-cart-summary table.shop_table th, .ay-cart-summary table.shop_table td { border: 0 !important; padding: 6px 0 !important; background: transparent !important; font-size: 14px; font-weight: 400; }
.ay-cart-summary table.shop_table td { text-align: right; }
.ay-cart-summary table.shop_table .order-total th, .ay-cart-summary table.shop_table .order-total td { border-top: 1px solid var(--ay-line) !important; padding-top: 12px !important; font-size: 16px; font-weight: 500; }
.ay-cart-summary .fee td { color: var(--ay-success); }
.ay-cart-summary .wc-proceed-to-checkout { padding: 0 !important; }
.ay-cart-summary .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0 !important; }
.ay-cart-summary .ay-btn-ghost { width: 100%; }
.ay-coupon summary { cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.ay-coupon summary::-webkit-details-marker { display: none; }
.ay-coupon-row { display: flex; gap: var(--ay-space-xs); padding-top: var(--ay-space-sm); }
.ay-coupon-row input.input-text { flex: 1 1 auto; min-width: 0; }
.ay-coupon .coupon-error-notice { color: var(--ay-sale); font-size: 13px; margin: 8px 0 0; padding: 0; }
body .woocommerce .ay-coupon-row button.button { border-radius: 0; background: var(--ay-ink); color: var(--ay-on-dark); padding: 0 var(--ay-space-md); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }

/* Empty bag */
.ay-empty { display: flex; flex-direction: column; align-items: center; gap: var(--ay-space-md); text-align: center; padding: var(--ay-space-2xl) 0; }
.ay-empty p { margin: 0; max-width: 520px; }
.ay-empty-actions { display: flex; gap: var(--ay-space-sm); flex-wrap: wrap; justify-content: center; }
.ay-empty-rail { display: flex; flex-direction: column; gap: var(--ay-space-lg); padding-top: var(--ay-space-2xl); }
.ay-row-head { display: flex; justify-content: space-between; align-items: center; gap: var(--ay-space-md); }
.ay-row-title { font-family: var(--ay-font-body), sans-serif !important; font-weight: 500 !important; font-size: clamp(20px, 2.3vw, 30px) !important; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; padding: 0; }
.woocommerce-cart .return-to-shop { display: none; }

/* Checkout */
.ay-checkout-title { margin-bottom: var(--ay-space-lg); }
body .woocommerce form.checkout { display: flex; flex-wrap: wrap; gap: var(--ay-space-xl) var(--ay-space-3xl); align-items: flex-start; }
body .woocommerce form.checkout > .woocommerce-NoticeGroup { width: 100%; }
body .woocommerce form.checkout .ay-checkout-main { flex: 7 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--ay-space-md); }
body .woocommerce form.checkout #customer_details { width: 100%; display: flex; flex-direction: column; gap: var(--ay-space-xl); }
body .woocommerce form.checkout #customer_details .col-1, body .woocommerce form.checkout #customer_details .col-2 { width: 100%; float: none; }
body .woocommerce form.checkout .ay-checkout-summary { flex: 5 1 0; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: var(--ay-space-md); padding: var(--ay-space-xl); background: var(--ay-soft); }
.woocommerce-billing-fields > h3 { display: none; }
.ay-step { display: flex; align-items: baseline; gap: var(--ay-space-sm); margin: var(--ay-space-lg) 0 var(--ay-space-md) !important; padding: 0 0 var(--ay-space-sm) !important; border-bottom: 1px solid var(--ay-line); font-family: var(--ay-font-body), sans-serif !important; font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ay-ink); width: 100%; }
.ay-step span { color: var(--ay-muted); }
.ay-delivery { display: flex; justify-content: space-between; gap: var(--ay-space-md); padding: var(--ay-space-md); border: 1px solid var(--ay-ink); font-size: 14px; }
.ay-delivery strong { font-weight: 500; }
body .woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
body .woocommerce-checkout #payment ul.payment_methods { padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: var(--ay-space-xs); }
body .woocommerce-checkout #payment ul.payment_methods li { border: 1px solid var(--ay-line); padding: var(--ay-space-md) !important; list-style: none; }
body .woocommerce-checkout #payment div.payment_box { background: transparent !important; padding: 6px 0 0 26px !important; margin: 0 !important; font-size: 14px; color: var(--ay-muted); }
body .woocommerce-checkout #payment div.payment_box::before { display: none; }
body .woocommerce-checkout #payment div.form-row { padding: var(--ay-space-lg) 0 0 !important; }
body .woocommerce-checkout #payment #place_order { width: 100%; float: none; min-height: 56px; border-radius: 0 !important; background: var(--ay-ink) !important; color: var(--ay-on-dark) !important; font-family: var(--ay-font-body), sans-serif !important; font-size: 14px !important; letter-spacing: 0.12em !important; text-transform: uppercase; font-weight: 500 !important; border: 0 !important; }
body .woocommerce-checkout #payment #place_order:hover { background: var(--ay-accent) !important; }
#order_review_heading { margin: 0 !important; padding: 0 !important; font-size: 14px !important; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500 !important; font-family: var(--ay-font-body), sans-serif !important; }
body .woocommerce-checkout-review-order-table { border: 0 !important; margin: 0 !important; }
body .woocommerce-checkout-review-order-table th, body .woocommerce-checkout-review-order-table td { border: 0 !important; padding: 6px 0 !important; font-size: 14px; background: transparent !important; font-weight: 400; }
body .woocommerce-checkout-review-order-table thead { display: none; }
body .woocommerce-checkout-review-order-table td.product-total, body .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body .woocommerce-checkout-review-order-table .order-total th, body .woocommerce-checkout-review-order-table .order-total td { border-top: 1px solid var(--ay-line) !important; padding-top: 12px !important; font-size: 16px; font-weight: 500; }
body .woocommerce-checkout-review-order-table .fee td { color: var(--ay-success); }

/* Account */
.ay-account-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--ay-space-xl); width: 100%; }
.ay-account-head p { margin: 0; color: var(--ay-muted); }
.ay-login { display: flex; gap: var(--ay-space-xl); align-items: stretch; }
body .woocommerce .ay-login .col-1, body .woocommerce .ay-login .col-2 { float: none; width: auto; flex: 1 1 0; min-width: 0; }
.ay-login-panel { border: 1px solid var(--ay-line); padding: var(--ay-space-xl); display: flex; flex-direction: column; gap: var(--ay-space-md); }
.ay-register-panel { background: var(--ay-soft); border-color: var(--ay-soft); }
.ay-login-panel form.login, .ay-login-panel form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ay-login-row { display: flex !important; justify-content: space-between; align-items: center; gap: var(--ay-space-md); }
.ay-benefits { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
body .woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: var(--ay-space-xl) var(--ay-space-3xl); }
body .woocommerce-account .woocommerce-MyAccount-navigation { float: none !important; width: 220px !important; flex: 0 0 220px; }
body .woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ay-line); }
body .woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ay-line); }
body .woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; color: var(--ay-ink); font-size: 14px; }
body .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
body .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--ay-space-lg); }
.ay-hello { font-size: 16px !important; color: var(--ay-ink) !important; }
.ay-dash-intro { margin: 0; color: var(--ay-muted); }
.ay-dash-card { border: 1px solid var(--ay-line); padding: var(--ay-space-lg); display: flex; flex-direction: column; gap: var(--ay-space-sm); }
.ay-dash-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.ay-dash-card address { font-style: normal; line-height: 1.6; }
.ay-dash-cards { display: flex; gap: var(--ay-space-lg); flex-wrap: wrap; }
.ay-dash-cards > .ay-dash-card { flex: 1 1 260px; }
.ay-orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.ay-orders th { text-align: left; font-weight: 500; color: var(--ay-muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ay-line); }
.ay-orders td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--ay-line); }

@media (max-width: 980px) {
  .ay-cart { flex-direction: column; align-items: stretch; }
  .ay-cart-main { flex: 1 1 auto; }
  .ay-cart-summary, body .woocommerce form.checkout .ay-checkout-summary { max-width: none; width: 100%; position: static; flex: 1 1 100%; }
  body .woocommerce form.checkout .ay-checkout-main { flex: 1 1 100%; }
  .ay-login { flex-direction: column; }
  body .woocommerce-account .woocommerce-MyAccount-navigation { width: 100% !important; flex: 1 1 100%; }
}
@media (max-width: 767px) {
  .ay-cart-thumb { width: 88px; }
  .ay-orders th:nth-child(2), .ay-orders td:nth-child(2) { display: none; }
}

/* ---------- Search ---------- */
.ay-search-head { display: flex; flex-direction: column; gap: var(--ay-space-md); max-width: 760px; }
.ay-search-form { display: flex; gap: var(--ay-space-xs); }
.ay-search-form input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 var(--ay-space-md); border: 1px solid var(--ay-ink); border-radius: 0; font-family: var(--ay-font-body), sans-serif; font-size: 16px; color: var(--ay-ink); background: #fff; }
.ay-search-form button.ay-btn-primary { cursor: pointer; }
.ay-search-popular { display: flex; align-items: center; gap: var(--ay-space-sm); flex-wrap: wrap; }
.ay-search-results-head { display: flex; justify-content: space-between; align-items: center; gap: var(--ay-space-md); flex-wrap: wrap; margin-top: var(--ay-space-2xl); }
.ay-search-empty { display: flex; flex-direction: column; gap: var(--ay-space-md); margin-top: var(--ay-space-2xl); max-width: 640px; }
.ay-search-empty p { margin: 0; }
.ay-search-none .ay-grid { display: none; }

/* ---------- About ---------- */
.ay-principles { display: flex; gap: var(--ay-space-xl); flex-wrap: wrap; }
.ay-principle { flex: 1 1 220px; display: flex; flex-direction: column; gap: var(--ay-space-sm); padding-top: var(--ay-space-md); border-top: 1px solid var(--ay-ink); }
.ay-principle h3 { margin: 0; padding: 0; font-family: var(--ay-font-display), serif !important; font-weight: 400 !important; font-size: 24px !important; line-height: 1.2; color: inherit !important; }
.ay-principle p { margin: 0; padding: 0; }
.ay-principles.on-dark .ay-principle { border-top-color: var(--ay-on-dark); }
.ay-principles.on-dark .ay-principle p { color: #b9b0a5; }
.ay-offers { display: flex; flex-direction: column; border-top: 1px solid var(--ay-line); }
.ay-offer { display: flex; justify-content: space-between; align-items: center; gap: var(--ay-space-lg); padding: 20px 0; border-bottom: 1px solid var(--ay-line); color: var(--ay-ink); }
.ay-offer strong { display: block; font-family: var(--ay-font-display), serif; font-weight: 400; font-size: 24px; line-height: 1.2; }
.ay-offer span { color: var(--ay-muted); font-size: 15px; }
.ay-offer:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.ay-offset { margin-top: var(--ay-space-3xl); }

/* ---------- Contact ---------- */
.ay-contact-item { display: flex; flex-direction: column; gap: 4px; padding: var(--ay-space-md) 0; border-bottom: 1px solid var(--ay-line); }
.ay-contact-item .ay-eyebrow { margin-bottom: 2px; }
.ay-contact-item .ay-value { font-size: 20px; color: var(--ay-ink); margin: 0; padding: 0; }
.ay-contact-item a.ay-value:hover { color: var(--ay-accent); }
.ay-contact-item p { margin: 0; padding: 0; }
.ay-follow { display: flex; gap: var(--ay-space-lg); }
.ay-info-block { scroll-margin-top: 120px; }

/* ---------- Size guide ---------- */
.ay-size-table-wrap { overflow-x: auto; }
.ay-size-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.ay-size-table th, .ay-size-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--ay-line); }
.ay-size-table thead th { font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ay-muted); }
.ay-measure { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--ay-space-md); }
.ay-measure strong { display: block; font-weight: 500; }
.ay-measure span { color: var(--ay-muted); font-size: 14px; }

/* Divi removes the outline from its buttons; restore a visible keyboard focus ring
   (rosewood ring plus a white gap so it shows on dark bands and photos too). */
body #page-container .et_pb_button:focus-visible,
body #page-container .et_pb_contact_submit:focus-visible {
  outline: 2px solid var(--ay-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}

/* ---------- Tap targets (at least 44 x 44 on touch screens) ---------- */
.ay-header .mobile_menu_bar { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.et-l--footer .et_pb_social_media_follow li a.icon { width: 44px !important; height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.ay-swatch-ring { padding: 5px; }
.ay-cart-actions .quantity { height: 44px; }
.ay-cart-actions .ay-qty-btn { width: 44px; }
body .woocommerce a.remove.ay-remove { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
body .woocommerce form .form-row input[type="checkbox"] { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; accent-color: var(--ay-ink); }
@media (max-width: 767px) {
  .et-l--footer .et_pb_link { min-height: 32px; display: flex; align-items: center; }
  .ay-coupon summary { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Home: scroll zoom banner ----------
   Section "ay-zoom" > row "ay-zoom-stick" > column "ay-zoom-frame" (photo is the
   column's Divi background) > text "ay-zoom-big" + group "ay-zoom-cap". */
.ay-zoom { --p: 1; --show-big: 0; --show-cap: 1; --zoom-top: 76px; --zoom-start: 62%; }
.ay-zoom .ay-zoom-stick { display: flex; align-items: center; justify-content: center; height: 80vh; min-height: 520px; overflow: hidden; }
.ay-zoom .ay-zoom-frame {
  width: calc(var(--zoom-start) + (100% - var(--zoom-start)) * var(--p)) !important;
  height: calc(var(--zoom-start) + (100% - var(--zoom-start)) * var(--p));
  flex: 0 0 auto !important; max-width: none !important; justify-content: space-between; overflow: hidden;
  box-shadow: inset 0 0 0 100vmax rgba(17, 17, 17, calc(0.5 - 0.3 * var(--p)));
}
.ay-zoom .ay-zoom-big { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; opacity: var(--show-big); }
.ay-zoom .ay-zoom-cap { opacity: var(--show-cap); }
.ay-zoom.is-live { height: 260vh; }
.ay-zoom.is-live .ay-zoom-stick { position: sticky; top: var(--zoom-top); height: calc(100vh - var(--zoom-top)); min-height: 0; }
.ay-zoom.is-live .ay-zoom-cap { visibility: hidden; }
.ay-zoom.is-live.cap-on .ay-zoom-cap { visibility: visible; }

@media (max-width: 980px) {
  body .ay-rail .et_pb_module ul.products li.product:nth-child(n) { flex-basis: calc((100% - 16px * 2) / 2.4); }
}
@media (max-width: 767px) {
  body .ay-rail .et_pb_module ul.products li.product:nth-child(n) { flex-basis: 64%; min-width: 0; }
  .ay-arrows { display: none; }
  .ay-zoom { --zoom-start: 80%; }
  .ay-zoom.is-live { height: 220vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
