@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&display=optional');

:root {
  --primary: #a2724b;
  --primary-hover: #8b5e3a;
  --secondary: #252525;
  --bg-color: #ffffff;
  --text-dark: #252525;
  --text-light: #7d7d7d;
  --white: #ffffff;
  --border: #ebebeb;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text-dark);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header */
header {
  background-color: #f8f3ed;
  color: var(--text-dark);
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.8rem 0;
}

.header-inner::after {
  content: "";
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
}

.header-logo-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 400;
  color: var(--text-dark);
  text-transform: none;
  font-size: 3.4rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  min-width: 250px;
  padding: 0.5rem 0;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
  border-bottom: 1px solid var(--border);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: none;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--primary);
}

.nav-icons {
  display: flex;
  gap: 1.5rem;
  color: var(--primary);
  font-size: 1.2rem;
}

/* About Hero Section */
.about-hero {
  padding: 5rem 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.about-row.reverse {
  flex-direction: row; 
}

/* Row 1 */
.about-text-left {
  flex: 1;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1.8;
}

.about-text-left p:first-child {
  font-family: var(--font-main);
  margin-bottom: 1rem;
}

.about-text-left .italic-text {
  font-family: var(--font-main);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
}

.about-img-right {
  flex: 1;
  text-align: right;
}

.about-img-right img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  object-fit: cover;
}

/* Row 2 */
.about-img-left {
  flex: 1;
}

.about-img-left img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  object-fit: cover;
}

.about-text-right {
  flex: 1;
  color: var(--primary);
}

.about-text-right h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 1px;
}

.about-text-right p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 4px;
  text-transform: none;
  font-weight: 500;
  transition: all 0.3s;
  background: transparent;
  margin-top: 1rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 768px) {
  .about-row {
    flex-direction: column-reverse !important;
    text-align: center;
    gap: 2rem;
  }
  .about-row.reverse {
    flex-direction: column !important;
  }
  .about-img-right img, .about-img-left img {
     border-radius: 20px;
  }
  .about-text-left .italic-text {
      font-size: 0.95rem !important; /* Reduced to fit perfectly */
      line-height: 1.8 !important;
  }
  .about-text-left p:first-child {
      font-size: 1.1rem !important;
  }
  .about-text-right h2 {
      font-size: 1.3rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* Section */
.section {
  padding: 3rem 5%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.8rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === BEST SELLER + NEW PRODUCTS sections === */
.best-seller-section {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
  background: #fff;
}
.new-products-section {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

/* === Carousel wrapper + arrows === */
.carousel-wrapper {
  position: relative;
  padding: 0 44px;
}
.carousel-wrapper .product-carousel {
  width: 100% !important;
  margin: 0 !important;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e0d5cb;
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0;
  user-select: none;
}
.carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

/* === Nút "Xem tất cả" kiểu NM === */
.btn-outline-nm {
  display: inline-block;
  padding: 10px 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-nm:hover {
  background: var(--primary);
  color: #fff;
}

/* Product Grid */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1700px;
  margin: 0 auto;
}

.product-card {
  width: 250px;
  max-width: 100%;
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
  display: block;
}

.product-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f4f4f4;
  overflow: hidden;
}

.product-img-container.img-rect {
  aspect-ratio: 3 / 4;
  height: auto;
}

.product-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(139, 94, 60, 0.82);
  color: #fff;
  text-align: center;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-img-container img.complete {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-img-container img.incomplete {
  opacity: 0;
}
.product-card:hover .product-img-container img.complete {
  opacity: 1;
}
.product-card:hover .product-img-overlay {
  opacity: 1;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-category {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 16px;
  margin-bottom: 0.5rem;
  margin-top: 10px;
  color: var(--text-dark);
  font-family: var(--font-main);
  font-weight: 400;
  text-transform: none;
}

.product-price {
  color: #8b5e3c;
  font-weight: 600;
  font-size: 15px;
}

/* Footer */
footer {
  background-color: #f9f7f5;
  color: var(--text-dark);
  padding: 3rem 5% 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

@media (min-width: 769px) {
  .footer-column:first-child {
    flex: 1.5;
  }
  .footer-policy-col {
    padding-left: 1.5rem;
  }
}

.footer-column h3 {
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.footer-column ul li a {
  color: var(--text-light);
  transition: color 0.2s;
}
.footer-column ul li a:hover { color: var(--primary); }

.footer-column ul li i, .footer-column ul li img {
  width: 16px;
  text-align: center;
  color: var(--primary);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}



/* Product Detail Page */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detail-images {
  flex: 1;
  display: flex;
  gap: 1rem;
}

.detail-images img {
  width: 50%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.detail-price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

.size-selector {
  margin-bottom: 2rem;
}

.size-selector label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.size-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 4px;
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(140, 106, 60, 0.1);
}

.detail-desc {
  white-space: pre-line;
  color: var(--text-light);
  line-height: 1.8;
}

/* Admin Styles */
.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-main);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  background: #ccc;
  color: #333;
}

/* Admin Drag Drop Cards */
.admin-card {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    align-items: center;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-card:active {
    cursor: grabbing;
    transform: scale(0.98);
}
.admin-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.admin-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.admin-card-info {
    font-size: 0.9rem;
    color: #333;
}
}

.dropped-card {
    cursor: default;
}

/* Carousel Styles */
.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    
    /* Center items if few */
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.product-carousel:active {
    cursor: grabbing;
}
.product-carousel .product-card {
    flex: 0 0 calc(25% - 1.5rem);
    scroll-snap-align: start;
    user-select: none;
    margin-bottom: 1rem;
}

/* Product Detail New Layout */
.product-detail-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.pd-gallery {
    flex: 1;
    max-width: 500px;
}
.pd-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f4f4f4;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.pd-thumbnails {
    display: flex;
    gap: 1rem;
}
.pd-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.6;
}
.pd-thumb:hover {
    opacity: 1;
}
.pd-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}
.pd-info {
    flex: 1;
}
.pd-title {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}
.pd-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2rem;
}
.pd-form-group {
    margin-bottom: 1.5rem;
}
.pd-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}
.pd-form-group select {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}
.pd-action {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}
.btn-zalo {
    background: var(--primary);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    text-decoration: none;
    display: inline-block;
}
.btn-zalo:hover {
    background: var(--primary-hover);
}
.pd-meta {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
/* Tabs */
.pd-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}
.pd-tab {
    padding: 0.8rem 0;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 1.1rem;
}
.pd-tab.active {
    color: var(--primary);
    border-color: var(--primary);
}
.pd-tab-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .product-detail-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .pd-gallery {
        max-width: 100%;
    }
}


/* Responsive Media Queries */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Header Fix */
  .header-inner {
    display: block !important;
    text-align: center;
    padding: 10px 5px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  .logo {
    display: block !important;
    margin-bottom: 10px;
    width: 100%;
  }
  .header-logo-img {
    height: 44px !important;
    width: 44px !important;
    margin: 0;
    display: block;
  }
  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    padding: 0;
    width: 100%;
  }
  .nav-links a {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .nav-icons {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  /* Sections */
  .about-hero {
    padding: 2rem 5%;
    margin-bottom: 2rem;
  }
  .about-row {
    margin-bottom: 2rem;
  }
  .section {
    padding: 1.5rem 5%;
  }
  .section-title {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  .about-text-left .italic-text {
    font-size: 1.1rem;
  }
  .about-text-right h2 {
    font-size: 1.2rem;
  }
  
  /* Product Grid: 3 items per row fixed */
  .product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px 2% !important;
  }
  .product-card {
    width: 32% !important; /* 3 items per row exactly */
    min-width: 0 !important; /* Override any previous min-width */
    margin: 0 0 10px 0 !important;
    flex: none !important;
  }
  .product-img-container.img-rect {
    height: 120px;
  }
  .product-name {
    font-size: 0.75rem !important;
    margin-bottom: 5px;
    line-height: 1.3;
    /* Optional: limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
  }
  .product-price {
    font-size: 0.8rem !important;
  }
  .product-info {
    padding: 8px !important;
  }
  
  /* Product Carousel Overrides */
  .product-carousel {
    padding: 0;
    gap: 2%;
  }
  .product-carousel .product-card {
    flex: 0 0 32% !important;
  }
  
  /* Footer */
  .footer-content {
    display: block !important;
    text-align: left;
  }
  .footer-column {
    margin-bottom: 1.5rem;
  }
  .footer-column ul li {
    justify-content: flex-start;
  }
  
  /* Product Detail */
  .product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .pd-gallery {
    max-width: 100%;
  }
  .pd-title {
    font-size: 1.5rem;
  }
  .pd-price {
    font-size: 1.3rem;
  }
}


/* --- SHOPEE STYLE PRODUCT DETAIL --- */
.pd-price-box {
    background-color: #fafafa;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.pd-original-price {
    font-size: 1.1rem;
    color: #929292;
    text-decoration: line-through;
}
.pd-sale-price {
    font-size: 1.8rem;
    color: #a2724b;
    font-weight: 500;
}
.pd-discount-badge {
    background-color: #a2724b;
    color: white;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
.pd-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.size-btn {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.2s;
}
.size-btn:hover {
    border-color: #a2724b;
    color: #a2724b;
}
.size-btn.active {
    border-color: #a2724b;
    color: #a2724b;
}
.size-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23ee4d2d' d='M16 0L0 16h16z'/><path fill='white' d='M8 12l-3-3 1.5-1.5L8 9l4.5-4.5L14 6z'/></svg>") no-repeat;
    background-size: contain;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}
.qty-btn {
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: #f0f0f0; }
.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.pd-action-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.btn-add-cart {
    flex: 1;
    background: rgba(162, 114, 75, 0.08);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-add-cart:hover { background: rgba(162, 114, 75, 0.15); }
.btn-buy-now {
    flex: 1;
    background: var(--primary);
    border: 1.5px solid var(--primary);
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-buy-now:hover { background: var(--primary-hover); }

.pd-tabs-wrapper {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
}
.pd-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}
.pd-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: color 0.2s, border-color 0.2s;
}
.pd-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.pd-tab-pane { display: none; }
.pd-tab-pane.active { display: block; }
.pd-guide-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.pd-guide-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.guide-images-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.guide-image-box {
    flex: 1;
    text-align: center;
}
.guide-image-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 0.7rem;
    font-weight: 600;
}
.guide-image-box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f0ea;
    border: 1px solid #e8e0d5;
}
.guide-block {
    background: #fdf8f2;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.8rem;
    border-left: 5px solid var(--primary);
}
.guide-block h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.video-block {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.8rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.video-block h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pd-detail-row {
    display: flex;
    margin-bottom: 15px;
}
.pd-detail-label {
    width: 120px;
    color: #757575;
}
.pd-detail-value {
    color: #333;
    flex: 1;
}

.breadcrumb {
    padding: 10px 0 20px 0;
    font-size: 0.9rem;
    color: #555;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* --- MINI CART --- */
.cart-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.2s;
}
.cart-float-btn:hover { transform: scale(1.05); }
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #a2724b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* === CART DROPDOWN (desktop hover) === */
.cart-btn-wrapper {
    position: relative;
}
.cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    z-index: 2000;
    padding: 16px;
    border: 1px solid #f0e8df;
}
.cart-dropdown.show { display: block; }
.cart-dropdown-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.cart-dd-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f0eb;
}
.cart-dd-item:last-child { border-bottom: none; }
.cart-dd-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.cart-dd-item-info { flex: 1; min-width: 0; }
.cart-dd-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-dd-item-price { font-size: 0.82rem; color: var(--primary); }
.cart-dd-empty { text-align: center; color: #bbb; padding: 1.5rem 0; font-size: 0.9rem; }
.cart-dd-more { text-align: center; color: #999; font-size: 0.8rem; padding: 4px 0; }
.cart-dropdown-footer { border-top: 1px solid #eee; padding-top: 12px; }
.cart-dropdown-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}
.cart-dropdown-total-price { color: var(--primary); font-size: 1rem; }
.cart-dd-btn-view {
    display: block;
    text-align: center;
    padding: 9px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.2s, color 0.2s;
}
.cart-dd-btn-view:hover { background: var(--primary); color: white; }
.cart-dd-btn-checkout {
    display: block;
    text-align: center;
    padding: 9px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-dd-btn-checkout:hover { background: var(--primary-hover); }

/* === CART PAGE === */
.cart-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}
.cart-page-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.cart-page-table thead tr {
    border-bottom: 2px solid #eee;
}
.cart-page-th-product,
.cart-page-th-price,
.cart-page-th-qty {
    padding: 12px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    text-align: left;
}
.cart-page-th-price,
.cart-page-th-qty { text-align: center; }
.cart-page-row { border-bottom: 1px solid #f0ebe5; }
.cart-page-cell-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 8px;
}
.cart-page-cell-price,
.cart-page-cell-qty { padding: 16px 8px; text-align: center; vertical-align: middle; }
.cart-page-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}
.cart-page-remove:hover { color: #e53e3e; }
.cart-page-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.cart-page-name { font-size: 0.95rem; font-weight: 600; color: #333; margin-bottom: 4px; }
.cart-page-variant { font-size: 0.82rem; color: #999; }
.cart-page-cell-price { color: var(--primary); font-weight: 600; white-space: nowrap; }
/* Mobile cards (hidden on desktop) */
.cart-page-cards { display: none; }
.cart-page-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0ebe5;
}
.cart-page-card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.cart-page-card-info { flex: 1; min-width: 0; }
.cart-page-card-name { font-size: 0.95rem; font-weight: 600; color: #333; margin-bottom: 4px; }
.cart-page-card-variant { font-size: 0.8rem; color: #999; margin-bottom: 6px; }
.cart-page-card-price { font-size: 0.95rem; color: var(--primary); font-weight: 600; }
.cart-page-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.cart-page-card-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
}
.cart-page-card-remove:hover { color: #e53e3e; }
.qty-control-sm .qty-btn { width: 28px; height: 28px; font-size: 0.9rem; }
.qty-control-sm .qty-input { width: 36px; height: 28px; font-size: 0.9rem; }
/* Bottom: total + actions */
.cart-page-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}
.cart-page-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.cart-page-total-label { font-size: 1rem; color: #555; font-weight: 600; }
.cart-page-total-price { font-size: 1.4rem; color: var(--primary); font-weight: 700; }
.cart-page-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.cart-page-btn-more {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.cart-page-btn-more:hover { background: var(--primary); color: white; }
.cart-page-btn-checkout {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-page-btn-checkout:hover { background: var(--primary-hover); }

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */
@media (max-width: 768px) {

  /* === GLOBAL === */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  /* === HEADER: Stack logo + nav vertically === */
  header {
    padding: 0 3%;
  }
  .header-inner {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    gap: 6px;
    width: 100%;
  }
  .header-inner::after { display: none; }
  .logo {
    flex: none;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 0;
  }
  .header-logo-img {
    height: 44px !important;
    width: 44px !important;
  }
  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    padding: 4px 0 8px 0;
    width: 100%;
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    font-size: 1rem !important;
    letter-spacing: 0;
    padding: 4px 6px;
    white-space: nowrap;
  }
  .nav-icons { display: none; }

  /* === HERO BANNER === */
  .hero-banner {
    height: 220px !important;
    min-height: 200px;
  }
  .hero-content h1 {
    font-size: 1.6rem !important;
  }
  .hero-content p {
    font-size: 0.9rem !important;
  }

  /* === SECTIONS === */
  .section {
    padding: 1.2rem 4% !important;
  }
  .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }

  /* === PRODUCT GRID: 2 cột trên mobile === */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .product-carousel {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  .product-card {
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
  }
  .product-img-container,
  .product-img-container.img-rect {
    height: 140px !important;
  }
  .product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-name {
    font-size: 0.78rem !important;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-price {
    font-size: 0.82rem !important;
  }
  .product-info {
    padding: 8px !important;
  }
  .product-badge {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
  }
  .admin-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* === ABOUT / HOME ROWS === */
  .about-row {
    flex-direction: column !important;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .about-row.reverse {
    flex-direction: column !important;
  }
  .about-img-right,
  .about-img-left {
    text-align: center;
    width: 100%;
  }
  .about-img-right img,
  .about-img-left img {
    max-width: 100%;
    border-radius: 20px;
  }
  .about-text-left .italic-text {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
  .about-text-left p:first-child {
    font-size: 1rem !important;
  }

  /* === PRODUCT DETAIL PAGE === */
  .product-detail-layout {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 10px !important;
    border-radius: 6px !important;
  }
  .pd-gallery {
    max-width: 100% !important;
    width: 100% !important;
  }
  .pd-info {
    width: 100% !important;
  }
  .pd-title {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }
  .pd-price-box {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .pd-original-price {
    font-size: 0.95rem !important;
  }
  .pd-sale-price {
    font-size: 1.5rem !important;
  }
  .pd-discount-badge {
    font-size: 0.75rem !important;
  }
  .pd-size-grid {
    gap: 8px;
  }
  .size-btn {
    padding: 8px 12px;
    font-size: 0.9rem !important;
    min-width: 48px;
    min-height: 44px;
  }
  .qty-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
  }
  .qty-input {
    height: 40px !important;
    font-size: 1rem !important;
  }
  .pd-action-group {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .btn-add-cart,
  .btn-buy-now {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 14px !important;
    min-height: 48px;
  }
  .pd-tabs-wrapper {
    padding: 15px;
    margin-top: 15px;
  }
  .pd-tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  .guide-images-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .guide-block, .video-block {
    padding: 1.2rem 1rem;
  }
  .breadcrumb {
    font-size: 0.8rem;
    padding: 8px 0 12px 0;
    white-space: normal;
    word-break: break-word;
  }
  /* Thumbnails scroll on mobile */
  #pd-thumbnails-container {
    gap: 8px !important;
  }
  #pd-thumbnails-container img,
  #pd-thumbnails-container .pd-thumb {
    width: 60px !important;
    height: 60px !important;
  }

  /* cart-dropdown ẩn trên mobile */
  .cart-dropdown { display: none !important; }
  /* cart page mobile */
  .cart-page-table { display: none; }
  .cart-page-cards { display: block; }
  .cart-page-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cart-page-btn-more,
  .cart-page-btn-checkout { width: 100%; text-align: center; }
  .cart-float-btn {
    bottom: 20px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }

  /* === CHECKOUT PAGE === */
  .checkout-layout {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .checkout-form-box,
  .checkout-summary-box {
    padding: 15px !important;
    width: 100% !important;
  }
  .btn-zalo-checkout,
  .btn-web-checkout {
    font-size: 1rem !important;
    padding: 14px !important;
  }

  /* === FOOTER === */
  .footer-content {
    flex-direction: column !important;
    text-align: left;
    gap: 1.5rem;
  }
  .footer-column ul li {
    justify-content: flex-start;
  }
  footer {
    padding: 1.5rem 5%;
  }
}

/* Extra small phones (under 400px) */
@media (max-width: 400px) {
  .header-logo-img {
    height: 100px !important;
  }
  .nav-links a {
    font-size: 0.9rem !important;
    padding: 3px 5px;
  }
  .product-img-container,
  .product-img-container.img-rect {
    aspect-ratio: 3 / 4;
  }
  .pd-sale-price {
    font-size: 1.3rem !important;
  }
  .section {
    padding: 1rem 3% !important;
  }
}


/* ============================================
   MOBILE SHOPEE-STYLE OVERHAUL
   ============================================ */

/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 300;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open { opacity: 1; pointer-events: auto; }

.mobile-nav-brand { display: none; }
.mobile-nav-close { display: none; }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 98;
}
.mobile-nav-overlay.show { display: block; }


/* === CHECKOUT: hide float cart button === */
body.checkout-page .cart-float-btn { display: none !important; }

/* === FIX MINI CART EMPTY SPACE === */
.cart-items { min-height: 0 !important; }

/* === PRODUCT CARD — NM clean style === */
.product-card {
    border-radius: 2px;
    overflow: hidden;
    background: white;
    box-shadow: none;
    transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: none; }

@media (max-width: 768px) {

    /* === HEADER MOBILE === */
    header { padding: 0; }
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px !important;
        gap: 0;
        width: 100%;
        position: relative;
    }
    .header-inner::after { display: none; }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        margin: 0;
        pointer-events: none;
    }
    .logo a, .logo-link { pointer-events: auto; }
    .logo-link { justify-content: center; }
    .header-logo-img {
        height: 36px !important;
        width: 36px !important;
    }

    /* Hamburger button */
    .hamburger { display: flex !important; order: -1; }

    /* Nav hidden by default on mobile, slides in */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        background: white;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        z-index: 200;
        padding: 0 !important;
        gap: 0 !important;
        transition: left 0.3s ease;
        overflow-y: auto;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    .nav-links.open { left: 0 !important; }

    .mobile-nav-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #555;
        cursor: pointer;
        flex-shrink: 0;
    }
    .mobile-nav-brand {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 32px 20px 26px !important;
        border-bottom: 2px solid #f0f0f0 !important;
        border-radius: 0 !important;
    }
    .mobile-nav-brand span {
        font-family: var(--font-main);
        font-size: 1.5rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--primary);
        font-weight: 500;
        text-align: center;
    }
    .nav-links li { border-bottom: 1px solid #f0f0f0; width: 100%; }
    .nav-links a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px !important;
        font-size: 1rem !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        color: var(--text-dark) !important;
        font-weight: 600;
        text-align: left !important;
    }
    .nav-links a:hover { background: #f5f5f5; color: var(--primary) !important; }

    /* Dropdown inside mobile nav — collapsed by default, tap to expand */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fafafa;
        padding: 0 !important;
        min-width: 0 !important;
    }
    .dropdown.expanded .dropdown-menu {
        display: flex !important;
        flex-direction: column;
    }
    .dropdown.expanded .dropdown-toggle-icon { transform: rotate(180deg); }
    .dropdown-menu li { border-bottom: none; }
    .dropdown-menu a {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        color: #555 !important;
        text-align: center !important;
    }

    /* Nested dropdown cấp 2 — mobile */
    .nav-links .dropdown-menu li.dropdown .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-left: 1rem !important;
        background: #f0ece6 !important;
    }
    .nav-links .dropdown-menu li.dropdown.expanded .dropdown-menu {
        display: flex !important;
        flex-direction: column;
    }
    .nav-links .dropdown-menu li.dropdown > a .dropdown-toggle-icon {
        transform: rotate(0deg);
    }
    .nav-links .dropdown-menu li.dropdown.expanded > a .dropdown-toggle-icon {
        transform: rotate(180deg);
    }
    .nav-links .dropdown-menu li.dropdown .dropdown-menu a {
        font-size: 0.85rem !important;
        color: #777 !important;
        text-align: center !important;
    }
    .nav-links .dropdown-toggle-icon {
        font-size: 1.8rem !important;
        pointer-events: auto !important;
        cursor: pointer;
        padding: 2px 10px;
        vertical-align: middle;
    }

    /* Nav icons — show on mobile (cart + lang) */
    .nav-icons { display: flex !important; order: 1; gap: 0.5rem; align-items: center; }

    /* === PRODUCT GRID: 2 cols, Shopee-style === */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .product-carousel {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .carousel-wrapper { padding: 0 !important; }
    .carousel-arrow { display: none !important; }
    .product-card {
        width: auto !important;
        min-width: 0 !important;
        flex: none !important;
        margin: 0 !important;
        border-radius: 6px;
    }
    .product-img-container,
    .product-img-container.img-rect {
        height: 160px !important;
        border-radius: 0;
    }
    .product-img-container img { width: 100%; height: 100%; object-fit: cover; }
    .product-name {
        font-size: 0.85rem !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px !important;
        margin-top: 4px !important;
    }
    .product-category { display: none; }
    .product-price { font-size: 0.88rem !important; color: #a2724b; }
    .product-info { padding: 6px 8px !important; }
    .product-badge { font-size: 0.65rem !important; padding: 2px 5px !important; }

    /* === PRODUCT DETAIL: Shopee-style === */
    .product-detail-layout {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .pd-gallery {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    .pd-info {
        width: 100% !important;
        background: white;
        padding: 12px !important;
        margin-top: 8px;
        border-radius: 6px;
    }
    .pd-title { font-size: 1.1rem !important; line-height: 1.4; margin-bottom: 8px !important; }
    .pd-price-box {
        flex-wrap: wrap; gap: 8px; padding: 10px 12px;
        background: #fdf9f5;
    }
    .pd-sale-price { font-size: 1.5rem !important; color: #a2724b; }
    .pd-original-price { font-size: 0.9rem !important; }

    .pd-action-group {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .btn-add-cart, .btn-buy-now {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 14px !important;
        min-height: 48px;
        border-radius: 4px;
    }


    /* === SECTIONS === */
    .section { padding: 10px 10px !important; }
    .section-title { font-size: 1.2rem !important; margin-bottom: 12px !important; }

    /* === CHECKOUT PAGE === */
    .checkout-layout {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    .checkout-form-box, .checkout-summary-box {
        padding: 14px !important;
        width: 100% !important;
        border-radius: 8px;
    }
    .checkout-layout input,
    .checkout-layout textarea,
    .checkout-layout select {
        font-size: 16px !important; /* prevents iOS zoom */
        padding: 12px !important;
    }

    .cart-float-btn {
        bottom: 14px;
        right: 14px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .cart-badge { width: 20px; height: 20px; font-size: 0.72rem; }

    /* === FOOTER === */
    .footer-content {
        flex-direction: column !important;
        text-align: left;
        gap: 1.2rem;
    }
    .footer-column ul li { justify-content: flex-start; }
    footer { padding: 1.5rem 14px; }

    /* === ABOUT SECTION === */
    .about-row {
        flex-direction: column !important;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .about-row.reverse { flex-direction: column !important; }
    .about-img-right, .about-img-left { width: 100%; text-align: center; }
    .about-img-right img, .about-img-left img { max-width: 100%; border-radius: 16px; }
    .about-text-left .italic-text { font-size: 1rem !important; }
    .about-hero { padding: 1rem 10px; }
}

@media (max-width: 400px) {
    .header-logo-img { height: 32px !important; width: 32px !important; }
    .product-img-container, .product-img-container.img-rect { aspect-ratio: 3 / 4; }
    .section { padding: 8px 8px !important; }
}

/* ============================================================
   NEW SECTIONS — Google Ads & Mobile UX
   ============================================================ */

/* ----- HERO ----- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 520px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(30,18,8,0.68) 0%, rgba(80,50,20,0.45) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
    max-width: 700px;
}
.hero-sub {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f5deb3;
    margin-bottom: 1rem;
    font-weight: 500;
}
.hero-title {
    font-family: var(--font-main);
    font-size: 3.8rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2rem;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btn-main {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.25s;
    border: 2px solid var(--primary);
}
.hero-btn-main:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.hero-btn-outline {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.25s;
    background: transparent;
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ----- TRUST STRIP ----- */
.trust-strip {
    display: flex;
    background: #ede8e1;
    border-top: 1px solid #d8d2cb;
    border-bottom: 1px solid #d8d2cb;
}
.trust-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1.5rem;
    text-align: center;
    border-right: 1px solid #d0cac2;
}
.trust-item:last-child { border-right: none; }
.trust-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B5E3C;
    margin-bottom: 0.45rem;
}
.trust-item-desc {
    font-size: 0.82rem;
    color: #777;
    font-weight: 400;
}

/* ----- COUNTER ----- */
.counter-section {
    background: #fff;
    padding: 3rem 5%;
    border-bottom: 1px solid var(--border);
}
.counter-inner {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.counter-item { text-align: center; }
.counter-num {
    display: block;
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.counter-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ----- SECTION SUBTITLE ----- */
.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
}

/* ----- HOW IT WORKS ----- */
.how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}
.how-step {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.how-step:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.how-icon {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.8rem;
}
.how-icon i { color: #fff; font-size: 1.4rem; }
.how-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.how-step h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text-dark); }
.how-step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.how-arrow { color: var(--border); font-size: 1.5rem; flex-shrink: 0; }

/* ----- REVIEWS ----- */
.reviews-section { background: #f9f9f9; }
.reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 1.5rem;
    margin: 0 0 1rem;
}
.reviews-grid::-webkit-scrollbar { display: none; }
.carousel-wrapper .reviews-grid { width: 100% !important; margin: 0 0 1rem !important; }
.review-card {
    flex: 0 0 calc(25% - 1.125rem);
    scroll-snap-align: start;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}
.review-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.review-content {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.2rem;
}
.review-footer { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.review-info .review-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.review-info .review-meta { font-size: 0.78rem; color: var(--text-light); }

/* ----- UGC PHOTOS ----- */
.ugc-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 1rem;
    margin: 0;
}
.ugc-grid::-webkit-scrollbar { display: none; }
.carousel-wrapper .ugc-grid { width: 100% !important; margin: 0 !important; }
.ugc-item {
    flex: 0 0 calc(25% - 0.75rem);
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1;
}
.ugc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ugc-item:hover img { transform: scale(1.06); }
.ugc-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff; font-size: 0.8rem; padding: 0.8rem 0.6rem 0.5rem;
    opacity: 0; transition: opacity 0.3s;
}
.ugc-item:hover .ugc-caption { opacity: 1; }

/* ----- VIDEO ----- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.video-card { border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.video-card iframe { width: 100%; height: 220px; display: block; border: 0; }
.video-card-title { padding: 0.8rem 1rem; font-size: 0.9rem; font-weight: 600; background: #fff; color: var(--text-dark); }

/* ----- FAQ ----- */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    user-select: none;
}
.faq-question:hover { background: #f9f9f9; }
.faq-icon {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    padding: 0 1.4rem;
}
.faq-item.open .faq-answer { max-height: 1000px; padding: 0 1.4rem 1.2rem; }
.faq-answer-img { display: block; max-width: 100%; border-radius: 8px; margin-top: 1rem; }
@media (max-width: 768px) { .faq-answer-img { max-width: 100%; } }

/* ----- BRANDS STRIP ----- */
.brands-section {
    background: #f9f9f9;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.8rem 2rem;
    text-align: center;
}
.brands-label { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.2rem; }
.brands-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.brand-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    transition: all 0.25s;
}
.brand-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.brand-item i { font-size: 1rem; color: var(--primary); }

/* ----- FLOATING CTA (mobile) ----- */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 0; right: 0;
    z-index: 150;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1rem;
    pointer-events: none;
}
.floating-cta-btn {
    pointer-events: all;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 18px rgba(140,106,60,0.45);
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.25s;
}
.floating-cta-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.floating-cart-btn {
    pointer-events: all;
    position: relative;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}
.floating-cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}

/* ----- BOTTOM NAV (mobile) ----- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #ede8e0;
    z-index: 160;
    height: 60px;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.65rem;
    color: #999;
    font-weight: 500;
    gap: 3px;
    transition: color 0.2s;
    position: relative;
    text-decoration: none;
    padding: 6px 0;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-badge {
    position: absolute;
    top: 4px; right: calc(50% - 20px);
    background: #e53e3e; color: #fff;
    font-size: 0.6rem; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
button.bottom-nav-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 60px; }
}

/* ----- CART BTN IN HEADER (visible on all sizes) ----- */
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.3rem;
    padding: 0.3rem 0.6rem;
}
.cart-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: var(--primary); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
.nav-icons { display: flex; align-items: center; }

/* ============================================================
   MOBILE RESPONSIVE — New sections
   ============================================================ */
@media (max-width: 768px) {
    /* Hero */
    .hero-section { height: 75vh; min-height: 420px; }
    .hero-title { font-size: 2.4rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-btn-main, .hero-btn-outline { padding: 0.75rem 1.8rem; font-size: 0.92rem; }

    /* Trust strip */
    .trust-strip { flex-direction: column; }
    .trust-item { padding: 0.9rem 1rem; border-right: none; border-bottom: 1px solid #d0cac2; }
    .trust-item:last-child { border-bottom: none; }

    /* Counter */
    .counter-section { padding: 2rem 1rem; }
    .counter-inner { gap: 2rem; }
    .counter-num { font-size: 2rem; }

    /* How it works */
    .how-steps { flex-direction: column; align-items: center; }
    .how-arrow { transform: rotate(90deg); }
    .how-step { max-width: 100%; width: 100%; padding: 1.5rem; }

    /* Category showcase: carousel 2 mục + arrows trên mobile */
    .category-showcase-carousel { padding: 0 36px !important; }
    .category-showcase-carousel .carousel-arrow { display: flex !important; }
    .category-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
    }
    .category-card {
        flex: 0 0 calc(50% - 4px) !important;
        scroll-snap-align: start !important;
        min-width: 0 !important;
    }

    /* Best sellers + New products: carousel 2 sản phẩm + arrows trên mobile */
    .best-seller-section .carousel-wrapper,
    .new-products-section .carousel-wrapper { padding: 0 36px !important; }
    .best-seller-section .carousel-arrow,
    .new-products-section .carousel-arrow { display: flex !important; }
    .best-seller-section .product-carousel,
    .new-products-section .product-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    .best-seller-section .product-carousel .product-card,
    .new-products-section .product-carousel .product-card {
        flex: 0 0 calc(50% - 4px) !important;
        scroll-snap-align: start !important;
        min-width: 0 !important;
    }

    /* Reviews + UGC carousel — giữ arrows; review 1 item, ugc 2 item trên mobile */
    .reviews-ugc-carousel { padding: 0 36px !important; }
    .reviews-ugc-carousel .carousel-arrow { display: flex !important; }
    .review-card { flex: 0 0 100% !important; }
    .ugc-item { flex: 0 0 calc(50% - 0.5rem) !important; }

    /* Video */
    .video-grid { grid-template-columns: 1fr; }
    .video-card iframe { height: 200px; }

    /* FAQ */
    .faq-question { font-size: 0.88rem; padding: 1rem 1rem; }

    /* Brands */
    .brand-item { font-size: 0.82rem; padding: 0.4rem 1rem; }

    footer { padding-bottom: 0; }
    body { padding-bottom: 0; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.9rem; }
    .ugc-grid { gap: 0.5rem; }
    .trust-item { padding: 0.8rem 1rem; }
}

/* ============================================================
   PHONG CÁCH MỚI — nhaminh style (2026-04)
   ============================================================ */

/* === Màu nền trang ấm cream === */
body {
    background-color: #f8f3ed;
}

/* === Desktop header: logo trái | nav giữa | icons phải === */
@media (min-width: 769px) {
    .header-inner {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
    }
    .header-inner::after { display: none !important; }
    .logo {
        display: flex !important;
        align-items: center;
        flex: none;
    }
    .nav-links {
        margin: 0 !important;
        flex: none !important;
        gap: 2.8rem !important;
    }
    .nav-icons {
        justify-self: end;
        display: flex !important;
        align-items: center;
        gap: 1.2rem;
        flex: none;
    }
    .hamburger { display: none !important; }
}

/* === Nav links: uppercase + tracking như nhaminh === */
.nav-links a {
    font-family: var(--font-main) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}
.nav-links a:hover { color: var(--primary) !important; }

/* === Dropdown menu: padding đẹp, min-width vừa đủ === */
.dropdown-menu {
    min-width: 220px;
    border-radius: 6px;
    border: 1px solid #ede7df;
    box-shadow: 0 6px 20px rgba(60,30,0,0.10);
    padding: 0.4rem 0;
}
.dropdown-menu a {
    padding: 0.75rem 1.4rem !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-dark) !important;
}
.dropdown-menu a:hover {
    color: var(--primary) !important;
    background: #fdf8f3;
}

/* === Logo: hình + text cạnh nhau === */
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.logo-name {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: normal;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    padding-top: 3px;
}

/* === Nav dropdown toggle icon === */
.dropdown-toggle-icon {
    font-style: normal;
    font-size: 1.2rem;
    margin-left: 3px;
    transition: transform 0.25s;
    display: inline-block;
    pointer-events: none;
}
.dropdown:hover .dropdown-toggle-icon { transform: rotate(180deg); }

/* === Nested dropdown cấp 2 (Sản Phẩm → Mandala → children) === */
.nav-links .dropdown-menu li.dropdown .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
    z-index: 201;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border-radius: 8px;
    min-width: 220px;
    padding: 0.5rem 0;
    background: var(--white);
}
.nav-links .dropdown-menu li.dropdown:hover .dropdown-menu { display: block; }
.nav-links .dropdown-menu li.dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links .dropdown-menu li.dropdown > a .dropdown-toggle-icon {
    font-size: 0.75rem;
    transform: rotate(-90deg);
}

/* === Section title danh mục con (products.html) === */
.section-title-child {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    color: var(--secondary);
}

/* === Nav icons: search + cart + lang === */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.nav-search-btn:hover { color: var(--primary); }

/* === Language switcher === */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    background: var(--primary);
    user-select: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-switcher:hover { opacity: 0.85; border-color: var(--primary); color: #fff; }
.lang-active { color: #fff; }
.lang-sep { color: rgba(255,255,255,0.6); margin: 0 1px; }
.lang-other { color: rgba(255,255,255,0.6); }

/* === Search overlay === */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 600;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}
.search-overlay.show { display: flex; }
.search-box {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 580px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-main);
    background: transparent;
}
.search-submit {
    background: var(--primary);
    border: none;
    padding: 0 1.4rem;
    color: #fff;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.2s;
}
.search-submit:hover { background: var(--primary-hover); }

/* === Hero Oval (kiểu nhaminh) === */
.hero-oval {
    background-color: #f8f3ed;
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    min-height: 480px;
}
.hero-oval-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
}
.hero-oval-img-wrap {
    flex: 0 0 500px;
    width: 500px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(100,60,20,0.12);
}
.hero-oval-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-oval-text {
    flex: 1;
    min-width: 0;
}
.hero-oval-intro {
    font-size: 20px;
    font-style: italic;
    color: #999;
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.6;
    display: block;
}
.hero-oval-highlight {
    font-family: var(--font-main);
    font-size: 22px !important;
    font-style: italic;
    color: #8B5E3C;
    line-height: 1.6 !important;
    font-weight: 500;
}
.hero-cta-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 28px;
    border: 1.5px solid #8B5E3C;
    color: #8B5E3C;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}
.hero-cta-btn:hover {
    background: #8B5E3C;
    color: #fff;
}

/* === Floating Social Buttons (Zalo + Messenger) === */
.social-float {
    position: fixed;
    right: 20px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 400;
}
.social-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.social-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0,0,0,0.32);
    color: #fff;
}
.social-zalo  { background: #0068ff; }
.social-messenger { background: linear-gradient(135deg, #0084ff 0%, #a033ff 100%); }

/* Zalo text label */
.zalo-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1;
}

/* Messenger row: bubble + button */
.mess-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mess-bubble {
    background: #fff;
    color: #333;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.14);
    white-space: nowrap;
    position: relative;
}
.mess-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #fff;
    border-right: none;
}

/* === Tablet: thu nhỏ oval để text không bị ép === */
@media (max-width: 1050px) and (min-width: 769px) {
    .hero-oval-img-wrap {
        flex: 0 0 380px;
        width: 380px;
        height: 266px;
    }
    .hero-oval-inner { gap: 60px; }
    .hero-oval-highlight { font-size: 20px !important; }
}

/* === Mobile responsive cho elements mới === */
@media (max-width: 768px) {
    .logo-name { display: none; }
    .lang-switcher { font-size: 0.68rem; padding: 3px 5px; }
    .nav-search-btn { display: none; }

    /* Hero oval: giữ ngang trên mobile */
    .hero-oval {
        padding: 1rem;
        min-height: auto;
    }
    .hero-oval-inner {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    .hero-oval-img-wrap {
        flex: 0 0 50% !important;
        width: 50% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
    }
    .hero-oval-text { text-align: left; flex: 1; min-width: 0; }
    .hero-oval-intro { font-size: 8px; margin-bottom: 5px; }
    .hero-oval-highlight {
        font-size: 8px !important;
        line-height: 1.65 !important;
        text-align: justify;
        text-align-last: left;
    }
    .hero-cta-btn { font-size: 9px; padding: 6px 14px; margin-top: 10px; letter-spacing: 0.03em; }

    /* Social float: góc dưới phải */
    .social-float {
        right: 14px;
        bottom: 16px;
    }
    .social-float-btn { width: 44px; height: 44px; font-size: 1.1rem; }
    .zalo-label { font-size: 0.75rem; }
    .mess-bubble { display: none; }
}

@media (max-width: 400px) {
    .hero-oval-img-wrap { flex: 0 0 48% !important; width: 48% !important; }
    .hero-oval-highlight { font-size: 7.5px !important; }
    .hero-oval-intro { font-size: 7px; }
}

/* ============================================================
   CHÍNH SÁCH — Footer policy column + Policy pages + Carousel
   ============================================================ */

/* --- Footer: cột Chính Sách — hover indent effect --- */
.footer-policy-col ul li {
    display: block;
    margin-bottom: 0.55rem;
}
.footer-policy-col ul li a {
    display: inline-block;
    padding-left: 0;
    border-left: 3px solid transparent;
    transition: padding-left 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-light);
}
.footer-policy-col ul li a:hover {
    padding-left: 10px;
    border-left-color: var(--primary);
    color: var(--primary);
}

/* --- Policy page layout --- */
.policy-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
.policy-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.policy-breadcrumb a { color: var(--text-light); }
.policy-breadcrumb a:hover { color: var(--primary); }
.policy-breadcrumb span { color: #ccc; }

.policy-page-title {
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.policy-section {
    margin-bottom: 2.5rem;
}
.policy-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.policy-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0 0.4rem;
}
.policy-section p,
.policy-section li {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-dark);
}
.policy-section ul {
    padding-left: 1.4rem;
    margin: 0.4rem 0;
}
.policy-section ul li {
    margin-bottom: 0.45rem;
    list-style: disc;
}
.policy-section p + p { margin-top: 0.6rem; }
.policy-section a { color: var(--primary); font-weight: 500; }

.policy-highlight {
    background: #fdf6ee;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    font-size: 0.95rem;
    line-height: 1.85;
}
.policy-info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    line-height: 1.85;
}
.policy-info-box p { font-size: 0.95rem; }

/* Payment method blocks */
.policy-pay-method {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    background: #fff;
}
.policy-pay-method h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
}
.policy-pay-method p,
.policy-pay-method li { font-size: 0.93rem; line-height: 1.8; }

/* --- Reviews & UGC carousel at bottom of policy pages --- */
.policy-reviews-section {
    padding: 2.5rem 5%;
    background: var(--bg-color);
}
.policy-ugc-section {
    padding: 2rem 5% 2.5rem;
    background: #fff;
}
.policy-section-title {
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.policy-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}
.policy-carousel-track {
    display: flex;
    flex: 1;
    min-width: 0;
    transition: transform 0.35s ease;
    align-items: stretch;
}
.policy-review-card {
    flex: 0 0 calc(100% / 3);
    padding: 0 0.6rem;
    box-sizing: border-box;
}
.pr-inner {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
    box-sizing: border-box;
}
.pr-stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.pr-content {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #555;
    font-style: italic;
    flex: 1;
}
.pr-footer-row { display: flex; align-items: center; gap: 0.75rem; }
.pr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.pr-name { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.pr-meta { font-size: 0.78rem; color: var(--text-light); }

.policy-ugc-item {
    flex: 0 0 calc(100% / 4);
    padding: 0 0.4rem;
    box-sizing: border-box;
}
.policy-ugc-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.carousel-nav-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    line-height: 1;
}
.carousel-nav-btn:hover { background: var(--secondary); }
.carousel-nav-btn.disabled { opacity: 0.3; cursor: default; }

/* --- Responsive: policy pages + carousel --- */
@media (max-width: 768px) {
    .policy-page-title { font-size: 1.1rem; letter-spacing: 0.04em; }
    .policy-section h2 { font-size: 0.95rem; }
    .policy-section p,
    .policy-section li { font-size: 0.9rem; }
    .policy-reviews-section { padding: 2rem 1rem; }
    .policy-ugc-section { padding: 1.5rem 1rem 2rem; }
    .policy-section-title { font-size: 1.1rem; }
    .policy-carousel-wrap { gap: 0.4rem; }
    .carousel-nav-btn { width: 32px; height: 32px; font-size: 1.1rem; }
    /* Mobile: 1 review at a time, 2 UGC photos at a time — controlled by JS */
    .policy-review-card { flex-basis: 100%; }
    .policy-ugc-item { flex-basis: 50%; }
    /* Footer policy on mobile: block items already centered by parent text-align */
    .footer-policy-col ul li a { border-left-color: transparent !important; padding-left: 0 !important; }
}

/* ===== Product Detail — Community Tab ===== */
.pd-community-section { margin-bottom: 2rem; }
.pd-community-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.pd-community-empty { color: #999; text-align: center; padding: 1.5rem 0; font-style: italic; }
.pd-reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.pd-review-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    border: 1px solid #eee;
}
.pd-review-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 2px; }
.pd-review-content { color: #444; line-height: 1.7; margin-bottom: 0.75rem; font-style: italic; }
.pd-review-footer { display: flex; align-items: center; gap: 0.75rem; }
.pd-review-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.pd-review-name { font-weight: 600; font-size: 0.9rem; color: #333; }
.pd-review-meta { font-size: 0.78rem; color: #999; margin-top: 2px; }
.pd-ugc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.pd-ugc-item {
    position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer;
}
.pd-ugc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pd-ugc-item:hover img { transform: scale(1.05); }
.pd-ugc-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem; opacity: 0;
    transition: background 0.3s, opacity 0.3s;
}
.pd-ugc-item:hover .pd-ugc-overlay { background: rgba(0,0,0,0.35); opacity: 1; }

/* ===== Lightbox ===== */
.pd-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.pd-lightbox-inner {
    position: relative;
    max-width: min(90vw, 800px);
    display: flex; flex-direction: column; align-items: center;
}
.pd-lightbox-inner img {
    max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; display: block;
}
.pd-lightbox-close {
    position: absolute; top: -3rem; right: 0;
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
    line-height: 1; padding: 0.2rem 0.5rem; transition: opacity 0.2s;
}
.pd-lightbox-close:hover { opacity: 0.75; }
.pd-lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 0.75rem; font-size: 0.9rem; text-align: center; }

/* ===== CATEGORY SHOWCASE ===== */
.category-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: fit-content;
    margin: 0 auto;
    max-width: 100%;
}
.category-grid::-webkit-scrollbar { display: none; }
.category-grid .category-card {
    flex: 0 0 calc(25% - 0.75rem);
    scroll-snap-align: start;
}
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 4;
    display: block;
    text-decoration: none;
    background: #e8e0d5;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.category-card:hover img { transform: scale(1.05); }
.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    padding: 2rem 1rem 1rem;
    text-align: center;
}
.category-card-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
}
.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8dfd3, #d4c9bc);
}
.category-card-placeholder span {
    font-size: 0.85rem;
    color: #8B5E3C;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 1rem;
}

/* ===== BLOG ===== */
.blog-hero-section {
    background: linear-gradient(135deg, #fdf8f2 0%, #f5ebe0 100%);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 1px solid #ede0ce;
}
.blog-hero-inner { max-width: 700px; margin: 0 auto; }
.blog-hero-title {
    font-family: var(--font-main);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--secondary);
    margin: 0 0 0.6rem;
}
.blog-hero-sub { color: #9a7a5a; font-size: 1rem; margin: 0; }

.blog-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.blog-filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid #d4b896;
    border-radius: 20px;
    background: #fff;
    color: #7a5c3a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.blog-filter-btn:hover, .blog-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.12); }
.blog-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #f5ebe0;
}
.blog-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5ebe0, #ede0ce);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a97a;
    font-size: 2.5rem;
}
.blog-card-body { padding: 1.1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: #fdf3e7;
    border-radius: 12px;
    padding: 2px 10px;
    margin-bottom: 0.6rem;
}
.blog-card-title {
    font-family: var(--font-main);
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.blog-card-excerpt {
    font-size: 0.88rem;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}
.blog-card-read-more { color: var(--primary); font-weight: 600; font-size: 0.85rem; }

/* Blog Detail */
.blog-breadcrumb { font-size: 0.85rem; color: #999; margin-bottom: 1.5rem; }
.blog-breadcrumb a { color: #9a7a5a; text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb-sep { margin: 0 0.4rem; }

.blog-detail-thumb-wrap { margin-bottom: 2rem; border-radius: 14px; overflow: hidden; }
.blog-detail-thumb { width: 100%; max-height: 420px; object-fit: cover; display: block; }

.blog-detail-header { margin-bottom: 2rem; }
.blog-detail-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.blog-detail-date { font-size: 0.85rem; color: #aaa; }
.blog-detail-title {
    font-family: var(--font-main);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    color: var(--secondary);
    margin: 0 0 0.8rem;
    line-height: 1.3;
}
.blog-detail-excerpt {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 0;
    font-style: italic;
}

.article-content {
    font-size: 1rem;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 2.5rem;
}
.article-content h2 { font-family: var(--font-main); color: var(--secondary); font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.article-content h3 { font-family: var(--font-main); color: var(--secondary); font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.article-content strong { color: var(--secondary); }
.article-content a { color: var(--primary); }
.article-content blockquote {
    background: #fdf8f2;
    border-left: 4px solid var(--primary);
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6a5a4a;
}

/* FAQ block */
.blog-faq-header {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-faq-header i { color: var(--primary); }
.blog-faq-item { border: 1px solid #ede0ce; border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; }
.blog-faq-q {
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf8f2;
    transition: background 0.15s;
}
.blog-faq-q:hover { background: #f5ebe0; }
.blog-faq-q .faq-icon { font-size: 1rem; color: var(--primary); transition: transform 0.2s; }
.blog-faq-item.open .faq-icon { transform: rotate(45deg); }
.blog-faq-a {
    display: none;
    padding: 0.9rem 1.1rem;
    color: #555;
    line-height: 1.75;
    font-size: 0.95rem;
    background: #fff;
}
.blog-faq-item.open .blog-faq-a { display: block; }

/* Related products */
.blog-related-title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-related-title i { color: var(--primary); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.blog-related-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.blog-related-card:hover { transform: translateY(-3px); }
.blog-related-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #f5ebe0; }
.blog-related-card-name { padding: 0.6rem 0.7rem; font-size: 0.82rem; color: var(--secondary); font-weight: 600; line-height: 1.3; }
.blog-related-card-price { padding: 0 0.7rem 0.7rem; font-size: 0.82rem; color: var(--primary); font-weight: 700; }

/* CTA bar */
.blog-detail-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}
.blog-cta-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.blog-cta-primary { background: var(--primary); color: #fff; }
.blog-cta-primary:hover { opacity: 0.9; }
.blog-cta-zalo { background: #0068ff; color: #fff; }
.blog-cta-zalo:hover { opacity: 0.9; }

/* Blog section on homepage */
.home-blog-section { background: #fdf8f2; }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .category-card-name { font-size: 0.8rem; }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .home-blog-grid { grid-template-columns: 1fr; }
    .blog-related-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-detail-title { font-size: 1.4rem; }
    .blog-hero-section { padding: 2rem 1rem 1.5rem; }
}


/* Tabs nav - chi con 2 tab, dua ve can giua, khong can scroll ngang */
@media (max-width: 768px) {
    .pd-tabs-nav {
        overflow-x: visible;
        justify-content: center;
    }
    .pd-tab-btn { white-space: nowrap; }
    .pd-ugc-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .pd-lightbox-inner img { max-height: 70vh; }
    .pd-lightbox-close { top: -2.5rem; font-size: 1.6rem; }
}

/* === KHÁCH HÀNG – Section độc lập luôn hiển thị (không ẩn trong tab) === */
.pd-community-section {
    background: white;
    padding: 24px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}
.pd-community-title {
    font-family: var(--font-main);
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0e8df;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.pd-community-title i {
    color: var(--primary);
}
@media (max-width: 768px) {
    .pd-community-section {
        padding: 18px 15px;
        margin-top: 15px;
    }
    .pd-community-title {
        font-size: 1.1rem;
    }
}

/* ============================================================
   CUSTOMER REVIEWS - Unified Horizontal Card + Slider System
   ============================================================ */

/* ---- Slider wrapper ---- */
.cr-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* ---- Track ---- */
.cr-track {
    display: flex;
    overflow: hidden;
    gap: 16px;
    padding: 1rem 0.5rem;
    flex: 1;
    min-width: 0;
}

/* ---- Card: desktop = 2 cards per row ---- */
.cr-card {
    flex: 0 0 calc(50% - 8px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    border: 1px solid #f0e9e0;
    transition: box-shadow 0.2s;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
}
.cr-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); }

/* ---- Image side: ~45% of card ---- */
.cr-card-img {
    flex: 0 0 45%;
    width: 45%;
    overflow: hidden;
}
.cr-card-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}
.cr-card:hover .cr-card-img img { transform: scale(1.02); }

.cr-card-img-placeholder {
    flex: 0 0 45%;
    width: 45%;
    min-height: 160px;
    background: linear-gradient(135deg, #c9a97a, #8B5E3C);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.cr-card-img-placeholder span {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-main);
}

/* ---- Content side ---- */
.cr-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.cr-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cr-card-stars {
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 1.5px;
    line-height: 1;
}
.cr-platform {
    font-size: 0.75rem;
    background: #fdf3e7;
    color: #8B5E3C;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cr-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cr-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary);
}
.cr-card-location {
    font-size: 0.78rem;
    color: #999;
}

.cr-card-content {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-card-product {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding: 4px 10px;
    background: #fdf3e7;
    border-radius: 20px;
    width: fit-content;
    transition: background 0.2s;
    max-width: 100%;
    overflow: hidden;
}
.cr-card-product:hover { background: #f5d7a0; }
.cr-card-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Prev / Next buttons ---- */
.cr-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.cr-btn:hover { background: var(--secondary); transform: translateY(-50%) scale(1.08); }
.cr-btn:disabled { opacity: 0.25; cursor: default; transform: translateY(-50%); }
.cr-btn-prev { left: 2px; }
.cr-btn-next { right: 2px; }

/* ---- Pagination Dots ---- */
.cr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.2rem;
}
.cr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4b896;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.cr-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ---- Product-detail specific ---- */
.pd-cr-section { margin-bottom: 2.5rem; }
.pd-cr-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.pd-cr-viewmore { text-align: center; margin-top: 1.5rem; }

/* ---- Khach hang page ---- */
.kh-main-section { padding: 2.5rem 0; }

/* ---- Mobile (< 768px): 1 card per view ---- */
@media (max-width: 767px) {
    .cr-card {
        flex: 0 0 100%;
        padding: 10px;
        gap: 10px;
    }
    .cr-card-img,
    .cr-card-img-placeholder {
        flex: 0 0 42%;
        width: 42%;
    }
    .cr-card-img-placeholder { min-height: 130px; }
    .cr-card-img-placeholder span { font-size: 2rem; }
    .cr-btn { width: 34px; height: 34px; font-size: 1.3rem; }
    .cr-card-content { -webkit-line-clamp: 4; font-size: 0.82rem; }
    .cr-card-name { font-size: 0.88rem; }
}

/* ---- Responsive khach hang ---- */
@media (max-width: 768px) {
    .kh-section-title { font-size: 1.3rem; }
}
