/* ============================================
   VuaAppViet — Design System
   Premium static storefront inspired by
   modern Vietnamese digital product shops
   ============================================ */

/* ---------- Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a51a2;
  --primary-light: #2f80ed;
  --primary-dark: #0f3a7a;
  --accent: #f26321;
  --accent-light: #ff8a50;
  --success: #22c55e;
  --danger: #ef4444;
  --bg-body: #f4f6fb;
  --bg-elevated: rgba(255, 255, 255, .78);
  --bg-card: #ffffff;
  --bg-card-soft: #f8fbff;
  --bg-header: linear-gradient(135deg, #1a51a2 0%, #2f80ed 50%, #4a9af5 100%);
  --bg-sale: linear-gradient(135deg, #1e1e2e 0%, #2d1b4e 50%, #1e1e2e 100%);
  --bg-footer: #132033;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --text-footer: rgba(255, 255, 255, .7);
  --text-footer-muted: rgba(255, 255, 255, .4);
  --border: #e2e8f0;
  --border-strong: rgba(148, 163, 184, .28);
  --surface-glass: rgba(255, 255, 255, .14);
  --surface-glass-strong: rgba(255, 255, 255, .24);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
  --shadow-glow: 0 0 20px rgba(26, 81, 162, .15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

body[data-theme='dark'] {
  --primary: #67a4ff;
  --primary-light: #90c2ff;
  --primary-dark: #3c7de0;
  --accent: #ff8c42;
  --accent-light: #ffb066;
  --bg-body: #08111f;
  --bg-elevated: rgba(10, 19, 34, .82);
  --bg-card: #0f1b2d;
  --bg-card-soft: #12233a;
  --bg-header: linear-gradient(135deg, #091325 0%, #10213b 48%, #18365e 100%);
  --bg-sale: linear-gradient(135deg, #090f1f 0%, #111a34 50%, #0f1120 100%);
  --bg-footer: #09111e;
  --text-primary: #ecf3ff;
  --text-secondary: #94a8c5;
  --text-muted: #6d7e99;
  --text-footer: rgba(228, 238, 255, .74);
  --text-footer-muted: rgba(168, 184, 210, .5);
  --border: rgba(148, 163, 184, .16);
  --border-strong: rgba(148, 163, 184, .24);
  --surface-glass: rgba(255, 255, 255, .08);
  --surface-glass-strong: rgba(255, 255, 255, .14);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .28);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, .24);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .34);
  --shadow-glow: 0 0 24px rgba(103, 164, 255, .16);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, .10), transparent 30%),
    radial-gradient(circle at top right, rgba(242, 99, 33, .08), transparent 28%),
    var(--bg-body);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition)
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ul,
ol {
  list-style: none
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px
}

.section {
  padding: 40px 0
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 24px
}

.section-title a.view-all {
  display: none;
}

.text-center {
  text-align: center
}

/* ---------- HEADER ---------- */
.header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.logo-icon {
  width: 56px;
  height: 56px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .3), 0 0 22px rgba(98, 176, 255, .18);
  backdrop-filter: blur(12px);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}

.logo-text {
  font-size: 29px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -.9px;
  line-height: 1;
  text-shadow: 0 8px 28px rgba(15, 23, 42, .32);
}

.logo-text span {
  display: inline-block;
  color: #97ecff;
  text-shadow: 0 0 24px rgba(108, 215, 255, .38);
}

.mobile-sidebar-header .logo-text {
  font-size: 24px;
  line-height: 1.1;
}

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  padding: 0 44px 0 16px;
  font-size: 14px;
  color: #333;
  background: rgba(255, 255, 255, .96);
  outline: none;
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
}

.search-bar input::placeholder {
  color: #999;
  font-weight: 500
}

.search-bar input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .3)
}

.search-bar button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 18px;
  background: transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background var(--transition), color var(--transition);
}

.search-bar button:hover {
  background: var(--primary);
  color: #fff
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--surface-glass-strong);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.theme-toggle-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  display: block;
  background: radial-gradient(circle at 35% 35%, #ffe49b 0%, #ffcb45 45%, #ff9f0a 100%);
  box-shadow: 0 0 0 3px rgba(255, 212, 90, .16), 0 6px 14px rgba(255, 173, 42, .28);
  transition: all var(--transition);
}

.theme-orb::before,
.theme-orb::after {
  content: '';
  position: absolute;
  inset: 50%;
  width: 2px;
  height: 2px;
  margin: -1px;
  border-radius: 999px;
  background: #ffeebf;
  box-shadow:
    0 -10px 0 0 #ffeebf,
    7px -7px 0 0 rgba(255, 238, 191, .95),
    10px 0 0 0 #ffeebf,
    7px 7px 0 0 rgba(255, 238, 191, .95),
    0 10px 0 0 #ffeebf,
    -7px 7px 0 0 rgba(255, 238, 191, .95),
    -10px 0 0 0 #ffeebf,
    -7px -7px 0 0 rgba(255, 238, 191, .95);
}

body[data-theme='dark'] .theme-orb {
  width: 15px;
  height: 15px;
  background: linear-gradient(145deg, #d9e7ff 0%, #9bbcff 55%, #6c8fff 100%);
  box-shadow: inset -4px -3px 0 0 rgba(18, 35, 58, .85), 0 0 0 3px rgba(129, 164, 255, .12), 0 8px 18px rgba(86, 126, 255, .22);
}

body[data-theme='dark'] .theme-orb::before,
body[data-theme='dark'] .theme-orb::after {
  opacity: 0;
}

.theme-toggle-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

body[data-theme='dark'] .search-bar input {
  color: var(--text-primary);
  background: rgba(8, 17, 31, .86);
  border-color: rgba(255, 255, 255, .08);
}

body[data-theme='dark'] .search-bar input::placeholder {
  color: #8aa0bf;
}

body[data-theme='dark'] .search-bar button {
  color: #b9cae3;
}

body[data-theme='dark'] .header-nav {
  background: rgba(255, 255, 255, .04);
  border-top-color: rgba(255, 255, 255, .08);
}

body[data-theme='dark'] .nav-link:hover,
body[data-theme='dark'] .nav-link.active {
  background: rgba(255, 255, 255, .04);
}

/* Header nav */
.header-nav {
  background: rgba(255, 255, 255, .08);
  border-top: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(4px);
}

.header-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav .container::-webkit-scrollbar {
  display: none
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, .06);
}

.nav-link img,
.nav-btn img {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 5px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, .25)
}

/* ---------- HERO / BANNER ---------- */
.hero {
  padding: 20px 0 12px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease-in-out;
}

.hero-slide.active {
  opacity: 1
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px
}

.hero-side {
  display: flex;
  height: 100%;
}

.hero-side-img {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.hero-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* ---------- BRAND MARQUEE ---------- */
.brand-strip {
  padding: 16px 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand-track {
  display: flex;
  gap: 14px;
  animation: marquee 28s linear infinite;
  width: max-content;
  will-change: transform;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.brand-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.brand-chip-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  flex-shrink: 0;
}

.brand-chip img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
}

.brand-chip span:last-child {
  font-size: 13px;
  font-weight: 600;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0)
  }

  100% {
    transform: translate3d(calc(-33.333% - 9.5px), 0, 0)
  }
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, .06), rgba(59, 130, 246, .08));
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(15, 23, 42, .08) 100%);
  pointer-events: none;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05)
}

.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  flex: 1;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-price .old {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 11px 12px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.product-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(26, 81, 162, .3);
}

.contact-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 27, .72);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 1400;
}

.contact-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92vw, 460px);
  padding: 30px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 30, 60, .96), rgba(10, 17, 36, .98));
  border: 1px solid rgba(143, 232, 255, .18);
  box-shadow: 0 32px 72px rgba(2, 6, 23, .48), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform: translate(-50%, -46%) scale(.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease, visibility .28s ease;
  z-index: 1401;
}

.contact-popup.open,
.contact-popup-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-popup.open {
  transform: translate(-50%, -50%) scale(1);
}

.contact-popup::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: radial-gradient(circle at top, rgba(93, 217, 255, .2), transparent 52%);
  pointer-events: none;
}

.contact-popup>* {
  position: relative;
  z-index: 1;
}

.contact-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-popup-close:hover {
  background: rgba(255, 255, 255, .12);
  transform: rotate(90deg);
}

.contact-popup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(143, 232, 255, .1);
  border: 1px solid rgba(143, 232, 255, .16);
  color: #aef6ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-popup-title {
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.18;
  color: #fff;
}

.contact-popup-text {
  margin: 0;
  color: rgba(226, 232, 240, .82);
  font-size: 14px;
  line-height: 1.75;
}

.contact-popup-actions {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-popup-qr-wrap {
  margin-top: 20px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.contact-popup-qr {
  width: min(100%, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #fff;
}

.contact-popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #69efff, #7c71ff 52%, #9462ff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 34px rgba(105, 239, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-popup-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 40px rgba(105, 239, 255, .24);
}

.contact-popup-link-secondary {
  background: linear-gradient(135deg, #32c5ff, #2f8cff 52%, #536dff);
  box-shadow: 0 18px 34px rgba(50, 197, 255, .18);
}

.contact-popup-link-secondary:hover {
  box-shadow: 0 22px 40px rgba(50, 197, 255, .24);
}

.contact-popup-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: stretch;
}

.contact-popup-phone {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(241, 245, 249, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
}

.contact-popup-phone strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: .04em;
}

.contact-popup-copy {
  min-height: 52px;
  border: 1px solid rgba(143, 232, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  color: #dffbff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.contact-popup-copy:hover {
  background: rgba(143, 232, 255, .12);
  border-color: rgba(143, 232, 255, .28);
  transform: translateY(-1px);
}

/* ---------- SALE SECTION ---------- */
.section-sale {
  background: var(--bg-sale);
  padding: 32px 0
}

.sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sale-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sale-title .fire {
  font-size: 26px;
  animation: pulse-fire 1s infinite
}

@keyframes pulse-fire {
  50% {
    transform: scale(1.2);
    opacity: .7
  }
}

.countdown {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.countdown-item {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 7px 8px;
  text-align: center;
  min-width: 52px;
  display: grid;
  justify-items: center;
}

.countdown-num {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 10px;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.sale-grid .product-card {
  border: none;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(4px);
}

.sale-grid .product-card:hover {
  background: rgba(255, 255, 255, .12);
}

.sale-grid .product-title {
  color: rgba(255, 255, 255, .9)
}

.sale-grid .product-price {
  color: var(--accent-light)
}

.sale-grid .product-price .old {
  color: rgba(255, 255, 255, .4)
}

.sale-grid .product-btn {
  background: var(--accent)
}

.sale-grid .product-btn:hover {
  background: var(--accent-light)
}

.sale-subtitle {
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.compact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.pricing-card .product-body {
  display: grid;
  gap: 14px;
}

.pricing-card .product-title {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.4;
}

.pricing-card .product-meta {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.65;
}

.price-stack {
  display: grid;
  gap: 10px;
}

.single-price-stack {
  gap: 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59, 130, 246, .1), rgba(59, 130, 246, .04));
  border: 1px solid rgba(96, 165, 250, .18);
}

.price-row.premium {
  background: linear-gradient(180deg, rgba(242, 99, 33, .12), rgba(242, 99, 33, .05));
  border-color: rgba(242, 99, 33, .26);
}

.price-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
}

.price-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(226, 232, 240, .7);
}

.price-row strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.price-row.premium strong {
  color: var(--accent);
}

.claude-tier-card .price-label {
  font-size: 13px;
  color: rgba(248, 250, 255, .98);
}

.claude-tier-card .price-note {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240, 245, 255, .92);
}

.claude-tier-card .product-body {
  gap: 16px;
}

.claude-price-stack {
  gap: 12px;
}

.claude-max-row {
  background: linear-gradient(180deg, rgba(99, 102, 241, .12), rgba(99, 102, 241, .05));
  border-color: rgba(129, 140, 248, .24);
}

.claude-max-row strong {
  color: #9ec5ff;
}

.featured-max-row {
  background: linear-gradient(180deg, rgba(168, 85, 247, .16), rgba(168, 85, 247, .06));
  border-color: rgba(216, 180, 254, .28);
  box-shadow: 0 14px 28px rgba(76, 29, 149, .14);
}

.featured-max-row strong {
  color: #d7b7ff;
}

.spotlight-card .product-title {
  font-size: 17px;
  line-height: 1.42;
}

.spotlight-card .product-meta {
  font-size: 12px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-card .price-row {
  padding: 10px 12px;
  border-radius: 12px;
}

.spotlight-card .price-row strong {
  font-size: 24px;
}

.claude-tier-card .price-row strong {
  font-size: 27px;
}

.spotlight-card .price-label {
  font-size: 10px;
  letter-spacing: .5px;
}

.spotlight-card .price-note {
  font-size: 11px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1px;
}

.featured-card {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.featured-card .product-img {
  aspect-ratio: 1 / 1.02;
}

.product-meta {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.stock-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .18);
  color: rgba(226, 232, 240, .88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08px;
}

.stock-chip strong {
  color: #fff;
  font-size: 13px;
}

.stock-chip-live {
  background: linear-gradient(180deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .08));
  border-color: rgba(74, 222, 128, .28);
  color: rgba(220, 252, 231, .96);
}

.stock-chip-live strong {
  color: #dcfce7;
}

.claude-tier-card .product-title {
  font-size: 19px;
  line-height: 1.38;
}

.claude-tier-card .product-btn {
  min-height: 50px;
  font-size: 15px;
}

.claude-meta {
  color: rgba(245, 248, 255, .98);
  font-size: 14px;
  line-height: 1.76;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sale-grid .product-meta {
  color: rgba(255, 255, 255, .78);
}

.sale-grid .meta-pills span {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}

.badge-pick {
  background: linear-gradient(135deg, #22c55e, #86efac);
  color: #0f172a;
}

.badge-premium {
  background: linear-gradient(135deg, #f59e0b, #fde68a);
  color: #4a2c00;
}

.info-card {
  background: linear-gradient(145deg, #0f172a 0%, #182338 58%, #1f2d46 100%);
  border: 1px solid rgba(96, 165, 250, .18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
}

.two-cols {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

#families .product-card {
  height: 100%;
}

#team-2 {
  display: flex;
  flex-direction: column;
}

.info-card-visual {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.info-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(96, 165, 250, .12);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #c7ddff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.info-card .product-title {
  color: #fff;
  font-size: 28px;
  line-height: 1.24;
  margin-bottom: 14px;
}

.info-intro {
  color: rgba(226, 232, 240, .94);
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.72;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, .9);
}

.feature-list li strong {
  color: #fff;
}

.feature-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-light);
}

#team-2 .secondary-btn {
  margin-top: auto;
}

.secondary-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, .14);
}

.compact-footer {
  grid-template-columns: 1.6fr 1fr 1fr;
}

/* ---------- WHY-US SECTION ---------- */
.why-us {
  background: var(--bg-card);
  border-top: 1px solid var(--border)
}

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

.why-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.why-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(96, 165, 250, .2), rgba(59, 130, 246, .08));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 24px rgba(15, 23, 42, .08);
}

.why-icon::before,
.why-icon::after,
.why-icon span::before,
.why-icon span::after {
  content: '';
  position: absolute;
}

.why-icon-check::before {
  width: 26px;
  height: 14px;
  left: 17px;
  top: 19px;
  border-left: 4px solid var(--primary-light);
  border-bottom: 4px solid var(--primary-light);
  transform: rotate(-45deg);
  border-radius: 2px;
}

.why-icon-price::before,
.why-icon-price::after {
  width: 22px;
  height: 14px;
  left: 20px;
  border-radius: 5px;
  border: 2px solid var(--accent);
}

.why-icon-price::before {
  top: 16px;
  background: rgba(242, 99, 33, .08);
}

.why-icon-price::after {
  top: 26px;
  left: 14px;
  background: rgba(26, 81, 162, .06);
}

.why-icon-price span::before {
  width: 6px;
  height: 6px;
  right: 17px;
  top: 20px;
  border-radius: 50%;
  background: var(--accent);
}

.why-icon-shield::before {
  width: 24px;
  height: 28px;
  left: 19px;
  top: 15px;
  background: linear-gradient(180deg, rgba(47, 128, 237, .95), rgba(26, 81, 162, .95));
  clip-path: polygon(50% 0%, 88% 12%, 88% 54%, 50% 100%, 12% 54%, 12% 12%);
  box-shadow: 0 6px 14px rgba(26, 81, 162, .22);
}

.why-icon-shield::after {
  width: 8px;
  height: 14px;
  left: 27px;
  top: 21px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.why-icon-flash::before {
  width: 18px;
  height: 30px;
  left: 24px;
  top: 15px;
  background: linear-gradient(180deg, #ffd56a, #ff9f0a);
  clip-path: polygon(48% 0, 100% 0, 61% 42%, 88% 42%, 27% 100%, 42% 58%, 13% 58%);
  box-shadow: 0 8px 16px rgba(255, 159, 10, .25);
}

.why-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary)
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--accent)
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 420px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-links li {
  margin-bottom: 10px
}

.footer-links a {
  font-size: 13px;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-footer-muted);
}

/* ---------- SCROLL-TO-TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1024px) {

  .product-grid,
  .sale-grid,
  .compact-grid,
  .three-cols {
    grid-template-columns: repeat(3, 1fr)
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid,
  .compact-footer {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {
  .header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .logo {
    min-width: 0;
  }

  .logo-text {
    font-size: 20px;
  }

  .search-bar {
    order: initial;
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
  }

  .theme-toggle {
    order: initial;
    margin-left: 0;
    justify-self: end;
  }

  .mobile-menu-btn {
    justify-self: end;
  }

  .header-nav {
    display: none
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .hero-main,
  .hero-side {
    min-width: 0;
  }

  .hero-slider,
  .hero-side-img {
    aspect-ratio: .92;
  }

  .sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .product-grid,
  .sale-grid,
  .compact-grid,
  .three-cols,
  .two-cols,
  .why-grid,
  .footer-grid,
  .compact-footer {
    grid-template-columns: 1fr 1fr;
  }

  .countdown {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .section-title {
    font-size: 20px;
  }
}

@media(max-width:540px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 28px 0;
  }

  .hero {
    padding-top: 14px;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0 12px;
  }

  .theme-toggle-text {
    display: none;
  }

  .hero-grid {
    gap: 12px;
  }

  .hero-slider,
  .hero-side-img {
    aspect-ratio: .98;
  }

  .product-grid,
  .sale-grid,
  .compact-grid,
  .three-cols,
  .two-cols,
  .why-grid,
  .footer-grid,
  .compact-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pricing-card .product-title {
    font-size: 17px;
  }

  .claude-tier-card .product-title {
    font-size: 14px;
    line-height: 1.4;
  }

  .claude-tier-card .product-body {
    gap: 14px;
    padding: 14px 12px 16px;
  }

  .price-row {
    padding: 11px 12px;
    gap: 12px;
  }

  .claude-tier-card .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 10px;
    gap: 10px;
  }

  .price-row strong {
    font-size: 23px;
  }

  .claude-tier-card .price-row strong {
    font-size: 18px;
  }

  .price-label {
    font-size: 10px;
    letter-spacing: .6px;
  }

  .claude-tier-card .price-label {
    font-size: 11px;
    letter-spacing: .4px;
  }

  .claude-tier-card .price-note {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 4px;
  }

  .claude-tier-card .meta-pills {
    gap: 8px;
  }

  .claude-tier-card .meta-pills span {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .stock-stats {
    gap: 6px;
  }

  .stock-chip {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .stock-chip strong {
    font-size: 12px;
  }

  .claude-meta {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .claude-tier-card .product-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .section-title {
    font-size: 18px
  }

  .logo {
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .logo-text {
    font-size: 16px;
  }

  .countdown-item {
    min-width: 46px;
    padding: 6px 6px
  }

  .countdown-num {
    font-size: 15px
  }
}

/* ---------- Mobile hamburger ---------- */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
}

@media(max-width:768px) {
  .mobile-menu-btn {
    display: flex
  }
}

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-card);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-sidebar.open {
  transform: translateX(0)
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto
}

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

.mobile-sidebar-header .logo-text {
  color: var(--primary);
  font-size: 20px
}

.mobile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-close:hover {
  background: var(--bg-body)
}

.mobile-nav {
  padding: 16px
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition);
}

.mobile-nav a:hover {
  background: var(--bg-body)
}

.mobile-nav a img {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 5px;
  flex-shrink: 0;
}