/* ===== KADOCH SHOP - MODERN WARM THEME ===== */
:root {
  --primary: #0F766E;
  --primary-dark: #0D5D56;
  --primary-light: #14B8A6;
  --secondary: #F59E0B;
  --accent: #EC4899;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --dark: #0F172A;
  --gray-900: #1E293B;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748B;
  --gray-500: #94A3B8;
  --gray-400: #CBD5E1;
  --gray-300: #E2E8F0;
  --gray-200: #F1F5F9;
  --gray-100: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Extended branding vars (overridden by JS) */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: var(--font-body);
  --bg: #F8FAFC;
  --header-bg: #FFFFFF;
  --footer-bg: #0F172A;
  --topbar-bg: #0F172A;
  --topbar-color: #CBD5E1;
  --btn-radius: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-heading);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--topbar-bg);
  color: var(--topbar-color);
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.top-bar.hidden { display: none; }
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.admin-link:hover { color: var(--white); }

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,0.85);
  background: color-mix(in srgb, var(--header-bg) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-content {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; display: inline-flex; align-items: center; }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-accent { color: var(--primary); }
.search-bar {
  flex: 1;
  display: flex;
  max-width: 480px;
  background: var(--white);
  border-radius: 100px;
  overflow: hidden;
  border: 1.5px solid var(--gray-300);
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-bar:focus-within { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(20,184,166,0.12); }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  color: var(--dark);
}
.search-bar input::placeholder { color: var(--gray-500); }
.search-bar button {
  border: none;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.affiliate-badge {
  background: var(--success);
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  animation: fadeIn 0.3s;
}
.cart-btn {
  background: var(--dark);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-weight: 600;
}
.cart-btn:hover { background: var(--gray-800); transform: scale(1.03); }
.cart-count {
  background: var(--primary-light);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* --- Hero: gradient (default) --- */
.hero[data-hero-style="gradient"] .hero-bg,
.hero:not([data-hero-style]) .hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0F172A 0%, #134E4A 40%, #0F766E 70%, #0D9488 100%);
  z-index: 0;
}
.hero[data-hero-style="gradient"] .hero-bg::before,
.hero:not([data-hero-style]) .hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero[data-hero-style="gradient"] .hero-bg::after,
.hero:not([data-hero-style]) .hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

/* --- Hero: image-overlay --- */
.hero[data-hero-style="image-overlay"] .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero[data-hero-style="image-overlay"] .hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.85) 100%);
}
.hero[data-hero-style="image-overlay"] .hero-bg::after { display: none; }
.hero[data-hero-style="image-overlay"] .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero[data-hero-style="image-overlay"] .hero-visual { display: none; }
.hero[data-hero-style="image-overlay"] .hero-content { text-align: center; }
.hero[data-hero-style="image-overlay"] .hero-actions { justify-content: center; }
.hero[data-hero-style="image-overlay"] .hero-stats { justify-content: center; }
.hero[data-hero-style="image-overlay"] .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }

/* --- Hero: split --- */
.hero[data-hero-style="split"] .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero[data-hero-style="split"] .hero-bg::before,
.hero[data-hero-style="split"] .hero-bg::after { display: none; }
.hero[data-hero-style="split"] .hero-inner {
  grid-template-columns: 1fr 1fr;
}
.hero[data-hero-style="split"] .hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero[data-hero-style="split"] .hero-visual .hero-cards { display: none; }
.hero[data-hero-style="split"] .hero-visual::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

/* --- Hero: minimal --- */
.hero[data-hero-style="minimal"] .hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg) !important;
  filter: none !important;
  z-index: 0;
}
.hero[data-hero-style="minimal"] .hero-bg::before,
.hero[data-hero-style="minimal"] .hero-bg::after { display: none; }
.hero[data-hero-style="minimal"] .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 0 50px;
  min-height: auto;
}
.hero[data-hero-style="minimal"] .hero-visual { display: none; }
.hero[data-hero-style="minimal"] .hero-content { color: var(--dark); text-align: center; }
.hero[data-hero-style="minimal"] .hero h1 { color: var(--dark); }
.hero[data-hero-style="minimal"] .hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero[data-hero-style="minimal"] .hero p { color: var(--gray-600); max-width: 100%; margin-left: auto; margin-right: auto; }
.hero[data-hero-style="minimal"] .hero-tag { background: rgba(15,118,110,0.08); color: var(--primary); border-color: rgba(15,118,110,0.15); }
.hero[data-hero-style="minimal"] .hero-actions { justify-content: center; }
.hero[data-hero-style="minimal"] .hero-stats { justify-content: center; }
.hero[data-hero-style="minimal"] .hero-stats .stat strong { color: var(--dark); }
.hero[data-hero-style="minimal"] .hero-stats .stat span { color: var(--gray-500); }
.hero[data-hero-style="minimal"] .btn-outline { color: var(--dark); border-color: var(--gray-300); }
.hero[data-hero-style="minimal"] .btn-outline:hover { background: var(--gray-100); border-color: var(--gray-400); }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0F172A 0%, #134E4A 40%, #0F766E 70%, #0D9488 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 90px;
  min-height: 520px;
}
.hero-content { color: white; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  color: var(--secondary);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(245,158,11,0.25);
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--secondary) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stats .stat { text-align: left; }
.hero-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}
.hero-stats .stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.5s;
}
.hero-cards:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  text-align: center;
  color: white;
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-4px); }
.hero-card:nth-child(2) { transform: translateY(20px); }
.hero-card:nth-child(3) { transform: translateY(-10px); }
.hero-card:nth-child(2):hover { transform: translateY(16px); }
.hero-card:nth-child(3):hover { transform: translateY(-14px); }
.hero-card-icon { font-size: 2.2rem; margin-bottom: 8px; display: flex; justify-content: center; align-items: center; color: rgba(255,255,255,0.9); }
.hero-card-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.hero-card-sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,118,110,0.3); }
.btn-secondary-theme { background: var(--secondary); color: var(--dark); }
.btn-secondary-theme:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-lg { padding: 14px 34px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ===== CATEGORIES ===== */
.categories-section { padding: 56px 0 28px; }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  background: linear-gradient(135deg, rgba(15,118,110,0.03), rgba(20,184,166,0.06));
}
.category-card.active {
  border-color: var(--primary);
  background: rgba(15,118,110,0.04);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.08);
}
.category-card .cat-icon { font-size: 1.8rem; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; color: var(--primary); width: 44px; height: 44px; margin-left: auto; margin-right: auto; background: rgba(15,118,110,0.06); border-radius: 12px; }
.category-card .cat-name { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }

/* ===== PRODUCTS ===== */
.products-section { padding: 28px 0 60px; }
.products-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.products-filters { display: flex; gap: 10px; }
.products-filters select {
  padding: 8px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 100px;
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--white);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  color: var(--gray-700);
}
.products-filters select:focus { border-color: var(--primary); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}

/* Product Card - Default */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  border-color: transparent;
}
.product-image {
  position: relative;
  height: 220px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-dropship-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
}
.product-info { padding: 16px; }
.product-category {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.product-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
}
.product-description {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.product-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.product-compare { font-size: 0.85rem; color: var(--gray-500); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; font-size: 0.82rem; padding: 9px 12px; border-radius: var(--btn-radius); }
.btn-cart { background: var(--primary); color: white; }
.btn-cart:hover { background: var(--primary-dark); }
.btn-view { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-view:hover { background: var(--gray-200); }

/* Product Card Variants */
/* Minimal */
.products-grid[data-card-style="minimal"] .product-card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}
.products-grid[data-card-style="minimal"] .product-card:hover {
  box-shadow: var(--shadow-lg);
}
.products-grid[data-card-style="minimal"] .product-image { border-radius: var(--radius) var(--radius) 0 0; }

/* Overlay */
.products-grid[data-card-style="overlay"] .product-card {
  border: none;
  border-radius: var(--radius-lg);
}
.products-grid[data-card-style="overlay"] .product-image { height: 280px; }
.products-grid[data-card-style="overlay"] .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 60px 16px 16px;
  color: white;
}
.products-grid[data-card-style="overlay"] .product-name { color: white; }
.products-grid[data-card-style="overlay"] .product-price { color: white; }
.products-grid[data-card-style="overlay"] .product-compare { color: rgba(255,255,255,0.6); }
.products-grid[data-card-style="overlay"] .product-category { color: var(--secondary); }
.products-grid[data-card-style="overlay"] .product-description { color: rgba(255,255,255,0.7); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered product cards */
.product-card { opacity: 0; transform: translateY(20px); animation: cardFadeIn 0.5s ease-out forwards; }
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
@keyframes cardFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ===== FEATURES ===== */
.features-section {
  padding: 64px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}
.feature-card:hover { background: var(--gray-100); border-color: var(--gray-200); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.2rem; display: flex; justify-content: center; align-items: center; margin-bottom: 16px; color: var(--primary); width: 60px; height: 60px; background: rgba(15,118,110,0.08); border-radius: 16px; margin-left: auto; margin-right: auto; }
.features-title { text-align: center; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.feature-card p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  color: var(--gray-400);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-col h3 { color: white; margin-bottom: 16px; font-size: 1.15rem; font-weight: 800; }
.footer-col h4 { color: white; margin-bottom: 14px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col p { font-size: 0.83rem; line-height: 1.7; color: var(--gray-500); }
.footer-col a {
  display: block;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.83rem;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* Footer social links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  margin-bottom: 0;
}
.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px) translateX(0);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}
.cart-sidebar.active { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-600); transition: var(--transition); }
.close-btn:hover { color: var(--dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.cart-item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 3px; color: var(--dark); }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-item-qty button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--danger); transform: scale(1.15); }
.cart-empty { text-align: center; padding: 40px; color: var(--gray-500); }
.cart-empty span { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.cart-footer { padding: 16px; border-top: 1px solid var(--gray-200); }
.cart-affiliate-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cart-affiliate-input input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}
.cart-affiliate-input input:focus { border-color: var(--primary); }
.cart-affiliate-input button {
  padding: 9px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  transition: var(--transition);
}
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1.05rem;
}
.cart-total strong { font-size: 1.3rem; color: var(--dark); font-weight: 800; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 750px; }
.modal-sm { max-width: 400px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--gray-600);
}
.modal-close:hover { background: var(--gray-200); color: var(--dark); }
.modal-body { padding: 28px; position: relative; }

/* Product Modal */
.product-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-modal-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.product-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--danger);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.modal-category { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.product-modal-info h2 { font-size: 1.4rem; font-weight: 800; margin: 8px 0 10px; letter-spacing: -0.01em; }
.product-modal-info p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.modal-prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.modal-price { font-size: 1.7rem; font-weight: 800; color: var(--dark); }
.modal-compare { font-size: 1rem; color: var(--gray-500); text-decoration: line-through; }
.modal-dropship { background: rgba(15,118,110,0.08); color: var(--primary); padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; margin-bottom: 12px; }
.modal-stock { font-size: 0.82rem; margin-bottom: 14px; }
.modal-stock.in-stock { color: var(--success); }
.modal-stock.low-stock { color: var(--warning); }
.modal-stock.out-stock { color: var(--danger); }
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.quantity-selector button {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--gray-300);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.quantity-selector button:hover { border-color: var(--primary); color: var(--primary); }
.quantity-selector span { font-size: 1.1rem; font-weight: 700; min-width: 28px; text-align: center; }

/* Checkout */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 6px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 5px; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,118,110,0.08); }
.checkout-summary {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
  border: 1px solid var(--gray-200);
}
.checkout-summary h3 { margin-bottom: 10px; font-size: 1rem; }
.checkout-item { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.88rem; }
.checkout-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1.5px solid var(--gray-300); margin-top: 10px; font-size: 1.05rem; }
.checkout-total strong { color: var(--dark); font-size: 1.2rem; font-weight: 800; }

/* Affiliate Modal */
.affiliate-modal-body h2 { margin-bottom: 10px; }
.affiliate-modal-body p { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 14px; }
.affiliate-modal-body hr { border: none; border-top: 1px solid var(--gray-200); margin: 18px 0; }
.affiliate-modal-body h3 { margin-bottom: 8px; }
.affiliate-input-group { display: flex; gap: 8px; margin-bottom: 12px; }
.affiliate-input-group input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  text-transform: uppercase;
}
.affiliate-input-group input:focus { border-color: var(--primary); }
#affiliate-result { min-height: 28px; }
.affiliate-success { color: var(--success); font-weight: 600; padding: 8px 12px; background: rgba(16,185,129,0.08); border-radius: var(--radius-sm); }
.affiliate-error { color: var(--danger); font-weight: 600; padding: 8px 12px; background: rgba(239,68,68,0.08); border-radius: var(--radius-sm); }

/* Success */
.success-body { text-align: center; padding: 36px 20px; }
.success-icon { font-size: 3.5rem; display: flex; justify-content: center; align-items: center; margin-bottom: 14px; color: var(--success); }
.success-body h2 { margin-bottom: 10px; font-size: 1.3rem; }
.success-body p { color: var(--gray-600); margin-bottom: 12px; font-size: 0.9rem; }
.order-id { background: var(--gray-100); padding: 10px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.82rem; border: 1px solid var(--gray-200); }

/* Loading & Empty */
.loading { text-align: center; padding: 40px; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 10px;
}
.empty-state { text-align: center; padding: 60px; }
.empty-icon { font-size: 2.5rem; display: flex; justify-content: center; align-items: center; margin-bottom: 10px; opacity: 0.6; color: var(--gray-500); }
.empty-state p { color: var(--gray-500); font-size: 1rem; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
  80% { transform: scale(1.05); }
}

/* ===== FLOATING CART BUBBLE ===== */
.cart-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  z-index: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
}
.cart-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
}
.cart-bubble.bounce {
  animation: cartBounce 0.5s ease;
}
.cart-bubble-icon { display: flex; align-items: center; justify-content: center; }
.cart-bubble-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: all 0.2s;
}
.cart-bubble-count:empty,
.cart-bubble-count[data-count="0"] { display: none; }

/* ===== SHOP NAVIGATION BAR ===== */
.shop-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 69px;
  z-index: 99;
  transition: box-shadow 0.2s;
}
.shop-nav-links {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-nav-links::-webkit-scrollbar { display: none; }
.shop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.shop-nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}
.shop-nav-link.active {
  background: rgba(15,118,110,0.08);
  color: var(--primary);
  border-color: rgba(15,118,110,0.15);
  font-weight: 600;
}
.shop-nav-link .svg-icon { vertical-align: -1px; }

/* ===== CUSTOM PAGES - PREMIUM ===== */
.custom-pages-section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.custom-pages-section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 36px;
  font-weight: 400;
}
.custom-pages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.custom-page-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
}
.custom-page-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-2px);
  border-color: rgba(15,118,110,0.12);
}
.custom-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 20px;
  background: linear-gradient(135deg, rgba(15,118,110,0.04) 0%, rgba(15,118,110,0.01) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.custom-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.15;
}
.custom-page-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), rgba(15,118,110,0.8));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15,118,110,0.25);
}
.custom-page-header h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.custom-page-body {
  padding: 24px 28px 28px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}
.custom-page-body b {
  color: var(--dark);
  font-weight: 600;
}
.custom-page-body ul {
  padding-left: 20px;
  margin: 8px 0;
}
.custom-page-body li {
  margin-bottom: 5px;
}

/* FAQ items - premium accordion style */
.cp-faq-item {
  padding: 0;
  margin-bottom: 12px;
  background: var(--gray-50);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  transition: all 0.25s ease;
}
.cp-faq-item:last-child { margin-bottom: 0; }
.cp-faq-item:hover {
  border-color: rgba(15,118,110,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cp-faq-q {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.92rem;
  padding: 16px 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-faq-q:hover { background: rgba(15,118,110,0.03); }
.cp-faq-q .cp-faq-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(15,118,110,0.75));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15,118,110,0.2);
}
.cp-faq-q .svg-icon { color: var(--primary); flex-shrink: 0; }
.cp-faq-a {
  color: var(--gray-600);
  font-size: 0.87rem;
  line-height: 1.75;
  padding: 0 18px 18px 58px;
}

/* Section items - premium styled */
.cp-section {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--gray-50);
  border-left: 3px solid var(--primary);
  border-top: none;
  border-right: none;
  border-bottom: none;
  transition: all 0.25s ease;
}
.cp-section:last-child { margin-bottom: 0; }
.cp-section:hover {
  background: rgba(15,118,110,0.03);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cp-section-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.98rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-section-title .cp-sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.cp-section-body {
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .custom-pages-grid { gap: 18px; }
  .custom-page-header { padding: 18px 20px 16px; }
  .custom-page-body { padding: 18px 20px 22px; }
  .cp-faq-q { padding: 14px 14px; }
  .cp-faq-a { padding: 0 14px 14px 48px; }
  .cp-section { padding: 16px 16px; }
}

/* ===== NEW BADGE ===== */
.product-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.product-card .product-dropship-badge + .product-new-badge { top: 36px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-inner { padding: 60px 0 70px; min-height: auto; }
}
@media (max-width: 768px) {
  .top-bar-content { font-size: 0.7rem; }
  .header-content { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; flex: 1 0 100%; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat strong { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-modal-body { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .products-header { flex-direction: column; align-items: flex-start; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .shop-nav { top: 0; }
  .shop-nav-link { padding: 6px 14px; font-size: 0.8rem; }
  .cart-bubble { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .product-image { height: 170px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== SVG ICONS ===== */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.custom-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Social icons in footer */
.footer-social .svg-icon { stroke-width: 2; }
/* Topbar inline icons */
.top-bar .svg-icon { vertical-align: -2px; }
/* Header button icons */
.cart-btn .svg-icon,
.search-bar button .svg-icon { vertical-align: middle; }
/* Hero tag icon */
.hero-tag .svg-icon { vertical-align: -2px; }
/* Modal inline icons */
.modal-body h2 .svg-icon,
.modal-dropship .svg-icon { vertical-align: -3px; }
.btn .svg-icon { vertical-align: -2px; }
