:root {
  --bg: #fbfbfd;
  --text: #0f1b37;
  --muted: #5c678b;
  --accent: #1d8efa;
  --accent-soft: #57a6ff;
  --accent-alt: #ff6f61;
  --surface: #ffffff;
  --border: #e2e6f0;
  --shadow: 0 20px 45px rgba(24, 29, 56, 0.15);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

a:hover,
button:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

section {
  padding: 28px 0;
}

@media (min-width: 768px) {
  section {
    padding: 40px 0;
  }
}

@media (min-width: 1280px) {
  section {
    padding: 56px 0;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 253, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 23, 40, 0.08);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.logo strong {
  font-weight: 800;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent));
  display: grid;
  place-items: center;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex: 1;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.primary-nav a.active,
.primary-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 2;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border 0.2s ease;
  position: relative;
}

.icon-btn:hover {
  border-color: var(--accent);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

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

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  justify-content: center;
  align-items: center;
  background: #fff;
  position: relative;
  order: 3;
  margin-left: auto;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
}

.hamburger span::before {
  transform: translateY(-6px);
}

.hamburger span::after {
  transform: translateY(6px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: #fff;
  box-shadow: -12px 20px 50px rgba(13, 20, 50, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

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

.drawer-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-content nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-content nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.drawer-content nav a.active {
  color: var(--accent);
}

.drawer-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: var(--muted);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 30, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 45;
}

.drawer-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

body.drawer-open,
body.filters-open {
  overflow: hidden;
}

.hero-spotlight {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  min-height: clamp(55vh, 60vh, 760px);
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-spotlight::before {
  content: '';
  inset: 0;
  position: absolute;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.15));
}

.hero-banner-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding: 0 0 32px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, rgba(251, 251, 253, 0.96), rgba(251, 251, 253, 0.9));
}

.hero-banner {
  width: 100%;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.hero-banner .hero-content {
  padding: clamp(28px, 4vw, 64px);
  max-width: 640px;
}

.hero-content {
  position: relative;
  padding: 48px;
  max-width: 520px;
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.9rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-text {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(29, 142, 250, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-spotlight .btn-secondary,
.deals-hero .btn-secondary,
.page-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.grid {
  display: grid;
  gap: 20px;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .category-tiles {
    grid-template-columns: 1fr;
  }
}

.category-card,
.product-card,
.deal-card,
.value-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card img,
.product-card img,
.deal-card img {
  aspect-ratio: 3 / 2;
}

.card-body,
.product-info,
.deal-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-weight: 600;
}

.product-card {
  gap: 12px;
}

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-price {
  font-weight: 700;
  color: var(--text);
}

.product-rating {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-card .btn {
  width: 100%;
  justify-content: center;
}

.badge {
  display: inline-flex;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(29, 142, 250, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  align-items: center;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

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

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

.daily-deals {
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.12), rgba(29, 142, 250, 0.12));
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.deals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.deals-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.deal-card .deal-info {
  padding-bottom: 16px;
}

.deal-info .price {
  font-weight: 700;
}

.deal-info .strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.85rem;
}

.value-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card {
  gap: 12px;
}

.value-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-card svg {
  width: 36px;
  height: 36px;
  fill: var(--accent);
}

.newsletter-strip {
  background: #fff;
  border-radius: calc(var(--radius) - 6px);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.newsletter-strip form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.newsletter-strip input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.newsletter-strip .btn {
  white-space: nowrap;
}

footer {
  padding: 32px 0;
  background: #f3f5fb;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner nav a {
  font-size: 0.9rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

  .header-actions {
    order: 2;
  }

  .hamburger {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 32px;
  }
}

/* Shop page layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.filters-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filters-panel .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters-panel .chip {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.filters-panel .chip.active {
  background: rgba(29, 142, 250, 0.13);
  border-color: rgba(29, 142, 250, 0.4);
  color: var(--text);
}

.filters-trigger {
  display: none;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 20px;
  border: 1px solid var(--border);
}

.shop-products {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination button {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.filter-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 85vw);
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 55;
  }

  .filters-panel.open {
    transform: translateX(0);
  }

  .filters-trigger {
    display: inline-flex;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 13, 30, 0.35);
    z-index: 50;
    display: none;
  }

  .filter-overlay.visible {
    display: block;
  }
}

/* Deals countdown */
.deals-hero {
  border-radius: 32px;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.deals-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(248, 249, 255, 0.15));
}

.deals-hero-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  color: #fff;
}

.deal-countdown {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Cart page */
.cart-layout {
  display: grid;
  gap: 32px;
}

.cart-items {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(14, 20, 37, 0.08);
  padding: 16px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-subtotal {
  text-align: right;
  font-weight: 600;
}

.stepper {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stepper button {
  padding: 8px 12px;
  background: none;
  border: none;
}

.stepper input {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
}

.order-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.order-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
}

.order-total {
  font-size: 1.4rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .cart-layout {
    grid-template-columns: 2fr 1fr;
  }

  .order-summary {
    position: sticky;
    top: 1.5rem;
    height: fit-content;
  }
}

.empty-cart {
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

/* About + Contact */
.page-hero {
  border-radius: 32px;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 20, 50, 0.8), rgba(255, 255, 255, 0));
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 32px;
  color: #fff;
}

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

.story-grid img {
  border-radius: 28px;
  aspect-ratio: 4 / 3;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-form {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form select,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.field-error {
  color: #d45c53;
  font-size: 0.8rem;
  min-height: 18px;
}

.support-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-card h3 {
  margin: 0;
}

.faq-item {
  border-top: 1px solid rgba(14, 20, 37, 0.1);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-content {
  max-height: 250px;
  padding-bottom: 16px;
}

.faq-item svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

/* Utility */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-muted {
  color: var(--muted);
}
