/* ==========================================================================
   Alma Dulce — Shop styling for Fashion Diva child theme
   Loaded site-wide via functions.php enqueue.
   Targets: custom header/footer + WooCommerce shop, single product, cart.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ad-ivory: #faf6ee;
  --ad-sand: #f1e7d6;
  --ad-blush: #ecd6cd;
  --ad-blush-soft: #f6e7e1;
  --ad-gold: #b89150;
  --ad-gold-dark: #9a7b3f;
  --ad-gold-soft: #d8c39a;
  --ad-brown: #3a332b;
  --ad-brown-soft: #6f655a;
  --ad-terra: #c06b4f;
  --ad-sage: #7c9488;
  --ad-mustard: #d9a430;
  --ad-white: #ffffff;
  --ad-line: #e7dcc9;
  --ad-shadow: 0 14px 36px -24px rgba(58, 51, 43, .5);
  --ad-shadow-lg: 0 26px 48px -24px rgba(58, 51, 43, .55);
}

/* Scope resets so we don't fight the WP admin bar */
.ad-body { margin: 0; }
.ad-shop-wrap *, .ad-header *, .ad-footer *, .ad-newsletter * { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.ad-shop-wrap {
  font-family: 'Jost', sans-serif;
  color: var(--ad-brown);
  background: var(--ad-ivory);
  line-height: 1.6;
  overflow-x: hidden;
}
.ad-shop-wrap a { color: inherit; }
.ad-shop-wrap img { max-width: 100%; height: auto; display: block; }

.ad-serif { font-family: 'Cormorant Garamond', serif; }
.ad-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ad-center { text-align: center; }

.ad-eyebrow {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--ad-gold-dark); font-weight: 500; margin: 0 0 14px;
}
.ad-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 600; line-height: 1.1; margin: 0 0 16px; color: var(--ad-brown);
}
.ad-lead { font-size: 17px; color: var(--ad-brown-soft); max-width: 620px; margin: 0 auto; }

/* ===== Buttons ===== */
.ad-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Jost', sans-serif; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 34px; border-radius: 50px; border: 1px solid transparent;
  transition: all .3s ease; cursor: pointer;
}
.ad-btn-gold { background: var(--ad-gold); color: #fff; border-color: var(--ad-gold); }
.ad-btn-gold:hover { background: var(--ad-gold-dark); border-color: var(--ad-gold-dark); transform: translateY(-2px); color: #fff; }
.ad-btn-outline { background: transparent; color: var(--ad-brown); border-color: var(--ad-gold); }
.ad-btn-outline:hover { background: var(--ad-gold); color: #fff; }
.ad-btn-cream { background: #fff; color: var(--ad-gold-dark); border-color: #fff; }
.ad-btn-cream:hover { background: var(--ad-brown); color: #fff; border-color: var(--ad-brown); transform: translateY(-2px); }
.ad-btn-block { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.ad-announce {
  background: var(--ad-brown); color: var(--ad-ivory); text-align: center;
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; padding: 9px 16px;
}
.ad-announce strong { color: var(--ad-gold-soft); font-weight: 600; }

/* Hidden checkboxes that drive the mobile drawers (pure-CSS open/close) */
.ad-drawer-checkbox { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); overflow: hidden; }

.ad-header {
  position: sticky; top: 0; z-index: 60;
  /* NOTE: no backdrop-filter here on purpose — a filter on the header would
     make it the containing block for the position:fixed mobile nav drawer,
     trapping the drawer inside the short header instead of the viewport. */
  background: rgba(250, 246, 238, .97);
  border-bottom: 1px solid var(--ad-line);
  transition: box-shadow .3s ease, background .3s ease;
}
.admin-bar .ad-header { top: 32px; }
.ad-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(58, 51, 43, .6); background: rgba(250, 246, 238, .96); }
.ad-header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
}
/* Nav — desktop: horizontal flex row */
.ad-nav { display: flex; align-items: center; }
.ad-nav .ad-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.ad-nav .ad-drawer-close { display: none; } /* visible only on mobile via media query */
.ad-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ad-brown); position: relative; padding: 6px 0; transition: color .25s ease;
}
.ad-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--ad-gold); transition: width .3s ease;
}
.ad-nav a:hover, .ad-nav .current-menu-item > a { color: var(--ad-gold-dark); }
.ad-nav a:hover::after, .ad-nav .current-menu-item > a::after { width: 100%; }

.ad-logo { text-align: center; text-decoration: none; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-logo .mark { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--ad-brown); letter-spacing: .5px; }
.ad-logo .mark em { color: var(--ad-gold-dark); font-style: italic; }
.ad-logo .sub { display: block; font-size: 9.5px; letter-spacing: 5px; text-transform: uppercase; color: var(--ad-gold-dark); margin-top: 3px; }

/* Custom logo image (uploaded via Customizer) — keep it compact */
.ad-logo--img { line-height: 0; }
.ad-logo--img .custom-logo-link { display: inline-block; line-height: 0; margin: 0; padding: 0; }
.ad-logo .custom-logo,
.ad-logo--img img {
  max-height: 72px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

.ad-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.ad-icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent;
  background: transparent; display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: var(--ad-brown); transition: all .25s ease;
}
.ad-icon-btn:hover { background: #fff; border-color: var(--ad-line); color: var(--ad-gold-dark); transform: translateY(-2px); box-shadow: var(--ad-shadow); }
/* Force SVG icon colour — parent theme button resets can turn it white/transparent */
.ad-icon-btn svg { width: 21px; height: 21px; fill: none; stroke: var(--ad-brown) !important; stroke-width: 1.6; }
.ad-icon-btn:hover svg { stroke: var(--ad-gold-dark) !important; }
.ad-cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 50px; background: var(--ad-terra); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
/* Burger: hidden by default, shown via media query */
.ad-burger {
  display: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--ad-brown) !important;
}
.ad-burger svg { stroke: var(--ad-brown) !important; }

/* ==========================================================================
   SHOP HERO + BREADCRUMB
   ========================================================================== */
.ad-shop-hero {
  background: linear-gradient(120deg, var(--ad-blush-soft) 0%, var(--ad-ivory) 50%, var(--ad-sand) 100%);
  padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden;
}
.ad-shop-hero::before, .ad-shop-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,145,80,.16), transparent 70%);
}
.ad-shop-hero::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.ad-shop-hero::after { width: 260px; height: 260px; bottom: -120px; right: -60px; }
.ad-shop-hero .ad-container { position: relative; z-index: 1; }
.ad-shop-title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 6vw, 68px);
  font-weight: 600; line-height: 1.02; margin: 6px 0 14px; color: var(--ad-brown);
}
.ad-shop-title em { color: var(--ad-gold-dark); font-style: italic; }
.ad-crumbs { display: flex; justify-content: center; gap: 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ad-brown-soft); flex-wrap: wrap; }
.ad-crumbs a { text-decoration: none; color: var(--ad-gold-dark); }
.ad-crumbs a:hover { color: var(--ad-brown); }

/* ==========================================================================
   SHOP LAYOUT — left sidebar + product grid
   ========================================================================== */
.ad-shop { padding: 54px 0 90px; }
.ad-shop-layout { display: grid; grid-template-columns: 278px 1fr; gap: 40px; align-items: start; }

.ad-sidebar {
  position: sticky; top: 120px; background: #fff; border: 1px solid var(--ad-line);
  border-radius: 18px; padding: 8px 22px 22px; box-shadow: var(--ad-shadow);
  /* position:relative ensures absolute children (close btn) anchor here on desktop too */
}
.ad-sidebar .ad-filter { border-bottom: 1px solid var(--ad-line); padding: 18px 0; }
.ad-sidebar .ad-filter:last-child { border-bottom: 0; padding-bottom: 4px; }
.ad-filter-head {
  width: 100%; background: none; border: 0; padding: 0; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer; font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600; color: var(--ad-brown);
}
.ad-filter-head .chev { width: 16px; height: 16px; stroke: var(--ad-gold-dark); stroke-width: 2; fill: none; transition: transform .3s ease; }
.ad-filter.is-collapsed .chev { transform: rotate(-90deg); }
.ad-filter-body { margin-top: 14px; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, margin .3s ease; }
.ad-filter.is-collapsed .ad-filter-body { max-height: 0 !important; opacity: 0; margin-top: 0; }

.ad-clear-filters {
  display: inline-block; width: 100%; text-align: center; margin-top: 18px; background: none;
  border: 1px solid var(--ad-line); border-radius: 50px; padding: 11px; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ad-brown-soft);
  cursor: pointer; text-decoration: none; transition: all .25s ease; font-family: 'Jost', sans-serif;
}
.ad-clear-filters:hover { border-color: var(--ad-gold); color: var(--ad-gold-dark); }

/* ----- WooCommerce widget styling inside sidebar ----- */
.ad-sidebar .widget { margin: 0; }
.ad-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ad-sidebar .ad-filter-body > ul > li,
.ad-sidebar .product-categories li,
.ad-sidebar .woocommerce-widget-layered-nav-list li {
  padding: 6px 0; font-size: 14.5px;
}
.ad-sidebar .ad-filter-body a { text-decoration: none; color: var(--ad-brown-soft); transition: color .2s ease; display: inline-flex; align-items: center; gap: 8px; }
.ad-sidebar .ad-filter-body a:hover { color: var(--ad-gold-dark); }
.ad-sidebar .ad-filter-body li.chosen > a,
.ad-sidebar .ad-filter-body li.current-cat > a { color: var(--ad-gold-dark); font-weight: 600; }
.ad-sidebar .count { color: var(--ad-gold-dark); opacity: .75; font-size: 12.5px; margin-left: 4px; }

/* Remove the parent theme's decorative caret/bullet that overlaps category text.
   (Blossom/Fashion Diva injects an angle icon before every widget list item.) */
.ad-sidebar .product-categories li::before,
.ad-sidebar .product-categories li > a::before,
.ad-sidebar .woocommerce-widget-layered-nav-list li::before,
.ad-sidebar .wc-layered-nav-rating::before,
.ad-sidebar .ad-filter-body li > a::before {
  content: none !important;
  display: none !important;
}
.ad-sidebar .product-categories li,
.ad-sidebar .product-categories li > a,
.ad-sidebar .woocommerce-widget-layered-nav-list li > a {
  background-image: none !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* Keep our own "remove filter" marker on chosen layered-nav items. */
.ad-sidebar .woocommerce-widget-layered-nav-list li.chosen > a::before {
  content: '×' !important;
  display: inline !important;
  margin-right: 6px; color: var(--ad-terra); font-weight: 700;
}

/* Price filter widget */
.ad-sidebar .price_slider_wrapper { padding-top: 6px; }
.ad-sidebar .price_slider.ui-slider {
  position: relative; height: 4px; background: var(--ad-sand); border-radius: 4px;
  border: 0; margin: 14px 6px 16px;
}
.ad-sidebar .ui-slider .ui-slider-range { background: var(--ad-gold); height: 100%; border-radius: 4px; position: absolute; }
.ad-sidebar .ui-slider .ui-slider-handle {
  width: 16px; height: 16px; background: #fff; border: 2px solid var(--ad-gold-dark);
  border-radius: 50%; top: -7px; margin-left: -8px; cursor: grab; box-shadow: var(--ad-shadow); position: absolute;
}
.ad-sidebar .price_slider_amount { display: flex; flex-direction: column; gap: 12px; }
.ad-sidebar .price_slider_amount .price_label { font-size: 13.5px; color: var(--ad-brown-soft); order: 1; }
.ad-sidebar .price_slider_amount .price_label span { color: var(--ad-gold-dark); font-weight: 600; }
.ad-sidebar .price_slider_amount .button {
  order: 2; align-self: flex-start; background: var(--ad-brown); color: #fff; border: 0;
  border-radius: 50px; padding: 9px 22px; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; transition: background .25s ease;
}
.ad-sidebar .price_slider_amount .button:hover { background: var(--ad-gold-dark); }

/* Rating filter */
.ad-sidebar .star-rating { color: var(--ad-gold); }

/* ===== Products column ===== */
.ad-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 4px 22px; border-bottom: 1px solid var(--ad-line); margin-bottom: 28px; flex-wrap: wrap;
}
.ad-result-count, .ad-shop-main .woocommerce-result-count {
  font-size: 14.5px; color: var(--ad-brown-soft); margin: 0; float: none;
}
.ad-toolbar-right { display: flex; align-items: center; gap: 14px; }
.ad-filter-toggle { display: none; }
.ad-shop-main .woocommerce-ordering { margin: 0; float: none; }
.ad-shop-main .woocommerce-ordering select,
.ad-select-wrap select {
  appearance: none; -webkit-appearance: none; font-family: 'Jost', sans-serif; font-size: 14px;
  color: var(--ad-brown); background: #fff; border: 1px solid var(--ad-line); border-radius: 50px;
  padding: 11px 42px 11px 20px; cursor: pointer; transition: border-color .25s ease;
}
.ad-shop-main .woocommerce-ordering select:hover { border-color: var(--ad-gold-soft); }

/* ===== WooCommerce product grid (reuses Alma Dulce card look) ===== */
.ad-shop-main ul.products,
.ad-related ul.products,
.ad-upsells ul.products {
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 26px !important;
  list-style: none !important; padding: 0 !important; margin: 0 !important; float: none !important; width: 100% !important;
}
.ad-shop-main ul.products li.product,
.ad-related ul.products li.product,
.ad-upsells ul.products li.product {
  background: #fff !important; border-radius: 16px !important; overflow: hidden !important;
  box-shadow: var(--ad-shadow) !important; transition: transform .35s ease, box-shadow .35s ease;
  float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; position: relative !important;
  display: flex !important; flex-direction: column !important;
}
.ad-shop-main ul.products li.product:hover,
.ad-related ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--ad-shadow-lg) !important; }
.ad-shop-main ul.products li.product a img,
.ad-related ul.products li.product a img {
  width: 100% !important; aspect-ratio: 1 !important; object-fit: cover !important; margin: 0 !important;
  display: block !important; transition: transform .6s ease;
}
.ad-shop-main ul.products li.product:hover a img { transform: scale(1.06); }
.ad-shop-main ul.products li.product .woocommerce-loop-product__title,
.ad-shop-main ul.products li.product h2,
.ad-related ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', serif !important; font-size: 22px !important; font-weight: 600 !important;
  color: var(--ad-brown) !important; padding: 16px 20px 4px !important; margin: 0 !important; line-height: 1.2 !important;
}
.ad-shop-main ul.products li.product .star-rating {
  color: var(--ad-gold) !important; font-size: 14px !important; margin: 4px 20px 8px !important; float: none !important;
}
.ad-shop-main ul.products li.product .price,
.ad-related ul.products li.product .price {
  font-family: 'Cormorant Garamond', serif !important; font-size: 22px !important; font-weight: 600 !important;
  color: var(--ad-gold-dark) !important; padding: 0 20px 16px !important; display: block !important; margin: 0 !important;
}
.ad-shop-main ul.products li.product .price del { color: var(--ad-brown-soft) !important; font-size: 15px !important; margin-right: 6px !important; opacity: 1 !important; }
.ad-shop-main ul.products li.product .price ins { text-decoration: none !important; font-weight: 600 !important; }
.ad-shop-main ul.products li.product .button,
.ad-related ul.products li.product .button {
  display: block !important; margin: auto 20px 20px !important; width: calc(100% - 40px) !important; text-align: center !important;
  background: var(--ad-sand) !important; color: var(--ad-gold-dark) !important; border: 1px solid var(--ad-gold-soft) !important;
  border-radius: 50px !important; font-family: 'Jost', sans-serif !important; font-size: 13px !important; letter-spacing: 1.5px !important;
  text-transform: uppercase !important; padding: 12px !important; transition: all .3s ease !important;
}
.ad-shop-main ul.products li.product .button:hover { background: var(--ad-gold) !important; color: #fff !important; border-color: var(--ad-gold) !important; }
.ad-shop-main ul.products li.product .onsale,
.woocommerce span.onsale {
  background: var(--ad-terra) !important; color: #fff !important; border-radius: 30px !important;
  font-family: 'Jost', sans-serif !important; font-size: 11px !important; letter-spacing: 1px !important; padding: 5px 12px !important;
  top: 14px !important; left: 14px !important; right: auto !important; margin: 0 !important; min-height: auto !important; line-height: 1.4 !important;
}

/* ===== Pagination ===== */
.ad-shop-main .woocommerce-pagination { margin-top: 54px; text-align: center; border: 0; }
.ad-shop-main .woocommerce-pagination ul { display: inline-flex; gap: 10px; border: 0 !important; }
.ad-shop-main .woocommerce-pagination ul li { border: 0 !important; margin: 0 !important; }
.ad-shop-main .woocommerce-pagination ul li a,
.ad-shop-main .woocommerce-pagination ul li span {
  min-width: 46px; height: 46px; padding: 0 12px; border-radius: 50px !important; border: 1px solid var(--ad-line) !important;
  background: #fff; color: var(--ad-brown); font-family: 'Jost', sans-serif; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.ad-shop-main .woocommerce-pagination ul li a:hover { border-color: var(--ad-gold) !important; color: var(--ad-gold-dark); background: #fff; }
.ad-shop-main .woocommerce-pagination ul li span.current { background: var(--ad-gold) !important; border-color: var(--ad-gold) !important; color: #fff !important; }

/* ==========================================================================
   SINGLE PRODUCT
   ========================================================================== */
.ad-pdp { padding: 40px 0 90px; }
.ad-pdp .ad-crumbs { justify-content: flex-start; margin-bottom: 34px; }
.ad-pdp div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.ad-pdp div.product .woocommerce-product-gallery { width: 100% !important; margin: 0 0 28px !important; float: none !important; position: sticky; top: 120px; }
.ad-pdp div.product .woocommerce-product-gallery__image img { border-radius: 20px; box-shadow: var(--ad-shadow-lg); }
/* Keep flexslider thumbnails in normal flow (default absolute positioning makes the title overlap them) */
.ad-pdp div.product .woocommerce-product-gallery .flex-control-nav,
.ad-pdp div.product .woocommerce-product-gallery .flex-control-thumbs {
  position: static !important; bottom: auto !important; left: auto !important; right: auto !important; width: auto !important;
}
.ad-pdp div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 0 !important; padding: 0; overflow: visible !important; }
.ad-pdp div.product .flex-control-thumbs li { list-style: none; margin: 0; }
.ad-pdp div.product .flex-control-thumbs img { border-radius: 12px; }

.ad-pdp div.product .summary { margin: 0 !important; width: 100% !important; float: none !important; }
.ad-pdp div.product .product_title {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4.5vw, 50px); font-weight: 600;
  line-height: 1.05; margin: 6px 0 16px; color: var(--ad-brown);
}
.ad-pdp div.product .woocommerce-product-rating { margin-bottom: 18px; }
.ad-pdp div.product .star-rating { color: var(--ad-gold); }
.ad-pdp div.product p.price,
.ad-pdp div.product .price {
  font-family: 'Cormorant Garamond', serif !important; font-size: 38px !important; color: var(--ad-gold-dark) !important; font-weight: 600 !important; margin-bottom: 10px;
}
.ad-pdp div.product .price del { color: var(--ad-brown-soft) !important; font-size: 24px !important; margin-right: 12px; font-weight: 400; }
.ad-pdp div.product .price ins { text-decoration: none; }
.ad-pdp div.product .woocommerce-product-details__short-description { font-size: 16px; color: var(--ad-brown-soft); margin: 18px 0 26px; }

.ad-pdp div.product .quantity { margin-right: 14px; }
.ad-pdp div.product .quantity .qty {
  width: 70px; height: 52px; border: 1px solid var(--ad-line); border-radius: 50px; background: #fff;
  text-align: center; font-family: 'Jost', sans-serif; font-size: 16px; color: var(--ad-brown);
}
.ad-pdp div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0; }
.ad-pdp div.product .single_add_to_cart_button {
  background: var(--ad-gold) !important; color: #fff !important; border: 1px solid var(--ad-gold) !important;
  border-radius: 50px !important; font-family: 'Jost', sans-serif !important; font-size: 14px !important;
  letter-spacing: 1.5px !important; text-transform: uppercase !important; padding: 16px 40px !important; transition: all .3s ease !important;
}
.ad-pdp div.product .single_add_to_cart_button:hover { background: var(--ad-gold-dark) !important; border-color: var(--ad-gold-dark) !important; transform: translateY(-2px); }
.ad-pdp div.product .product_meta { font-size: 14px; color: var(--ad-brown-soft); margin-top: 22px; border-top: 1px solid var(--ad-line); padding-top: 20px; }
.ad-pdp div.product .product_meta > span { display: block; margin-bottom: 8px; }

.ad-pdp .woocommerce-tabs { grid-column: 1 / -1; margin-top: 50px; }
.ad-pdp .woocommerce-tabs ul.tabs { list-style: none; padding: 0; display: flex; gap: 10px; border-bottom: 1px solid var(--ad-line); margin: 0 0 24px; }
.ad-pdp .woocommerce-tabs ul.tabs li { margin: 0; }
.ad-pdp .woocommerce-tabs ul.tabs li a {
  text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ad-brown-soft); padding: 10px 18px; display: block; border-radius: 12px 12px 0 0;
}
.ad-pdp .woocommerce-tabs ul.tabs li.active a { color: var(--ad-gold-dark); border-bottom: 2px solid var(--ad-gold); }

.ad-related, .ad-upsells { grid-column: 1 / -1; margin-top: 70px; }
.ad-related > h2, .ad-upsells > h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 4vw, 42px); text-align: center; margin: 0 0 36px; color: var(--ad-brown); }

/* ==========================================================================
   CART (styled via WooCommerce's automatic .woocommerce-cart body class —
   no template override needed)
   ========================================================================== */
body.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; max-width: 1240px; margin: 48px auto 70px; padding: 0 24px; }
body.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.woocommerce-cart form.woocommerce-cart-form { background: #fff; border: 1px solid var(--ad-line); border-radius: 18px; padding: 10px 26px; box-shadow: var(--ad-shadow); margin: 0; }
body.woocommerce-cart table.cart { border: 0; margin: 0; background: none; }
body.woocommerce-cart table.cart thead { display: none; }
body.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--ad-line); background: none; }
body.woocommerce-cart table.cart td { border: 0; padding: 0; background: none; }
body.woocommerce-cart table.cart td.product-remove { grid-row: 1; grid-column: 3; }
body.woocommerce-cart table.cart td.product-remove a.remove { color: var(--ad-terra) !important; border-color: var(--ad-terra); }
body.woocommerce-cart table.cart td.product-thumbnail img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
body.woocommerce-cart table.cart td.product-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; }
body.woocommerce-cart table.cart td.product-name a { text-decoration: none; }
body.woocommerce-cart table.cart td.product-quantity .qty { width: 64px; height: 44px; border: 1px solid var(--ad-line); border-radius: 50px; text-align: center; background: #fff; }
body.woocommerce-cart .cart-collaterals { float: none; width: 100%; }
body.woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1 / -1; }
body.woocommerce-cart .cart_totals { background: var(--ad-blush-soft); border-radius: 18px; padding: 30px; position: sticky; top: 120px; width: 100% !important; float: none !important; }
body.woocommerce-cart .cart_totals h2 { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 600; margin: 0 0 20px; }
body.woocommerce-cart .cart_totals table { border: 0; }
body.woocommerce-cart .cart_totals table th, body.woocommerce-cart .cart_totals table td { border: 0; padding: 10px 0; }
body.woocommerce-cart .cart_totals .order-total .amount { font-family: 'Cormorant Garamond', serif; color: var(--ad-gold-dark); }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--ad-gold) !important; color: #fff !important; border-radius: 50px !important;
  font-family: 'Jost', sans-serif !important; letter-spacing: 1.5px !important; text-transform: uppercase !important;
  font-size: 14px !important; padding: 16px !important; text-align: center; transition: all .3s ease !important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--ad-gold-dark) !important; transform: translateY(-2px); }
body.woocommerce-cart .coupon .input-text { border: 1px solid var(--ad-gold-soft); border-radius: 50px; padding: 12px 18px; }
body.woocommerce-cart .button[name="apply_coupon"] { background: var(--ad-brown) !important; color: #fff !important; border-radius: 50px !important; padding: 12px 22px !important; }
body.woocommerce-cart .button[name="update_cart"] { background: var(--ad-sand) !important; color: var(--ad-gold-dark) !important; border-radius: 50px !important; }

@media (max-width: 1080px) {
  body.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item { grid-template-columns: 72px 1fr; }
}

/* ==========================================================================
   NEWSLETTER + FOOTER
   ========================================================================== */
.ad-newsletter { background: var(--ad-sage); color: #fff; text-align: center; padding: 64px 24px; }
.ad-newsletter .ad-h2 { color: #fff; }
.ad-newsletter p { color: rgba(255, 255, 255, .9); max-width: 480px; margin: 0 auto 28px; }
.ad-newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.ad-newsletter-form input { flex: 1; min-width: 200px; border: none; border-radius: 50px; padding: 16px 24px; font-family: 'Jost', sans-serif; font-size: 15px; }

.ad-footer { background: var(--ad-brown); color: #cabfae; padding: 72px 0 0; }
.ad-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.ad-footer-brand .mark { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: #fff; font-weight: 600; }
.ad-footer-brand .mark em { color: var(--ad-gold-soft); font-style: italic; }
.ad-footer-brand p { margin: 16px 0 0; max-width: 300px; font-size: 14.5px; line-height: 1.7; }
.ad-footer h5 { font-family: 'Cormorant Garamond', serif; font-size: 21px; color: #fff; font-weight: 600; margin: 0 0 18px; }
.ad-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ad-footer ul a { text-decoration: none; font-size: 14.5px; color: #cabfae; transition: color .25s ease; }
.ad-footer ul a:hover { color: var(--ad-gold-soft); }
.ad-footer-social { display: flex; gap: 12px; margin-top: 6px; }
.ad-footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.ad-footer-social a:hover { background: var(--ad-gold); border-color: var(--ad-gold); transform: translateY(-3px); }
.ad-footer-social svg { width: 18px; height: 18px; fill: #cabfae; transition: fill .25s ease; }
.ad-footer-social a:hover svg { fill: #fff; }
.ad-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.ad-footer-pay { display: flex; gap: 8px; }
.ad-footer-pay span { background: rgba(255,255,255,.08); border-radius: 6px; padding: 5px 10px; font-size: 11px; letter-spacing: 1px; color: #cabfae; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   MOBILE DRAWER + OVERLAY
   ========================================================================== */
/* Overlay sits BELOW the header (z-60) so it can't cover the in-header nav drawer,
   but ABOVE page content so the rest of the page dims. The filter sidebar (z-90,
   root context) and nav drawer both render above it. */
.ad-overlay { position: fixed; inset: 0; background: rgba(40, 34, 28, .5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 50; cursor: pointer; }
/* Pure-CSS: the matching overlay appears only when its drawer checkbox is checked */
#ad-nav-toggle:checked ~ .ad-overlay--nav,
#ad-filter-toggle:checked ~ .ad-overlay--filter { opacity: 1; visibility: visible; }
.ad-drawer-close { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .ad-shop-main ul.products, .ad-related ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .ad-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ad-pdp div.product { grid-template-columns: 1fr; gap: 36px; }
  .ad-pdp div.product .woocommerce-product-gallery { position: static; }
  .ad-cart .woocommerce { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ad-header-inner { grid-template-columns: auto 1fr auto; }
  /* Nav becomes a full-height slide-in drawer */
  .ad-nav {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 80%; max-width: 320px;
    background: var(--ad-ivory);
    flex-direction: column; align-items: flex-start;
    padding: 22px 0 30px;
    transform: translateX(-105%) !important;
    transition: transform .35s ease;
    z-index: 90;
    box-shadow: 20px 0 60px -30px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  #ad-nav-toggle:checked ~ .ad-header .ad-nav { transform: translateX(0) !important; }
  .ad-nav .ad-menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 0 30px; }
  .ad-nav .ad-menu li { width: 100%; }
  .ad-nav a { font-size: 16px; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--ad-line); display: block; }
  .ad-nav a::after { display: none; }
  /* Close × button inside the nav drawer — strong resets so the parent theme
     can't stretch the <label> into an oval or add stray padding. */
  .ad-nav .ad-drawer-close {
    display: flex !important;
    align-self: flex-end;
    margin: 0 18px 18px auto !important;
    box-sizing: border-box !important;
    width: 44px !important; height: 44px !important;
    min-width: 0 !important; max-width: 44px !important;
    padding: 0 !important; line-height: 1 !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--ad-gold-soft) !important;
    background: #fff !important; color: var(--ad-brown) !important;
    box-shadow: none !important;
    cursor: pointer; align-items: center !important; justify-content: center !important;
    flex: 0 0 auto !important;
  }
  .ad-nav .ad-drawer-close svg { width: 20px !important; height: 20px !important; stroke: var(--ad-brown) !important; }
  .ad-header .ad-burger { display: inline-flex !important; justify-self: start; color: var(--ad-brown) !important; }
  .ad-header .ad-burger svg { stroke: var(--ad-brown) !important; width: 24px; height: 24px; }
  .ad-logo { text-align: left; }
  .ad-shop-layout { grid-template-columns: 1fr; }
  .ad-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 86%; max-width: 360px;
    border-radius: 0; z-index: 90;
    overflow-y: auto; transform: translateX(-105%) !important;
    transition: transform .35s ease; padding-top: 70px;
    box-shadow: 20px 0 60px -30px rgba(0,0,0,.5);
    opacity: 1 !important; /* neutralise any .reveal opacity:0 if the class lingers */
  }
  #ad-filter-toggle:checked ~ .ad-shop .ad-sidebar { transform: translateX(0) !important; }
  /* Filter drawer close button — absolute inside fixed sidebar, hardened resets */
  .ad-sidebar .ad-drawer-close {
    display: flex !important;
    position: absolute !important; top: 16px; right: 16px;
    box-sizing: border-box !important;
    width: 44px !important; height: 44px !important;
    min-width: 0 !important; max-width: 44px !important;
    padding: 0 !important; line-height: 1 !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--ad-gold-soft) !important;
    background: #fff !important; color: var(--ad-brown) !important;
    cursor: pointer; align-items: center !important; justify-content: center !important;
    z-index: 100; box-shadow: var(--ad-shadow) !important;
    float: none !important; margin: 0 !important;
  }
  .ad-sidebar .ad-drawer-close svg { width: 18px !important; height: 18px !important; stroke: var(--ad-brown) !important; }
  .ad-filter-toggle { display: inline-flex !important; }
}
@media (max-width: 600px) {
  .ad-shop-main ul.products, .ad-related ul.products { grid-template-columns: 1fr !important; }
  .ad-footer-grid { grid-template-columns: 1fr; }
  .ad-cart table.cart tr.woocommerce-cart-form__cart-item { grid-template-columns: 72px 1fr; }
  .ad-shop-hero { padding: 40px 0 34px; }
  .ad-pdp { padding: 24px 0 70px; }
  .ad-pdp .ad-crumbs { margin-bottom: 20px; }
  .ad-pdp div.product { gap: 26px; }
  .ad-pdp div.product .product_title { font-size: 30px; margin-top: 0; }
  .ad-pdp div.product p.price, .ad-pdp div.product .price { font-size: 30px !important; }
  .ad-pdp div.product form.cart { gap: 10px; }
  .ad-pdp div.product .single_add_to_cart_button { flex: 1; padding: 16px 24px !important; }
}
