/* Fashion Cambodia E-Commerce Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Moul&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-khmer: 'Kantumruy Pro', sans-serif;
  --font-khmer-heading: 'Moul', 'Kantumruy Pro', cursive;
  --font-en: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette - Modern Dark Slate & Luxury Gold Accent */
  --bg-main: #0b0f19;
  --bg-card: #151c2c;
  --bg-card-hover: #1e293b;
  --bg-nav: rgba(15, 23, 42, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.3);

  --primary: #f59e0b; /* Amber Gold */
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Mode Variables */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.94);
  --border-color: #cbd5e1;
  --border-glow: rgba(217, 119, 6, 0.3);

  --primary: #d97706; /* Rich Amber Gold */
  --primary-hover: #b45309;
  --primary-glow: rgba(217, 119, 6, 0.22);

  --accent-pink: #db2777;
  --accent-blue: #2563eb;
  --accent-green: #059669;

  --text-main: #0f172a;  /* High contrast deep slate text */
  --text-sub: #334155;   /* Crisp dark secondary text */
  --text-muted: #475569; /* Clear readable muted text */

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 4px 20px rgba(217, 119, 6, 0.18);
}

/* Guarantee crystal clear select option text contrast */
select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  color: var(--primary);
  border-color: var(--border-color);
  font-weight: 600;
}
.theme-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.theme-toggle-btn i {
  font-size: 1rem;
  transition: transform 0.4s ease;
}
.theme-toggle-btn:hover i {
  transform: rotate(360deg);
}


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

body {
  font-family: var(--font-khmer);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #d97706, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  text-align: center;
  position: relative;
  z-index: 101;
}
.announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid var(--primary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  border-color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -3px;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Header Utilities */
.header-utils {
  display: flex;
  align-items: center;
  gap: 14px;
}

.util-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-khmer);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.util-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.badge-count {
  background: var(--accent-pink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-en);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  line-height: 1;
}

.currency-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.curr-btn.active {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

/* Category Navigation Menu Bar */
.category-menu-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  list-style: none;
  overflow-x: auto;
  padding-bottom: 4px;
}

.menu-item-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-khmer);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.menu-item-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.menu-item-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: var(--primary);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.cat-count {
  font-size: 0.75rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Hero Section & Full-Width Cover Banner */
.hero-cover-container {
  width: 100%;
  max-width: 100%;
  margin: 0 0 32px 0;
  border-radius: 0;
  overflow: hidden;
  background: #060911;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.hero-cover-img-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #060911;
  padding: 0;
  user-select: none;
  cursor: grab;
  overflow: hidden;
}

.hero-cover-img-wrapper.dragging {
  cursor: grabbing;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.slider-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.slider-arrow.arrow-left {
  left: 24px;
}

.slider-arrow.arrow-right {
  right: 24px;
}

.slider-dots-container {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dot-pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot-pill:hover {
  background: rgba(255, 255, 255, 0.85);
}

.dot-pill.active {
  width: 24px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.hero-cover-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

.hero-cover-container:hover .hero-cover-img {
  transform: scale(1.02);
}

.hero-banner-bar {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
}

.hero-banner-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-content-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-subtext {
  font-size: 0.92rem;
  color: var(--text-sub);
  font-weight: 500;
}

.hero-action-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-banner {
  margin: 24px 0 36px 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #0b0f19;
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.hero-badge-decoration {
  display: flex;
  gap: 16px;
  z-index: 2;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Control Bar (Sort & Counter) */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.results-info {
  font-size: 1rem;
  color: var(--text-sub);
}

.results-info strong {
  color: var(--primary);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-khmer);
  font-size: 0.88rem;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.product-thumb-box {
  position: relative;
  width: 100%;
  padding-top: 120%; /* 4:5 Aspect Ratio */
  overflow: hidden;
  background: #000;
}

.product-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.08);
}

/* Card Badges */
.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.badge-tag.hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.badge-tag.new {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Card Top-Right Action Buttons (Wishlist & Quick Cart) */
.card-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.wishlist-btn, .quick-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wishlist-btn:hover, .wishlist-btn.active {
  background: rgba(236, 72, 153, 0.25);
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* Custom Image Icon - heart-icon_34407.png */
.nav-heart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(236, 72, 153, 0.4));
  transition: transform 0.3s ease;
}

.util-btn:hover .nav-heart-icon {
  transform: scale(1.15) rotate(6deg);
}

.card-heart-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wishlist-btn:hover .card-heart-icon,
.wishlist-btn.active .card-heart-icon {
  transform: scale(1.22) rotate(8deg);
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.6));
}

/* Custom Image Icon - Basket.icon.png */
.nav-cart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.4));
  transition: transform 0.3s ease;
}

.util-btn:hover .nav-cart-icon {
  transform: scale(1.15) rotate(-6deg);
}

.basket-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.quick-cart-btn:hover .basket-icon-img,
.add-cart-btn:hover .basket-icon-img {
  transform: scale(1.22) rotate(-8deg);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.quick-cart-btn {
  color: var(--primary);
}

.quick-cart-btn:hover {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.quick-view-overlay {
  position: absolute;
  bottom: -45px;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent);
  display: flex;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.product-card:hover .quick-view-overlay {
  bottom: 0;
}

.quick-view-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.quick-view-btn:hover {
  background: var(--text-main);
  color: #000;
}

/* Card Body */
.product-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-lbl {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stars-icon {
  color: var(--primary);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 14px;
}

.price-current {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.price-original {
  font-family: var(--font-en);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.add-cart-btn {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  border: 1.5px solid var(--primary);
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-cart-btn i {
  font-size: 1.05rem;
  color: var(--primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.add-cart-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #0b0f19;
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-2px);
  font-weight: 700;
}

.add-cart-btn:hover i {
  color: #0b0f19;
  transform: scale(1.22) rotate(-8deg);
}

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

/* Out of Stock Styling */
.badge-out-of-stock {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

.out-of-stock-card {
  opacity: 0.85;
}

.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.out-of-stock-overlay span {
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  letter-spacing: 0.5px;
}

.add-cart-btn.disabled,
.quick-cart-btn.disabled {
  background: rgba(100, 116, 139, 0.2) !important;
  border-color: rgba(100, 116, 139, 0.4) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.qv-stock-badge.out-of-stock {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.qv-stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Multi-Image Gallery Styles */
.qv-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.qv-thumbnails-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  width: 100%;
  scrollbar-width: thin;
}

.qv-thumbnails-gallery::-webkit-scrollbar {
  height: 4px;
}

.qv-thumbnails-gallery::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.qv-thumb-item {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  opacity: 0.65;
}

.qv-thumb-item:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.qv-thumb-item.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.05);
}

.qv-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-multi-count {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Product Card Interactive Image Slideshow / Swiper */
.card-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 6;
  opacity: 0.95;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-slide-arrow.prev {
  left: 6px;
}

.card-slide-arrow.next {
  right: 6px;
}

.product-img-wrapper:hover .card-slide-arrow {
  opacity: 1;
}

.card-slide-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 12px var(--primary-glow);
}

.card-slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 6;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.card-dot.active {
  width: 14px;
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Ultra-Smooth Slow Card Image Slide Transition Animations (0.85s) */
@keyframes slideCardRightSlow {
  0% {
    opacity: 0.25;
    transform: translateX(28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideCardLeftSlow {
  0% {
    opacity: 0.25;
    transform: translateX(-28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.prod-card-img.slide-from-right {
  animation: slideCardRightSlow 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.prod-card-img.slide-from-left {
  animation: slideCardLeftSlow 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Empty State */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.no-products-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* Modal Drawer Setup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover {
  color: var(--accent-pink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 85px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-price {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:hover {
  background: var(--primary);
  color: #000;
}

.cart-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.cart-item-remove:hover {
  color: var(--accent-pink);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.95);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-sub);
}

.cart-summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #0b0f19;
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 14px;
  transition: var(--transition);
}
.checkout-btn:hover {
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Modal Content Box (Quick View & Checkout) */
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-box.qv-modal-box {
  max-width: 860px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.12);
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.modal-close-icon:hover {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
  transform: rotate(90deg);
}

/* Quick View Layout */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 768px) {
  .quick-view-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Uncropped Luxury Product Image Container */
.qv-img-box {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, #111827 0%, #080c14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  max-height: 480px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.qv-img-box img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.qv-img-box:hover img {
  transform: scale(1.06);
}

/* Zoom Overlay Hint Button */
.qv-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.qv-img-box:hover .qv-zoom-hint {
  background: var(--primary);
  color: #0b0f19;
  font-weight: 700;
  border-color: var(--primary);
}

.qv-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Quick View Product Details Controls */
.qv-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.qv-qty-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qv-qty-ctrl {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
}

.qv-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv-qty-btn:hover {
  background: var(--primary);
  color: #0b0f19;
}

.qv-qty-num {
  width: 38px;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.qv-buy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.qv-buy-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Fullscreen Lightbox Overlay */
.lightbox-overlay {
  z-index: 3000;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #090d16;
}

.lightbox-close-btn {
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: rgba(15, 23, 42, 0.8);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}


/* Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-size: 0.9rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), 0 0 15px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px 0;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom-img {
  max-width: 220px;
  max-height: 110px;
  object-fit: contain;
  margin: 0 auto 16px auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.4));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-bottom-img:hover {
  opacity: 1;
  transform: scale(1.06);
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-badge-decoration {
    margin-top: 20px;
  }
  .nav-wrapper {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .search-container {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
}

/* Modal and Drawer Open States */
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer.open {
  right: 0;
}

/* Category Menu Button Utility */
.menu-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-khmer);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.menu-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.menu-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: var(--primary);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.count-pill {
  font-size: 0.75rem;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Badges for Product Cards */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-pink);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
}

.badge-hot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
}
.badge-discount {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* Product Card Custom Elements */
.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 115%;
  overflow: hidden;
  background: #000;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
  opacity: 0.95;
}

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

.product-cat-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  transition: var(--transition);
}

.product-title:hover {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stars {
  color: var(--primary);
  display: flex;
  gap: 2px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.original-price {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Quick View Overlay Button on Card Hover */
.quick-view-btn {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-khmer);
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  white-space: nowrap;
}

.product-card:hover .quick-view-btn {
  bottom: 12px;
}

.quick-view-btn:hover {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
}

/* Size Options Picker */
.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn:hover, .size-btn.active {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Pulse Animation for Cart Badge */
@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.pulse-anim {
  animation: pulseBadge 0.5s ease-in-out;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 992px) {
  .hero-cover-img {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  /* Announcement bar */
  .announcement-bar {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  /* Navigation Header */
  .nav-wrapper {
    height: auto;
    padding: 10px 0;
    gap: 12px;
  }

  .brand-logo-img {
    width: auto;
    max-width: 65px;
    height: 38px;
    object-fit: contain;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  .search-container {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }

  .search-input {
    padding: 8px 14px 8px 38px;
    font-size: 0.85rem;
  }

  .header-utils {
    gap: 8px;
  }

  .util-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Category Scroll Menu */
  .category-menu-bar {
    padding: 8px 0;
  }

  .menu-list {
    justify-content: flex-start;
    padding: 0 10px 4px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .menu-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Hero Cover Container */
  .hero-cover-container {
    margin: 0 0 24px 0;
  }

  .hero-cover-img-wrapper {
    height: 240px;
    padding: 0;
  }

  .hero-cover-img {
    height: 100%;
    max-height: 240px;
  }

  .hero-banner-bar {
    padding: 12px 16px;
  }

  .hero-banner-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-content-mini {
    justify-content: space-between;
    width: 100%;
  }

  .hero-subtext {
    font-size: 0.82rem;
  }

  .hero-action-group {
    justify-content: space-between;
    width: 100%;
  }

  .hero-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Products Grid (2 columns on mobile) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
  }

  .product-info {
    padding: 10px;
  }

  .product-cat-name {
    font-size: 0.7rem;
  }

  .product-title {
    font-size: 0.85rem;
    height: 2.5em;
    margin-bottom: 4px;
  }

  .product-rating {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }

  .current-price {
    font-size: 1.05rem;
  }

  .original-price {
    font-size: 0.78rem;
  }

  .card-top-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .wishlist-btn, .quick-cart-btn {
    width: 32px;
    height: 32px;
  }

  .nav-heart-icon, .card-heart-icon, .basket-icon-img {
    width: 17px;
    height: 17px;
  }

  .add-cart-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
    margin-top: 6px;
  }

  .quick-view-btn {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  /* Cart Drawer Mobile */
  .cart-drawer {
    max-width: 100%;
    width: 100%;
  }

  /* Modals Mobile */
  .modal-box {
    padding: 18px;
    width: 95%;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qv-img-box {
    min-height: 300px;
    max-height: 360px;
  }

  .qv-img-box img {
    max-height: 360px;
    object-fit: contain;
  }


  /* Footer Mobile */
  .footer {
    padding: 32px 0 16px 0;
    margin-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .current-price {
    font-size: 0.95rem;
  }

  .add-cart-btn span {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   LUXURY FEATURES & ENHANCEMENTS STYLING
   ========================================================================== */

/* Trust & Guarantee Banner Bar */
.trust-guarantee-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.trust-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Price Range Filter Pills */
.price-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.price-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-khmer);
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.price-pill:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.price-pill.active {
  background: var(--primary);
  color: #0b0f19;
  font-weight: 700;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* KHQR Payment Modal */
.khqr-modal-box {
  max-width: 460px;
  width: 92%;
  padding: 22px 18px;
  background: #0d1322;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.2);
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .khqr-modal-box {
    padding: 16px 12px;
    width: 95%;
    border-radius: 16px;
  }
}

.khqr-card-container {
  text-align: center;
  width: 100%;
}

.khqr-header {
  margin-bottom: 12px;
}

.khqr-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.khqr-store-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-sub);
  letter-spacing: 1px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.khqr-qr-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 220px;
  max-height: 420px;
  height: auto;
  margin: 14px auto;
  background: #ffffff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.22);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.khqr-qr-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.khqr-center-icon {
  display: none !important;
}

.khqr-amount-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 16px 0 12px 0;
}

.khqr-total-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.khqr-total-usd {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.khqr-total-khr {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.khqr-timer {
  font-size: 0.82rem;
  color: var(--accent-pink);
  font-weight: 600;
  margin-bottom: 8px;
}

.khqr-order-code {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.telegram-order-btn {
  width: 100%;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.telegram-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.6);
}

/* Size Chart Modal */
.size-chart-modal-box {
  max-width: 620px;
}

.size-chart-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.size-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-khmer);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.size-tab-btn:hover, .size-tab-btn.active {
  background: var(--primary);
  color: #0b0f19;
  font-weight: 700;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: center;
}

.size-table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  padding: 10px;
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.size-table td {
  padding: 10px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.size-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Floating Telegram Live Support Widget */
.floating-telegram-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px 10px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5), 0 0 15px rgba(0, 136, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.telegram-icon-wrapper {
  width: 42px;
  height: 42px;
  background: #ffffff;
  color: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
}

.telegram-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border-radius: 50%;
  border: 2px solid #0088cc;
  animation: pulseRipple 1.8s infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.telegram-widget-text {
  display: flex;
  flex-direction: column;
}

.tg-title {
  font-family: var(--font-khmer);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
}

.tg-sub {
  font-size: 0.72rem;
  opacity: 0.9;
}

.floating-telegram-widget:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 136, 204, 0.7);
  color: #fff;
}

@media (max-width: 768px) {
  .floating-telegram-widget {
    bottom: 16px;
    left: 16px;
    padding: 8px 14px 8px 10px;
  }
  .telegram-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .tg-title { font-size: 0.78rem; }
  .tg-sub { display: none; }
}


