@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: 20px;
  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: 'Title';
  /* Ensure the path is correct relative to your style.css file */
  src: url('../../fonts/Fira_Sans_Condensed/FiraSansCondensed-Bold.ttf') format('truetype');
  /* Corresponds to 'normal' */
  font-style: normal;
  font-display: swap;
  /* Improves perceived performance by showing fallback font first */
}

@font-face {
  font-family: 'Title-Small';
  /* Ensure the path is correct relative to your style.css file */
  src: url('../../fonts/Fira_Sans_Condensed/FiraSansCondensed-Bold.ttf') format('truetype');
  /* Corresponds to 'bold' */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Text';
  /* Ensure the path is correct relative to your style.css file */
  src: url('../../fonts/Jost/static/Jost-Regular.ttf') format('truetype');
  /* Corresponds to 'bold' */
  font-style: normal;
  font-display: swap;
}


/* 
==============================================
1.0 - Design System (CSS Variables)
==============================================
*/
:root {
  /* 1.1 - Color Palette */
  --color-background: #fffbf6;
  --color-surface-primary: #003b29;
  --color-surface-secondary: #f5988d;
  --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: #228B22 ;

  --color-border: #E5DCD4;
  --color-rating: #FFC107;
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* 1.2 - Typography */
  --font-family-primary: 'Text', sans-serif;
  --font-family-title: 'Title', sans-serif;
  --font-family-title-small: 'Title-Small', cursive;
  /* Using our custom font with a fallback */

  --font-size-h1: clamp(2rem, 5vw, 3rem);
  --font-size-h2: clamp(1.75rem, 4vw, 2.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: 3.5rem;
  /* 80px */

  --container-max-width: 1366px;
  --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 1px 15.8px #00000014 --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;
  background-color: var(--color-background);
  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;
}

.search__form input::placeholder {
  color: var(--color-accent-hover) !important;
  opacity: 1;
  /* đảm bảo Firefox không làm mờ */
}

/* fallback cho trình duyệt cũ */
.search__form input::-webkit-input-placeholder {
  color: var(--color-accent-hover) !important;
}

.search__form input::-moz-placeholder {
  color: var(--color-accent-hover) !important;
  opacity: 1;
}

.search__form input:-ms-input-placeholder {
  color: var(--color-accent-hover) !important;
}

.search__form input:-moz-placeholder {
  color: var(--color-accent-hover) !important;
  opacity: 1;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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-title);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: 2rem;
}

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);
  font-family: var(--font-family-title);
}

/* 
==============================================
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);
}

.section {
  padding-top: var(--section-padding-y);
}

/* 
==============================================
5.0 - Utility Classes
==============================================
*/
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.small-title {
  font-family: var(--font-family-title-small);
  font-size: var(--font-size-h2);
  color: var(--color-accent-hover);
  font-weight: var(--font-weight-bold);
}

.page-custom-wrapper .page-content h1 {
  font-size: var(--font-size-h2);
  margin-top: var(--spacing-md);
  color: var(--color-accent-hover);
}

/* 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-hover);
}

/* small screens slightly smaller */
@media (max-width:480px) {
  .to-top {
    right: 12px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/*
==============================================
6.0 - Component: Header
==============================================
*/
.site-header {
  background-color: var(--color-background);
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* Left - Center - Right */
  align-items: center;
  gap: var(--spacing-lg);
  height: 80px;
  /* Chiều cao cố định cho header */
}

/* 6.1 - Logo */
.site-header__logo {
  grid-column: 2 / 3;
  /* Logo ở giữa */
  justify-self: center;
}

.site-header__logo img {
  max-height: 60px;
  /* Giới hạn chiều cao logo */
  width: auto;
}

/* 6.2 - Main Navigation */
.site-header__navigation {
  grid-column: 1 / 2;
  /* Menu bên trái */
  justify-self: start;
}

.main-navigation .primary-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.main-navigation .primary-menu a {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.main-navigation .primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent-hover);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}

.main-navigation .primary-menu li.current-menu-item>a::after,
.main-navigation .primary-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 6.3 - Header Actions */
.site-header__actions {
  grid-column: 3 / 4;
  /* Icons bên phải */
  justify-self: end;
}

.header-actions-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-action-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header-action-item .material-icons {
  font-size: 28px;
  transition: color var(--transition-fast);
}

.header-action-item:hover .material-icons {
  color: var(--color-accent-hover);
}

.header-cart-button .cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--border-radius-full);
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}


/* 6.4 - Mobile Toggle (Hiển thị trên mobile) */
.site-header__mobile-toggle {
  display: none;
  /* Ẩn trên desktop */
  grid-column: 1 / 2;
  justify-self: start;
}

/*
==============================================
9.0 - Component: Menu (MODERN MOBILE NAVIGATION)
==============================================
*/
.mobile-nav-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
  /* Luôn ở trên cùng */
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
  position: absolute;
  transition: transform 0.3s ease, background-color 0.3s ease;
  left: 0;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Trạng thái mở của Hamburger */
.mobile-nav-active .hamburger-inner,
.mobile-nav-toggle.is-active .hamburger-inner {
  background-color: transparent;
}

.mobile-nav-active .hamburger-inner::before,
.mobile-nav-toggle.is-active .hamburger-inner::before {
  transform: translateY(10px) rotate(45deg);
}

.mobile-nav-active .hamburger-inner::after,
.mobile-nav-toggle.is-active .hamburger-inner::after {
  transform: translateY(-10px) rotate(-45deg);
}


/* Panel menu mobile */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--box-shadow-medium);
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl);
}

.mobile-nav--is-open {
  transform: translateX(100%);
}

.mobile-nav__header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-lg);
}

/* Search Form trong Mobile Menu */
.mobile-nav__search {
  margin-bottom: var(--spacing-xl);
}

.mobile-nav__search .search-form {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.mobile-nav__search .search-field {
  border: none;
  flex-grow: 1;
  padding: var(--spacing-md);
  font-size: var(--font-size-sm);
  outline: none;
}

.mobile-nav__search .search-submit {
  border: none;
  background: transparent;
  padding: 0 var(--spacing-md);
  cursor: pointer;
  color: var(--color-text-secondary);
}

/* Main menu trong mobile */
.mobile-main-navigation {
  flex-grow: 1;
  /* Đẩy phần actions xuống dưới */
  overflow-y: auto;
}

.mobile-menu li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a {
  display: block;
  padding: var(--spacing-lg) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Actions trong mobile */
.mobile-nav__actions {
  margin-top: var(--spacing-xl);
}

.mobile-actions-list li {
  margin-bottom: var(--spacing-md);
}

.mobile-actions-list .header-action-item {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.mobile-actions-list .header-action-item span:first-child {
  margin-right: var(--spacing-md);
}

/* Lớp phủ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.mobile-nav-active .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-active {
  overflow: hidden;
}

/* 6.7 - Responsive Media Queries */
@media (max-width: 992px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    /* Toggle - Logo - Actions */
    height: 60px;
  }

  .site-header__navigation {
    display: none;
    /* Ẩn menu chính trên desktop */
  }

  .site-header__mobile-toggle {
    display: block;
    /* Hiện nút hamburger */
  }

  .site-header__logo {
    grid-column: 2 / 3;
    justify-self: center;
    /* Logo luôn ở giữa */
  }

  .site-header__logo img {
    max-height: 40px;
  }

  .site-header__actions {
    grid-column: 3 / 4;
  }

  .header-actions-list {
    gap: var(--spacing-md);
  }

  /* Ẩn bớt icon không cần thiết trên mobile header */
  .site-header__actions li:nth-child(1),
  .site-header__actions li:nth-child(2) {
    display: none;
  }
}



/*
==============================================
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 {
  margin-bottom: var(--spacing-xxl);
}

.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);
  color: var(--color-accent-hover);
}

.modal-product-price {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-title);
}

.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-accent-hover);
}

.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-hover);
  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  */
/* ========================================= */

.product-grid .product-card {


  /* 4 columns on desktop */

  transition: all .3s;

  box-shadow: 0px -1px 1px var(--color-accent-hover);

  border-radius: var(--border-radius-lg);

  background: var(--color-white);
}

.product-card {}

.product-card {
  text-align: left;
  padding: var(--spacing-md);
}

.product-grid .product-card:hover {
  box-shadow: 0 8px 20px var(--color-accent-hover);
}

/* --- Image and Hover Effects Section --- */
.product-card__image-wrapper {
  position: relative;
  /* Important for positioning child buttons */

  /* Light background color for the image */
  border-radius: var(--border-radius-md);
  overflow: hidden;
  /* Hide overflowing child elements */
  margin-bottom: var(--spacing-md);
}

.product-card__image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  /* Ensure the image is always square */
  object-fit: contain;
  /* Display the entire product, without cropping */
  transition: transform var(--transition-smooth);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 50px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid;
}

.btn--primary {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  padding-left: var(--spacing-lg);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(248, 108, 125, 0.4);
  background: var(--color-accent);
}

a.btn.btn--primary:hover .btn__icon-wrapper .material-icons {
  transform: rotate(0);
}

.btn__icon-wrapper {
  background-color: var(--color-white);
  color: var(--color-accent-hover);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.btn__icon-wrapper .material-icons {
  font-size: 20px;
  transform: rotate(-45deg);
  transition: all .3s;
}

/* Quick View Button */
.btn--quick-view {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  /* Slide up effect */
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-accent);
  text-align: center;
  display: flex;
  justify-content: center;
  align-content: center;
}

.btn--quick-view:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn--quick-view .material-icons {
  font-size: 18px;
}

/* Wishlist Button */
.btn--wishlist {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  /* Hidden by default */
  transform: translateX(20px);
  /* Slide in effect */
  transition: all var(--transition-smooth);
}

.btn--wishlist .material-icons {
  font-size: 20px;
}

/* --- Activate Hover Effects on Image --- */
.product-card__image-wrapper:hover .product-card__overlay {
  opacity: 1;
}

.product-card__image-wrapper:hover .btn--quick-view {
  transform: translateY(0);
}

.product-card__image-wrapper:hover .btn--wishlist {
  opacity: 1;
  transform: translateX(0);
}

.product-card__image-wrapper:hover img {
  transform: scale(1.05);
  /* Slight image scale */
}

.product-card__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* GiÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âºi hÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂºÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡n 2 dÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â²ng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  /* chÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â°nh line-height cho ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¾ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¹Ãƒâ€¦Ã¢â‚¬Å“ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂºÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¹p */
  max-height: 2.8em;
  /* line-height * sÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â»ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¹Ãƒâ€¦Ã¢â‚¬Å“ dÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â²ng */
}

h3.product-card__title a {
  transition: all .3s;
  display: block;
}

.product-card__info {
  background: #fff6e8;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
}

.product-card__info:hover .product-card__title {
  color: var(--color-accent-hover);
}

.product-card__title a:hover {
  color: var(--color-accent);
}

/* Display star rating */
.product-card__rating {
  margin-bottom: var(--spacing-xs);
}

.star-rating {
  font-size: 0.9em;
  color: var(--color-rating);
}

.product-card__price {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-hover);
  font-family: var(--font-family-title);
}

/* Add to Cart Button */
.product-card__actions .button {
  width: 100%;
  text-align: center;
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  font-weight: var(--font-weight-medium);
}

.product-card__actions .button:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}


/* ========================================= */
/*        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 {
  width: 1366px;
  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: 54%;
}

.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-hover);
}

.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-hover);
  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-hover);
  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;
}

.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);
  border-bottom: 2px solid var(--color-accent);
}

/* 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 ========== */
#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-hover);
}

.product-grid,
.products-loop,
.home-product-gird {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1366px;
  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-hover);
  color: var(--color-white);
  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-button.wp-element-button.wc-block-components-checkout-place-order-button:hover .wc-block-components-checkout-place-order-button__text {
  color: var(--color-accent-hover);
}

.wc-block-components-title.wc-block-components-title,
.wc-block-components-totals-item__label {
  color: var(--color-accent-hover);
}

.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;
  }

  .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;
  }

  .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);
  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: var(--color-white);
}


/* =================================================
5.0 - Blog Section
================================================== */

.blog-section {
  padding-bottom: var(--section-padding-y);
}

/* Section Title Styling (assuming this is already partially styled) */
.section-title {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-family: var(--font-family-header);
  font-size: var(--font-size-h2);
  color: var(--color-accent-hover);
  letter-spacing: 1px;
}

/* Underline for the section title */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 2px;
  background-color: var(--color-surface-primary);
}


/* Blog Swiper and Post Card */
.blog-swiper {
  padding-bottom: 50px !important;
  /* Space for pagination */
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.post-card__image-wrapper a {
  display: block;
}

.post-card__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.post-card:hover .post-card__image-wrapper img {
  transform: scale(1.05);
}

.post-card__date {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  background-color: var(--color-white);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
  z-index: 10;
  line-height: 1.1;
  min-width: 60px;
  /* Ensures a nice shape */
}

.post-card__date .day {
  display: block;
  font-family: var(--font-family-header);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.post-card__date .month {
  display: block;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.post-card__content {
  text-align: left;
  /* Aligns content to the left as in the image */
}

.post-card__category {
  display: inline-block;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-semibold);
}

.post-card__category:hover {
  color: var(--color-accent-hover);
}

.post-card__title {
  font-family: var(--font-family-header);
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.post-card__title a:hover {
  color: var(--color-accent-hover);
}

.post-card__excerpt {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  margin-bottom: var(--spacing-md);
}

/* Remove default <p> tags from excerpt */
.post-card__excerpt p {
  margin: 0;
}

.post-card__read-more {
  font-family: var(--font-family-secondary);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.post-card__read-more:hover {
  color: var(--color-accent-hover);
}


/* Swiper Pagination Dots */
.blog-swiper .swiper-pagination {
  bottom: 0 !important;
  position: absolute;
}

.blog-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--color-border);
  opacity: 1;
  transition: background-color var(--transition-fast);
}

.blog-swiper .swiper-pagination-bullet-active {
  background-color: var(--color-dark);
}


/*
==============================================
CSS HOÀN CHỈNH CHO POPUP TÌM KIẾM
==============================================
*/

/* --- 1. Container chính của popup --- */
/*
 * Giả định rằng thẻ <section class="search"> của bạn 
 * đã được định vị là 'fixed' và chiếm toàn bộ màn hình.
 * Đoạn code này tập trung vào phần nội dung bên trong.
*/
section.search.active {

  display: flex;
  justify-content: flex-end;
  /* Đẩy nội dung sang phải */
}

/* --- 2. Khung nội dung chính màu trắng --- */
.search__form {
  width: 100%;

  /* Chiều rộng của popup */
  background-color: #ffffff9c;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 30px;
  box-sizing: border-box;
  /* Quan trọng để padding không làm tăng kích thước */
}

/* --- 3. Nút đóng (X) --- */
.close__search {
  position: absolute;
  top: 30px;
  right: 10px;
  /* = max-width của popup + khoảng cách */
  font-size: 32px;
  color: var(--color-accent-hover);
  cursor: pointer;
  z-index: 10000;
}

/* --- 4. Tiêu đề "WHAT ARE YOU LOOKING FOR?" --- */
/* HTML của bạn không có phần này, nhưng đây là cách thêm nếu bạn muốn */
.search__form::before {
  content: 'WHAT ARE YOU LOOKING FOR?';
  display: block;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: var(--color-accent-hover);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-family-title);
}

/* --- 5. Form tìm kiếm và input --- */
#product-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

#product-search-keyword {
  width: 100%;
  border: none;
  outline: none;
  padding: 15px 40px 15px 0;
  /* Thêm khoảng trống cho icon search */
  font-size: 1.2rem;
  font-weight: 300;
  background: transparent;
  color: var(--color-accent-hover);
}

#product-search-keyword::placeholder {
  color: #aaa;
}

/* Thêm icon tìm kiếm (giả lập bằng CSS) */
#product-search-form::after {
  content: 'search';
  /* Tên icon của Material Icons */
  font-family: 'Material Icons';
  /* Hoặc 'Material Icons Outlined' */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--color-accent-hover);
}


/* --- 6. Khu vực kết quả tìm kiếm --- */
#product-search-result {
  flex-grow: 1;
  /* Chiếm hết không gian còn lại */
  overflow-y: scroll;
  /* Thêm thanh cuộn khi kết quả dài */
  padding-right: 15px;
  /* Khoảng trống cho thanh cuộn */
  margin-right: -15px;
  /* Bù lại padding */
}

/* Tiêu đề "PRODUCTS" */
#product-search-result ul::before {
  content: 'PRODUCTS';
  display: block;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#product-search-result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- 7. Từng mục sản phẩm trong kết quả --- */
#product-search-result li a {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

#product-search-result li:last-child a {
  border-bottom: none;
}

#product-search-result li a:hover {
  background-color: #f9f9f9;
}

#product-search-result img {
  width: 70px;
  /* Kích thước ảnh */
  height: 70px;
  object-fit: cover;
  margin-right: 20px;
  border-radius: var(--border-radius-md);
}

.name-pd {
  text-transform: capitalize;
  /* Chữ in hoa */
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  line-height: 1.4;
  font-family: var(--font-family-title);
}

.price-pd {
  color: #777;
  font-size: 0.9em;
}

/* --- 8. Footer "Search for..." (Cần thêm vào JS) --- */
/* Đoạn CSS này để sẵn, bạn chỉ cần thêm thẻ div này bằng JS là nó sẽ hoạt động */
.search-popup__footer {
  margin-top: auto;
  /* Đẩy xuống dưới cùng */
  padding-top: 20px;
}

.search-popup__footer a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  text-decoration: none;
  color: #555;
  transition: background-color 0.2s;
}

.search-popup__footer a:hover {
  background-color: #eee;
}

/* Icon mũi tên (giả lập) */
.search-popup__footer a::after {
  content: 'arrow_forward';
  font-family: 'Material Icons';
  font-size: 24px;
}

.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;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.search.active {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  z-index: 10000;
  background: var(--color-accent-hover)
}

/* 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: #ff3c41;
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
  font-family: 'Title';
}

.custom-subscribe-form .btn-subscribe:hover {
  background: #e62e35;
}

/* Tip lỗi dưới input */
.custom-subscribe-form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #e94a4a;
  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: #e53935;
  /* đỏ */
}

.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;
  }
}