@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Pacifico&display=swap');

:root {
  --primary-50: #fff4f6;
  --primary-100: #ffe3e8;
  --primary-200: #ffc2ce;
  --primary-300: #fba9b8;
  --primary-400: #f98ca0;
  --primary-500: #f77088;
  --primary-600: #e6556f;
  --primary-700: #cc4259;
  --white: #ffffff;
  --gray-50: #fdfafe;
  --gray-100: #f5f0f2;
  --gray-600: #6b6b6b;
  --gray-800: #3d3d3d;
  --shadow-sm: 0 2px 8px rgba(247,77,123,0.10);
  --shadow-md: 0 4px 20px rgba(247,77,123,0.15);
  --shadow-lg: 0 8px 32px rgba(247,77,123,0.20);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--primary-50);
  color: var(--gray-800);
  overflow-x: hidden;
}

/* ===== FLOATING HEARTS / SPARKLES BACKGROUND ===== */
.floating-hearts {
  position: fixed; top:0; left:0; width:100%; height:100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.floating-hearts span {
  position: absolute; display: block; font-size: 20px;
  animation: floatUp 8s linear infinite; opacity: 0.2;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity:0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity:0; }
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  padding: 0;
  position: sticky; top:0; z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: auto; padding: 12px 20px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--primary-500);
}
.logo-img {
  width: 55px; height: 55px;
  background: var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: logoPulse 2s ease-in-out infinite;
  border: 2px solid var(--primary-300);
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.logo-text h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem; font-weight: 400;
  text-shadow: none;
}
.logo-text span {
  font-size: 0.75rem; opacity: 0.9;
  letter-spacing: 1px;
  color: var(--gray-600);
}
.header-contact {
  display: flex; align-items: center; gap: 12px;
  color: var(--gray-800); font-size: 0.85rem;
}
.header-contact a, .cart-btn-header {
  color: var(--gray-800); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  background: transparent;
  padding: 8px 14px; border-radius: 20px;
  transition: all 0.3s;
  font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; font-size: inherit;
}
.header-contact a:hover, .cart-btn-header:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  transform: translateY(-1px);
}
.cart-count.badge {
  background: var(--primary-700); color: white;
  padding: 2px 6px; border-radius: 10px; font-size: 0.75rem; font-weight: 700;
}

/* ===== NAV ===== */
.nav {
  background: var(--primary-300);
  border-bottom: none;
  position: sticky; top: 79px; z-index: 99;
}
.nav-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap; gap: 15px;
}
.nav-links {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center;
}
.nav-link {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 700; font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.4);
  color: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: none;
}
.nav-link .badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff4757; color: white;
  font-size: 0.6rem; padding: 2px 6px;
  border-radius: 10px; font-weight: 700;
}

/* ===== SEARCH BAR ===== */
.search-container {
  display: flex; align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--primary-200);
  border-radius: 20px;
  padding: 2px 4px 2px 15px;
  transition: all 0.3s;
  flex-grow: 1; max-width: 300px;
}
.search-container:focus-within {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(189,121,98,0.1);
  background: white;
}
.search-input {
  border: none; background: transparent;
  outline: none; font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem; color: var(--gray-800);
  width: 100%; padding: 6px 0;
}
.search-btn {
  background: var(--primary-500); color: white;
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s;
}
.search-btn:hover { background: var(--primary-600); }

/* ===== HERO BANNER ===== */
.hero {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 30px auto;
  padding: 0 20px;
}
.hero-card {
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--radius);
  padding: 50px 40px;
  color: var(--gray-800);
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-card::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 400px; height: 400px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}
.hero-card::after {
  content: ''; position: absolute;
  bottom: -30%; left: -10%; width: 300px; height: 300px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}
.hero-card h2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem; font-weight: 400;
  margin-bottom: 10px; position: relative; z-index: 1;
  text-shadow: none;
  color: var(--primary-600);
}
.hero-card p {
  font-size: 1.05rem; opacity: 0.95;
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto 20px;
  color: var(--gray-800);
}
.hero-features {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-feat {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700;
  background: rgba(255,255,255,0.7);
  color: var(--primary-600);
  padding: 8px 16px; border-radius: 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  margin: 40px 0 25px;
  position: relative; z-index: 1;
}
.section-title h2 {
  font-size: 1.8rem; color: var(--primary-600);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
}
.section-title h2::before, .section-title h2::after {
  content: '✨';
  font-size: 1.4rem; color: var(--primary-300);
}
.section-title p {
  color: var(--gray-600); font-size: 1rem;
  margin-top: 6px;
}

/* ===== PRODUCT GRID ===== */
.products-section {
  max-width: 1200px; margin: 0 auto 40px;
  padding: 0 20px; position: relative; z-index: 1;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card .tag-new {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: white; font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
  z-index: 2; letter-spacing: 0.5px;
  animation: tagPulse 2s ease-in-out infinite;
}
.product-card .tag-sale {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #ff4757, #ff6348);
  color: white; font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px; z-index: 2;
}
.product-card .product-badges-bottom {
  position: absolute; bottom: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 2;
}
.product-card .product-like-badge,
.product-card .product-comment-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  font-size: 0.8rem; font-weight: 700;
  padding: 4px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-card .product-like-badge {
  color: #ff4757;
}
.product-card .product-comment-badge {
  color: var(--primary-500);
}
.product-img {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.out-of-stock-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,0.7); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #ff4757;
  z-index: 2;
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}
.product-info {
  padding: 16px; flex-grow: 1; display: flex; flex-direction: column;
}
.product-info h3 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.product-price {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.price-current {
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary-600);
}
.price-old {
  font-size: 0.85rem; color: var(--gray-600);
  text-decoration: line-through;
}
.product-stats {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--gray-500); margin-bottom: 12px;
}
.stat-stock { color: var(--primary-600); font-weight: 600; }
.product-actions {
  display: flex; gap: 8px; margin-top: auto;
}
.btn-cart {
  width: 100%; padding: 10px;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  color: white;
}
.btn-cart:hover { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: var(--white);
  padding: 50px 20px 20px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1200px; margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.footer-col h3 {
  font-size: 1.3rem; margin-bottom: 18px;
  font-family: 'Pacifico', cursive;
  font-weight: 400;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem; line-height: 1.8;
  text-decoration: none;
}
.footer-col a:hover { color: white; text-decoration: underline; }
.footer-col .contact-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: 0.95rem;
}
.footer-bottom {
  text-align: center; margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem; opacity: 0.8;
}

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 990; display: flex; flex-direction: column; gap: 15px; align-items: flex-end;
}
.zalo-float {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0068ff, #0084ff);
  color: white; text-decoration: none;
  padding: 12px 20px; border-radius: 30px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: zaloFloat 2s ease-in-out infinite;
  transition: transform 0.3s;
}
.zalo-float:hover { transform: scale(1.08); color: white; }
.cart-float {
  display: flex; align-items: center; justify-content: center;
  width: 55px; height: 55px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow-lg);
  position: relative; transition: all 0.3s;
}
.cart-float:hover { transform: scale(1.1); }
.cart-float .cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--primary-700); color: white;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: bold; border: 2px solid white;
}
@keyframes zaloFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  background: var(--gray-600); color: white;
  border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: none; z-index: 990;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.scroll-top.show { display: flex; align-items: center; justify-content: center; }
.scroll-top:hover { background: var(--gray-800); transform: translateY(-5px); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 450px; width: 100%;
  padding: 25px;
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: #ff4757; border: 3px solid white;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; font-weight: bold; cursor: pointer;
  color: white; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.modal-close:hover { background: #e84118; transform: scale(1.1) rotate(90deg); }
.modal h3 {
  color: var(--gray-800); font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 1.2rem; margin-bottom: 20px; text-align: center; border-bottom: 1px solid var(--gray-100); padding-bottom: 15px;
}
.modal .modal-product {
  display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; text-align: center;
}
.modal .modal-product .modal-img-container {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.modal .modal-product .modal-main-img {
  width: 100%; height: 300px; background: var(--primary-50); border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--primary-100); display: flex; align-items: center; justify-content: center;
}
.modal .modal-product .modal-main-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.modal .modal-product .modal-thumbnails {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; justify-content: center;
}
.modal .modal-product .modal-thumbnail {
  width: 60px; height: 60px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; object-fit: cover; transition: all 0.2s; flex-shrink: 0;
}
.modal .modal-product .modal-thumbnail.active {
  border-color: var(--primary-500); transform: scale(1.05);
}
.modal-info h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gray-800); line-height: 1.4; }
.modal-info .price { color: var(--primary-600); font-weight: 700; font-size: 1.3rem; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: var(--gray-800); }
.form-control {
  width: 100%; padding: 12px 15px;
  border: 2px solid var(--gray-100); border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif; font-size: 0.95rem;
  transition: border-color 0.3s; outline: none; background: var(--gray-50);
}
.form-control:focus { border-color: var(--primary-400); background: white; }
.text-error { color: #ff4757; font-size: 0.85rem; margin-top: 5px; display: block; font-weight: 500; }

.modal-btn-group { margin-top: 25px; }
.btn-primary {
  width: 100%; padding: 14px;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none;
  text-align: center; transition: all 0.3s;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: linear-gradient(135deg, var(--primary-600), var(--primary-700)); }

/* ===== CART SIDEBAR ===== */
.cart-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px);
}
.cart-sidebar-overlay.show { opacity: 1; pointer-events: auto; }
.cart-sidebar {
  position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh;
  background: white; z-index: 1001; box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-sidebar.show { right: 0; }
.cart-header {
  padding: 20px; border-bottom: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-50);
}
.cart-header h3 { color: var(--primary-600); font-size: 1.2rem; }
.close-cart {
  background: transparent; border: none; font-size: 1.2rem; cursor: pointer;
  color: var(--gray-600); width: 32px; height: 32px; border-radius: 50%;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.close-cart:hover { background: var(--primary-100); color: var(--primary-600); }
.cart-items {
  flex: 1; overflow-y: auto; padding: 20px;
}
.empty-cart { text-align: center; color: var(--gray-600); margin-top: 50px; font-style: italic; }
.cart-item {
  display: flex; gap: 15px; padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px dashed var(--gray-100); position: relative;
}
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--gray-100); }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 4px; padding-right: 25px; line-height: 1.3; }
.cart-item-model { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 6px; background: var(--gray-50); display: inline-block; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--gray-100); }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { color: var(--primary-600); font-weight: 700; }
.cart-qty { display: flex; align-items: center; gap: 10px; background: var(--gray-50); padding: 4px; border-radius: 20px; }
.btn-qty { background: white; border: 1px solid var(--gray-100); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; color: var(--gray-800); }
.btn-qty:hover { background: var(--primary-100); color: var(--primary-600); border-color: var(--primary-200); }
.btn-remove-item { position: absolute; top: 0; right: 0; background: transparent; border: none; color: #ff4757; cursor: pointer; padding: 5px; font-size: 1.1rem; }

.cart-footer { padding: 20px; border-top: 1px solid var(--gray-100); background: white; box-shadow: 0 -5px 15px rgba(0,0,0,0.03); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-800); align-items: center; }
.cart-total span:last-child { color: var(--primary-600); font-size: 1.4rem; }
.checkout-form h4 { margin-bottom: 15px; color: var(--gray-800); font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); padding-bottom: 10px; }
.btn-checkout {
  width: 100%; padding: 15px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); color: white;
  font-family: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: all 0.3s; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 5px;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: linear-gradient(135deg, var(--primary-700), var(--primary-600)); }

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.9); z-index: 9999;
  display: none; flex-direction: column; align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 50px; height: 50px; border: 5px solid var(--primary-100);
  border-top-color: var(--primary-500); border-radius: 50%;
  animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { color: var(--primary-600); font-weight: 600; font-size: 1.1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-top { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .header-contact { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .logo-text h1 { font-size: 1.4rem; }
  .nav { top: 0; position: relative; }
  .nav-inner { flex-direction: column; gap: 10px; padding: 10px 15px; }
  .search-container { max-width: 100%; width: 100%; }
  .nav-links { gap: 6px; }
  .nav-link { font-size: 0.85rem; padding: 6px 14px; }
  .hero-card { padding: 30px 20px; }
  .hero-card h2 { font-size: 1.8rem; }
  .hero-features { gap: 10px; }
  .hero-feat { font-size: 0.8rem; padding: 6px 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .product-info h3 { font-size: 0.85rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .section-title h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 12px; }
  .cart-sidebar { max-width: 100%; right: -100%; }
  .modal-product-detail { max-width: 100%; margin: 0; border-radius: 0; max-height: 100vh; }
  .dual-btns { flex-direction: column; }
}

/* ===== HERO BANNER IMAGE ===== */
.hero-banner-img { margin: -50px -40px 20px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.hero-banner-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
@media (min-width: 769px) { .hero-banner-img img { height: 300px; } }
@media (max-width: 768px) { .hero-banner-img { margin: -30px -20px 15px; } }

/* ===== HERO SOCIAL LINKS ===== */
.hero-social { display: flex; justify-content: center; gap: 12px; margin-top: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 25px; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: white; transition: all 0.3s; }
.social-link.fb { background: #1877f2; }
.social-link.tiktok { background: #010101; }
.social-link.zalo-link { background: #0068ff; }
.social-link:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-md); color: white; }

/* ===== SWIPEABLE GALLERY ===== */
.gallery-swipe-container { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--primary-50); margin-bottom: 15px; touch-action: pan-y; }
.gallery-slides { display: flex; transition: transform 0.35s ease; will-change: transform; }
.gallery-slides img { width: 100%; height: 300px; object-fit: cover; flex-shrink: 0; user-select: none; -webkit-user-drag: none; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; color: var(--gray-800); display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: var(--shadow-sm); z-index: 2; }
.gallery-nav:hover { background: white; box-shadow: var(--shadow-md); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.gallery-dot.active { background: var(--primary-500); width: 20px; border-radius: 4px; }

/* ===== MODAL PRODUCT DETAIL ===== */
.modal-product-detail { max-width: 500px; max-height: 90vh; overflow-y: auto; }
.modal-product-detail h3 { border-bottom: none; padding-bottom: 0; margin-bottom: 5px; }
.modal-product-info { text-align: center; margin-bottom: 10px; }
.modal-product-info h3 { font-size: 1.15rem; color: var(--gray-800); margin-bottom: 5px; }
.modal-product-info .price { color: var(--primary-600); font-weight: 700; font-size: 1.4rem; }
.modal-description { background: var(--primary-50); border-radius: var(--radius-sm); padding: 15px; margin-bottom: 15px; border: 1px solid var(--primary-100); }
.modal-description h4 { font-size: 0.95rem; color: var(--primary-600); margin-bottom: 8px; }
.modal-description p { font-size: 0.9rem; line-height: 1.6; color: var(--gray-600); }

/* ===== DUAL BUTTONS ===== */
.dual-btns { display: flex; gap: 10px; }
.btn-add-cart { flex: 1; background: linear-gradient(135deg, var(--primary-400), var(--primary-500)); }
.btn-buy-now { flex: 1; background: linear-gradient(135deg, #ff6348, #ff4757); }
.btn-buy-now:hover { background: linear-gradient(135deg, #ff4757, #e8352a); }

/* ===== MAP SECTION ===== */
.map-section { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; position: relative; z-index: 1; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 3px solid var(--primary-100); }

/* ===== CHECKOUT NOTICE ===== */
.checkout-notice { background: linear-gradient(135deg, #fff9e6, #fff3cc); border: 1px solid #ffe0a0; border-radius: var(--radius-sm); padding: 12px 15px; margin: 15px 0; display: flex; gap: 10px; align-items: flex-start; }
.checkout-notice i { color: #e67e22; font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.checkout-notice p { font-size: 0.82rem; line-height: 1.5; color: #7a5c1f; margin: 0; }

/* ===== FOOTER SOCIAL ===== */
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); color: white; font-size: 1.1rem; transition: all 0.3s; text-decoration: none; }
.footer-social a:hover { background: rgba(255,255,255,0.4); transform: translateY(-3px); }

/* ===== GOOGLE LOGIN BUTTON ===== */
.login-buttons-wrapper { display: flex; gap: 8px; align-items: center; }
@keyframes loginPulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 112, 136, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(247, 112, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 112, 136, 0); }
}
.google-login-btn { 
  display: flex; align-items: center; justify-content: center; gap: 8px; 
  padding: 0 18px; height: 42px; border: none; border-radius: 21px; 
  cursor: pointer; transition: all 0.3s; 
  box-shadow: 0 4px 12px rgba(247, 112, 136, 0.3); 
  font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.95rem; 
  color: white; background: linear-gradient(135deg, var(--primary-400), var(--primary-500)); 
  animation: loginPulse 2s infinite;
}
.google-login-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(247, 112, 136, 0.4); 
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); 
}
.user-avatar-wrapper { display: flex; align-items: center; gap: 8px; background: var(--primary-50); padding: 4px 12px 4px 4px; border-radius: 20px; border: 1px solid var(--primary-100); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--primary-300); object-fit: cover; }
.user-name-header { color: var(--gray-800); font-weight: 600; font-size: 0.85rem; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout { background: none; border: none; color: var(--gray-600); cursor: pointer; font-size: 0.9rem; padding: 4px; transition: color 0.2s; }
.btn-logout:hover { color: #ff4757; }

/* ===== LIKE & COMMENT SECTION ===== */
.interaction-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--gray-100); }
.like-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.btn-like { display: flex; align-items: center; gap: 6px; background: none; border: 2px solid var(--primary-200); padding: 8px 18px; border-radius: 20px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.9rem; color: var(--gray-600); transition: all 0.3s; }
.btn-like:hover { border-color: var(--primary-400); color: var(--primary-500); }
.btn-like.liked { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-500); }
.btn-like.liked i { font-weight: 900; }
.like-count { font-size: 0.85rem; color: var(--gray-600); }
.comments-section h4 { font-size: 0.95rem; color: var(--gray-800); margin-bottom: 10px; }
.comments-list { max-height: 200px; overflow-y: auto; margin-bottom: 10px; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.comment-item:last-child { border-bottom: none; }
.comment-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-weight: 700; font-size: 0.85rem; color: var(--gray-800); }
.comment-text { font-size: 0.88rem; color: var(--gray-600); margin-top: 3px; line-height: 1.4; }
.comment-time { font-size: 0.75rem; color: var(--gray-600); opacity: 0.7; margin-top: 3px; }
.comment-login-prompt { text-align: center; padding: 12px; background: var(--primary-50); border-radius: var(--radius-sm); }
.comment-login-prompt a { color: var(--primary-500); font-weight: 700; text-decoration: none; }
.comment-login-prompt a:hover { text-decoration: underline; }
.comment-form { display: flex; align-items: center; gap: 8px; }
.comment-form .form-control { flex: 1; padding: 10px 14px; border-radius: 20px; font-size: 0.88rem; }
.btn-send-comment { background: var(--primary-500); color: white; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.btn-send-comment:hover { background: var(--primary-600); transform: scale(1.05); }
.no-comments { text-align: center; color: var(--gray-600); font-size: 0.85rem; padding: 15px 0; opacity: 0.7; }

.btn-disabled {
  background: var(--gray-200) !important; color: var(--gray-500) !important;
  cursor: not-allowed !important;
}

/* ===== CHECKOUT MODAL ===== */
.modal-checkout { max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 25px; }
.modal-checkout h3 { text-align: center; margin-bottom: 15px; border-bottom: 1px solid var(--gray-100); padding-bottom: 12px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 5px; color: var(--gray-800); }
.required { color: #ff4757; }
.checkout-summary { background: var(--primary-50); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 15px; font-size: 0.85rem; border: 1px solid var(--primary-100); max-height: 120px; overflow-y: auto; }
.checkout-summary .summary-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--gray-100); }
.checkout-summary .summary-item:last-child { border-bottom: none; }
.checkout-summary .summary-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--primary-600); padding-top: 8px; margin-top: 5px; border-top: 1px solid var(--primary-200); font-size: 1rem; }
@media (max-width: 480px) { .form-row { flex-direction: column; gap: 0; } .modal-checkout { max-width: 100%; border-radius: 12px 12px 0 0; margin-top: auto; } }

