/*
Theme Name: Yến An Phúc V1.0
Theme URI: https://yenanphuc.vn
Author: Yến An Phúc Team
Author URI: https://yenanphuc.vn
Description: Theme cao cấp cho website bán yến sào Yến An Phúc với WooCommerce, thiết kế sang trọng, tối giản, tập trung vào sản phẩm.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yenanphuc
Tags: e-commerce, woocommerce, luxury, bird-nest, Vietnamese, yen-sao

This theme, like WordPress, is licensed under the GPL.
*/
/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-champagne: #c8a75a;
  --color-champagne-dark: #b39648;
  --color-champagne-light: #d4b76e;
  --color-amber-50: #fff8e5;
  --color-amber-100: #ffe9b3;
  --color-amber-600: #d97706;
  --color-amber-700: #b45309;

  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-400: #a8a29e;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;
  --color-stone-950: #0c0a09;

  --color-white: #ffffff;
  --color-emerald-500: #10b981;
  --color-sky-500: #0ea5e9;
  --color-emerald-600: #059669;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Spacing */
  --container-max: 1280px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-stone-800);
  /* background: radial-gradient(ellipse at top, rgba(250, 245, 229, 0.5), transparent 60%); */
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ========== UTILITIES ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hidden-mobile {
    display: inline;
  }
}

.text-accent {
  color: var(--color-amber-700);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-amber-600);
  color: var(--color-white);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-amber-700);
}

.btn-outline {
  background: transparent;
  color: var(--color-stone-800);
  border: 1px solid var(--color-stone-300);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.6);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-amber-700);
  border: 1px solid var(--color-amber-600);
}

.btn-outline-primary:hover {
  background: var(--color-amber-50);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-close {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-stone-300);
  font-size: 0.875rem;
}

.btn-menu {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-stone-300);
  display: block;
}

@media (min-width: 768px) {
  .btn-menu {
    display: none;
  }
}

/* ========== TOP BAR ========== */
/* MOVED TO: css/header.css */
/*
.topbar {
  background: var(--color-stone-950);
  color: var(--color-stone-300);
  font-size: 0.75rem;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar a:hover {
  color: var(--color-white);
}
*/

/* 
 * Note: USP Section CSS moved to /css/usp-section.css
 * Loaded via template-parts/usp-section.php
 */

/* 
 * Note: Hero Section CSS moved to /css/hero-section.css
 * Loaded via template-parts/hero-section.php
 */

/* 
 * Note: Featured Products Section CSS moved to /css/featured-products.css
 * Loaded via template-parts/featured-products.php
 */

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  border-radius: 1rem;
  border: 1px solid var(--color-stone-200);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition-slow);
}

.product-card:hover {
  box-shadow: 0 5px 15px -12px rgba(0, 0, 0, 0.25);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image a {
  display: flex;
  height: 100%;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-weight {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.688rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-stone-200);
  color: var(--color-stone-700);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.688rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: var(--color-amber-600);
  color: var(--color-white);
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.product-type {
  font-size: 0.875rem;
  color: rgba(146, 64, 14, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.25em;
  line-height: 1.25;
}

.product-name {
  font-weight: 500;
  color: var(--color-stone-900);
  margin-top: 0.125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}

.product-origin {
  color: var(--color-stone-500);
  font-size: 0.875rem;
}

.product-price-per {
  margin-top: 0.5rem;
  font-size: 0.813rem;
  color: var(--color-stone-500);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.star {
  width: 1rem;
  color: var(--color-stone-300);
}

.star.filled {
  color: var(--color-amber-600);
}

.rating-value {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  margin-left: 0.25rem;
}

.product-footer {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #dc2626;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* 
 * Note: Brand Story Section CSS moved to /css/brand-story.css
 * Loaded via template-parts/brand-story.php
 */

/* 
 * Note: Quality Commitment Section CSS moved to /css/quality-commitment.css
 * Loaded via template-parts/quality-commitment.php
 */

/* 
 * Note: Testimonials Section CSS moved to /css/testimonials.css
 * Loaded via template-parts/testimonials.php
 */

/* 
 * Note: Blog Section CSS moved to /css/blog-section.css
 * Loaded via template-parts/blog-section.php
 */

/* ========== FOOTER ========== */
.footer {
  background: var(--color-stone-950);
  color: var(--color-stone-300);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-white);
}

.footer-logo img {
  max-width: 200px;
  max-height: unset !important;
  height: auto;
  display: block;
  margin: 0 auto;
}
.footer-desc {
  color: var(--color-stone-400);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 28rem;
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--color-stone-900);
  border: 1px solid var(--color-stone-800);
  color: var(--color-stone-200);
  font-family: inherit;
  font-size: 0.875rem;
}

.newsletter-form input::placeholder {
  color: var(--color-stone-500);
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--color-amber-600);
  color: var(--color-white);
  font-size: 0.875rem;
}

.newsletter-form button:hover {
  background: var(--color-amber-700);
}

.footer-title {
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-stone-800);
  font-size: 0.75rem;
  color: var(--color-stone-500);
  padding: 1rem 0;
  text-align: center;
}

/* ========== DRAWER (CART) ========== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.drawer.active {
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition-base);
  opacity: 0;
}

.drawer.active .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  background: var(--color-white);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-base);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
}

.drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-stone-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-weight: 500;
}

.drawer-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-empty {
  color: var(--color-stone-500);
  font-size: 0.875rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  border: 1px solid var(--color-stone-200);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.cart-item-image {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item-weight {
  font-size: 0.75rem;
  color: var(--color-stone-500);
}

.cart-item-price {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.drawer-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-stone-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.voucher-input {
  display: flex;
  gap: 0.5rem;
}

.voucher-input input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stone-300);
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-outline-sm {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-stone-300);
  font-size: 0.875rem;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.summary-discount {
  color: var(--color-emerald-600);
}

.summary-total {
  font-size: 1rem;
}

.summary-total span:first-child {
  color: var(--color-stone-800);
}

.summary-total span:last-child {
  font-size: 1.125rem;
  font-weight: 600;
}

.cart-note {
  font-size: 0.688rem;
  color: var(--color-stone-500);
  text-align: center;
}

/* ========== MODAL (PRODUCT DETAIL) ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.modal.active {
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity var(--transition-base);
  opacity: 0;
}

.modal.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 36rem;
  background: var(--color-white);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transition: transform var(--transition-base);
  transform: translateX(100%);
}

.modal.active .modal-content {
  transform: translateX(0);
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-stone-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 10;
}

.modal-title {
  font-weight: 500;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-image {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-stone-200);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-type {
  color: rgba(146, 64, 14, 0.8);
  font-size: 0.875rem;
}

.detail-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-stone-900);
}

.detail-origin {
  color: var(--color-stone-500);
}

.detail-price {
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.detail-rating {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.detail-tabs {
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--color-stone-200);
}

.tabs-list {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.tab-btn {
  padding-bottom: 0.75rem;
  color: var(--color-stone-600);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.tab-btn.active {
  border-bottom-color: var(--color-amber-600);
  color: var(--color-amber-700);
}

.tab-content {
  margin-top: 1rem;
  color: var(--color-stone-700);
  line-height: 1.7;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-stone-300);
}

.guide-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-actions {
  position: sticky;
  bottom: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-stone-200);
  padding-top: 1rem;
  margin-top: 2rem;
}

.actions-buttons {
  display: flex;
  gap: 0.75rem;
}

.actions-buttons .btn {
  padding: 0.75rem 1.25rem;
}

.actions-note {
  font-size: 0.75rem;
  color: var(--color-stone-500);
  margin-top: 0.5rem;
}

/* ========== FLOATING ACTIONS ========== */
/* ========== FLOATING ACTION BUTTONS ========== */
/* Note: Full styles are in css/floating-buttons.css */
.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-btn {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Zalo button with image */
.floating-btn-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
  padding: 0.5rem;
}

.floating-btn-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Phone button */
.floating-btn-phone {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Scroll to top button - simple style */
.floating-btn-top {
  background: linear-gradient(135deg, #d4af37 0%, #c8a75a 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.floating-btn-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-actions {
    right: 1rem;
    bottom: 1rem;
    gap: 0.75rem;
  }

  .floating-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  /* Hide newsletter form on mobile */
  .newsletter-form {
    display: none;
  }
  .footer-widgets {
    gap: 0rem 1rem !important;
    display: flex !important;
    flex-wrap: wrap;
  }
  .footer-widgets .footer-widget {
    width: 45% !important;
    margin-bottom: 1rem !important;
  }
  .footer-widgets .footer-widget:nth-child(1) {
    margin-bottom: 0.5rem !important;
  }
  .footer-widgets .footer-widget:nth-child(1),
  .footer-widgets .footer-widget:nth-child(2) {
    width: 100% !important;
  }
  /* Hide "Liên hệ" footer widget on mobile */
  .footer-widgets .footer-widget:nth-child(2) .footer-title {
    display: none;
  }
  /* Alternative: hide by nth-child if structure is fixed */
  /* .footer-widgets .footer-widget:nth-child(2),
  .footer-widgets .footer-widget:nth-child(4) {
    display: none;
  } */
}

@media (max-width: 480px) {
  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.9rem;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== WORDPRESS ALIGNMENT CLASSES ========== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ========== TOP BAR ========== */
/* MOVED TO: css/header.css */
/*
.topbar {
  background: var(--color-stone-950);
  color: var(--color-stone-300);
  font-size: 0.75rem;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar a:hover {
  color: var(--color-white);
}
*/

/* ========== HEADER ========== */
/* MOVED TO: css/header.css */
/*
.site-header,
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-stone-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header.hide {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-logo,
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
}

/* Logo responsive - show/hide based on screen size */
.logo-icon.logo-desktop {
  display: block;
}

.logo-icon.logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  .logo-icon.logo-desktop {
    display: none;
  }

  .logo-icon.logo-mobile {
    display: block;
  }
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--color-stone-800);
}

.logo-accent {
  color: var(--color-amber-600);
}
*/

/* ========== NAVIGATION ========== */
/* MOVED TO: css/header.css */
/*
.main-navigation,
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-navigation,
  .nav {
    display: flex;
  }
}

.nav > a,
.nav .nav-item > a {
  color: var(--color-stone-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav > a:hover,
.nav .nav-item > a:hover {
  color: var(--color-amber-700);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle,
.btn-menu {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-stone-300);
  display: block;
  background: transparent;
  color: var(--color-stone-700);
  cursor: pointer;
}

@media (min-width: 993px) {
  .mobile-menu-toggle,
  .btn-menu {
    display: none;
  }
}

/* Mobile Menu - DISABLED: Moved to css/header-mobile.css */
/*
.mobile-menu {
  display: none;
  padding-bottom: 0.75rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-stone-700);
}

.mobile-menu a:hover {
  background: var(--color-stone-50);
}
*/

.menu-item {
  position: relative;
}

/* Regular submenu - trigger on nav-item hover */
.nav-item.menu-item-has-children:hover .sub-menu,
.nav-item.has-dropdown:hover .sub-menu {
  visibility: visible;
  opacity: 1;
}

.sub-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 0.75rem);
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 100;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .sub-menu {
    left: 0;
    transform: unset;
    border-radius: 0;
  }
}
.sub-menu li {
  list-style: none;
}

.sub-menu li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-stone-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sub-menu li a:hover {
  background: var(--color-amber-50);
  color: var(--color-amber-700);
}

/* WooCommerce Cart Icon */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-stone-700);
  text-decoration: none;
  transition: all var(--transition-base);
}

.header-cart:hover {
  background: var(--color-stone-100);
  color: var(--color-amber-700);
  transform: translateY(-1px);
}

.header-cart i {
  font-size: 1.25rem;
  line-height: 1;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-amber-600);
  color: var(--color-white);
  font-size: 0.625rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--color-white);
  animation: cartBadgePulse 0.3s ease;
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Search Button */
.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-stone-700);
  cursor: pointer;
  transition: all var(--transition-base);
}

.header-search:hover {
  background: var(--color-stone-100);
  color: var(--color-amber-700);
  transform: translateY(-1px);
}

.header-search i {
  font-size: 1.125rem;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  display: flex;
  opacity: 1;
}

.search-modal-content {
  background: var(--color-white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  width: 90%;
  max-width: 650px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: searchModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchModalSlideIn {
  from {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.search-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-stone-100);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-stone-500);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.search-close:hover {
  background: var(--color-amber-600);
  color: var(--color-white);
  transform: rotate(90deg) scale(1.1);
}

/* Search Form Title */
.search-modal-content::before {
  content: "Tìm kiếm sản phẩm";
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-stone-800);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.search-modal-content .search-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-modal-content .search-form label {
  flex: 1;
  min-width: 250px;
}

.search-modal-content .search-field {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-stone-200) !important;
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--color-stone-50);
  outline: none !important;
  box-shadow: none !important;
}

.search-modal-content .search-field:focus {
  outline: none !important;
  border: 2px solid var(--color-amber-500) !important;
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1) !important;
}

.search-modal-content .search-field:focus-visible {
  outline: none !important;
  border: 2px solid var(--color-amber-500) !important;
}

.search-modal-content .search-submit {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--color-white);
  border: none;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.search-modal-content .search-submit i {
  font-size: 1.125rem;
}

.search-modal-content .search-submit:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.search-modal-content .search-submit:active {
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .search-modal-content {
    padding: 2rem 1.5rem;
  }

  .search-modal-content::before {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .search-modal-content .search-form {
    flex-direction: column;
  }

  .search-modal-content .search-form label {
    min-width: 100%;
  }

  .search-modal-content .search-submit {
    width: 100%;
    justify-content: center;
  }
}

/* CTA Button - Nổi bật đặc biệt */
.btn-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.938rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}
*/ .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.btn-cta i {
  font-size: 1rem;
  animation: pulseBolt 2s ease-in-out infinite;
}

@keyframes pulseBolt {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

/* ========== WOOCOMMERCE PRODUCTS ========== */
.woocommerce-products-section {
  padding: 4rem 0;
}

.products-grid,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.woocommerce ul.products li.product,
.product-card {
  border-radius: 1rem;
  border: 1px solid var(--color-stone-200);
  overflow: visible; /* Changed from hidden to allow tooltips */
  background: var(--color-white);
  transition: box-shadow var(--transition-slow);
  /* Flexbox để footer luôn ở bottom */
  display: flex;
  flex-direction: column;
  height: 100%; /* Đảm bảo fill full height của grid cell */
}

/* Keep image overflow hidden for rounded corners */
.product-card .product-image,
.product-card .woocommerce-loop-product__link {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

/* Product info chiếm không gian còn lại */
.product-card .product-info {
  flex: 1; /* Grow để đẩy footer xuống */
  display: flex;
  flex-direction: column;
  padding-bottom: 0; /* Remove bottom padding */
}

/* Rating sẽ tự động đẩy xuống đáy của product-info */
.product-card .product-rating {
  margin-top: auto !important; /* Đẩy xuống đáy */
}

/* Product grid - Ensure equal heights */
.product-grid,
.woocommerce ul.products {
  display: grid;
  grid-auto-rows: 1fr; /* Tất cả rows có chiều cao bằng nhau */
}

/* WooCommerce products list */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.woocommerce ul.products li.product:hover,
.product-card:hover {
  box-shadow: 0 5px 20px -12px rgba(0, 0, 0, 0.25);
}

.woocommerce ul.products li.product img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.03);
}

.woocommerce ul.products li.product .price {
  color: var(--color-amber-700);
  font-weight: 600;
  font-size: 1.125rem;
}

.woocommerce ul.products li.product .button {
  background: var(--color-amber-600);
  color: var(--color-white);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--color-amber-700);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 3.5rem;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-champagne), transparent);
}

.section-overline {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-champagne);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
}

.section-overline::before,
.section-overline::after {
  content: "—";
  margin: 0 0.75rem;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-stone-900);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-stone-600);
  max-width: 42rem;
  margin: 0 auto;
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 100;
  background: var(--color-stone-950);
  color: var(--color-stone-300);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-widgets {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-widget h3 {
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-widget a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid var(--color-stone-800);
  font-size: 0.75rem;
  color: var(--color-stone-500);
  padding: 1rem 0;
  text-align: center;
}

/* ========== WOOCOMMERCE OVERRIDES ========== */
.site-main {
  padding: 2rem 0;
}
.home .site-main {
  padding: 0;
}

.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  color: var(--color-stone-900);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--color-amber-700);
  font-size: 2rem;
  font-weight: 600;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--color-amber-600);
  color: var(--color-white);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--color-amber-700);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

/* ========== WIDGET STYLES ========== */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-family: var(--font-serif);
  color: var(--color-stone-900);
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-stone-200);
}

/* ========== SIDEBAR ========== */
.sidebar {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .content-sidebar-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

/* ========== PRODUCT BADGES - ENHANCED (Multiple, Elegant, Smaller) ========== */

/* Container for multiple badges */
.product-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important; /* Tăng lên 12px */
  align-items: flex-end;
  z-index: 2;
  pointer-events: none;
  width: auto; /* Đảm bảo không bị constrain */
  height: auto;
}

.product-badges .product-badge {
  position: static !important; /* Force static position trong container */
  pointer-events: auto;
  flex-shrink: 0 !important;
  white-space: nowrap;
  min-height: 1.5rem;
  margin: 0 !important; /* Remove any margin */
  display: inline-flex !important; /* Inline flex để vừa với content */
  width: fit-content;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
}

/* Individual badge - smaller, elegant */
.product-badge {
  position: relative !important; /* Override html/styles.css absolute positioning */
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem; /* Nhỏ hơn: 10px */
  font-weight: 500; /* Nhẹ hơn: 500 thay vì 600 */
  padding: 0.25rem 0.5rem; /* Nhỏ hơn */
  border-radius: 6px; /* Góc vuông hơn, sang trọng hơn */
  backdrop-filter: blur(8px); /* Glass effect */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Shadow nhẹ hơn */
  top: auto !important; /* Reset top từ html/styles.css */
  right: auto !important; /* Reset right từ html/styles.css */
}

.product-badge:hover {
  transform: translateX(-2px); /* Shift left on hover */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.product-badge .badge-icon {
  font-size: 0.75rem; /* 12px */
  line-height: 1;
  opacity: 0.9;
}

.product-badge .badge-text {
  line-height: 1;
  opacity: 0.95;
}

/* Best Seller Badge - Elegant Champagne */
.product-badge.badge-bestseller {
  background: rgba(250, 248, 245, 0.95); /* Soft cream */
  color: #8b7355; /* Warm taupe */
  border: 1px solid rgba(200, 167, 90, 0.25); /* Champagne gold */
}

/* Sale Badge - Minimal Red */
.product-badge.badge-sale {
  background: rgba(252, 247, 248, 0.95); /* Almost white with pink tint */
  color: #9e4244; /* Muted burgundy */
  border: 1px solid rgba(158, 66, 68, 0.2);
}

/* New Badge - Soft Sky */
.product-badge.badge-new {
  background: rgba(248, 250, 252, 0.95); /* Soft sky */
  color: #5b7c99; /* Muted blue */
  border: 1px solid rgba(91, 124, 153, 0.2);
}

/* Gift Badge - Subtle Rose */
.product-badge.badge-gift {
  background: rgba(253, 247, 250, 0.95); /* Soft rose */
  color: #a6697c; /* Dusty rose */
  border: 1px solid rgba(166, 105, 124, 0.2);
}

/* Premium Badge - Sophisticated Plum */
.product-badge.badge-premium {
  background: rgba(249, 247, 251, 0.95); /* Soft lavender */
  color: #76607a; /* Muted plum */
  border: 1px solid rgba(118, 96, 122, 0.22);
}

/* Hover effects for product card */
.product-card:hover .product-badge {
  transform: translateX(-3px) scale(1.02);
}

/* Mobile: Even smaller */
@media (max-width: 640px) {
  .product-badges {
    top: 0.375rem;
    right: 0.375rem;
    gap: 0.5rem; /* Tăng lên để không đè nhau trên mobile */
  }

  .product-badge {
    font-size: 0.563rem; /* 9px */
    padding: 0.188rem 0.375rem;
  }

  .product-badge .badge-icon {
    font-size: 0.688rem; /* 11px */
  }
}

/* Desktop: Standard elegant size */
@media (min-width: 1024px) {
  .product-badges {
    gap: 0.625rem; /* Tăng thêm 1 chút trên desktop */
  }

  .product-badge {
    font-size: 0.688rem; /* 11px */
    padding: 0.313rem 0.563rem;
  }
}

/* ========== PRODUCT FOOTER - ELEGANT & REFINED ========== */

.product-footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(168, 162, 158, 0.15); /* Subtle divider */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem; /* Giảm gap */
  min-height: 3.5rem; /* Ensure consistent height */
}

.product-price {
  font-size: 1.125rem; /* Giảm từ 1.25rem xuống 1.125rem (18px) */
  font-weight: 600;
  color: var(--color-stone-900);
  letter-spacing: -0.02em;
  flex: 1; /* Take available space */
  min-width: 0; /* Allow shrinking */
  display: flex;
  flex-direction: column; /* Stack prices vertically */
  gap: 0.125rem;
}

/* Giá gốc bị gạch (nếu có sale) */
.product-price del {
  font-size: 0.813rem; /* Giảm từ 0.875rem xuống 0.813rem (13px) */
  font-weight: 400;
  color: var(--color-stone-400);
  margin-right: 0; /* Remove margin */
  display: block; /* Block để xuống dòng */
  line-height: 1.2;
  text-decoration: line-through; /* Ensure line-through */
}

.product-price del .woocommerce-Price-amount,
.product-price del .woocommerce-Price-amount bdi {
  color: var(--color-stone-400);
  font-weight: 400;
  text-decoration: line-through; /* Gạch ngang cho bdi */
}

/* Giá sale màu vàng ánh kim sang trọng */
.product-price ins {
  text-decoration: none;
  font-weight: 700; /* Bold hơn */
  display: block;
  line-height: 1.2;
}

.product-price ins .woocommerce-Price-amount {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.25rem;
}

/* Giá thường (không sale) - màu đỏ rực */
.product-price > .woocommerce-Price-amount {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  display: inline-block;
  font-size: 1.25rem;
}

/* Wrap price amounts if too long */
.product-price .woocommerce-Price-amount {
  display: inline-block;
  word-break: break-word;
}

/* Hide screen reader text (accessibility text không nhìn thấy) */
.product-price .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end; /* Align icon to right */
}

/* Button "Xem giỏ hàng" */
.product-view-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; /* 44px */
  height: 2.75rem;
  border-radius: 50%;
  background: white;
  color: #10b981; /* Green to match in-cart state */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  font-size: 1.125rem;
  position: relative;
}

.product-view-cart:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Tooltips */
.product-add-to-cart[data-tooltip],
.product-view-cart[data-tooltip] {
  position: relative;
}

.product-add-to-cart[data-tooltip]::after,
.product-view-cart[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(28, 25, 23, 0.95);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Ensure tooltip doesn't get cut off */
  max-width: 200px;
  overflow: visible;
}

.product-add-to-cart[data-tooltip]::before,
.product-view-cart[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 0.2rem);
  left: 50%;
  transform: translateX(-50%);
  border: 0.375rem solid transparent;
  border-top-color: rgba(28, 25, 23, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.product-add-to-cart:hover[data-tooltip]::after,
.product-view-cart:hover[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.product-add-to-cart:hover[data-tooltip]::before,
.product-view-cart:hover[data-tooltip]::before {
  opacity: 1;
  visibility: visible;
}

/* Allow tooltip to overflow from product card */
.product-card {
  position: relative;
}

.product-footer {
  position: relative;
  overflow: visible !important;
  z-index: 1;
}

.product-actions {
  position: relative;
  overflow: visible !important;
}

/* Icon giỏ hàng - Amber Orange #D97706 */
.product-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; /* 44px - touch friendly */
  height: 2.75rem;
  border-radius: 50%; /* Circular button */
  background: #d97706; /* Amber-600 */
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  position: relative;
  border: none;
  cursor: pointer;
}

.product-add-to-cart:hover {
  background: #b45309; /* Amber-700 - darker on hover */
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.5);
}

.product-add-to-cart:active {
  transform: translateY(0) scale(0.98);
}

/* Icon styling - 3 icons */
.product-add-to-cart i {
  font-size: 1.125rem; /* 18px */
  transition: all 0.3s ease;
  position: absolute;
}

/* 1. Default icon (cart-plus) - visible by default */
.product-add-to-cart .cart-icon-default {
  display: block;
  position: static;
}

/* 2. Loading icon (check) - hidden by default */
.product-add-to-cart .cart-icon-loading {
  display: none;
}

/* 3. Success icon (cart-arrow-down) - hidden by default */
.product-add-to-cart .cart-icon-success {
  display: none;
}

.product-add-to-cart:hover .cart-icon-default {
  transform: scale(1.1);
}

/* STATE 1: Loading - Show check icon (ƯU TIÊN CAO NHẤT) */
.product-add-to-cart.loading {
  pointer-events: none;
  opacity: 0.9;
  /* Giữ nguyên background color hiện tại */
}

.product-add-to-cart.loading .cart-icon-default,
.product-add-to-cart.loading .cart-icon-success {
  display: none !important; /* Ẩn cả cart-plus và cart-arrow-down */
}

.product-add-to-cart.loading .cart-icon-loading {
  display: block !important;
  animation: checkPulse 0.6s ease-in-out infinite;
}

/* Loading khi đã in-cart - giữ màu trắng */
.product-add-to-cart.loading.in-cart {
  background: white !important;
  border: 2px solid #10b981;
}

.product-add-to-cart.loading.in-cart .cart-icon-loading {
  color: #10b981; /* Check màu xanh trên nền trắng */
}

@keyframes checkPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* STATE 2: Added - White background with cart-arrow-down */
.product-add-to-cart.added {
  background: white !important;
  border: 2px solid #10b981;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.product-add-to-cart.added .cart-icon-default,
.product-add-to-cart.added .cart-icon-loading {
  display: none;
}

.product-add-to-cart.added .cart-icon-success {
  display: block;
  color: #10b981;
  animation: cartDropIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartDropIn {
  0% {
    transform: translateY(-20px) scale(0);
    opacity: 0;
  }
  60% {
    transform: translateY(5px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* STATE 3: In Cart (mặc định khi load page) - Giống added state */
.product-add-to-cart.in-cart {
  background: white !important;
  border: 2px solid #10b981;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}

.product-add-to-cart.in-cart .cart-icon-default,
.product-add-to-cart.in-cart .cart-icon-loading {
  display: none;
}

.product-add-to-cart.in-cart .cart-icon-success {
  display: block;
  color: #10b981;
}

/* Cart quantity badge */
.product-add-to-cart .cart-quantity {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #10b981; /* Green to match in-cart state */
  color: white;
  font-size: 0.625rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  border: 2px solid white;
  z-index: 1;
}

/* Hide quantity when loading */
.product-add-to-cart.loading .cart-quantity {
  display: none;
}

.product-add-to-cart.in-cart:hover {
  background: #f0fdf4 !important; /* Green-50 on hover */
  border-color: #059669; /* Green-600 */
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* ============================================
   17. PRODUCT RATING STARS
   ============================================ */
.product-rating {
  display: flex !important;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto; /* Đẩy xuống đáy */
  margin-bottom: 0.75rem;
  padding-top: 0.5rem;
}

.product-rating .star {
  width: 1rem;
  height: 1rem;
  line-height: 1;
  color: #d1d5db; /* Gray-300 for empty stars */
  transition: color 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.product-rating .star.filled {
  color: #d4af37; /* Champagne gold for filled stars */
}

.product-rating .star.half {
  background: linear-gradient(90deg, #d4af37 50%, #d1d5db 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-rating .rating-value {
  font-size: 0.813rem;
  color: #6b7280; /* Gray-500 */
  margin-left: 0.125rem;
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}

/* Product card hover - stars glow */
.product-card:hover .product-rating .star.filled {
  color: #f4d03f; /* Brighter gold on hover */
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .product-footer {
    padding-top: 0.875rem;
    gap: 0.375rem; /* Reduce gap on mobile */
    min-height: 3rem;
  }

  .product-price {
    font-size: 1rem; /* 16px on mobile */
  }

  .product-price del {
    font-size: 0.75rem; /* 12px on mobile */
  }

  .product-add-to-cart {
    width: 2.5rem; /* 40px */
    height: 2.5rem;
    flex-shrink: 0; /* Don't shrink button */
  }

  .product-add-to-cart i {
    font-size: 1rem; /* 16px on mobile */
  }
}

/* Ẩn link "Xem giỏ hàng" sau khi thêm thành công */
.product-actions .added_to_cart {
  display: none !important; /* Ẩn hoàn toàn */
}

/* Product card hover effect cho footer */
.product-card:hover .product-footer {
  border-top-color: rgba(168, 162, 158, 0.25);
}

/* Hover effect - giá sáng lên */
.product-card:hover .product-price ins .woocommerce-Price-amount,
.product-card:hover .product-price > .woocommerce-Price-amount {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #f9e79f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* ============================================
   18. MEGA MENU & DROPDOWN NAVIGATION
   ============================================ */
.nav-item {
  position: relative;
}

/* Add hover bridge - prevent menu from closing when mouse moves to dropdown */
.nav-item.has-dropdown::before,
.nav-item.has-mega-menu::before,
.nav-item.menu-item-has-children::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
  pointer-events: auto;
}

/* Mega menu hover trigger */
.nav-item.has-dropdown:hover .mega-menu,
.nav-item.has-mega-menu:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

/* .mega-menu-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
} */

.mega-menu-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-col li a {
  font-size: 0.875rem;
  color: #44403c;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.25rem 0;
}

.mega-menu-col li a:hover {
  color: #b45309; /* Amber-700 */
}

.mega-menu-featured {
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  padding: 1rem;
  background: rgba(255, 248, 229, 0.5);
}

.featured-title {
  color: #1c1917;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.featured-desc {
  font-size: 0.813rem;
  color: #57534e;
  margin: 0;
  line-height: 1.5;
}

.mega-menu-featured .btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* Mobile menu adjustments */
@media (max-width: 992px) {
  .mega-menu {
    display: none; /* Hide mega menu on mobile */
  }
}

#wpdcom {
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-vietqr-qr-scan {
  text-align: center;
  margin-top: 0px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: 0;
  margin: 10px 0 15px;
}

.breadcrumbs .container {
  padding: 0;
}

.breadcrumbs a,
.breadcrumbs span {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-stone-600);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  color: var(--color-champagne-dark);
}

.breadcrumbs a:hover {
  color: var(--color-champagne);
  text-decoration: none;
}

/* Separator styling */
.breadcrumbs .separator {
  margin: 0 6px;
  color: var(--color-stone-400);
  font-weight: 400;
  font-size: 12px;
}

/* Current page (last item) */
.breadcrumbs span:last-child {
  color: var(--color-stone-700);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .breadcrumbs {
    margin: 8px 0 12px;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 12px;
  }

  .breadcrumbs .separator {
    margin: 0 4px;
    font-size: 11px;
  }
}

.payment_box.payment_method_vietqr .vietqr-row {
  display: none !important;
}

.blog__more {
  text-align: center;
  margin-top: 2rem;
}

.blog__more:hover .btn-outline {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  color: #fff;
}
.entry-content .products-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.entry-content .products-grid  img{
  margin: 0;
}
@media (max-width: 768px) {
  .entry-content .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
