/* ==========================================================================
   VOLTZ (فولتز) — Modern Electronics & Gadgets Store
   Design Direction: "Calm Retail" (Light, Clean, Smooth, Restrained)
   Reference: Apple Store / Braun / Sonos with Arabic Warmth
   Font: IBM Plex Sans Arabic (400, 500, 600)
   ========================================================================== */

:root {
  /* Core Color Tokens */
  --bg: #FFFFFF;
  --bg-soft: #F5F5F3;
  --bg-muted: #EDEDEA;
  --ink: #1A1A1C;
  --text: #3B3B40;
  --muted: #7B7B82;
  --line: #E6E6E2;
  --accent: #1F5EFF;
  --accent-50: #EAF0FF;
  --sale: #D9381E;
  --ok: #1E8E5A;
  --warn: #B7791F;
  --error: #D92D20;

  /* Typography */
  --font-main: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Border Radii */
  --radius-card: 20px;
  --radius-img: 16px;
  --radius-input: 12px;
  --radius-btn: 12px;
  --radius-chip: 10px;
  --radius-badge: 8px;
  --radius-modal: 24px;

  /* Soft Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 20, 25, 0.04), 0 2px 8px rgba(20, 20, 25, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 20, 25, 0.05), 0 16px 40px rgba(20, 20, 25, 0.07);
  --shadow-lg: 0 12px 32px rgba(20, 20, 25, 0.08), 0 24px 60px rgba(20, 20, 25, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: all 250ms var(--ease);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  color: var(--text);
}

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

a:hover {
  color: var(--ink);
}

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

/* Layout Containers & Grids */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.btn-primary:hover {
  background-color: #000000;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background-color: var(--bg-muted);
  color: var(--ink);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: var(--bg-soft);
  color: var(--ink);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-icon:hover {
  border-color: var(--ink);
  background-color: var(--bg-soft);
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  background-color: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  outline: none;
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

.form-input.is-error {
  border-color: var(--error);
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-badge);
  line-height: 1;
}

.badge-new {
  background-color: var(--ink);
  color: #FFFFFF;
}

.badge-sale {
  background-color: var(--sale);
  color: #FFFFFF;
}

.badge-soft {
  background-color: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.badge-accent {
  background-color: var(--accent-50);
  color: var(--accent);
}

.badge-warn {
  background-color: #FFF7E6;
  color: var(--warn);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  background-color: var(--bg-muted);
  color: var(--ink);
}

.chip.active {
  background-color: var(--accent-50);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

/* Announcement Top Bar */
.top-announcement {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 0.825rem;
  color: var(--muted);
}

.top-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-announcement a {
  color: var(--text);
}

.top-announcement a:hover {
  color: var(--accent);
}

/* Header */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main-row {
  height: 76px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 32px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background-color: var(--ink);
  color: #FFFFFF;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Search Bar */
.header-search-wrap {
  position: relative;
  max-width: 580px;
  width: 100%;
}

.header-search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 16px;
  background-color: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: var(--transition);
}

.header-search-input:focus {
  background-color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

.header-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 12px;
  display: none;
  z-index: 1010;
  max-height: 420px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.search-result-item:hover {
  background-color: var(--bg-soft);
}

.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-soft);
  object-fit: contain;
  padding: 4px;
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid transparent;
  position: relative;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.header-action-btn:hover {
  background-color: var(--bg-soft);
  color: var(--ink);
}

.header-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Category Nav Sub-Bar */
.header-category-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  height: 46px;
  font-size: 0.875rem;
}

.cat-nav-link {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  position: relative;
}

.cat-nav-link:hover, .cat-nav-link.active {
  color: var(--accent);
}

.cat-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

/* Product Card */
.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-soft);
  border-radius: var(--radius-img);
  overflow: hidden;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms var(--ease);
}

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

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.product-card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card-action-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.card-action-btn.active {
  color: var(--sale);
  border-color: var(--sale);
}

.product-brand {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

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

.product-title a {
  color: var(--ink);
}

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

.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.product-spec-chip {
  background-color: var(--bg-soft);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

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

.price-discount-percent {
  color: var(--sale);
  font-size: 0.8rem;
  font-weight: 500;
}

.product-installment-note {
  font-size: 0.775rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.product-card-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-card-btn:hover {
  background-color: var(--ink);
  color: #FFFFFF;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Hero Light Slider */
.hero-slider-wrap {
  margin: 24px 0 48px;
}

.hero-slide {
  background-color: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: 56px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-tag {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 440px;
}

.hero-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.hero-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.08));
}

/* Category Row */
.category-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.category-card {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-card-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background-color: var(--bg-soft);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.category-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.category-card-count {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Feature Split Panels */
.feature-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

.feature-panel {
  border-radius: var(--radius-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  background-color: var(--bg-soft);
}

.feature-panel.tint {
  background-color: #EBF1FC;
}

.feature-panel-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-panel-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
}

.feature-panel-img {
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto;
}

/* Deal of the Week Card */
.deal-week-card {
  background-color: var(--bg-soft);
  border-radius: var(--radius-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.countdown-box {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.countdown-unit {
  text-align: center;
}

.countdown-number {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 10px;
  min-width: 54px;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Brands Row */
.brands-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.brand-tag {
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.brand-tag:hover {
  color: var(--ink);
}

/* Support Strip */
.support-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}

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

.support-item:not(:last-child) {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.support-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.support-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.support-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-floating:hover {
  transform: scale(1.08);
  color: #FFFFFF;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideIn 250ms var(--ease);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Drawer / Slide-out Cart */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 20, 25, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #FFFFFF;
  z-index: 1060;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 300ms var(--ease), visibility 300ms var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

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

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background-color: var(--bg-soft);
}

/* Compare Sticky Bottom Tray */
.compare-tray {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(120%);
  background-color: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 990;
  transition: transform 300ms var(--ease);
}

.compare-tray.visible {
  transform: translateX(50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-split-grid {
    grid-template-columns: 1fr;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 24px;
  }
  .hero-img-wrap {
    height: 260px;
  }
  .deal-week-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .support-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 12px;
  }
  .product-card-img-wrap {
    padding: 12px;
  }
  .product-card-actions {
    opacity: 1;
    transform: none;
  }
  .header-main-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  .header-search-wrap {
    display: none;
  }
  .header-category-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .category-strip {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
  }
  .category-card {
    min-width: 140px;
  }
  .support-strip {
    grid-template-columns: 1fr;
  }
  .support-item:not(:last-child) {
    border-left: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    padding-left: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .toast-container {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }
  .compare-tray {
    width: 92%;
    flex-direction: column;
    gap: 10px;
  }
}
