@font-face {
  font-family: 'Material Icons';
  src: url('../webfonts/MaterialIcons-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.material-icons {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


@font-face {
  font-family: 'Bold';
  src: url('../../fonts/Jost/static/Jost-Bold.ttf') format('truetype');
  font-style: normal;
  font-display: swap;

}

@font-face {
  font-family: 'Regular';
  src: url('../../fonts/Jost/static/Jost-Regular.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SemiBold';
  src: url('../../fonts/Jost/static/Jost-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-display: swap;
}


/* 
==============================================
1.0 - Design System (CSS Variables)
==============================================
*/
:root {
  /* 1.1 - Color Palette */
  --color-background: #FCFBF9;
  --color-surface-primary: #D9C6B8;
  --color-surface-secondary: #D1A7A2;
  --color-surface-tertiary: #F9F5F1;
  --color-dark: #111111;

  --color-text-primary: #222222;
  --color-text-secondary: #7D6F64;
  --color-text-inverse: #FFFFFF;

  --color-accent: #111111;
  --color-accent-hover: #ea5847;

  --color-border: #E5DCD4;
  --color-rating: #FFC107;
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* 1.2 - Typography */
  --font-family-primary: 'Regular', sans-serif;
  --font-family-secondary: 'SemiBold', sans-serif;
  --font-family-header: 'Bold', sans-serif;

  /* Using our custom font with a fallback */

  --font-size-h1: clamp(2.5rem, 6vw, 4.5rem);
  --font-size-h2: clamp(2.75rem, 4vw, 3.25rem);
  --font-size-h3: clamp(1.25rem, 3vw, 1.5rem);
  --font-size-lg: 1.5rem;
  --font-size-base: 1.2rem;
  --font-size-sm: 1rem;
  --font-size-xs: 0.85rem;

  --font-weight-normal: 400;
  /* Maps to Lexend-Regular.ttf */
  --font-weight-bold: 700;
  /* Maps to Lexend-Bold.ttf */
  /* Add other weights like 500 or 600 if you add more @font-face rules */
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  --line-height-heading: 1.2;
  --line-height-base: 1.6;

  --letter-spacing-wide: 1.5px;

  /* 1.3 - Spacing & Layout */
  --spacing-xs: 0.25rem;
  /* 4px */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 1.5rem;
  /* 24px */
  --spacing-xl: 2.5rem;
  /* 40px */
  --spacing-xxl: 5rem;
  /* 80px */

  --container-max-width: 1280px;
  --container-padding-x: 1.5rem;
  --grid-gap: 1.5rem;
  --section-padding-y: var(--spacing-xxl);

  /* 1.4 - UI Elements */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 50%;

  --box-shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease-in-out;

}

/* 
==============================================
2.0 - Global Resets & Foundational Styles
==============================================
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-normal);
  /* Default to regular weight */
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 
==============================================
3.0 - Typography Defaults
==============================================
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  /* Default headings to bold weight */
  line-height: var(--line-height-heading);
  font-family: var(--font-family-header);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin: 0 0 var(--spacing-md) 0;
}

p:last-child {
  margin-bottom: 0;
}

/* Make strong and b tags use the bold font file */
strong,
b {
  font-weight: var(--font-weight-bold);
}

/* 
==============================================
4.0 - Layout & Container
==============================================
*/
.container,
.page-custom-wrapper {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.wraper-content-bread {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-accent-hover);
}

#crumbs {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: var(--font-weight-normal);
  display: flex;
  align-items: center;
}

#crumbs a {
  display: flex;
  align-items: center;
}


#crumbs a:hover {
  color: #fff;
}


#crumbs a .material-icons {
  font-size: 18px;
  margin-right: 10px
}

.section {
  padding-top: var(--section-padding-y);
}

/* 
==============================================
5.0 - Utility Classes
==============================================
*/
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.page-custom-wrapper .page-content h1 {
  font-size: var(--font-size-h2);
  margin-top: var(--spacing-md);
}

/* to-top button */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-md);
  border: none;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}

/* visible state */
.to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* hover / focus */
.to-top:focus,
.to-top:hover {
  outline: none;
  transform: translateY(-3px);
  background: var(--color-accent)
}

/* small screens slightly smaller */
@media (max-width:480px) {
  .to-top {
    right: 12px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}


/* 
==============================================
7.0 - Hero Slider Section
==============================================
*/
.hero-slider {
  position: relative;
  background-color: var(--color-surface-primary);
  /* Use the defined background color */
  height: calc(100vh - 150px);
  /* Screen height minus the header height (estimated) */
  width: 100%;
  overflow: hidden;
  display: flex;
  /* Use flex for easy alignment */
  align-items: center;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  /* Important for positioning child elements */
  display: flex;
  align-items: center;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 45%;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.6s ease-out 0.3s, opacity 0.6s ease-out 0.3s;
}

/* When the slide is active, the content will slide in and appear */
.slide.active .slide-content {
  transform: translateX(150px);
  opacity: 1;
}

/* Right-side background image */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure the image always fills the container without distortion */
}

/* Reusing font variables */
.slide .subtitle {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.slide .title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-hover);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-heading);
}



.slide-image-main {
  position: absolute;
  right: 20%;
  z-index: 9999;
  height: 90%;
  width: auto;
  bottom: 0;
  transform: translateY(900px);
  transition: all .7s ease-in-out;
}

.slide.active .slide-image-main {
  bottom: 0;
  transform: translateY(0);
}

.slide .description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 450px;
  /* Limit width for better readability */
}

.slide .btn {
  background-color: var(--color-accent);
  /* Button color from variable */
  color: var(--color-white);
  padding: var(--spacing-md) var(--spacing-xl);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  text-transform: uppercase;
  display: inline-block;
  /* Important for the button */
  border: none;
}

.slide .btn:hover {
  background-color: var(--color-accent-hover);
  /* Hover color from variable */
}

/* Navigation buttons (arrows) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: var(--box-shadow-subtle);
  transition: all var(--transition-fast);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.slider-arrow.prev {
  left: var(--spacing-xs);
}

.slider-arrow.next {
  right: var(--spacing-xs);
}

.slider-pagination {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
  gap: var(--spacing-sm);
}

.dot {
  height: 12px;
  width: 12px;
  background-color: transparent;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background-color: var(--color-accent-hover);
}

/* Responsive for slider */
@media (max-width: 768px) {

  .slide-image-main {
    z-index: 1;
  }

  .hero-slider {
    height: 70vh;
  }

  .slide-content {
    max-width: 100%;
    text-align: center;
    padding: 0 var(--container-padding-x);
    background-color: rgba(252, 251, 249, 0.7);
    border-radius: var(--border-radius-md);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .slide.active .slide-content {
    transform: translateY(0);
  }

  .slide .description {
    margin-left: auto;
    margin-right: auto;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: var(--spacing-md);
  }

  .slider-arrow.next {
    right: var(--spacing-md);
  }
}


/*
==============================================
9.0 - Component: Quick View Modal (REFACTORED)
==============================================
*/

.quick-view-overlay,
#quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

#quick-view-modal {
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  z-index: 999999999;
}

.quick-view-content {
  background-color: var(--color-white);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  position: relative;
  box-shadow: var(--box-shadow-medium);
  border-radius: var(--border-radius-md);
  /* Transition effect */
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

#quick-view-modal.is-visible .quick-view-content {
  transform: scale(1);
}

.section-modal,
.search {
  display: none;
}

.search-spinner {
  margin: 40px auto;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}


.related.products h2 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-accent-hover);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



.modal-all {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 90vh;
}

.quick-view-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  cursor: pointer;
  z-index: 10;
  font-family: 'Material Icons';
  font-size: 28px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.quick-view-close:hover {
  color: var(--color-text-primary);
}

.modal-img {
  flex: 0 0 50%;
  padding: var(--spacing-xl);
  border-right: 1px solid var(--color-border);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.main-image-container {
  position: relative;
  background-color: var(--color-surface-tertiary);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
}

.thumb {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  width: 95px;
  height: 95px;
  object-fit: cover;
}

.thumb.active,
.thumb:hover {
  border-color: var(--color-accent-hover);
}

.modal-content {
  flex: 0 0 50%;
  padding: var(--spacing-xl);
  position: relative;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-sm);
}

.modal-product-price {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.stock-info-wrapper .stock.in-stock {
  color: #008000;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-lg);
  display: none;
}

.modal-content .woocommerce-product-details__short-description {
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-base);
}

.variation-wrapper {
  margin-bottom: var(--spacing-lg);
}

.variation-label {
  display: block;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
  text-transform: capitalize;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.size-option {
  border: 1px solid var(--color-border);
  background: transparent;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.size-option:hover {
  border-color: var(--color-text-primary);
}

.size-option.active {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  border-color: var(--color-accent-hover);
}

.add__to__cart {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.qodef-quantity-selector {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
}

.qodef-quantity-selector .qodef-quantity-button,
.qodef-quantity-selector input {
  background: transparent;
  border: none;
  height: 48px;
  text-align: center;
}

.qodef-quantity-selector .qodef-quantity-button {
  width: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 48px;
}

.qodef-quantity-selector input {
  width: 40px;
  font-weight: var(--font-weight-medium);
  -moz-appearance: textfield;
}

.qodef-quantity-selector input::-webkit-outer-spin-button,
.qodef-quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add_to_cart.button {
  width: 100%;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  height: 48px;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.add_to_cart.button:hover {
  background-color: var(--color-accent-hover);
}

/* Spinner Loading */
.quick-view-spinner {
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: var(--border-radius-full);
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: var(--spacing-xxl) auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 
----------------------------------------------
Responsive for Quick View
----------------------------------------------
*/
@media (max-width: 768px) {
  .modal-all {
    flex-direction: column;
    /* Cho phÃ©p toÃ n bá»™ modal cÃ³ thá»ƒ cuá»™n */
    overflow-y: auto;
  }

  /* Bá» giá»›i háº¡n chiá»u cao vÃ  thanh cuá»™n riÃªng cá»§a tá»«ng pháº§n */
  .modal-img,
  .modal-content {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    /* Bá» giá»›i háº¡n chiá»u cao */
    overflow-y: visible;
    /* Bá» thanh cuá»™n riÃªng */
  }

  .modal-img {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-lg);
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-thumbnails {
    flex-shrink: 0;
    padding-top: var(--spacing-md);
  }

  .modal-content {
    padding: var(--spacing-lg);
  }

  .add__to__cart {
    grid-template-columns: 1fr;
  }
}


/* ========================================= */
/*        WOOO DETAIL  */
/* ========================================= */
.easyzoom.easyzoom--overlay {
  height: 100%;
}

.easyzoom-flyout img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
}

.product-gallery {
  display: flex;
  width: 45%;
  gap: 10px;
}

.modal-img .product-gallery {
  width: 100%;
}

.wraper-content-product,
.page-custom-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.page-content {
  padding-bottom: 3rem;
}

.page-custom-wrapper .wp-block-list {
  list-style: none;
}

.wraper-content-product .product {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.wraper-content-product .product .summary {
  width: 53%;
}

.summary h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.summary p {
  font-size: 16px;
  color: #555;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
}

.product-thumbnails img {
  width: 20%;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.2s;
}

.product-thumbnails img.active {
  border-color: var(--color-accent-hover);
}

.main-image-container {
  position: relative;
  flex: 1;
}

#mainImage,
#quickViewMainImage {
  width: 100%;
  display: block;
  border-radius: 8px;
}

#lens,
#quickViewLens {
  position: absolute;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: none;
  cursor: none;
  background-repeat: no-repeat;
  background-size: 200% 200%;
  pointer-events: none;
}

.single-policy strong,
.single-policy li {
  font-size: var(--font-size-sm);
}

/* ========================================= */
/*        END PRODUCT DETAIL  */
/* ========================================= */




/* ========================================= */
/*       SOFINE - CUSTOM SWATCH STYLES       */
/* ========================================= */
/* Hide the original WooCommerce dropdown */
.variations_form select.is-hidden {
  display: none !important;
}

.variations {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.custom-add-to-cart-btn {
  background-color: #333;
  border: none;
  padding: 14px;
  width: 248px;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
}

.sofine-swatch-group {
  width: 34%;
}

.sofine-swatch-group {
  margin-bottom: 25px;
}

.swatch-label-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}

.swatch-label {
  color: #111;
  font-weight: 500;
  text-transform: uppercase;
  margin-right: 8px;
}

.swatch-selection {
  color: #555;
  font-weight: 400;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  border: 1px solid #ccc;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swatch:hover {
  border-color: var(--color-accent);
}

.swatch.selected {
  border-color: #111;
  border-width: 2px;
}

/* Style for TEXT swatches (e.g., Size) */
.swatch-text {
  min-width: 45px;
  height: 45px;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 15px;
  text-transform: uppercase;
}

.swatch-text.selected {
  background-color: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 2px 5px var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Style for COLOR swatches */
.swatch-color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.swatch-color.selected {
  padding: 2px;
  border-width: 1px;
  border-color: var(--color-accent-hover);
  box-shadow: 0 2px 5px var(--color-accent-hover);
}

/* ========================================= */
/*       WOOCOMMERCE - ADD TO CART STYLING   */
/* ========================================= */
/* --- Variation information container --- */
.woocommerce-variation.single_variation {
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-variation-price .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.woocommerce-variation-availability .stock {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
  display: none;
}

.single_variation_wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.single_variation_wrap>div {
  width: 34%;
}

.policy-product {
  padding: 1rem 2rem;
  background: #dedede;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  padding-bottom: 1rem;
}

.policy-product ul {
  list-style: none;
}

.policy-product h4 {
  margin: 0;
}

.guaranteed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #dedede;
  padding: 0 2rem;
  margin-top: var(--spacing-md);
}

.guaranteed h3 {
  font-size: var(--font-size-sm);
}

/* --- Layout for Button & Quantity row --- */
.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- Style for quantity input field --- */
.quantity {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Hide default browser up/down arrows */
.quantity input[type=number]::-webkit-inner-spin-button,
.quantity input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input[type=number] {
  -moz-appearance: textfield;
}

/* Display the number */
.quantity .input-text.qty {
  width: 46px;
  height: 50px;
  text-align: center;
  background-color: #fff;
  padding: 0 5px;
  font-size: 16px;
  color: #111;
  border: 1px solid #eee;
}

.quantity .input-text.qty:focus {
  outline: none;
  box-shadow: none;
}

/* Quantity Increment/Decrement Buttons (if your theme has them) */
.quantity .plus,
.quantity .minus {
  width: 35px;
  height: 48px;
  background-color: #f9f9f9;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  padding: 0;
  transition: background-color 0.2s;
}

.quantity .plus:hover,
.quantity .minus:hover {
  background-color: #f0f0f0;
}

/* --- "Add to Cart" Button --- */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex-grow: 1;
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
  height: 50px;
  line-height: 1;
  width: fit-content;
  text-transform: uppercase;
  padding: var(--spacing-sm);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
  background-color: var(--color-accent-hover);
}

.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {
  background-color: #999;
  cursor: not-allowed;
}

/* --- SKU & Category --- */
.product_meta {
  margin-top: 25px;
  font-size: 14px;
  color: #333;
}

.product_meta>span {
  display: block;
  margin-bottom: 5px;
}

.product_meta .sku_wrapper {
  font-weight: 600;
  color: #333;
}

.product_meta a {
  color: #333;
  text-decoration: underline;
}

.breadcrumb-style,
.woocommerce-breadcrumb {
  padding: 1rem 0;
  font-size: 14px;
}

/* --- Mobile Responsive --- */
@media (max-width: 576px) {
  .woocommerce-variation-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity {
    justify-content: center;
  }
}

/* Tabs container */
.woocommerce-tabs {
  margin-top: 4rem;
  border-top: 1px solid #e5e5e5;
  width: 100%;
}

/* Tabs nav */
.woocommerce-tabs .tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  border-bottom: 1px solid #e5e5e5;
  margin: 0;
  padding: 0;
}

.woocommerce-tabs .tabs li {
  margin: 0 15px;
}

.woocommerce-tabs .tabs li a {
  display: inline-block;
  padding: 10px 0;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  color: #6c738c;
  text-decoration: none;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
  color: var(--color-accent-hover);
  border-bottom: 2px solid var(--color-accent-hover);
}

/* Panel content */
.woocommerce-Tabs-panel {
  padding: 2rem;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: #333;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  margin-bottom: var(--spacing-xl);
}

.woocommerce-Tabs-panel>h2 {
  display: none;
}

/* Additional Information table */
.woocommerce-product-attributes {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  border: 1px solid #e5e5e5;
  padding: 12px 15px;
  font-size: 14px;
}

.woocommerce-product-attributes th {
  font-weight: 600;
  color: #333;
  width: 25%;
}

/* ================================================= */
/*          WOOCOMMERCE REVIEW SECTION (GROUPED STARS STYLE)       */
/* ================================================= */

#reviews {
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
}

#reviews h2.woocommerce-Reviews-title,
#reviews .comment-reply-title {
  display: none;
}

#reviews p.woocommerce-noreviews {
  font-size: 15px;
  color: #777;
  margin-bottom: 20px;
  margin-top: 0;
}

/* ========== Rating Stars ========== */
#reviews .comment-form-rating {
  margin: 15px 0 20px;
}

#reviews .comment-form-rating label {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* --- GROUPED STAR RATING STYLING --- */

/* Main container for star groups */
#reviews .stars {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Spacing between the groups */
}

/* Hide the default text like "3 of 5 stars" */
#reviews .stars a {
  font-size: 0;
  /* This hides the text */
  text-decoration: none;
  position: relative;
  padding-right: 15px;
  /* Space for the separator */
}

/* Create the vertical separator line after each group */
#reviews .stars a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 6px;
  top: -20px;
  width: 1px;
  height: 20px;
  background-color: #e0e0e0;
}

/* Style the star icons for EACH rating level using ::before */
#reviews .stars a::before {
  font-family: 'Material Icons';
  font-size: 22px;
  /* Adjust star size if needed */

  /* Default empty star color */
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Define the number of stars for each link (group) */
.stars a.star-1::before {
  content: 'star';
}

.stars a.star-2::before {
  content: 'star star';
}

.stars a.star-3::before {
  content: 'star star star';
}

.stars a.star-4::before {
  content: 'star star star star';
}

.stars a.star-5::before {
  content: 'star star star star star';
}

/* On hover or when active, change the content to FILLED stars and update color */
.stars a.star-1:hover::before,
.stars a.star-1.active::before {
  content: 'star';
  color: #d97e4a;
}

.stars a.star-2:hover::before,
.stars a.star-2.active::before {
  content: 'star star';
  color: #d97e4a;
}

.stars a.star-3:hover::before,
.stars a.star-3.active::before {
  content: 'star star star';
  color: #d97e4a;
}

.stars a.star-4:hover::before,
.stars a.star-4.active::before {
  content: 'star star star star';
  color: #d97e4a;
}

.stars a.star-5:hover::before,
.stars a.star-5.active::before {
  content: 'star star star star star';
  color: #d97e4a;
}

/* When any link is hovered or active, switch its font to the filled version */
#reviews .stars a:hover::before,
#reviews .stars a.active::before {
  font-family: 'Material Icons';
}


/* ========== Input Fields ========== */
#reviews textarea,
#reviews input[type="text"],
#reviews input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#reviews textarea:focus,
#reviews input[type="text"]:focus,
#reviews input[type="email"]:focus {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.15);
  outline: none;
}

#reviews label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

/* Checkbox */
#reviews .comment-form-cookies-consent {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

#reviews .comment-form-cookies-consent input {
  width: auto;
  margin: 0;
}

/* ========== Submit Button ========== */

.wc-block-cart__submit-button:hover .wc-block-components-button__text,
.wc-block-cart__submit-button:hover .wc-block-components-checkout-place-order-button__text {
  color: var(--color-accent-hover) !important;
}

.wc-block-components-button:hover .wc-block-components-checkout-place-order-button__text {
  color: var(--color-accent-hover) !important;
}

#reviews .form-submit input[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

#reviews .form-submit input[type="submit"]:hover {
  background: #333;
}

#reviews .form-submit input[type="submit"]:active {
  transform: scale(0.97);
}

/* Flash list icons */
.home-product-flash-btn {
  opacity: 0;
  transition: all ease .3s;
  position: absolute;
  left: 50%;
  bottom: 0;
  background: #fff;
  width: 100%;
  height: 120px;
}

.home-product-flash-btn li span {
  font-size: 30px;
}

.home-product-flash-btn ul {
  align-items: center;
  width: 70%;
  display: flex;
  justify-content: space-between;
  height: 100%;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.home-product-flash-btn ul li {
  margin-right: 32px;
  width: 100%;
}

.home-product-flash-btn ul li:hover {
  cursor: pointer;
}

.home-product-flash-btn ul li:last-child {
  margin-right: 0;
}

.product-card:hover .home-product-flash-btn {
  transform: translate(-50%, 0);
  opacity: 1;
}

.product_title.entry-title {
  font-size: var(--font-size-h3);
  color: var(--color-accent);
}

.product-grid,
.products-loop,
.home-product-gird {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1280px;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination .page-numbers {
  display: flex;
  justify-content: center;
  list-style: none;
}

.woocommerce-pagination {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.woocommerce-pagination .page-numbers li {
  margin-right: 1rem;
  background: var(--color-accent);
  padding: 5px;
  width: 30px;
  border-radius: 5px;
  color: #fff;
}

.woocommerce-products-header__title {
  font-size: var(--font-size-h2);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.wc-block-cart__submit-container,
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  background: var(--color-accent);
  color: var(--color-black);
  border: 1px solid transparent;
}

.wc-block-cart__submit-container:hover,
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
  background: var(--color-white);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.wc-block-components-title.wc-block-components-title,
.wc-block-components-totals-item__label {
  color: var(--color-accent);
}

.wc-block-components-checkout-place-order-button__text {
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
}

/* ========================================= */
/*      RESPONSIVE CSS FOR PRODUCT DETAIL    */
/* ========================================= */
@media (max-width: 1200px) {

  .wraper-content-product,
  .page-custom-wrapper {
    width: 95%;
  }

  .wraper-content-product .product {
    gap: 30px;
  }

  .product-gallery {
    width: 48%;
  }

  .wraper-content-product .product .summary {
    width: 48%;
  }

  .summary h2 {
    font-size: 22px;
  }

  .summary p {
    font-size: 15px;
  }

  .woocommerce-variation-price .price {
    font-size: 22px;
  }

  .sofine-swatch-group {
    width: 100%;
  }

  .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    font-size: 15px;
    padding: 13px;
  }

  .woocommerce-tabs .tabs li {
    margin: 0 10px;
  }

  .woocommerce-tabs .tabs li a {
    font-size: 12px;
  }

  .woocommerce-Tabs-panel {
    padding: 1.5rem;
  }

  .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
    width: 139px !important;
  }

  .wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
    max-width: 139px !important;
    width: 139px !important;
  }

  .woocommerce-product-attributes th,
  .woocommerce-product-attributes td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .related .products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .product-grid,
  .products-loop,
  .blog-posts,
  .home-product-gird {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: unset;
  }

}

@media (max-width: 992px) {
  .wraper-content-product .product {
    flex-direction: column;
    align-items: center;
  }

  .product-gallery,
  .wraper-content-product .product .summary {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    flex-direction: column-reverse;
  }

  .summary {
    text-align: center;
    padding: 0 15px;
  }

  .product-thumbnails {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
    height: auto;
  }

  .product-thumbnails img {
    width: 60px;
    height: 80px;
  }

  .main-image-container {
    width: 100%;
  }

  .woocommerce-tabs {
    margin-top: 3rem;
  }

  .woocommerce-tabs .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .woocommerce-tabs .tabs li {
    margin-bottom: 10px;
  }

  .product_meta {
    text-align: center;
  }

  .sofine-swatch-group,
  .single_variation_wrap>div {
    text-align: center;
    width: 100%;
  }

  .swatches {
    justify-content: center;
  }

  .single_variation_wrap {
    justify-content: center;
  }

  .related .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
  }

  .related .products li {
    margin: 0;
  }
}

@media (max-width: 768px) {

  .product-grid,
  .products-loop,
  .blog-posts,
  .home-product-gird {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .wraper-content-product,
  .page-custom-wrapper {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .summary h2 {
    font-size: 20px;
  }

  .summary p {
    font-size: 14px;
  }

  .woocommerce-variation-price .price {
    font-size: 20px;
  }

  .swatch-label-wrapper {
    font-size: 14px;
    justify-content: center;
  }

  .swatch-text {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .swatch-color {
    width: 28px;
    height: 28px;
  }

  .quantity .input-text.qty {
    width: 40px;
    height: 45px;
    font-size: 14px;
  }

  .quantity .plus,
  .quantity .minus {
    width: 30px;
    height: 43px;
    font-size: 16px;
  }

  .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    font-size: 14px;
    padding: 12px;
    height: 45px;
  }

  .breadcrumb-style {
    padding: 0.8rem 15px;
    font-size: 13px;
  }

  #crumbs a:hover {
    color: var(--color-white) !important;
  }

  .blog-posts {
    padding: 0 1rem;
  }

  .related .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .woocommerce-variation-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity {
    justify-content: center;
    margin-bottom: 15px;
  }

  .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
  }

  .product-thumbnails img {
    width: 50px;
    height: 70px;
  }

  .summary h2 {
    font-size: 18px;
  }

  .summary p {
    font-size: 13px;
  }

  .woocommerce-variation-price .price {
    font-size: 18px;
  }

  .woocommerce-tabs .tabs li {
    margin: 0 5px 10px;
  }

  .woocommerce-tabs .tabs li a {
    font-size: 11px;
    padding: 8px 0;
  }

  .woocommerce-Tabs-panel {
    padding: 1rem;
    font-size: 13px;
  }

  #reviews .stars a {
    font-size: 20px;
  }

  #reviews textarea,
  #reviews input[type="text"],
  #reviews input[type="email"],
  #reviews .form-submit input[type="submit"] {
    font-size: 13px;
    padding: 10px 12px;
  }

  .product_meta {
    font-size: 13px;
  }

  .related .products {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .product-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .product-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .product-thumbnails {
    gap: 5px;
  }

  .swatches {
    gap: 8px;
  }

  .product-gallery,
  .wraper-content-product .product .summary {
    max-width: 100%;
  }
}

.woocommerce-pagination .page-numbers {
  display: flex;
  justify-content: center;
  list-style: none;
}

.woocommerce-pagination {
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.woocommerce-pagination .page-numbers li {
  margin-right: 1rem;
  background: var(--color-accent-hover);
  padding: 5px;
  width: 30px;
  border-radius: 5px;
  color: #fff;
}

.wc-block-cart__submit-container,
button.wc-block-components-button {
  background: #333;
  color: #fff;
}

.wc-block-components-button__text,
.wc-block-components-checkout-place-order-button__text {
  color: #fff;
}

/* Contact form footer */

.custom-subscribe-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  background: #ffffff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}


.custom-subscribe-form p {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icon */
.custom-subscribe-form .icon {
  font-size: 20px;
  color: #666;
}

/* Input */
.custom-subscribe-form input[type="email"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 6px 0;
  max-width: 190px;
}

/* Placeholder */
.custom-subscribe-form input[type="email"]::placeholder {
  color: #9aa0a6;
}

/* Button */
.custom-subscribe-form .btn-subscribe {
  background: var(--color-accent-hover);
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.custom-subscribe-form .btn-subscribe:hover {
  background: var(--color-accent-hover);
  ;
}

/* Tip lỗi dưới input */
.custom-subscribe-form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: var(--color-accent-hover);
  ;
  margin-top: 4px;
}

/* Ẩn hộp lỗi mặc định */
.newsletter-form .wpcf7-response-output {
  display: none !important;
}

/* Message thành công */
.subscribe-message {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.subscribe-message.success {
  color: #2e7d32;
  /* xanh lá */
}

.subscribe-message.error {
  color: var(--color-accent-hover);
  /* đỏ */
}

.custom-subscribe-form .wpcf7-not-valid-tip,
.custom-subscribe-form .wpcf7-spinner {
  display: none;
}

.custom-subscribe-form .wpcf7-spinner {
  display: block !important;
  position: absolute;
}

/* Responsive */
@media(max-width: 480px) {
  .custom-subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.last-updated {
  font-style: italic;
  color: #555;
}