/*
Theme Name: DTB Shop Theme
Theme URI: https://digitaltradebaltic.com/
Author: Digital Trade Baltic
Author URI: https://digitaltradebaltic.com/
Description: Ultra-lean WooCommerce-focused theme designed to pair with DTB plugin suite. Minimal markup, fast assets, hook-friendly.
Version: 1.1.178
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dtb-shop-theme
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, one-column, two-columns, accessibility-ready
*/

/* ------------------------------------------------------------
   Shop archive (Lovedoll-style)
   - Full-width archive layout
   - 1/5 filters (left), 4/5 products (right)
   - Product cards: 2:3 portrait card with image + info overlay (bottom)
   - No borders, no add-to-cart
   ------------------------------------------------------------ */

/* Full-width wrapper for shop archives (no max-width constraint) */
.dtb-shop-archive-fullwidth{
  width:100%;
  max-width:none;
  margin:0;
  padding:0 24px;
  box-sizing:border-box;
}

/* Title row — flex row: title left (aligned with 2nd card), results right */
.dtb-shop-archive-title-row{
  width:100%;
  padding:18px 0 14px;
  /* Indent so title left edge aligns with 2nd card: 1 col + 1 gap */
  padding-left:calc((100% - 4 * 28px) / 5 + 28px);
  box-sizing:border-box;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}
.dtb-shop-page-title{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight:400;
  font-size:44px;
  line-height:1.08;
  color:#0b0b0b;
}
/* Result count — shared style used in title row (no desc) or desc row (with desc) */
.dtb-shop-archive-title-row .woocommerce-result-count,
.dtb-shop-archive-desc-row .woocommerce-result-count{
  margin:0;
  font-size:13px;
  font-weight:300;
  color:#888;
  white-space:nowrap;
  flex-shrink:0;
}
/* Description row — same left indent as title row, flex with result count at flex-end */
.dtb-shop-archive-desc-row{
  width:100%;
  padding-left:calc((100% - 4 * 28px) / 5 + 28px);
  padding-bottom:14px;
  box-sizing:border-box;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.dtb-shop-archive-desc-text{
  flex:1;
  min-width:0;
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:15px;
  font-weight:300;
  line-height:1.55;
  color:#444;
}
@media (max-width: 1100px){
  .dtb-shop-archive-desc-row{ padding-left:calc((100% - 2 * 28px) / 3 + 28px); }
}
@media (max-width: 768px){
  .dtb-shop-page-title{ font-size:32px; }
  /* Title row: title full width, result count drops to own right-aligned row */
  .dtb-shop-archive-title-row{ flex-wrap:wrap; padding-left:0; }
  .dtb-shop-archive-title-row .dtb-shop-page-title{ flex:0 0 100%; }
  .dtb-shop-archive-title-row .woocommerce-result-count{ margin-left:auto; }
  /* Desc row: stack desc text then result count right */
  .dtb-shop-archive-desc-row{ padding-left:0; flex-wrap:wrap; }
  .dtb-shop-archive-desc-text{ flex:0 0 100%; }
  .dtb-shop-archive-desc-row .woocommerce-result-count{ margin-left:auto; }
}

/* Shop archive layout: single full-width column (products grid handles all columns) */
.dtb-shop-archive-layout{
  display:block;
}

/* Hide the separate filters aside — filter card lives inside ul.products now */
.dtb-shop-archive-layout > .dtb-shop-filters{
  display:none;
}

/* Products grid: 5 equal columns — filter card is first li */
.dtb-shop-products ul.products,
.dtb-shop-products .woocommerce ul.products,
.dtb-shop-archive-layout .woocommerce ul.products,
.dtb-shop-products ul.products.columns-4,
.dtb-shop-products ul.products.columns-3,
.dtb-shop-products ul.products.columns-5,
.dtb-shop-products .woocommerce ul.products.columns-4,
.dtb-shop-products .woocommerce ul.products.columns-3{
  display:grid !important;
  grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
  gap:28px !important;
  margin:0;
  padding:0;
}
.dtb-shop-products ul.products::before,
.dtb-shop-products ul.products::after{
  content:none !important;
}
.dtb-shop-products ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* Filter card injected as first li inside ul.products */
.dtb-shop-products ul.products li.dtb-filter-card{
  list-style:none;
  float:none !important;
  border:none !important;
  box-shadow:none !important;
  aspect-ratio:2 / 3;
  border-radius:14px;
  overflow:hidden;
  background-image:url('assets/s-bg1.webp');
  background-size:cover;
  background-position:center;
  box-sizing:border-box;
  padding:20px;
  display:flex !important;
  flex-direction:column;
  justify-content:flex-start;
}

/* Card */
.dtb-product-card{
  list-style:none;
}
.dtb-product-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

/* Card: full column width, 2:3 portrait */
.dtb-product-card-inner{
  width:100%;
  background:transparent;
  border:none;
  box-shadow:none;
  position:relative;
  aspect-ratio:2 / 3;
  overflow:hidden;
  border-radius:14px;
}

/* Media fills the whole card */
.dtb-product-card-media{
  background:transparent;
  width:100%;
  height:100%;
}
.dtb-product-card-media img{
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* Info overlay on the image bottom */
.dtb-product-card-info{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  /* Smoked glass overlay (phase 2) */
  background: rgba(10,10,10,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding:14px 14px 16px 14px;
  text-align:center;
  border-bottom-left-radius:14px;
  border-bottom-right-radius:14px;
}

/* Info text colors on smoked background */
.dtb-product-card-info .dtb-product-card-title{
  color: rgba(255,255,255,.92);
}
.dtb-product-card-info .dtb-product-card-brand{
  color: rgba(255,255,255,.70);
}
.dtb-product-card-info .dtb-product-card-price,
.dtb-product-card-info .dtb-product-card-price .price{
  color:#ba9b37;
}

/* Price sizing + remove underlines (regular 14px, sale 20px) */
.dtb-product-card-info .dtb-product-card-price,
.dtb-product-card-info .dtb-product-card-price .price,
.dtb-product-card-info .dtb-product-card-price .price a{
  text-decoration:none !important;
  margin-bottom:0 !important;
}

/* Default (no sale): keep price prominent */
.dtb-product-card-info .dtb-product-card-price .price,
.dtb-product-card-info .dtb-product-card-price .amount{
  font-size:20px;
  line-height:1.1;
}

/* Sale: regular (del) smaller */
.dtb-product-card-info .dtb-product-card-price del,
.dtb-product-card-info .dtb-product-card-price del .amount{
  font-size: 16px;
  line-height:1.1;
  opacity:.6;
}

/* Sale: discounted (ins) larger, no underline */
.dtb-product-card-info .dtb-product-card-price ins,
.dtb-product-card-info .dtb-product-card-price ins .amount{
  font-size:20px;
  font-weight:400;
  line-height:1.1;
  text-decoration:none !important;
}

/* Ensure no extra padding from Woo/theme defaults on the loop items */
.dtb-shop-products ul.products li.product,
.dtb-product-card{
  padding:0 !important;
}
.dtb-shop-products ul.products li.product a{
  padding:0 !important;
  background:transparent !important;
}

/* Kill any theme/Woo overlays that may add dark bars/blocks */
.dtb-shop-products ul.products li.product::before,
.dtb-shop-products ul.products li.product::after,
.dtb-shop-products .dtb-product-card-link::before,
.dtb-shop-products .dtb-product-card-link::after,
.dtb-shop-products .dtb-product-card-media::before,
.dtb-shop-products .dtb-product-card-media::after{
  content:none !important;
  display:none !important;
}

.dtb-product-card-title{
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight:400;
  font-size:14px;
  line-height:1.25;
  margin:0 0 6px 0;
  color:inherit;
}

.dtb-product-card-brand{
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight:300;
  font-size:12px;
  line-height:1.2;
  margin:0 0 8px 0;
  color:inherit;
}

.dtb-product-card-price .price,
.dtb-product-card-price{
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight:400;
  font-size:13px;
  line-height:1.2;
  color:inherit;
}

/* Responsiveness */
@media (max-width: 1500px){
  .dtb-shop-products ul.products,
  .dtb-shop-products .woocommerce ul.products,
  .dtb-shop-products ul.products.columns-4,
  .dtb-shop-products ul.products.columns-5,
  .dtb-shop-products .woocommerce ul.products.columns-4{ grid-template-columns:repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 1100px){
  .dtb-shop-products ul.products,
  .dtb-shop-products .woocommerce ul.products,
  .dtb-shop-products ul.products.columns-4,
  .dtb-shop-products ul.products.columns-3,
  .dtb-shop-products .woocommerce ul.products.columns-4{ grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
  .dtb-shop-archive-title-row{ padding-left:calc((100% - 2 * 28px) / 3 + 28px); }
}
@media (max-width: 820px){
  .dtb-shop-products ul.products,
  .dtb-shop-products .woocommerce ul.products,
  .dtb-shop-products ul.products.columns-4,
  .dtb-shop-products ul.products.columns-3,
  .dtb-shop-products .woocommerce ul.products.columns-4{ grid-template-columns:repeat(2, minmax(0, 1fr)) !important; gap:14px !important; }
  .dtb-shop-archive-fullwidth{ padding:0 12px; }
  /* Title and desc row: no left indent on mobile, aligned with left card edge */
  .dtb-shop-archive-title-row{ padding-left:0; }
  .dtb-shop-archive-desc-row{ padding-left:0; }
  /* Filter card visible on mobile too */

  /* Mobile: fluid cards (no fixed max-width), scale details down proportionally */
  .dtb-product-card-inner{
    max-width:none;
    margin:0;
    border-radius:12px;
  }
  .dtb-product-card-info{
    padding:11px 10px 12px 10px;
    border-bottom-left-radius:12px;
    border-bottom-right-radius:12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .dtb-product-card-title{
    font-size:12px;
    margin:0 0 4px 0;
  }
  .dtb-product-card-brand{
    font-size:10px;
    margin:0 0 6px 0;
  }

  /* Prices: scaled for mobile */
  .dtb-product-card-info .dtb-product-card-price .price,
  .dtb-product-card-info .dtb-product-card-price .amount{
    font-size:16px;
  }
  .dtb-product-card-info .dtb-product-card-price del,
  .dtb-product-card-info .dtb-product-card-price del .amount{
    font-size:13px;
  }
  .dtb-product-card-info .dtb-product-card-price ins,
  .dtb-product-card-info .dtb-product-card-price ins .amount{
    font-size:16px;
    font-weight:600;
  }
}


/* ------------------------------------------------------------
   WooCommerce pagination
   ------------------------------------------------------------ */
.woocommerce-pagination{
  margin-top:35px;
  text-align:center;
}
.woocommerce-pagination ul.page-numbers{
  display:inline-flex;
  list-style:none;
  margin:0;
  padding:0;
  gap:2px;
}
.woocommerce-pagination ul.page-numbers li{
  display:block;
}
.woocommerce-pagination .page-numbers{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 14px;
  border:none;
  font-family:"Poppins", system-ui, sans-serif;
  font-size:13px;
  font-weight:400;
  color:#fff;
  text-decoration:none;
  background:#0b0b0b;
  border-radius:0;
  box-sizing:border-box;
  transition:background 0.18s, color 0.18s;
}
/* Prev button: left outer corners rounded */
.woocommerce-pagination ul.page-numbers li:first-child .page-numbers{
  border-radius:6px 0 0 6px;
}
/* Next button: right outer corners rounded */
.woocommerce-pagination ul.page-numbers li:last-child .page-numbers{
  border-radius:0 6px 6px 0;
}
/* Active/current page: gold */
.woocommerce-pagination .page-numbers.current{
  background:#ba9b37;
  color:#0b0b0b;
  cursor:default;
}
/* Hover: gold */
.woocommerce-pagination .page-numbers:hover:not(.current){
  background:#ba9b37;
  color:#0b0b0b;
}
.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next{
  font-size:16px;
  min-width:48px;
}

/* ------------------------------------------------------------
   Fonts (self-hosted)
   ------------------------------------------------------------ */
@font-face{
  font-family:"Poppins";
  src:url("assets/fonts/poppins/Poppins-Light.ttf") format("truetype");
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("assets/fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("assets/fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("assets/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-style:normal;
  font-display:swap;
}



/* =========================================================
   Product gallery (mobile full-width slider + thumbs)
   ========================================================= */

.dtb-gallery-wrap{position:relative;}
/* NOTE: The leading backslash previously broke this selector and caused the gallery to lay out all slides at once. */
.dtb-gallery-main{position:relative; width:100%; overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory;}
.dtb-gallery-track{display:flex; flex-wrap:nowrap; width:100%;}
.dtb-gallery-slide{flex:0 0 100%; scroll-snap-align:start;}
.dtb-gallery-slide img{width:100%; height:auto; display:block;}

.dtb-gallery-thumbs{margin-top:12px;}
.dtb-gallery-thumbs-inner{display:flex; flex-wrap:nowrap; gap:10px; overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory; padding-bottom:4px;}
.dtb-thumb{flex:0 0 100px; width:100px; aspect-ratio:2/3; display:block; opacity:.65; border-radius:0; overflow:hidden; background:#f1f1f1; scroll-snap-align:start;}
.dtb-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.dtb-thumb.is-active{opacity:1; outline:2px solid rgba(255,255,255,.6); outline-offset:0;}

.dtb-sale-badge{position:absolute; top:14px; left:14px; background:#ba9b37; color:#fff; padding-top:12px; padding-bottom:12px; padding-left:15px; padding-right:15px; border-radius:0; font-weight:400; font-size:10px; letter-spacing:.04em; z-index:5;}
/* In case a plugin/theme still prints Woo default sale flash, hide it inside our custom gallery. */
.dtb-gallery-wrap span.onsale{display:none !important;}

.dtb-gallery-zoom{position:absolute; right:30px; bottom:30px; width:58px; height:58px; border-radius:999px; background:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,.2); z-index:10; text-decoration:none;}

.dtb-lightbox{position:fixed; inset:0; background:rgba(0,0,0,.85); z-index:9999; display:flex; align-items:center; justify-content:center; padding:18px;}
.dtb-lightbox-inner{max-width:100%; max-height:100%;}
.dtb-lightbox img{max-width:100%; max-height:100%; display:block;}

@media (max-width: 768px){
  /* Keep content comfortably padded on mobile */
  .single-product .dtb-woo-container{padding-left:10px; padding-right:10px;}

  /* Make the main gallery truly edge-to-edge (ignore container auto-margins + padding) */
  .single-product .dtb-gallery-wrap{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }

  /* Thumbs: keep a small inner padding but align with full-bleed area */
  .single-product .dtb-gallery-thumbs{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    padding:12px 10px;
    box-sizing:border-box;
  }
}

:root{
  /* Global typography */
  --dtb-font: Poppins, "Helvetica Neue", Arial, sans-serif;

  /* Non-header page defaults */
  --dtb-page-bg: #ffffff;
  --dtb-page-text: #111111;

  --dtb-bg: #0b0b0b;
  --dtb-surface: #111;
  --dtb-surface-2: #151515;
  --dtb-text: #f4f4f4;
  --dtb-muted: #bfc4ca;
  --dtb-border: rgba(255,255,255,.10);

  --dtb-accent: #ba9b37;
  --dtb-accent-2: #d9c27a;

  --dtb-radius: 16px;
  --dtb-radius-sm: 10px;

  --dtb-container: 1200px;

  --dtb-s1: 4px;
  --dtb-s2: 8px;
  --dtb-s3: 12px;
  --dtb-s4: 16px;
  --dtb-s5: 24px;
  --dtb-s6: 32px;
  --dtb-s7: 48px;

  /* Logo sizing (set from Appearance -> Header Settings) */
  --dtb-logo-max-height: 54px;
  --dtb-logo-max-width: 240px;
}

/* Footer modules */
.dtb-footer-modules{display:grid;gap:48px;align-items:start;}
.dtb-footer-modules.dtb-cols-1{grid-template-columns:1fr;}
.dtb-footer-modules.dtb-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.dtb-footer-modules.dtb-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.dtb-footer-modules.dtb-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.dtb-footer-module__title{margin:0 0 10px 0;font-size:14px;font-weight:400;color:var(--dtb-text);}
.dtb-footer-module__content{font-size:13px;line-height:1.55;color:var(--dtb-muted);}
.dtb-footer-module__content p{margin:0 0 10px 0;}
.dtb-footer-module__content a{color:inherit;text-decoration:underline;text-underline-offset:2px;}

@media (max-width: 768px){
  .dtb-footer-modules{grid-template-columns:1fr!important;gap:28px;}
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; min-height:100%; }
body{
  margin:0;
  font-family: var(--dtb-font);
  /* IMPORTANT: Do NOT tie the whole site to header palette */
  background: var(--dtb-page-bg);
  color: var(--dtb-page-text);
  line-height: 1.55;
  font-weight: 300;
  /* Sticky footer: flex column layout */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Light default headings (max 400) */
h1{ font-family: var(--dtb-font); font-weight: 400; }
h2,h3,h4,h5,h6{ font-family: var(--dtb-font); font-weight: 400; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width:100%; height:auto; }

.dtb-container{
  width: min(100% - 2*var(--dtb-s5), var(--dtb-container));
  margin-inline: auto;
}
/* Main content wrapper (keep top flush with header) */
.dtb-main{
  padding: 0 0 var(--dtb-s6);
  margin-top: var(--dtb-content-offset-normal, 0px);
}
/* Sticky footer: direct-child main grows, footer stays at bottom */
body > .dtb-main{ flex: 1 0 auto; }
.dtb-footer{ flex-shrink: 0; }

/* Prevent an accidental white strip: WP blocks often add top-margins on first child */
.dtb-main .entry-content > :first-child{ margin-top: 0 !important; }
.dtb-main .entry-content > :first-child > :first-child{ margin-top: 0 !important; }

.dtb-card{ background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.dtb-h1{ font-size: clamp(28px, 2.6vw, 40px); margin: 0 0 var(--dtb-s4); }
.dtb-h2{ font-size: clamp(20px, 2vw, 28px); margin: 0 0 var(--dtb-s4); }
.dtb-muted{ color: var(--dtb-muted); }

/* ====== Header v1 ====== */
.dtb-mobile-row1,.dtb-mobile-row2,.dtb-mobile-searchpanel{display:none;}
.dtb-header{ width:100%; position:relative; }

/* Desktop header background (image/color via settings) */
.dtb-header--with_background{
  background-color: var(--dtb-desktop-header-bg-color, var(--dtb-bg));
  background-image: var(--dtb-desktop-header-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.dtb-header--with_background .dtb-header__top,
.dtb-header--with_background .dtb-header__nav{
  background: transparent;
}

.dtb-header__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--dtb-s4);
  padding: var(--dtb-s4) 0;
}
.dtb-header__left{
  display:flex;
  align-items:center;
  gap: var(--dtb-s4);
  min-width: 220px;
  justify-content:flex-start;
}
.dtb-header__right{
  display:flex;
  align-items:center;
  gap: var(--dtb-s4);
  min-width: 220px;
  justify-content:flex-end;
}
.dtb-header__center{ flex:1; display:flex; align-items:center; justify-content:center; }

.dtb-logo{ display:inline-flex; align-items:center; justify-content:center; }
.dtb-logo img,
.custom-logo,
.custom-logo-link img{
  width:auto !important;
  height:auto !important;
  max-height: var(--dtb-logo-max-height) !important;
  max-width: var(--dtb-logo-max-width) !important;
  display:block;
}
body.dtb-logo-by-height .dtb-logo img,
.custom-logo,
.custom-logo-link img{
  width:auto !important;
  height:auto !important;
  max-height: var(--dtb-logo-max-height) !important;
  max-width: var(--dtb-logo-max-width) !important;
  display:block;
}
body.dtb-logo-by-width .dtb-logo img,
.custom-logo,
.custom-logo-link img{
  width:auto !important;
  height:auto !important;
  max-height: var(--dtb-logo-max-height) !important;
  max-width: var(--dtb-logo-max-width) !important;
  display:block;
}

/* Polylang flags */
.dtb-lang{ display:flex; align-items:center; gap: 10px; }
.dtb-lang a{ display:inline-flex; align-items:center; gap:8px; opacity:.95; }
.dtb-lang img{ width: var(--dtb-flag-size, 18px); height: var(--dtb-flag-size, 18px); border-radius: 50%; display:block; }

/* Icon buttons */
.dtb-icons{ display:flex; align-items:center; justify-content:flex-end; gap: 14px; }
.dtb-icon-btn{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}
.dtb-icon-btn:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  text-decoration:none;
}
.dtb-icon{ width: var(--dtb-icon-size, 18px); height: var(--dtb-icon-size, 18px); fill:none; stroke:var(--dtb-icon-color,#fff); stroke-width:2; opacity:.92; }
.dtb-badge{
  /* Cart indicator: dot only (no count text) */
  position:absolute;
  bottom: 2px;
  right: 2px;
  top: auto;

  width: 8px;
  height: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 999px;

  background: #e10600; /* red dot */
  color: transparent;
  font-size: 0;
  line-height: 0;

  display:none; /* JS toggles to flex when cart > 0 */
  align-items:center;
  justify-content:center;
}


/* Nav row */
.dtb-header__nav{ border-top: 1px solid var(--dtb-border); padding: 12px 0 14px; }
.dtb-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap: 28px; }
.dtb-nav a{ opacity:.92; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.dtb-nav a:hover{ opacity:1; text-decoration:none; }

/* Variants */
.dtb-header--with-background{ background:#0b0b0b; border-bottom:1px solid var(--dtb-border); }
.dtb-header--transparent{
  position:absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dtb-header--transparent .dtb-header__nav{ border-top-color: rgba(255,255,255,.08); }

/* If transparent header is used on page without hero, prevent overlap */
body.dtb-has-transparent-header .dtb-main{ padding-top: calc(var(--dtb-s6) + 40px); }

/* WooCommerce minimal */
.woocommerce .woocommerce-breadcrumb{ color: var(--dtb-muted); }
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info{
  border-radius: var(--dtb-radius);
  border: 1px solid var(--dtb-border);
  background: var(--dtb-surface);
  padding: var(--dtb-s4);
}

/* Lovedoll-style Woo notices (success/info/error)
   - Desktop: compact single-row
   - Mobile: true full-width minus 5px side spacing
*/
.woocommerce .woocommerce-notices-wrapper,
.woocommerce-notices-wrapper{
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px){
  /* Mobile: break notices out of centered containers; true full-width minus 5px */
  .woocommerce .woocommerce-notices-wrapper,
  .woocommerce-notices-wrapper{
    box-sizing: border-box;
    width: calc(100vw - 10px);
    margin-left: calc(50% - 50vw + 5px);
    margin-right: calc(50% - 50vw + 5px);
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile: full-width notice row; text can wrap but button stays at right */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error{
  height: auto;
  min-height: 45px;
  padding: 8px 12px;
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 5px !important;
}


  /* Icon: keep inside the box, aligned with text (no badge above) */
  .woocommerce .woocommerce-notices-wrapper .woocommerce-message::before,
  .woocommerce-notices-wrapper .woocommerce-message::before{
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin: 0 8px 0 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Text block: smaller on mobile; allow wrapping while button stays fixed */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .woocommerce-message__content,
.woocommerce-notices-wrapper .woocommerce-message .woocommerce-message__content{
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.3;
}

  /* Mobile: hide the notice CTA button completely (auto-hide notice instead) */
  .woocommerce .woocommerce-notices-wrapper .woocommerce-message .button,
  .woocommerce-notices-wrapper .woocommerce-message .button{
    display: none !important;
  }

  /* Mobile: smooth auto-hide transition state */
  .woocommerce .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce .woocommerce-notices-wrapper .woocommerce-info,
  .woocommerce-notices-wrapper .woocommerce-info{
    transition: opacity .25s ease, transform .25s ease, max-height .35s ease, margin .35s ease, padding .35s ease;
    will-change: opacity, transform, max-height;
    max-height: 240px;
  }
  .dtb-notice-hide{
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
  }

}

/* Base notice look */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error{
  position: relative;
  background: #fbf2d6; /* lighter gold */
  color: #111;
  border: 1px solid rgba(186,155,55,.28);
  border-left: 0;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  margin-top: 5px;
  margin-bottom: 5px !important;
}

/* Success notice: compact single-row layout (icon + text + button) */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message{
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

/* Icon: keep it inline (no overlap with text) */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before{
  position: static !important;
  transform: none !important;
  margin: 0 12px 0 0 !important;
  color: #000 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Ensure message text doesn't collide with icon */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .woocommerce-message__content,
.woocommerce-notices-wrapper .woocommerce-message .woocommerce-message__content{
  line-height: 1.2;
}

/* Notice CTA button (e.g. View cart) */
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info .button,
.woocommerce-notices-wrapper .woocommerce-info .button,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error .button,
.woocommerce-notices-wrapper .woocommerce-error .button{
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button{
  margin: 5px 5px 5px auto !important;
}
.woocommerce .woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce .woocommerce-notices-wrapper .woocommerce-info .button:hover,
.woocommerce-notices-wrapper .woocommerce-info .button:hover,
.woocommerce .woocommerce-notices-wrapper .woocommerce-error .button:hover,
.woocommerce-notices-wrapper .woocommerce-error .button:hover{
  background: #ba9b37 !important;
  color: #000 !important;
}

/* Unify add-to-cart hover (main + related) */
.single_add_to_cart_button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.dtb-related-section a.button:hover{
  background: #ba9b37 !important;
  color: #000 !important;
}
.woocommerce ul.products{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--dtb-s5);
}

/* DTB Shop archive: 5 columns always on large screens */
@media (min-width: 1501px){
  .dtb-shop-products .woocommerce ul.products,
  .dtb-shop-archive-layout .woocommerce ul.products{ grid-template-columns:repeat(5, minmax(0, 1fr)) !important; }
}
.woocommerce ul.products li.product{
  background: var(--dtb-surface);
  border: 1px solid var(--dtb-border);
  border-radius: var(--dtb-radius);
  padding: var(--dtb-s4);
}
.woocommerce ul.products li.product .price{ color: var(--dtb-accent-2); }

@media (max-width: 720px){
  /* Mobile header layout (v1) */
  .dtb-header__nav{ display:block; }
  .dtb-header__left{ display:none; }
  .dtb-header__right{ min-width: 0; }
  .dtb-header__center{
    justify-content:flex-start;
  }
  .dtb-header__top{
    padding: 14px 0;
  }

  /* Mobile sizes from settings */
  .dtb-icon{
    width: var(--dtb-icon-size-mobile, var(--dtb-icon-size, 18px));
    height: var(--dtb-icon-size-mobile, var(--dtb-icon-size, 18px));
  }
  .dtb-lang img{
    width: var(--dtb-flag-size-mobile, var(--dtb-flag-size, 18px));
    height: var(--dtb-flag-size-mobile, var(--dtb-flag-size, 18px));
  }
  .dtb-logo img,
  .custom-logo,
  .custom-logo-link img{
    width:auto !important;
    height:auto !important;
    max-height: var(--dtb-mobile-logo-max-height, var(--dtb-logo-max-height)) !important;
    max-width: var(--dtb-mobile-logo-max-width, var(--dtb-logo-max-width)) !important;
    display:block;
  }

  /* Never transparent on mobile */
  body.dtb-has-transparent-header .dtb-header,
  .dtb-header--transparent{
    position: relative !important;
    background: #0b0b0b !important;
    border-bottom: 1px solid var(--dtb-border) !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
  }
}

}


/* Full-width page template helpers (for Slider Revolution / landing pages) */
.dtb-main--full{ padding: 0 !important; }
.dtb-main--full .dtb-container{ width: 100% !important; max-width: none !important; margin:0 !important; padding:0 !important; }




/* Transparent header overlay (Slider Revolution / hero starts at very top) */
body.dtb-has-transparent-header .dtb-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: transparent !important;
  border-bottom: 0 !important;
  z-index: 9999;
}
/* WP admin bar support */
body.admin-bar.dtb-has-transparent-header .dtb-header{ top: 32px; }
@media (max-width: 782px){
  body.admin-bar.dtb-has-transparent-header .dtb-header{ top: 46px; }
}

/* Keep header inner vertical rhythm stable (prevents logo "jumping") */
body.dtb-has-transparent-header .dtb-header__inner{
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Remove theme spacing above content when overlaying */
body.dtb-has-transparent-header .dtb-main{
  padding-top: 0 !important;
  margin-top: var(--dtb-content-offset-transparent, 0px);
}
body.dtb-has-transparent-header .dtb-container{ padding-top: 0 !important; }

/* Slider Revolution: remove any top gaps inside wrappers (theme-side safety net) */
body.dtb-has-transparent-header .rev_slider_wrapper,
body.dtb-has-transparent-header rs-module-wrap,
body.dtb-has-transparent-header rs-module{
  margin-top: 0 !important;
}



/* Content layout: full width (no container constraints/padding) */
body.dtb-content-layout-full .dtb-main{ padding: 0 !important; }
body.dtb-content-layout-full .dtb-main .dtb-container{ width: 100% !important; max-width: none !important; margin:0 !important; padding:0 !important; }


/* Header layout tweaks */
.dtb-header__left{flex:0 0 auto;}
.dtb-header__center{flex:1 1 auto; display:flex; justify-content:center;}
.dtb-header__right{flex:0 0 auto; margin-left:auto; display:flex; justify-content:flex-end;}
.dtb-lang-flag{display:inline-block; width:18px; height:18px; object-fit:contain;}


.dtb-toggle--row{ display:block; margin-top:10px; }

@media (max-width: 768px){:root{--dtb-logo-max-height:var(--dtb-mobile-logo-max-height, var(--dtb-logo-max-height));--dtb-logo-max-width:var(--dtb-mobile-logo-max-width, var(--dtb-logo-max-width));--dtb-icon-size:var(--dtb-icon-size-mobile, var(--dtb-icon-size));--dtb-flag-size:var(--dtb-flag-size-mobile, var(--dtb-flag-size));}}


/* ====== Mobile header layout ====== */
@media (max-width: 768px){
  /* No desktop nav on mobile (for now) */
  .dtb-header__nav{ display:none !important; }

  /* Hide language switcher on mobile */
  .dtb-header__left{ display:none !important; min-width:0 !important; }

  /* Logo to the left */
  .dtb-header__center{
    justify-content:flex-start !important;
  }
  .dtb-logo{
    justify-content:flex-start !important;
  }

  /* Right side should not reserve desktop min-width */
  .dtb-header__right{
    min-width:0 !important;
    margin-left:auto;
  }

  /* Mobile header background is never transparent */
  .dtb-header__top{
    background-color: var(--dtb-mobile-header-bg-color, var(--dtb-bg));
    background-image: var(--dtb-mobile-header-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 0 0 6px;
    border-bottom: 1px solid var(--dtb-border);
  }

  /* Header container must be full-bleed on mobile (no side gutters) */
  .dtb-header .dtb-container{
    width: 100%;
    margin-inline: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Remove default top padding so content (e.g. slider) can touch header */
  .dtb-main{ padding-top: 0; }

  /* Optional fixed header box height */
  .dtb-header__top{ min-height: var(--dtb-mobile-header-height, 0px); }
}





/* =========================================================
   Mobile header v3 (logo row + scroll menu row + fixed search)
   ========================================================= */
@media (max-width: 768px){
  /* Desktop nav hidden on mobile; use scroll row instead */
  .dtb-header__nav{ display:none !important; }

  /* Hide language switcher on mobile (for now) */
  .dtb-header__left{ display:none !important; min-width:0 !important; }

  /* Full-bleed header background */
  .dtb-header .dtb-container{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
  }

  .dtb-header__top{
    display:block;
    padding: 0;
    border-bottom: 0;
    background: none;
    min-height: var(--dtb-mobile-header-height, 0px);
  }

  /* Row 1: logo + icons */
  .dtb-mobile-row1{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 14px 14px 10px 14px;
    background-color: var(--dtb-mobile-header-bg-color, var(--dtb-bg));
    background-image: var(--dtb-mobile-header-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .dtb-mobile-row1__logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex: 1 1 auto;
    min-width: 0;
  }
  .dtb-mobile-row1__icons{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap: 12px;
    flex: 0 0 auto;
  }

  /* Ensure logo sits left */
  .dtb-header__center{ display:none !important; }
  .dtb-header__right{ display:none !important; }

  /* Row 2: menu between two lines (30px gap) + fixed search icon */
  .dtb-mobile-row2{
    display:block;
    padding: 0 14px;
    background-color: var(--dtb-mobile-menubar-bg, var(--dtb-bg));
    border-top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .dtb-mobile-menubar{
    display:flex;
    align-items:center;
    gap: 0;
    height: 40px; /* distance between the 2 lines */
  }
  .dtb-mobile-navwrap{
    position:relative;
    flex: 1 1 auto;
    min-width: 0;
  }

  .dtb-mobile-navscroll{
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /*
      Right-side padding is used to ensure the last menu item can be fully revealed
      even when a fade overlay + fixed search icon sits on the right.
      We apply it on the scroll container (affects snap offsets) AND also add an
      end-spacer on the UL (affects scrollable width).
    */
    padding: 0 var(--dtb-mobile-menu-right-padding, 0px) 0 0;
    scroll-padding-right: var(--dtb-mobile-menu-right-padding, 0px);
  }
  .dtb-mobile-menu,
  .dtb-mobile-menu ul{
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .dtb-mobile-menu{
    display:flex;
    align-items:center;
    gap: var(--dtb-mobile-menu-gap, 22px);
  }
  .dtb-mobile-menu > li{
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Extra scroll room at the end, so the fade overlay won't hide the last item.
     (Works whether the UL has .dtb-mobile-menu class or is a plain UL inside .dtb-mobile-navscroll.) */
  .dtb-mobile-menu::after,
  .dtb-mobile-navscroll ul::after{
    content:'';
    flex: 0 0 var(--dtb-mobile-menu-right-padding, 0px);
  }

  .dtb-mobile-navscroll::-webkit-scrollbar{ display:none; }

  .dtb-mobile-navscroll ul{
    display:flex;
    align-items:center;
    flex-wrap: nowrap;
    gap: var(--dtb-mobile-menu-gap, 22px);
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  @media (prefers-reduced-motion: no-preference){
    .dtb-mobile-navscroll ul{ animation: dtb-nav-hint 1.9s ease 0.6s 2; }
    @keyframes dtb-nav-hint{
      0%{ transform: translateX(0); }
      35%{ transform: translateX(-40px); }
      70%{ transform: translateX(0); }
      100%{ transform: translateX(0); }
    }
  }


  .dtb-mobile-navscroll li{
    flex: 0 0 auto;
    scroll-snap-align: start;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .dtb-mobile-navscroll a{
    display:inline-flex;
    align-items:center;
    height: 30px;
    line-height: 30px;
    padding: 0;
    font-size: var(--dtb-mobile-menu-font-size, 14px);
    font-weight: var(--dtb-mobile-menu-font-weight, 600);
    letter-spacing: .02em;
    color: var(--dtb-mobile-menu-color, var(--dtb-text));
    text-decoration:none;
    text-transform: var(--dtb-mobile-menu-text-transform, uppercase);
  }
  .dtb-mobile-navscroll a:focus{ outline: 2px solid rgba(255,255,255,.25); outline-offset: 3px; border-radius: 8px; }

  /* Fade overlay to hint scroll under the fixed search icon */
  .dtb-mobile-navwrap::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width: var(--dtb-mobile-menu-fade-width, 50px);
    height: 100%;
    pointer-events:none;
    background: linear-gradient(to right,
      rgba(0,0,0,0),
      var(--dtb-mobile-menubar-bg, var(--dtb-bg)) 75%
    );
  }

  .dtb-mobile-searchbtn{
    flex: 0 0 auto;
    width: 40px; /* tap target */
    height: 40px; /* match menubar height */
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color: var(--dtb-mobile-search-icon-color, var(--dtb-icon-color));
  }
  .dtb-mobile-searchbtn .dtb-ico-close{ display:none; }
  body.dtb-mobile-search-open .dtb-mobile-searchbtn .dtb-ico-search{ display:none; }
  body.dtb-mobile-search-open .dtb-mobile-searchbtn .dtb-ico-close{ display:block; }

  .dtb-mobile-searchbtn .dtb-icon{ width: var(--dtb-icon-size); height: var(--dtb-icon-size); }

  /* Row 3: slide-down search panel */
  .dtb-mobile-searchpanel{
    display:block;
    overflow:hidden;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    /* Keep mobile search panel readable even when site content area is light */
    background: var(--dtb-mobile-menubar-bg, var(--dtb-bg));
    color: #ffffff;
    transition: max-height .22s ease, padding .22s ease;
  }
  body.dtb-mobile-search-open .dtb-mobile-searchpanel{
    max-height: 140px;
    padding: 5px 14px;
  }

  .dtb-mobile-search__form{
    position:relative;
    display:flex;
    align-items:center;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow:hidden;
  }
  .dtb-mobile-search__input{
    width:100%;
    border:0;
    outline:none;
    padding: 14px 46px 14px 16px;
    background: transparent;
    color: inherit;
    font-size: 14px;
  }
  .dtb-mobile-search__input::placeholder{color: rgba(255,255,255,0.68);}
  .dtb-mobile-search__btn{
    position:absolute;
    right: 10px;
    top:50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border:0;
    border-radius: 12px;
    background: rgba(255,255,255,0.10);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .dtb-mobile-search__btn .dtb-icon{width: var(--dtb-icon-size); height: var(--dtb-icon-size); }
}

/* Ensure cart dot sizing on mobile */
@media (max-width: 768px){
  .dtb-badge{ width:8px; height:8px; min-width:0; padding:0; font-size:0; line-height:0; }
}
/* === DTB: Desktop header full width option === */
@media (min-width: 769px){
  .dtb-header--fullwidth .dtb-container{
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-left: var(--dtb-header-side-padding, 24px);
    padding-right: var(--dtb-header-side-padding, 24px);
  }
}

/* ==========================================================
   Light page palette (site content) – header remains dark
   NOTE: Header uses scoped CSS variables to keep its design.
   ========================================================== */

:root{
  --dtb-bg: #ffffff;
  --dtb-surface: #ffffff;
  --dtb-surface-2: #f6f6f6;
  --dtb-text: #111111;
  --dtb-muted: #555555;
  --dtb-border: rgba(0,0,0,.12);
}

/* Keep DTB header dark (desktop + mobile) without affecting page palette */
.dtb-header{
  --dtb-bg: #0b0b0b;
  --dtb-surface: #111111;
  --dtb-surface-2: #151515;
  --dtb-text: #f4f4f4;
  --dtb-muted: #bfc4ca;
  --dtb-border: rgba(255,255,255,.10);
}


.dtb-gallery-zoom .dtb-icon{width:22px; height:22px; fill:#111; display:block;}


/* Single product typography */
.single-product .product_title{font-size:26px; font-weight:400; line-height:1.2; margin-block-start:25px;}
.single-product .summary .price del,
.single-product .summary .price del .woocommerce-Price-amount{font-size:22px; font-weight:400; color:rgb(115, 115, 115); opacity:1;}
.single-product .summary .price ins,
.single-product .summary .price ins .woocommerce-Price-amount{font-size:38px; font-weight:400; text-decoration:none; color:rgb(40, 40, 40);}


/* ===============================
   Nordic Minimal Quantity Style
   =============================== */

.single-product .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-product .quantity input.qty {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    height: 48px;
    width: 60px;

    font-size: 16px;
    font-family: "Poppins", sans-serif;
    text-align: center;
    padding: 0;

    appearance: none;
}

.single-product .quantity input[type=number]::-webkit-inner-spin-button,
.single-product .quantity input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ===============================
   Single Product CTA + Layout Fixes
   =============================== */

/* Product title spacing (explicit) */
.single-product h1.product_title.entry-title,
.single-product h1.product_title {
    margin-top: 25px !important;
}

/* Add to cart button (force DTB style) */
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart .single_add_to_cart_button.button,
.single-product form.cart .single_add_to_cart_button.button.alt {
    background-color: rgb(40, 40, 40) !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgb(255, 255, 255) !important;
    border-radius: 40px !important;
    box-shadow: none !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 22px !important;
    font-weight: 400 !important;
    font-family: "Poppins", sans-serif !important;
}

/* Hover */
.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus {
    background-color: #ba9b37;
    color: #000000 !important;
    outline: none !important;
    border-bottom-color: #ba9b37 !important;
}



/* Related products Add to cart button (match main DTB style) */
body.single-product .dtb-related-section a.button.add_to_cart_button,
body.single-product .dtb-related-section a.button.product_type_simple,
body.single-product .dtb-related-section a.button.product_type_variable,
body.single-product .dtb-related-section a.button.product_type_grouped,
body.single-product .dtb-related-section a.button.product_type_external {
    background-color: rgb(40, 40, 40) !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgb(255, 255, 255) !important;
    border-radius: 40px !important;
    box-shadow: none !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 22px !important;
    font-weight: 400 !important;
    font-family: "Poppins", sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}

body.single-product .dtb-related-section a.button.add_to_cart_button:hover,
body.single-product .dtb-related-section a.button.add_to_cart_button:focus,
body.single-product .dtb-related-section a.button.product_type_simple:hover,
body.single-product .dtb-related-section a.button.product_type_simple:focus,
body.single-product .dtb-related-section a.button.product_type_variable:hover,
body.single-product .dtb-related-section a.button.product_type_variable:focus,
body.single-product .dtb-related-section a.button.product_type_grouped:hover,
body.single-product .dtb-related-section a.button.product_type_grouped:focus,
body.single-product .dtb-related-section a.button.product_type_external:hover,
body.single-product .dtb-related-section a.button.product_type_external:focus {
    background-color: #ba9b37 !important;
    color: #000000 !important;
    border-bottom-color: #ba9b37 !important;
    outline: none !important;
}
/* Ensure no focus ring from theme */
.single-product form.cart .single_add_to_cart_button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Center align cart CTA row on mobile */
@media (max-width: 768px) {
    .single-product .wrap-cart-cta,
    .single-product form.cart,
    .single-product .woocommerce-variation-add-to-cart {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
}


/* ===============================
   Single Product Mobile Typography & Visibility
   =============================== */

/* Product title size */
.single-product h1.product_title.entry-title,
.single-product h1.product_title {
    font-size: 22px !important;
    font-weight: 400 !important;
}

/* Center title + price on mobile */
@media (max-width: 768px) {
    .single-product .summary,
    .single-product .summary h1.product_title.entry-title,
    .single-product .summary h1.product_title,
    .single-product .summary .price,
    .single-product .summary .woocommerce-Price-amount,
    .single-product .summary .woocommerce-product-rating {
        text-align: center !important;
    }

    .single-product .summary .price {
        justify-content: center !important;
    }
}

/* Hide product meta (category/brand) */
.single-product .product_meta {
    display: none !important;
}

/* Hide reviews + tabs section entirely */
.single-product .woocommerce-tabs,
.single-product #reviews,
.single-product .woocommerce-product-rating {
    display: none !important;
}

/* ===============================
   Quantity +/- Controls
   =============================== */

.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.single-product form.cart .dtb-qty-btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 40px !important;
    line-height: 28px !important;
    text-align: center !important;
    cursor: pointer !important;
    color: rgb(40, 40, 40) !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    user-select: none !important;
}

.single-product form.cart .dtb-qty-btn:active {
    transform: translateY(1px);
}

.single-product form.cart .dtb-qty-btn:focus,
.single-product form.cart .dtb-qty-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure qty input remains minimal, centered */
.single-product form.cart .quantity input.qty {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 46px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
}


/* ===============================
   Single Product Titles: underline + weights
   =============================== */

/* Product title: weight 500 + underline like menu */
.single-product h1.product_title.entry-title,
.single-product h1.product_title {
    font-weight: 500 !important;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
    text-decoration-skip-ink: auto;
}

/* Related products title: mobile center, 38px, weight 400, letter-spacing -2, underline */
@media (max-width: 768px) {
    .single-product .related.products > h2,
    .single-product .related > h2,
    .single-product .up-sells > h2,
    .single-product .cross-sells > h2 {
        text-align: center !important;
        font-size: 38px !important;
        font-weight: 400 !important;
        letter-spacing: -2px !important;
        font-family: "Poppins", sans-serif !important;

        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 10px;
        text-decoration-skip-ink: auto;
    }
}


/* ===============================
   Product Gallery Zoom Icon Fix
   =============================== */

/* Ensure zoom icon is visible */
.single-product .woocommerce-product-gallery__trigger,
.single-product .dtb-gallery-main .zoom,
.single-product .dtb-gallery-main .woocommerce-product-gallery__trigger {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 20 !important;
}

/* Style zoom icon for visibility */
.single-product .woocommerce-product-gallery__trigger {
    background: rgba(0,0,0,0.6) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-align: center !important;
}

/* If SVG inside */
.single-product .woocommerce-product-gallery__trigger svg {
    fill: #ffffff !important;
}


/* ===============================
   Product Gallery Zoom Icon Fallback (DTB)
   =============================== */

/* The button exists, but svg.dtb-icon is empty in markup; draw icon via pseudo-element */
.single-product .dtb-gallery-zoom,
.single-product .dtb-gallery-zoom-btn,
.single-product .dtb-gallery-zoom-button,
.single-product .woocommerce-product-gallery__trigger {
    position: relative;
}

/* If there's an empty SVG, hide it so fallback can show */
.single-product .dtb-gallery-zoom svg.dtb-icon,
.single-product .dtb-gallery-zoom-btn svg.dtb-icon,
.single-product .dtb-gallery-zoom-button svg.dtb-icon {
    display: none !important;
}

/* Fallback magnifier */
.single-product .dtb-gallery-zoom::before,
.single-product .dtb-gallery-zoom-btn::before,
.single-product .dtb-gallery-zoom-button::before,
.single-product .woocommerce-product-gallery__trigger::before {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="%23ffffff" d="M10 4a6 6 0 104.472 10.01l3.259 3.26a1 1 0 001.414-1.415l-3.26-3.258A6 6 0 0010 4zm0 2a4 4 0 110 8 4 4 0 010-8z"/>
</svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    inset: 0;
    margin: auto;
    pointer-events: none;
}


/* ===============================
   Product Gallery Zoom Icon (Custom SVG 40px)
   =============================== */

.single-product .dtb-gallery-zoom svg.dtb-icon,
.single-product .dtb-gallery-zoom-btn svg.dtb-icon,
.single-product .dtb-gallery-zoom-button svg.dtb-icon,
.single-product .woocommerce-product-gallery__trigger svg {
    display: none !important;
}

.single-product .dtb-gallery-zoom,
.single-product .dtb-gallery-zoom-btn,
.single-product .dtb-gallery-zoom-button,
.single-product .woocommerce-product-gallery__trigger {
    position: relative;
    width: 40px !important;
    height: 40px !important;
}

.single-product .dtb-gallery-zoom::before,
.single-product .dtb-gallery-zoom-btn::before,
.single-product .dtb-gallery-zoom-button::before,
.single-product .woocommerce-product-gallery__trigger::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    background-image: url("../img/zoom-21.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}


/* ===============================
   Zoom Icon Position Fix (bottom-right 20px)
   =============================== */

/* Ensure gallery container is positioning context */
.single-product .dtb-gallery-main,
.single-product .woocommerce-product-gallery {
    position: relative !important;
}

/* Position zoom button */
.single-product .dtb-gallery-zoom,
.single-product .dtb-gallery-zoom-btn,
.single-product .dtb-gallery-zoom-button,
.single-product .woocommerce-product-gallery__trigger {
    position: absolute !important;
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 30 !important;
}


/* ===============================
   Gallery Height Sync Fix
   =============================== */

/* Remove any fixed height from main */
.single-product .dtb-gallery-main {
    height: auto !important;
    min-height: 0 !important;
}

/* Ensure track defines height */
.single-product .dtb-gallery-track {
    height: auto !important;
}

/* Make main follow track naturally */
.single-product .dtb-gallery-main,
.single-product .dtb-gallery-track {
    display: block !important;
}


/* ===============================
   Desktop Single Product Split Layout
   Left: scrollable 2-col gallery
   Right: product summary
   =============================== */

@media (min-width: 1025px) {
  .single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: start;
  }

  /* Left column (Woo gallery wrapper) */
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .dtb-gallery-wrap {
    width: 100% !important;
    margin: 0 !important;
  }

	  /* ===============================
	     DESKTOP LAYOUT 1 (snapshot): vertical scroll + 2-col grid in main
	     =============================== */
	  body.dtb-sp-desktop-layout_1.single-product div.product .woocommerce-product-gallery {
	    position: sticky;
	    top: var(--dtb-sticky-top, 110px);
	    height: calc(100vh - 130px);
	    overflow-y: auto;
	    overflow-x: hidden;
	    padding-right: 8px;
	  }

	  body.dtb-sp-desktop-layout_1.single-product .dtb-gallery-main {
	    overflow: visible !important;
	    scroll-snap-type: none !important;
	    height: auto !important;
	  }

	  body.dtb-sp-desktop-layout_1.single-product .dtb-gallery-track {
	    display: grid !important;
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	    gap: 24px;
	    width: 100% !important;
	  }

	  body.dtb-sp-desktop-layout_1.single-product .dtb-gallery-slide {
	    flex: none !important;
	    width: auto !important;
	    scroll-snap-align: none !important;
	  }

	  body.dtb-sp-desktop-layout_1.single-product .dtb-gallery-slide img {
	    width: 100%;
	    height: auto;
	    display: block;
	    border-radius: 18px;
	  }

	  /* Hide thumbs on desktop for layout 1 (grid replaces them) */
	  body.dtb-sp-desktop-layout_1.single-product .dtb-gallery-thumbs{ display:none !important; }

	  /* ===============================
	     DESKTOP LAYOUT 2: horizontal scroll main (2 visible) + horizontal portrait thumbs
	     =============================== */
	  body.dtb-sp-desktop-layout_2.single-product div.product .woocommerce-product-gallery {
	    position: sticky;
	    top: var(--dtb-sticky-top, 110px);
	    height: auto;
	    overflow: visible;
	    padding-right: 0;
	  }

	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-main{
	    overflow-x:auto !important;
	    overflow-y:hidden !important;
	    -webkit-overflow-scrolling:touch;
	    scroll-snap-type:x mandatory;
	    scrollbar-width: none;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-main::-webkit-scrollbar{ display:none; }

	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-track{
	    display:grid !important;
	    grid-auto-flow:column !important;
	    grid-auto-columns:calc(50% - 12px) !important;
	    gap:24px;
	    padding-bottom: 8px;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-slide{
	    flex: none !important;
	    width: 100% !important;
	    scroll-snap-align:start;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-slide img{
	    width:100%;
	    height:auto;
	    display:block;
	    border-radius:18px;
	  }

	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs{
	    display:block !important;
	    margin-top: 18px;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs{
	    overflow-x:auto;
	    overflow-y:hidden;
	    -webkit-overflow-scrolling:touch;
	    scrollbar-width:none;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs::-webkit-scrollbar{ display:none; }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs-inner{
	    display:flex;
	    flex-wrap:nowrap;
	    gap:12px;
	    width:max-content;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs-inner .dtb-thumb{
	    display:block;
	    width: 86px;
	    aspect-ratio: 2 / 3;
	    border-radius: 12px;
	    overflow:hidden;
	  }
	  body.dtb-sp-desktop-layout_2.single-product .dtb-gallery-thumbs-inner .dtb-thumb img{
	    width:100%;
	    height:100%;
	    object-fit:cover;
	    display:block;
	  }
  .single-product .dtb-gallery-thumbs {
    display: none !important;
  }

  /* Keep zoom button on main image area; position relative to gallery wrapper */
  .single-product .dtb-gallery-wrap {
    position: relative;
  }

  .single-product .dtb-gallery-zoom {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 30;
  }

  /* Right column */
  .single-product div.product .summary {
    width: 100% !important;
    margin: 0 !important;
  }
}


/* ===============================
   Desktop Split Product Layout (Gallery left, Info right)
   Desktop only: does NOT affect mobile
   =============================== */
@media (min-width: 1025px) {

  /* Split the main product container into 2 columns */
  body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 48px !important;
    align-items: start !important;
  }

  /* Left: gallery column */
  body.single-product .dtb-gallery-wrap,
  body.single-product .woocommerce-product-gallery {
    grid-column: 1;
  }

  /* Right: summary column */
  body.single-product .summary,
  body.single-product .entry-summary {
    grid-column: 2;
  }

  /* Make gallery independently scrollable (like sample) */
  body.single-product .dtb-gallery-wrap {
    position: sticky !important;
    top: 110px !important; /* safe header offset */
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-right: 8px; /* small gutter for scrollbar */
  }

  /* Two images per row */
  body.single-product .dtb-gallery-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  /* Ensure slides behave as grid items */
  body.single-product .dtb-gallery-slide {
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }

  body.single-product .dtb-gallery-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 18px; /* matches sample vibe */
  }

  /* Desktop: hide thumbs row (grid replaces it) */
  body.single-product .dtb-gallery-thumbs {
    display: none !important;
  }
}


/* ===============================
   Desktop Split Product Layout (Robust selectors, 40px gap)
   Desktop only: does NOT affect mobile
   =============================== */
@media (min-width: 1025px) {

  /* Make sure we catch different wrappers (Woo + custom themes) */
  body.single-product .product,
  body.single-product div.product,
  body.single-product .product.product--medium,
  body.single-product .product.product--stacked,
  body.single-product .product.product-left,
  body.single-product .product.product-right {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
    gap: 40px !important;
    align-items: start !important;
  }

  /* LEFT column: media / gallery */
  body.single-product .woocommerce-product-gallery,
  body.single-product .dtb-gallery-wrap,
  body.single-product .product__media,
  body.single-product .product__media-wrapper,
  body.single-product .product__gallery,
  body.single-product .product__images,
  body.single-product .product__image-grid {
    grid-column: 1;
  }

  /* RIGHT column: summary / info */
  body.single-product .summary,
  body.single-product .entry-summary,
  body.single-product .product__info,
  body.single-product .product__info-wrapper,
  body.single-product .product__details,
  body.single-product .product__content {
    grid-column: 2;
  }

  /* Sticky scroll for the LEFT column (gallery) */
  body.single-product .dtb-gallery-wrap,
  body.single-product .woocommerce-product-gallery,
  body.single-product .product__media-wrapper,
  body.single-product .product__media {
    position: sticky !important;
    top: 110px !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-right: 8px;
  }

  /* DTB gallery: 2-column grid on desktop */
  body.single-product .dtb-gallery-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  body.single-product .dtb-gallery-slide {
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
  }

  body.single-product .dtb-gallery-thumbs {
    display: none !important;
  }
}


/* ===============================
   Desktop Gallery Tuning (400px portrait, rounded, top padding, hide scrollbar)
   Desktop only: does NOT affect mobile
   =============================== */
@media (min-width: 1025px) {

  /* Add 40px top padding above gallery images */
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-wrap,
  body.single-product .dtb-container.dtb-woo-container .woocommerce-product-gallery {
    padding-top: 40px !important;
  }

  /* Two fixed portrait columns: 400px each */
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-track {
    grid-template-columns: repeat(2, 400px) !important;
    justify-content: start !important;
  }

  /* Image sizing: 2:3 portrait with rounded corners */
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-slide img,
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-slide .wp-post-image,
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-slide img.attachment-large {
    width: 400px !important;
    aspect-ratio: 2 / 3;
    height: auto !important;
    object-fit: cover;
    border-radius: 18px !important;
    display: block !important;
  }

  /* Hide the vertical scrollbar but keep scrolling */
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-wrap {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
  }
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}


/* ===============================
   Mobile: Make before-add-to-cart fields full width
   =============================== */
@media (max-width: 768px) {
  .single-product .pff-fields.before-add-to-cart,
  .single-product .pff-fields.before-add-to-cart * {
    box-sizing: border-box;
  }

  .single-product .pff-fields.before-add-to-cart {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ===============================
   Mobile: Force single-column (full-width) layout for add-to-cart form
   =============================== */
@media (max-width: 768px) {

  /* Main add-to-cart form (also covers PFP plugin form id) */
  .single-product form.cart,
  .single-product form#pfp-add-to-cart-form.cart,
  .single-product .woocommerce-variation-add-to-cart,
  .single-product .wrap-cart-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Every direct child uses full width */
  .single-product form.cart > *,
  .single-product form#pfp-add-to-cart-form.cart > *,
  .single-product .woocommerce-variation-add-to-cart > *,
  .single-product .wrap-cart-cta > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* If any nested grid/flex columns exist inside plugin fields, flatten them */
  .single-product .pff-fields.before-add-to-cart,
  .single-product .pff-fields.before-add-to-cart .pff-field,
  .single-product .pff-fields.before-add-to-cart .pff-field * {
    max-width: 100% !important;
  }

  /* Quantity row: keep +/- and input on one line, but take full width */
  .single-product form.cart .quantity {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
  }

  .single-product form.cart .quantity input.qty {
    width: 72px !important;
  }
}


/* ===============================
   Desktop: Reduce gallery top padding to 20px
   =============================== */
@media (min-width: 1025px) {
  body.single-product .dtb-container.dtb-woo-container .dtb-gallery-wrap,
  body.single-product .dtb-container.dtb-woo-container .woocommerce-product-gallery {
    padding-top: 20px !important;
  }
}


/* ===============================
   Desktop adjustments
   =============================== */
@media (min-width: 1025px) {

  /* dtb-gallery-wrap top padding 20px */
  body.single-product .dtb-gallery-wrap {
    padding-top: 20px !important;
  }

  /* Product title 30px */
  body.single-product h1.product_title,
  body.single-product h1.entry-title {
    font-size: 30px !important;
  }

}


/* ===============================
   Mobile: FPF add-to-cart form strict single column
   =============================== */
@media (max-width: 768px) {

  /* Force form to block layout */
  .single-product form#fpf-add-to-cart-form,
  .single-product form#fpf-add-to-cart-form.cart {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Any internal row/column wrapper becomes block */
  .single-product form#fpf-add-to-cart-form .row,
  .single-product form#fpf-add-to-cart-form [class*="col"],
  .single-product form#fpf-add-to-cart-form .columns,
  .single-product form#fpf-add-to-cart-form .fpf-field {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Direct children full width */
  .single-product form#fpf-add-to-cart-form > * {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
  }

}


/* ===============================
   Mobile: Force FPF/PFP form into single column (robust)
   =============================== */
@media (max-width: 768px) {
  .single-product form#fpf-add-to-cart-form,
  .single-product form#fpf-add-to-cart-form.cart,
  .single-product form#pfp-add-to-cart-form,
  .single-product form#pfp-add-to-cart-form.cart {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Flatten common column systems and any flex/grid wrappers inside the form */
  .single-product form#fpf-add-to-cart-form *,
  .single-product form#pfp-add-to-cart-form * {
    box-sizing: border-box;
  }

  .single-product form#fpf-add-to-cart-form .row,
  .single-product form#pfp-add-to-cart-form .row,
  .single-product form#fpf-add-to-cart-form [class*="col"],
  .single-product form#pfp-add-to-cart-form [class*="col"],
  .single-product form#fpf-add-to-cart-form .columns,
  .single-product form#pfp-add-to-cart-form .columns,
  .single-product form#fpf-add-to-cart-form .fpf-fields,
  .single-product form#pfp-add-to-cart-form .fpf-fields,
  .single-product form#fpf-add-to-cart-form .fpf-field,
  .single-product form#pfp-add-to-cart-form .fpf-field,
  .single-product form#fpf-add-to-cart-form .pff-fields,
  .single-product form#pfp-add-to-cart-form .pff-fields {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
  }

  /* If a wrapper uses flex or grid, force it to one column */
  .single-product form#fpf-add-to-cart-form .row,
  .single-product form#pfp-add-to-cart-form .row,
  .single-product form#fpf-add-to-cart-form .fpf-fields,
  .single-product form#pfp-add-to-cart-form .fpf-fields,
  .single-product form#fpf-add-to-cart-form .pff-fields,
  .single-product form#pfp-add-to-cart-form .pff-fields {
    display: block !important;
  }

  .single-product form#fpf-add-to-cart-form [style*="grid"],
  .single-product form#pfp-add-to-cart-form [style*="grid"] {
    display: block !important;
  }

  .single-product form#fpf-add-to-cart-form [style*="display:flex"],
  .single-product form#pfp-add-to-cart-form [style*="display:flex"] {
    display: block !important;
  }
}


/* ===============================
   Single product: keep SALE badge on the first gallery image
   =============================== */
body.single-product .dtb-gallery-slide,
body.single-product .woocommerce-product-gallery__image{
  position: relative;
}

body.single-product .dtb-gallery-slide .dtb-sale-badge,
body.single-product .woocommerce-product-gallery__image .dtb-sale-badge{
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
}



/* Prevent background scrolling when DTB lightbox is open */
html.dtb-no-scroll, body.dtb-no-scroll{overflow:hidden;}


/* Ensure post-product sections don't overlap sticky gallery */
@media (min-width: 1025px) {
  body.single-product div.product .woocommerce-tabs,
  body.single-product div.product .related,
  body.single-product div.product .upsells,
  body.single-product div.product .cross-sells {
    grid-column: 1 / -1;
  }

  body.single-product div.product .related {
    margin-top: 60px;
    position: relative;
    z-index: 1;
  }

  body.single-product .dtb-gallery-wrap {
    z-index: 2;
  }
}

/* Hide scrollbar but keep scrollability (desktop gallery + any overflow areas) */
body.single-product .dtb-gallery-wrap {
  -ms-overflow-style: none;      /* IE and Edge */
  scrollbar-width: none;         /* Firefox */
}
body.single-product .dtb-gallery-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}



/* === DTB Single Product Desktop Scroll Fixes (v1.1.25) === */
@media (min-width: 1025px){
  /* Keep the top gap above gallery images fixed (no dynamic sticky-top calculations) */
  body.single-product .woocommerce-product-gallery{
    position: sticky !important;
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.single-product .dtb-gallery-wrap{
    /* fixed visual gap */
    padding-top: 20px !important;

    /* left column stays the left column, but content inside aligns right */
    margin-left: auto !important;
    justify-self: end !important;

    /* internal scrolling (hide scrollbar where possible) */
    max-height: calc(100vh - 20px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -ms-overflow-style: none;      /* IE/Edge */
    scrollbar-width: none;         /* Firefox */
  }
  body.single-product .dtb-gallery-wrap::-webkit-scrollbar{ width:0; height:0; }

  /* Make the split section responsive and prevent related products from overlaying the gallery */
  body.single-product div.product.dtb-product-split{
    height: calc(100vh - 0px) !important;
    overflow: hidden !important;
    align-items: start !important;
  }
  body.single-product div.product.dtb-product-split .summary,
  body.single-product div.product.dtb-product-split .summary.entry-summary{
    max-height: calc(100vh - 0px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Ensure related/upsells/cross-sells always start below the split section and span full width */
  body.single-product .related.products,
  body.single-product .up-sells,
  body.single-product .cross-sells{
    clear: both !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: 60px !important;
  }
}


/* ===== DTB: Single product desktop split layout (v1.1.26) ===== */
@media (min-width: 769px){
  /* Only wrap top section in flex so related products/tabs stay below */
  .single-product div.product .dtb-product-top{
    display:flex;
    align-items:flex-start;
    gap:40px;
  }

  /* Left: gallery column */
  .single-product div.product .dtb-product-top .dtb-gallery-wrap{
    flex: 1 1 0;
    max-width: none;
    padding-top:20px !important; /* keep fixed gap */
    overflow-y:auto;
    overflow-x:hidden;
    max-height: calc(100vh - 140px);
    scrollbar-width: none; /* Firefox */
  }
  .single-product div.product .dtb-product-top .dtb-gallery-wrap::-webkit-scrollbar{
    width:0; height:0;
  }

  /* Make gallery grid 2 columns, right-aligned inside wrap */
  .single-product div.product .dtb-product-top .dtb-gallery-main{
    overflow: visible !important;
  }
  .single-product div.product .dtb-product-top .dtb-gallery-track{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap:20px;
    justify-content:end; /* right align grid inside wrap */
    align-content:start;
  }
  .single-product div.product .dtb-product-top .dtb-gallery-slide{
    width:auto !important;
    flex: initial !important;
  }
  .single-product div.product .dtb-product-top .dtb-gallery-slide img{
    width:100%;
    height:auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    cursor: zoom-in;
  }

  /* Right: summary column */
  .single-product div.product .dtb-product-top .summary.entry-summary{
    flex: 1 1 0;
    max-width: none;
    padding-top:20px; /* match gallery top gap */
  }
}

/* Mobile: stack naturally */
@media (max-width: 768px){
  .single-product div.product .dtb-product-top{
    display:block;
  }
}
/* --- DTB: Single product gallery sticky/top gap fix --- */
@media (min-width: 1024px){
  body.single-product .dtb-gallery-wrap{
    padding-top: 20px !important;
    top: 20px !important;
    max-height: calc(100vh - 20px) !important;
  }
}

/* Prevent related products block from overlapping the split layout */
body.single-product .related.products,
body.single-product section.related.products{
  clear: both;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

body.single-product .dtb-product-split{
  position: relative;
  z-index: 2;
}

/* ===============================
   Related Products: button consistency (Single Product)
   =============================== */
.single-product .dtb-related-section .products a.button,
.single-product .dtb-related-section .products a.button.alt,
.single-product .dtb-related-section .products a.add_to_cart_button,
.single-product .dtb-related-section .products a.add_to_cart_button.alt {
    background-color: rgb(40, 40, 40) !important;
    color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid rgb(255, 255, 255) !important;
    border-radius: 40px !important;
    box-shadow: none !important;
    height: 48px !important;
    padding: 0 22px !important;
    font-weight: 400 !important;
    font-family: "Poppins", sans-serif !important;
    line-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.single-product .dtb-related-section .products a.button:hover,
.single-product .dtb-related-section .products a.button:focus,
.single-product .dtb-related-section .products a.add_to_cart_button:hover,
.single-product .dtb-related-section .products a.add_to_cart_button:focus {
    background-color: #ba9b37 !important;
    color: #000000 !important;
    outline: none !important;
}

/* ============================================================
   v1.1.60 overrides: Desktop product title (30px) + remove underline
   ============================================================ */
@media (min-width: 1025px){
  body.single-product h1.product_title,
  body.single-product h1.product_title.entry-title,
  body.single-product .summary h1.product_title,
  body.single-product .summary h1.product_title.entry-title{
    font-size: 30px !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
  }
}

/* ------------------------------------------------------------
   Single product + Related products: typography & CTA (v1.1.61)
   ------------------------------------------------------------ */

/* Desktop product title */
@media (min-width: 769px){
  .single-product h1.product_title.entry-title{
    font-size: 30px !important;
    text-decoration: none !important;
    border-bottom: none !important;
  }
  .single-product h1.product_title.entry-title a{
    text-decoration: none !important;
    border-bottom: none !important;
  }
}

/* Add to cart hover (single + loops) */
.single-product button.single_add_to_cart_button.button,
.single-product button.single_add_to_cart_button.button.alt,
.single-product .single_add_to_cart_button,
.dtb-related-section a.button,
.dtb-related-section a.add_to_cart_button,
.dtb-related-section a.product_type_simple{
  background: #111 !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.single-product button.single_add_to_cart_button.button:hover,
.single-product button.single_add_to_cart_button.button.alt:hover,
.single-product .single_add_to_cart_button:hover,
.dtb-related-section a.button:hover,
.dtb-related-section a.add_to_cart_button:hover,
.dtb-related-section a.product_type_simple:hover{
  background: #ba9b37 !important;
  color: #000 !important;
}

/* Related products: 2:3 portrait images */
.dtb-related-section ul.products li.product a img,
.dtb-related-section ul.products li.product img{
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Related products: title + price typography (same for desktop + mobile) */
.dtb-related-section .woocommerce-loop-product__title{
  font-size: 20px !important;
  text-decoration: none !important;
}

.dtb-related-section .price,
.dtb-related-section .woocommerce-Price-amount.amount,
.dtb-related-section .woocommerce-Price-amount,
.dtb-related-section .price ins,
.dtb-related-section .price del{
  font-size: 24px !important;
  text-decoration: none !important;
}

.dtb-related-section .price a,
.dtb-related-section .woocommerce-Price-amount.amount a{
  text-decoration: none !important;
}
/* DTB PATCH v1.1.82: Cart dot + mobile spacing */
/* Cart badge -> red dot (works for both desktop + mobile). Show only when count > 0. */
.dtb-icon-btn{ position:relative; }
.dtb-badge{
  position:absolute !important;
  width:8px !important;
  height:8px !important;
  min-width:8px !important;
  line-height:8px !important;
  border-radius:50% !important;
  background:#e10600 !important;
  padding:0 !important;
  bottom:2px !important;
  right:2px !important;
  font-size:0 !important;
  color:transparent !important;
  display:none !important;
  box-shadow:none !important;
  border:0 !important;
}
/* Force show when count attribute is not 0 (override inline display:none). */
.dtb-badge[data-dtb-cart-count]:not([data-dtb-cart-count="0"]){
  display:block !important;
}

/* Mobile tweaks requested */
.dtb-mobile-row2{ margin-right:0 !important; }
.dtb-mobile-menu{ padding-right:20px !important; }
/* END DTB PATCH v1.1.82 */


/* ====== Mobile header tweaks (v1.1.83) ====== */
@media (max-width: 768px){
  .dtb-mobile-row2{
    margin-right: 0px !important;
  }
  .dtb-mobile-menu{
    margin-right: 20px !important;
  }
}


/* ====== DTB: Single product fixes (v1.1.157) ====== */

/* 1. Gallery sticky gap: remove inner top padding so no blank bar appears on scroll */
@media (min-width: 769px) {
  .single-product div.product .dtb-product-top .dtb-gallery-wrap {
    padding-top: 0 !important;
  }
  .single-product div.product .dtb-product-top .summary.entry-summary {
    padding-top: 0 !important;
  }
}

/* 2. Non-sale product price: 32px / weight 400 / black */
.single-product .summary .price .woocommerce-Price-amount {
  font-size: 32px;
  font-weight: 400;
  color: #0b0b0b;
}

/* 3. Related products section: margin-bottom 50px */
.single-product .dtb-related-section {
  margin-bottom: 50px;
}

/* =========================
   WooCommerce Pagination
   ========================= */

:root {
  --ld-bg:     #0b0b0c;
  --ld-bg-2:   #151517;
  --ld-border: #2a2a2f;
  --ld-text:   #e9e9ee;
  --ld-muted:  #b9bac3;
  --ld-amber:  #d6a64b;
  --ld-amber-2:#b8842f;
}

/* Wrapper */
.woocommerce nav.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 28px 0 18px;
}

/* The "capsule" */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--ld-bg-2), var(--ld-bg));
  border: 2px solid var(--ld-border);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Remove default borders */
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  border: 0;
}

/* All items */
.woocommerce nav.woocommerce-pagination .page-numbers a,
.woocommerce nav.woocommerce-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ld-text);
  background: transparent;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}

/* Hover */
.woocommerce nav.woocommerce-pagination .page-numbers a:hover {
  background: rgba(214,166,75,0.10);
  border-color: rgba(214,166,75,0.22);
  transform: translateY(-1px);
}

/* Current page "pill" */
.woocommerce nav.woocommerce-pagination .page-numbers .current {
  color: #111;
  background: linear-gradient(180deg, var(--ld-amber), var(--ld-amber-2));
  border-color: rgba(214,166,75,0.35);
}

/* Dots (…) */
.woocommerce nav.woocommerce-pagination .page-numbers .dots {
  color: var(--ld-muted);
  min-width: 28px;
  padding: 0 10px;
}

/* Previous/Next */
.woocommerce nav.woocommerce-pagination .page-numbers .prev,
.woocommerce nav.woocommerce-pagination .page-numbers .next {
  min-width: 120px;
  justify-content: center;
  padding: 0 18px;
  color: var(--ld-text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.woocommerce nav.woocommerce-pagination .page-numbers .prev:hover,
.woocommerce nav.woocommerce-pagination .page-numbers .next:hover {
  background: rgba(214,166,75,0.12);
  border-color: rgba(214,166,75,0.22);
}

/* Disabled prev/next */
.woocommerce nav.woocommerce-pagination .page-numbers span.prev,
.woocommerce nav.woocommerce-pagination .page-numbers span.next {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* Mobile: compact */
@media (max-width: 520px) {
  .woocommerce nav.woocommerce-pagination .page-numbers .prev,
  .woocommerce nav.woocommerce-pagination .page-numbers .next {
    min-width: 96px;
    padding: 0 14px;
  }
  .woocommerce nav.woocommerce-pagination .page-numbers a,
  .woocommerce nav.woocommerce-pagination .page-numbers span {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
  }
}

