/* =============================================
   CÁ MẬP KIDS — MASTER STYLESHEET
   camapkids.vn · Blue + Pink + White
   ============================================= */

:root {
  --blue:        #00A7E1;
  --blue-dark:   #0077B6;
  --blue-light:  #E6F6FD;
  --pink:        #FF4E91;
  --pink-dark:   #D6006A;
  --pink-light:  #FFF0F5;
  --white:       #FFFFFF;
  --gray-bg:     #F7F9FC;
  --gray-text:   #6C757D;
  --text:        #1A1A2E;
  --green:       #00C49A;
  --orange:      #FF7A00;
  --purple:      #7B2FBE;
  --shadow-sm:   0 2px 12px rgba(0,167,225,.12);
  --shadow-md:   0 6px 28px rgba(0,167,225,.18);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.15);
  --radius:      14px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Be Vietnam Pro', sans-serif; color: var(--text); background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* =============================================
   PARTICLES BACKGROUND
   ============================================= */
#particles-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%; opacity: .15;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: .15; }
  90%  { opacity: .15; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 50%, var(--pink) 100%);
  color: #fff; font-size: 13px; font-weight: 500; padding: 8px 0;
  overflow: hidden; position: relative; z-index: 100;
}
.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span { padding: 0 8px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,167,225,.2); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon svg { width: 52px; height: 52px; filter: drop-shadow(0 3px 8px rgba(0,167,225,.3)); transition: var(--transition); }
.logo:hover .logo-icon svg { transform: scale(1.1) rotate(-5deg); }
.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.logo-sub { font-size: 11px; color: var(--gray-text); font-weight: 500; }

/* Search */
.search-bar { flex: 1; }
.search-input-wrap {
  display: flex; align-items: center;
  border: 2.5px solid var(--blue); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--blue-light);
  transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,78,145,.15); background: #fff; }
.search-icon { padding: 0 14px; color: var(--blue); font-size: 16px; }
.search-input-wrap input {
  flex: 1; padding: 11px 8px; border: none; background: transparent;
  font-size: 14px; font-family: inherit; color: var(--text); outline: none;
}
.search-btn {
  padding: 11px 22px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  transition: var(--transition);
}
.search-btn:hover { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%); }
.search-tags { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.search-tags span {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--blue-light); color: var(--blue); cursor: pointer;
  border: 1px solid rgba(0,167,225,.3); transition: var(--transition);
}
.search-tags span:hover { background: var(--blue); color: #fff; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: var(--radius);
  transition: var(--transition); white-space: nowrap;
}
.action-btn:hover { background: var(--blue-light); }
.action-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--blue); position: relative;
  box-shadow: var(--shadow-sm);
}
.cart-btn .action-icon { background: linear-gradient(135deg, var(--pink-light), #fff); color: var(--pink); }
.action-info { display: flex; flex-direction: column; }
.action-info small { font-size: 11px; color: var(--gray-text); }
.action-info strong { font-size: 13px; font-weight: 700; color: var(--text); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--blue); border-radius: 4px; transition: var(--transition); display: block; }

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
  background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue) 60%, #0099cc 100%);
  position: relative; z-index: 998;
}
.nav-inner {
  display: flex; align-items: stretch;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; color: #fff; font-weight: 600; font-size: 14px;
  transition: var(--transition); white-space: nowrap;
}
.nav-item > a i { font-size: 13px; opacity: .85; }
.nav-item > a:hover { background: rgba(255,255,255,.18); }
.nav-sale > a { color: #FFD700 !important; font-weight: 800; }
.nav-sale > a i { color: #FF6B35; }

/* Mega menu */
.mega-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; gap: 0; min-width: 680px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); z-index: 997;
  border-top: 3px solid var(--blue);
}
.nav-item.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col { padding: 20px 22px; min-width: 160px; border-right: 1px solid #f0f0f0; }
.mega-col:last-child { border-right: none; }
.mega-col h4 { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.mega-col a { display: block; font-size: 13.5px; color: #444; padding: 5px 0; transition: var(--transition); }
.mega-col a:hover { color: var(--pink); padding-left: 6px; }
.mega-banner { background: var(--blue-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mega-promo { text-align: center; padding: 10px; }
.mega-promo p { font-size: 13px; color: #444; }
.mega-promo strong { color: var(--pink); font-size: 16px; }
.mega-promo.pink { background: var(--pink-light); }
.promo-badge { background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 8px; }
.promo-link { display: inline-block; margin-top: 8px; color: var(--blue); font-weight: 700; font-size: 13px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section { position: relative; overflow: hidden; height: 520px; }
.hero-slider, .slide { width: 100%; height: 100%; }
.hero-slider { position: relative; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
}
.slide.active { opacity: 1; }

.slide-content {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.slide-text { flex: 1; color: #fff; }
.slide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px); padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.slide-text h1 { font-size: 48px; font-weight: 900; line-height: 1.15; margin-bottom: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.highlight-pink { color: #FFD6EA; }
.highlight-blue  { color: #B3ECFF; }
.slide-text p { font-size: 16px; opacity: .92; line-height: 1.65; margin-bottom: 20px; }
.slide-price { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.old-price { font-size: 18px; text-decoration: line-through; opacity: .65; }
.new-price { font-size: 32px; font-weight: 900; color: #FFD700; }
.discount-badge { background: var(--pink); padding: 4px 12px; border-radius: 20px; font-weight: 800; font-size: 14px; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 30px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #1A1A2E; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 20px rgba(255,215,0,.5);
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 32px rgba(255,215,0,.6); }
.btn-outline {
  padding: 13px 30px; border-radius: var(--radius-xl);
  border: 2.5px solid rgba(255,255,255,.7); color: #fff;
  font-weight: 700; font-size: 15px; transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Product showcase 3D */
.slide-image { flex: 0 0 420px; display: flex; align-items: center; justify-content: center; }
.product-showcase { position: relative; display: flex; align-items: center; justify-content: center; }
.showcase-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
.showcase-glow.pink { background: radial-gradient(circle, rgba(255,78,145,.3) 0%, transparent 70%); }
.showcase-glow.green { background: radial-gradient(circle, rgba(0,196,154,.3) 0%, transparent 70%); }
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity:.8; } 50% { transform: scale(1.15); opacity: 1; } }

.product-3d { position: relative; animation: float3D 4s ease-in-out infinite; }
@keyframes float3D { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-20px) rotate(3deg); } }

.can-body {
  width: 160px; height: 200px; border-radius: 20px;
  background: linear-gradient(145deg, #0088cc, #005a99);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.can-body::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%);
}
.can-label { text-align: center; color: #fff; z-index: 1; }
.brand-logo { font-size: 22px; font-weight: 900; }
.brand-sub { font-size: 13px; font-weight: 600; opacity: .9; }
.stars { font-size: 14px; margin: 6px 0; }
.weight { background: rgba(255,255,255,.2); border-radius: 10px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.can-shadow { width: 140px; height: 18px; background: rgba(0,0,0,.3); border-radius: 50%; margin: 8px auto 0; filter: blur(6px); }

.diaper-pack {
  width: 160px; height: 200px; border-radius: 16px;
  background: linear-gradient(145deg, #FF6BAE, #FF2D7B);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
}
.diaper-label { text-align: center; }
.brand-logo.white { color: #fff; font-size: 22px; font-weight: 900; }
.brand-sub.white { color: rgba(255,255,255,.9); font-size: 13px; }
.size-badge { background: rgba(255,255,255,.25); color: #fff; padding: 3px 14px; border-radius: 20px; font-weight: 800; font-size: 13px; display: inline-block; margin-top: 6px; }

.bottle-body {
  width: 100px; height: 200px; border-radius: 14px 14px 10px 10px;
  background: linear-gradient(145deg, #00d4aa, #00957a);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.bottle-body::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 24px; background: #ccc; border-radius: 4px; margin-top: -20px; }
.bottle-label { text-align: center; color: #fff; }

/* Floating tags */
.floating-tag {
  position: absolute; background: rgba(255,255,255,.9);
  border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); color: var(--blue);
}
.floating-tag.pink { color: var(--pink); }
.floating-tag.green { color: var(--green); }
.tag1 { top: 10px; right: -50px; animation: tagFloat1 3s ease-in-out infinite; }
.tag2 { top: 50%; right: -60px; animation: tagFloat2 3.5s ease-in-out infinite; }
.tag3 { bottom: 20px; right: -45px; animation: tagFloat3 4s ease-in-out infinite; }
@keyframes tagFloat1 { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(6px) translateY(-4px); } }
@keyframes tagFloat2 { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@keyframes tagFloat3 { 0%,100% { transform: translateX(0) translateY(0); } 50% { transform: translateX(5px) translateY(4px); } }

/* Slider controls */
.slider-prev, .slider-next {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.5);
  color: #fff; font-size: 16px; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.45); transform: translateY(-50%) scale(1.1); }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: var(--transition); }
.dot.active { width: 28px; border-radius: 10px; background: #fff; }

/* Bounce animation */
.animate-bounce { animation: bounceIn .6s ease; }
@keyframes bounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* =============================================
   TRUST SECTION
   ============================================= */
.trust-section {
  background: #fff; border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,167,225,.07);
}
.trust-grid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; flex-wrap: wrap; gap: 16px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--pink-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--blue);
}
.trust-info strong { display: block; font-size: 13px; font-weight: 800; }
.trust-info span { font-size: 12px; color: var(--gray-text); }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 30px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--gray-text); }

/* =============================================
   FLASH SALE
   ============================================= */
.flash-sale-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  padding: 36px 0;
}
.flash-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px; text-align: left;
}
.section-title-left { display: flex; align-items: center; gap: 12px; }
.fire-icon { font-size: 30px; animation: firePulse 1s ease-in-out infinite; }
@keyframes firePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2) rotate(5deg); } }
.flash-header h2 { font-size: 28px; font-weight: 900; color: #FFD700; }
.flash-sub { font-size: 14px; color: rgba(255,255,255,.7); }
.countdown { display: flex; align-items: center; gap: 6px; }
.time-block {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; padding: 10px 16px; text-align: center;
  backdrop-filter: blur(4px);
}
.time-block span { display: block; font-size: 28px; font-weight: 900; color: #FFD700; line-height: 1; }
.time-block small { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 2px; display: block; }
.time-sep { font-size: 24px; font-weight: 900; color: var(--pink); animation: blinkSep 1s step-start infinite; }
@keyframes blinkSep { 0%,100% { opacity:1; } 50% { opacity:0; } }
.see-all-btn {
  padding: 10px 22px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue) 0%, var(--pink) 100%);
  color: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); box-shadow: 0 4px 16px rgba(0,167,225,.35);
}
.see-all-btn:hover { transform: translateX(4px) scale(1.04); box-shadow: 0 6px 24px rgba(255,78,145,.4); }

.flash-products-scroll { position: relative; }
.flash-products-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
}
.flash-products-track::-webkit-scrollbar { height: 4px; }
.flash-products-track::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

.flash-card {
  flex: 0 0 200px; background: #fff; border-radius: var(--radius);
  overflow: hidden; position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: var(--transition);
}
.flash-card:hover { transform: translateY(-6px); box-shadow: 0 10px 36px rgba(0,0,0,.22); }
.flash-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
}
.flash-badge.pink-badge  { background: var(--pink); }
.flash-badge.green-badge { background: var(--green); }

/* Product image placeholders */
.product-img {
  height: 140px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.milk-img.blue-can  { background: linear-gradient(145deg, #B3E5FC, #81D4FA); }
.milk-img.pink-can  { background: linear-gradient(145deg, #FCE4EC, #F48FB1); }
.milk-img.green-can { background: linear-gradient(145deg, #C8E6C9, #81C784); }
.diaper-img.pink-pack { background: linear-gradient(145deg, #FCE4EC, #EF9A9A); }
.diaper-img.blue-pack { background: linear-gradient(145deg, #E3F2FD, #90CAF9); }
.tpcn-img  { background: linear-gradient(145deg, #E8F5E9, #A5D6A7); }

.can-mini {
  width: 80px; height: 100px; border-radius: 10px;
  background: rgba(255,255,255,.5); border: 1.5px solid rgba(255,255,255,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.pack-mini { width: 90px; height: 90px; border-radius: 10px; background: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.bottle-mini { width: 50px; height: 100px; border-radius: 14px 14px 8px 8px; background: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.cn-brand { font-size: 12px; font-weight: 800; color: #333; }
.cn-name  { font-size: 11px; font-weight: 600; color: #555; }

.flash-info { padding: 12px; }
.flash-info .prod-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
.flash-info .prod-sub  { font-size: 11px; color: var(--gray-text); margin-bottom: 8px; }
.prod-prices { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.p-new { font-size: 15px; font-weight: 800; color: var(--pink); }
.p-old { font-size: 12px; text-decoration: line-through; color: #999; }
.progress-bar { height: 5px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue) 0%, var(--pink) 100%); border-radius: 4px; }
.sold-text { font-size: 11px; color: var(--gray-text); }
.add-cart-btn {
  width: 100%; margin-top: 8px; padding: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700;
  transition: var(--transition);
}
.add-cart-btn:hover { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%); }

.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: var(--transition);
}
.scroll-arrow.left  { left: -14px; }
.scroll-arrow.right { right: -14px; }
.scroll-arrow:hover { background: var(--blue); color: #fff; }

/* =============================================
   CATEGORIES
   ============================================= */
.categories-section { padding: 64px 0; background: var(--gray-bg); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.cat-card {
  border-radius: var(--radius-lg); padding: 28px 16px;
  text-align: center; position: relative; overflow: hidden;
  transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-8px) scale(1.03); box-shadow: var(--shadow-lg); }
.cat-blue   { background: linear-gradient(145deg, #E3F2FD, #BBDEFB); }
.cat-pink   { background: linear-gradient(145deg, #FCE4EC, #F8BBD0); }
.cat-purple { background: linear-gradient(145deg, #EDE7F6, #D1C4E9); }
.cat-green  { background: linear-gradient(145deg, #E8F5E9, #C8E6C9); }
.cat-orange { background: linear-gradient(145deg, #FFF3E0, #FFE0B2); }
.cat-teal   { background: linear-gradient(145deg, #E0F7FA, #B2EBF2); }
.cat-red    { background: linear-gradient(145deg, #FFEBEE, #FFCDD2); }
.cat-yellow { background: linear-gradient(145deg, #FFFDE7, #FFF9C4); }
.cat-indigo { background: linear-gradient(145deg, #E8EAF6, #C5CAE9); }
.cat-sky    { background: linear-gradient(145deg, #E1F5FE, #B3E5FC); }

.cat-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.75); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: var(--transition);
}
.cat-blue   .cat-icon-wrap { color: var(--blue); }
.cat-pink   .cat-icon-wrap { color: var(--pink); }
.cat-purple .cat-icon-wrap { color: var(--purple); }
.cat-green  .cat-icon-wrap { color: var(--green); }
.cat-orange .cat-icon-wrap { color: var(--orange); }
.cat-teal   .cat-icon-wrap { color: #00BCD4; }
.cat-red    .cat-icon-wrap { color: #F44336; }
.cat-yellow .cat-icon-wrap { color: #FF8F00; }
.cat-indigo .cat-icon-wrap { color: #3F51B5; }
.cat-sky    .cat-icon-wrap { color: #0288D1; }

.cat-card:hover .cat-icon-wrap { transform: scale(1.15) rotate(10deg); background: rgba(255,255,255,.95); }
.cat-card h3 { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cat-card p  { font-size: 12px; color: var(--gray-text); }
.cat-arrow {
  position: absolute; bottom: 12px; right: 14px;
  font-size: 12px; opacity: 0; transition: var(--transition);
  color: var(--blue);
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(4px); }
.cat-bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3); pointer-events: none;
}
.b1 { width: 60px; height: 60px; top: -20px; right: -20px; animation: bubbleFloat 4s ease-in-out infinite; }
.b2 { width: 40px; height: 40px; bottom: 10px; left: -10px; animation: bubbleFloat 5s ease-in-out infinite reverse; }
@keyframes bubbleFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6px,-6px) scale(1.1); } }

/* =============================================
   PROMO BANNERS
   ============================================= */
.promo-banners { padding: 32px 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.promo-banner {
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; position: relative;
  transition: var(--transition); cursor: pointer;
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-blue   { background: linear-gradient(135deg, #00A7E1 0%, #0077B6 100%); color: #fff; }
.promo-pink   { background: linear-gradient(135deg, #FF4E91 0%, #D6006A 100%); color: #fff; }
.promo-purple { background: linear-gradient(135deg, #7B2FBE 0%, #4A0072 100%); color: #fff; }
.promo-label { font-size: 11px; font-weight: 800; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 8px; }
.promo-content h3 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.promo-content h3 strong { font-size: 28px; }
.promo-content p { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.promo-cta { font-size: 13px; font-weight: 700; opacity: .9; }
.promo-emoji { font-size: 56px; }

/* =============================================
   BRANDS
   ============================================= */
.brands-section { padding: 60px 0; background: #fff; }
.brands-marquee-wrap { overflow: hidden; position: relative; }
.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
  content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
}
.brands-marquee-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.brands-marquee-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.brands-track {
  display: flex; gap: 20px;
  animation: brandScroll 25s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes brandScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.brand-logo-card {
  flex: 0 0 140px; height: 70px;
  border: 1.5px solid #e8e8e8; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: #fff; transition: var(--transition); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.brand-logo-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: scale(1.06); }
.bl-inner { font-size: 14px; font-weight: 800; color: var(--gray-text); transition: var(--transition); }
.brand-logo-card:hover .bl-inner { color: var(--blue); }

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products-section { padding: 64px 0; background: var(--gray-bg); }
.prod-category-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.pch-left { display: flex; align-items: center; gap: 16px; }
.pch-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pch-icon.blue   { background: var(--blue-light); color: var(--blue); }
.pch-icon.pink   { background: var(--pink-light); color: var(--pink); }
.pch-icon.purple { background: #F3E5F5; color: var(--purple); }
.pch-left h2 { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.pch-left p  { font-size: 13px; color: var(--gray-text); }

.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.prod-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.prod-img-wrap { position: relative; overflow: hidden; }
.prod-img-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; transition: var(--transition);
}
.prod-card:hover .prod-img-placeholder { transform: scale(1.05); }
.prod-real-img {
  width: 100%; height: 200px; object-fit: contain;
  background: #f8f9ff; padding: 12px;
  transition: var(--transition); display: block;
}
.prod-card:hover .prod-real-img { transform: scale(1.07); }
.flash-real-img {
  width: 100%; height: 120px; object-fit: contain;
  background: #f0f6ff; border-radius: 12px; padding: 8px;
  transition: var(--transition); display: block;
}
.blue-can-lg   { background: linear-gradient(145deg, #B3E5FC, #0288D1); }
.pink-can-lg   { background: linear-gradient(145deg, #FCE4EC, #E91E8C); }
.yellow-can-lg { background: linear-gradient(145deg, #FFFDE7, #F9A825); }
.green-can-lg  { background: linear-gradient(145deg, #E8F5E9, #388E3C); }
.diaper-blue-lg   { background: linear-gradient(145deg, #E3F2FD, #1976D2); }
.diaper-pink-lg   { background: linear-gradient(145deg, #FCE4EC, #C2185B); }
.diaper-yellow-lg { background: linear-gradient(145deg, #FFFDE7, #F57F17); }
.diaper-green-lg  { background: linear-gradient(145deg, #E8F5E9, #2E7D32); }
.tpcn-blue-lg   { background: linear-gradient(145deg, #E3F2FD, #0277BD); }
.tpcn-pink-lg   { background: linear-gradient(145deg, #FCE4EC, #AD1457); }
.tpcn-green-lg  { background: linear-gradient(145deg, #E8F5E9, #1B5E20); }
.tpcn-orange-lg { background: linear-gradient(145deg, #FFF3E0, #E65100); }

.can-visual {
  width: 100px; height: 130px; border-radius: 14px;
  background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(4px);
}
.can-visual span { font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.3); line-height: 1.4; }
.can-visual.small-text span { font-size: 12px; }

.prod-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.badge-sale { background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.badge-hot  { background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.badge-new  { background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }

.prod-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.prod-card:hover .prod-actions { opacity: 1; transform: translateX(0); }
.prod-actions button {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: var(--transition);
}
.prod-actions button:hover { background: var(--blue); color: #fff; }

.prod-body { padding: 16px; }
.prod-brand { font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.prod-name  { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-meta  { font-size: 12px; color: var(--gray-text); margin-bottom: 6px; }
.prod-stars { font-size: 13px; color: #FFA000; margin-bottom: 8px; }
.prod-stars span { color: var(--gray-text); font-size: 12px; }
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-new { font-size: 18px; font-weight: 900; color: var(--pink); }
.price-old { font-size: 13px; text-decoration: line-through; color: #aaa; }
.btn-buy {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: 10px; font-size: 13px; font-weight: 700;
  transition: var(--transition);
}
.btn-buy:hover { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%); transform: scale(1.02); }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #0055a5 100%);
  padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item { color: #fff; }
.stat-number {
  font-size: 50px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label { font-size: 15px; font-weight: 600; opacity: .9; }

/* =============================================
   WHY US
   ============================================= */
.why-section { padding: 72px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.why-card {
  text-align: center; padding: 36px 24px; border-radius: var(--radius-lg);
  border: 2px solid transparent; background: var(--gray-bg);
  transition: var(--transition);
}
.why-card:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-light), var(--pink-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--blue);
  transition: var(--transition);
}
.why-card:hover .why-icon { background: linear-gradient(135deg, var(--blue), var(--pink)); color: #fff; transform: scale(1.12) rotate(10deg); }
.why-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.why-card p  { font-size: 14px; color: var(--gray-text); line-height: 1.65; }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
  padding: 56px 0;
}
.newsletter-inner {
  display: flex; align-items: center; gap: 48px;
  background: #fff; border-radius: var(--radius-xl);
  padding: 40px 48px; box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.nl-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.nl-emoji { font-size: 52px; }
.nl-left h2 { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.nl-left p  { font-size: 14px; color: var(--gray-text); }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.nl-form input {
  flex: 1; min-width: 180px; padding: 13px 18px;
  border: 2px solid #e0e0e0; border-radius: var(--radius-xl);
  font-size: 14px; font-family: inherit; outline: none; transition: var(--transition);
}
.nl-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,167,225,.15); }
.btn-nl {
  padding: 13px 28px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 16px rgba(255,78,145,.4);
  transition: var(--transition); white-space: nowrap;
}
.btn-nl:hover { transform: scale(1.05); box-shadow: 0 8px 28px rgba(255,78,145,.5); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0D0D1A;
  color: rgba(255,255,255,.82);
  padding-top: 60px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fl-icon { font-size: 36px; }
.fl-name { display: block; font-size: 20px; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.fl-tagline { display: block; font-size: 12px; color: rgba(255,255,255,.6); }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 20px; }

.social-links { display: flex; gap: 10px; margin-bottom: 22px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; transition: var(--transition);
}
.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(135deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-yt { background: #FF0000; }
.social-tt { background: #010101; }
.social-zl { background: #0068FF; font-weight: 800; font-size: 13px; }
.social-links a:hover { transform: translateY(-3px) scale(1.15); }

.hotline-box { display: flex; align-items: center; gap: 10px; background: rgba(0,167,225,.15); border: 1px solid rgba(0,167,225,.3); border-radius: 10px; padding: 12px 16px; }
.hotline-box i { font-size: 18px; color: var(--blue); }
.hotline-box small { display: block; font-size: 11px; color: rgba(255,255,255,.6); }
.hotline-box strong { font-size: 18px; font-weight: 900; color: var(--blue); }

.footer-col h4 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(0,167,225,.3); }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-col ul a:hover { color: var(--blue); padding-left: 4px; }
.contact-info p { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.contact-info i { color: var(--blue); margin-top: 3px; width: 14px; flex-shrink: 0; }
.app-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.app-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff;
  transition: var(--transition);
}
.app-btn:hover { background: rgba(0,167,225,.2); border-color: var(--blue); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; flex-wrap: wrap; gap: 16px;
}
.fb-left p { font-size: 13px; color: rgba(255,255,255,.5); }
.fb-left strong { color: rgba(255,255,255,.8); }
.payment-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge {
  padding: 4px 12px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.07);
}

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
.scroll-top {
  position: fixed; bottom: 100px; right: 24px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,167,225,.45);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px) scale(1.1); }

.float-chat { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.chat-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(255,78,145,.5);
  animation: chatPulse 2.5s ease-in-out infinite;
  position: relative;
}
@keyframes chatPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(255,78,145,.5); }
  50% { box-shadow: 0 6px 36px rgba(255,78,145,.8), 0 0 0 12px rgba(255,78,145,.15); }
}
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: #FF0000; color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.chat-popup {
  position: absolute; bottom: 70px; right: 0;
  width: 320px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none;
  transition: var(--transition);
  overflow: hidden;
}
.chat-popup.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.chat-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar { font-size: 28px; }
.chat-header strong { display: block; font-size: 14px; font-weight: 800; }
.chat-header span { font-size: 12px; opacity: .85; }
.chat-header button { margin-left: auto; background: rgba(255,255,255,.2); border-radius: 50%; width: 26px; height: 26px; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.chat-body { padding: 16px; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { font-size: 13.5px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; max-width: 85%; }
.chat-msg.bot { background: var(--blue-light); color: var(--text); align-self: flex-start; }
.chat-input-wrap { display: flex; border-top: 1px solid #f0f0f0; }
.chat-input-wrap input { flex: 1; padding: 12px 14px; border: none; font-size: 13px; font-family: inherit; outline: none; }
.chat-input-wrap button { padding: 12px 16px; background: var(--blue); color: #fff; font-size: 14px; }

.cart-notify {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--green); color: #fff; padding: 12px 24px;
  border-radius: var(--radius-xl); font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,196,154,.4);
  opacity: 0; pointer-events: none; transition: var(--transition);
  display: flex; align-items: center; gap: 8px; z-index: 9999;
}
.cart-notify.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   AOS ANIMATIONS
   ============================================= */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay="100"] { transition-delay: .1s; }
[data-aos][data-aos-delay="200"] { transition-delay: .2s; }
[data-aos][data-aos-delay="300"] { transition-delay: .3s; }

/* =============================================
   RESPONSIVE — 1200px (Large tablet / small laptop)
   ============================================= */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-top      { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-top .footer-col:last-child { grid-column: 1 / -1; }
}

/* =============================================
   RESPONSIVE — 960px (Tablet)
   ============================================= */
@media (max-width: 960px) {
  /* Header */
  .header { position: relative; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 16px; }
  .header-actions { display: none; }
  .hamburger { display: flex; }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 7px); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

  /* Mobile dropdown nav */
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 997;
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue) 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    max-height: 80vh; overflow-y: auto;
  }
  .main-nav.mobile-open { display: block; }
  .nav-inner { flex-direction: column; width: 100%; }
  .nav-item  { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-item > a { padding: 14px 20px; font-size: 15px; }
  .mega-menu { display: none !important; }

  /* Layout */
  .slide-text h1  { font-size: 32px; }
  .slide-image    { display: none; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid       { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .promo-grid     { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
  .time-block     { padding: 8px 12px; }
  .time-block span { font-size: 22px; }
  .newsletter-inner { padding: 32px; gap: 28px; }
}

/* =============================================
   RESPONSIVE — 641px–960px (iPad / Landscape tablet)
   ============================================= */
@media (min-width: 641px) and (max-width: 960px) {
  .hero-section    { height: 400px; }
  .slide-text h1   { font-size: 30px; }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .promo-grid      { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-grid      { grid-template-columns: repeat(4, 1fr); }
  .search-btn      { padding: 11px 16px; font-size: 13px; }
}

/* =============================================
   RESPONSIVE — 640px (Mobile)
   ============================================= */
@media (max-width: 640px) {
  /* Announcement */
  .announcement-bar { font-size: 11px; padding: 6px 0; }

  /* Header — 2-row grid */
  .header { position: relative; }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo   hmbgr"
      "search search";
    gap: 8px 10px;
    padding: 10px 14px;
  }
  .logo           { grid-area: logo; gap: 8px; }
  .search-bar     { grid-area: search; }
  .hamburger      { grid-area: hmbgr; display: flex; align-items: center; }
  .header-actions { display: none; }
  .search-tags    { display: none; }

  .logo-icon svg  { width: 38px; height: 38px; }
  .logo-title     { font-size: 16px; }
  .logo-sub       { font-size: 10px; }
  .search-input-wrap input { padding: 9px 8px; font-size: 13px; }
  .search-btn     { padding: 9px 14px; font-size: 13px; }

  /* Mobile nav (inside dropdown) */
  .nav-item > a   { padding: 13px 18px; font-size: 14px; }

  /* Hero */
  .hero-section   { height: 320px; }
  .slide-content  { padding: 22px 16px; flex-direction: column; justify-content: center; }
  .slide-image    { display: none; }
  .slide-badge    { font-size: 11px; padding: 5px 12px; margin-bottom: 12px; }
  .slide-text h1  { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
  .slide-text p   { font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
  .slide-price    { flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .new-price      { font-size: 24px; }
  .old-price      { font-size: 13px; }
  .discount-badge { font-size: 11px; padding: 3px 8px; }
  .slide-btns     { gap: 8px; flex-wrap: wrap; }
  .btn-primary, .btn-outline { padding: 11px 18px; font-size: 13px; flex: 1; min-width: 0; text-align: center; }
  .slider-prev    { left: 6px; width: 38px; height: 38px; font-size: 14px; }
  .slider-next    { right: 6px; width: 38px; height: 38px; font-size: 14px; }

  /* Trust */
  .trust-grid     { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }

  /* Flash sale */
  .flash-sale-section { padding: 22px 0; }
  .flash-header   { margin-bottom: 18px; flex-direction: column; align-items: flex-start; }
  .flash-header h2 { font-size: 20px; }
  .flash-sub      { font-size: 12px; }
  .countdown      { gap: 3px; }
  .time-block     { padding: 6px 9px; border-radius: 8px; }
  .time-block span { font-size: 18px; }
  .time-block small { font-size: 9px; }
  .time-sep       { font-size: 16px; }
  .see-all-btn    { padding: 8px 16px; font-size: 13px; }
  .flash-card     { flex: 0 0 155px; }
  .flash-real-img { height: 100px; padding: 6px; }
  .flash-info     { padding: 10px; }
  .flash-info .prod-name { font-size: 12px; }
  .p-new          { font-size: 14px; }
  .p-old          { font-size: 11px; }
  .add-cart-btn   { padding: 8px 6px; font-size: 11px; min-height: 40px; }
  .scroll-arrow   { display: none; }

  /* Section headers */
  .section-title  { font-size: 21px; }
  .section-sub    { font-size: 13px; }
  .section-header { margin-bottom: 22px; }

  /* Categories */
  .categories-section { padding: 36px 0; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card       { padding: 16px 8px; border-radius: 14px; }
  .cat-icon-wrap  { width: 48px; height: 48px; font-size: 20px; margin-bottom: 8px; }
  .cat-card h3    { font-size: 12px; margin-bottom: 2px; }
  .cat-card p     { display: none; }

  /* Promo banners */
  .promo-banners  { padding: 16px 0; }
  .promo-grid     { grid-template-columns: 1fr; gap: 12px; }
  .promo-banner   { padding: 18px 16px; border-radius: 16px; }
  .promo-content h3 { font-size: 18px; }
  .promo-content h3 strong { font-size: 22px; }
  .promo-content p { font-size: 12px; }
  .promo-emoji    { font-size: 40px; }

  /* Brands */
  .brands-section { padding: 32px 0; }
  .brand-logo-card { flex: 0 0 110px; height: 56px; }
  .bl-inner       { font-size: 12px; }

  /* Products */
  .products-section { padding: 36px 0; }
  .products-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-real-img  { height: 150px; padding: 8px; }
  .prod-body      { padding: 10px; }
  .prod-brand     { font-size: 10px; }
  .prod-name      { font-size: 12px; }
  .prod-meta      { font-size: 11px; }
  .prod-stars     { font-size: 12px; margin-bottom: 6px; }
  .price-new      { font-size: 14px; }
  .price-old      { font-size: 11px; }
  .prod-price-row { margin-bottom: 8px; }
  .btn-buy        { padding: 10px 8px; font-size: 12px; min-height: 44px; border-radius: 8px; }
  .prod-actions   { display: none; }
  .prod-category-header { margin-bottom: 16px; }
  .pch-left h2    { font-size: 17px; }
  .pch-icon       { width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }

  /* Stats */
  .stats-section  { padding: 36px 0; }
  .stats-grid     { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-number    { font-size: 34px; }
  .stat-label     { font-size: 13px; }

  /* Why us — horizontal card layout */
  .why-section    { padding: 40px 0; }
  .why-grid       { grid-template-columns: 1fr; gap: 12px; }
  .why-card       { padding: 20px 18px; display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .why-icon       { width: 52px; height: 52px; font-size: 20px; margin: 0; flex-shrink: 0; }
  .why-card h3    { font-size: 15px; margin-bottom: 6px; }
  .why-card p     { font-size: 13px; }

  /* Newsletter */
  .newsletter-section { padding: 28px 0; }
  .newsletter-inner   { flex-direction: column; padding: 22px 18px; gap: 18px; border-radius: 20px; }
  .nl-left            { flex-direction: row; align-items: center; gap: 14px; }
  .nl-emoji           { font-size: 38px; flex-shrink: 0; }
  .nl-left h2         { font-size: 17px; margin-bottom: 4px; }
  .nl-left p          { font-size: 12px; }
  .nl-form            { flex-direction: column; gap: 10px; }
  .nl-form input      { min-width: 0; padding: 12px 16px; }
  .btn-nl             { width: 100%; padding: 12px; text-align: center; }

  /* Footer */
  .footer         { padding-top: 36px; }
  .footer-top     { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .footer-bottom  { flex-direction: column; gap: 12px; padding: 16px 0; }
  .payment-logos  { flex-wrap: wrap; gap: 6px; }

  /* Floating elements */
  .chat-popup     { width: calc(100vw - 28px); right: 0; bottom: 72px; }
  .scroll-top     { bottom: 90px; right: 14px; width: 40px; height: 40px; }
  .float-chat     { bottom: 14px; right: 14px; }
  .chat-btn       { width: 50px; height: 50px; font-size: 20px; }

  /* Cart notify */
  .cart-notify    { width: 90vw; font-size: 13px; }
}

/* =============================================
   RESPONSIVE — 375px (Small phones)
   ============================================= */
@media (max-width: 375px) {
  .logo-title       { font-size: 14px; }
  .logo-icon svg    { width: 34px; height: 34px; }
  .logo-sub         { display: none; }
  .categories-grid  { gap: 8px; }
  .products-grid    { gap: 8px; }
  .slide-text h1    { font-size: 20px; }
  .new-price        { font-size: 22px; }
  .flash-card       { flex: 0 0 142px; }
  .btn-primary, .btn-outline { padding: 10px 14px; font-size: 12px; }
  .stat-number      { font-size: 30px; }
  .section-title    { font-size: 19px; }
}
