:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --muted: #5b6073;
  --border: #e1e4ea;
  --accent: #1e8efd;
  --accent-dark: #1765c9;
  --shadow: 0 15px 35px rgba(17, 24, 39, 0.08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: #111;
  font-family: inherit;
  line-height: 1.6;
}

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-media {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.hero-chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-chip .countdown-chip {
  background: rgba(30, 142, 253, 0.15);
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: 0 5px 25px rgba(15, 23, 42, 0.08);
}

.top-bar {
  background: #111b29;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  padding: 0.35rem 1.25rem;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}

.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-logo span {
  font-size: clamp(1rem, 2vw, 1.15rem);
}
}

.site-logo .spark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  position: relative;
}

.site-logo .spark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  clip-path: polygon(0 0, 100% 10%, 40% 50%, 100% 50%, 0 100%, 60% 48%, 0 46%);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.search-field {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  width: min(220px, 120%);
  transition: border-color 0.2s ease;
  font-size: 0.9rem;
}

.search-field:focus {
  outline: none;
  border-color: var(--accent);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #f1f4f8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:focus-visible,
.icon-btn:hover {
  border-color: var(--border);
  background: #eef2f7;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #4a4f5f;
}

.cart-badge {
  position: relative;
}

.cart-badge span {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 0.65rem;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
}

.mobile-menu-btn svg {
  width: 26px;
  height: 26px;
  fill: #111;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(280px, 80vw);
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.25);
  transition: right 0.3s ease;
  z-index: 30;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.drawer-close {
  align-self: flex-end;
  border: none;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
}

.drawer-links a {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.drawer-search {
  display: flex;
  gap: 0.5rem;
}

.drawer-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 52, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

button,
a.button {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary,
a.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(30, 142, 253, 0.25);
}

button.secondary,
a.button.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: #111;
}

button.primary:hover,
button.secondary:hover,
a.primary:hover,
a.secondary:hover {
  transform: translateY(-1px);
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.ratio-16-10 {
  aspect-ratio: 16 / 10;
}

@media (max-width: 768px) {
  .hero-media {
    aspect-ratio: 4 / 3;
  }
}

.ratio-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #f0f3f8;
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flash-window .grid {
  gap: 1rem;
}

.deals-grid .card,
.products-grid .card,
.category-grid .card,
.categories-grid .category-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(30, 142, 253, 0.15);
  color: var(--accent);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
}

.price-strikethrough {
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 0.4rem;
  font-size: 0.95rem;
}

.flash-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.flash-card .countdown {
  margin-top: auto;
}

.countdown-chip {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 77, 77, 0.15);
  color: #d62c2c;
  font-size: 0.85rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quick-tags {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quick-tags span {
  padding: 0.3rem 0.85rem;
  background: #e7ebfc;
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
}

.products-grid .product-card {
  min-height: 420px;
  justify-content: space-between;
}

.product-card button {
  align-self: stretch;
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(17, 24, 39, 0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::after {
  opacity: 1;
}

.category-card .category-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.trust-tile {
  background: var(--surface);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.trust-tile svg {
  width: 32px;
  height: 32px;
  fill: var(--accent);
}

.newsletter {
  background: linear-gradient(135deg, #ecf3ff, #ffffff);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.input-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  width: 260px;
}

.filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.filters button {
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
}

.filters button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.sort-select {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  background: #fff;
}

.filters-panel {
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
  width: min(280px, 100%);
  max-width: 280px;
}

.filters-panel .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filters-panel .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters-panel .filter-options button {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  background: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  min-width: 110px;
}

.filters-panel .filter-options button.active {
  background: rgba(30, 142, 253, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-filter-toggle {
  display: none;
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
}

.mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 52, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 35;
}

.filters-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.filters-panel.mobile-active {
  transform: translateY(0);
}

.filters-panel.mobile-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 1.25rem 1.25rem 0 0;
  transition: transform 0.3s ease, bottom 0.3s ease;
  transform: translateY(100%);
  z-index: 40;
}

.filters-panel.mobile-bottom.mobile-active {
  transform: translateY(0);
  bottom: 0;
}

.filters-panel.mobile-bottom {
  display: none;
}

.filters-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-thumbs img {
  border-radius: 0.75rem;
}

.details-panel {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.variant-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.variant-chips button {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  background: #fff;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.3rem;
  background: #f1f4f8;
}

.qty-control input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.tabs {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab {
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  background: #fff;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.tab-body {
  margin-top: 0.5rem;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.tab.active .tab-body {
  max-height: 400px;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item img {
  border-radius: 1rem;
}

.cart-summary {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cart-summary h3 {
  margin-top: 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 1.5rem;
}

.sticky-add {
  display: none;
}

.faq { }

.faq button {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  font-size: 1rem;
}

.accordion {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}

.accordion+h1, .accordion+* { margin-top: 0; }

.footer {
  background: #11131e;
  color: #dfe3ff;
  padding: 3rem 1.25rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.35rem;
}

.footer-brand p {
  margin: 0;
  color: #b3b8d3;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-list a {
  color: #e7ebff;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-actions button {
  width: fit-content;
  padding: 0.6rem 1.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8d94b3;
  gap: 0.5rem;
}

.footer-bottom span {
  display: inline-flex;
  gap: 0.45rem;
}

.footer-bottom a {
  color: #e7ebff;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .search-field {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .cart-page {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-header {
    justify-content: space-between;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .shop-layout {
    display: block;
  }

  .filters-panel.mobile-bottom {
    display: flex;
  }

  .mobile-filter-toggle {
    display: flex;
  }

  #shop-filters-desktop {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-header {
    padding: 0.75rem 1rem;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 1.5rem 0;
  }

  .sticky-add {
    display: flex;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    border-radius: 1rem 1rem 0 0;
  }
}
