:root {
  --bg: #f4f7fb;
  --bg-alt: #e9eef7;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: rgba(7, 17, 31, 0.8);
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --accent: #2563eb;
  --accent-strong: #0f4fde;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

body.dark {
  --bg: #07111f;
  --bg-alt: #0d1728;
  --surface: rgba(10, 18, 32, 0.78);
  --surface-strong: rgba(14, 24, 42, 0.94);
  --surface-dark: rgba(240, 246, 255, 0.9);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #60a5fa;
  --accent-strong: #38bdf8;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

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

a,
button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

input,
select,
textarea {
  color: var(--text);
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding-top: 56px;
}

.site-shell {
  min-height: 100vh;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.mini-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
  background: var(--accent-soft);
}

.mini-label {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.hero-copy h1,
.floating-panel h2,
.product-copy h1,
.brand strong,
.product-info h3,
.modal-copy h2,
.about-card h2,
.page-hero-shell h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.section-head p,
.hero-copy p,
.feature-card p,
.product-info p,
.product-copy p,
.mini-product p,
.promo-card p,
.about-card p,
.contact-card p,
.support-panel p,
.footer-grid p,
.results-bar p {
  color: var(--muted);
}

.announcement-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.92);
  color: #dbeafe;
}

body.dark .announcement-bar {
  background: rgba(2, 6, 23, 0.92);
}

.announcement-content {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.announcement-content p {
  margin: 0;
}

.announcement-content a {
  color: white;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
}

.nav-shell {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

body.dark .nav-shell {
  background: rgba(7, 17, 31, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.desktop-nav,
.nav-tools,
.announcement-content,
.hero-actions,
.hero-insights,
.results-bar,
.chip-row,
.summary-row,
.drawer-head,
.tool-btn,
.floating-meta,
.price-row,
.card-actions,
.detail-actions,
.product-meta,
.cart-actions {
  display: flex;
  align-items: center;
}

.desktop-nav {
  justify-content: center;
  gap: 10px;
}

.desktop-nav a,
.mobile-menu a {
  position: relative;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a.active,
.desktop-nav a:hover,
.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-tools {
  gap: 10px;
}

.tool-btn,
.primary-btn,
.ghost-btn,
.text-link,
.wishlist-btn,
.secondary-btn,
.quick-btn,
.qty-btn,
.category-card,
.product-card {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tool-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.wishlist-btn:hover,
.secondary-btn:hover,
.quick-btn:hover,
.qty-btn:hover,
.category-card:hover,
.product-card:hover {
  transform: translateY(-2px);
}

.tool-btn {
  position: relative;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.menu-btn {
  display: none;
}

.count-pill {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

body.dark .mobile-menu {
  background: rgba(7, 17, 31, 0.82);
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.hero-grid,
.promo-layout,
.footer-grid,
.shop-layout,
.contact-layout,
.form-grid,
.modal-grid,
.about-layout,
.timeline-grid,
.product-page-shell {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy h1,
.page-hero-shell h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 16px 0;
}

.hero-copy p,
.page-hero-shell p {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions,
.hero-insights,
.chip-row,
.card-actions,
.detail-actions,
.product-meta,
.cart-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.secondary-btn,
.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 800;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.primary-btn.full-width,
.ghost-btn.full-width {
  width: 100%;
}

.ghost-btn,
.secondary-btn,
.quick-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.hero-showcase,
.feature-card,
.category-card,
.product-card,
.promo-card,
.drawer-panel,
.modal-panel,
.about-card,
.contact-card,
.support-panel .feature-card,
.product-page-shell,
.page-hero-shell,
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-showcase {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.4), transparent 28%),
    linear-gradient(145deg, rgba(7, 17, 31, 0.98), rgba(18, 55, 120, 0.88));
}

.hero-device {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
}

.hero-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.floating-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 22px;
  border-radius: 26px;
  color: white;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.floating-panel p,
.floating-meta a {
  color: rgba(255, 255, 255, 0.82);
}

.floating-meta {
  justify-content: space-between;
  margin-top: 18px;
}

.stat-card,
.feature-card,
.category-card,
.promo-card,
.about-card {
  border-radius: 24px;
}

.stat-card {
  min-width: 150px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.feature-grid,
.category-grid,
.product-grid,
.about-layout,
.timeline-grid {
  display: grid;
  gap: 20px;
}

.feature-grid,
.category-grid,
.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.category-card,
.promo-card,
.about-card {
  padding: 24px;
}

.feature-card h3,
.category-card h3,
.promo-card h2,
.promo-card h3,
.about-card h2,
.drawer-head h2,
.results-bar h2 {
  margin: 14px 0 10px;
  font-family: "Sora", sans-serif;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -36px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.08));
}

.category-card p,
.mini-product p {
  margin: 0 0 16px;
}

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

.product-card {
  overflow: hidden;
  border-radius: 28px;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

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

.product-overlay {
  position: absolute;
  inset: 16px 16px auto 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge-row {
  display: grid;
  gap: 8px;
}

.category-tag,
.discount-badge,
.stock-badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.category-tag,
.discount-badge {
  color: white;
  background: rgba(7, 17, 31, 0.7);
}

.stock-badge {
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
}

.wishlist-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

body.dark .wishlist-btn {
  background: rgba(15, 23, 42, 0.9);
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
}

.wishlist-btn.active {
  color: white;
  background: var(--danger);
}

.product-info {
  padding: 22px;
}

.product-info h3,
.product-info p {
  margin-bottom: 10px;
}

.product-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.rating-stars {
  color: var(--warning);
}

.price-row {
  justify-content: space-between;
  margin: 16px 0 18px;
}

.current-price,
.detail-price,
.cart-price,
.summary-row strong {
  font-size: 1.15rem;
  font-weight: 800;
}

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

.promo-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.promo-primary {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(22, 72, 148, 0.86));
  color: white;
}

.promo-primary p {
  color: rgba(255, 255, 255, 0.78);
}

.mini-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-product {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.mini-product img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
}

.page-hero-shell {
  padding: 36px;
  border-radius: 28px;
}

.alt-section {
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.08), transparent);
}

.shop-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 124px;
  padding: 22px;
  border-radius: 28px;
  display: grid;
  gap: 18px;
}

.filter-block {
  display: grid;
  gap: 10px;
}

.search-box,
.select-control,
.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 15px 16px;
  outline: none;
}

.search-box {
  display: grid;
  gap: 8px;
}

.results-bar {
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.filter-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cart-drawer,
.modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.cart-drawer.open,
.modal.open {
  opacity: 1;
  visibility: visible;
}

.drawer-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
  backdrop-filter: blur(6px);
}

.drawer-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border-radius: 30px;
  transform: translateX(110%);
  transition: transform 0.28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.drawer-head {
  justify-content: space-between;
  gap: 12px;
}

.drawer-items {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  overflow: auto;
}

.drawer-summary {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.summary-row {
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.total-row {
  font-size: 1.05rem;
}

.shipping-progress {
  margin: 18px 0 20px;
}

.shipping-progress p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shipping-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.shipping-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--success));
  transition: width 0.2s ease;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
}

.cart-item h4,
.cart-item p {
  margin: 0 0 8px;
}

.quantity-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.modal {
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: 26px;
  border-radius: 30px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-grid,
.product-page-shell {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.modal-grid img,
.product-media-large img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
  border-radius: 26px;
}

.modal-copy,
.product-copy {
  display: grid;
  gap: 16px;
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-pill {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: 1fr 0.8fr;
}

.contact-card {
  padding: 28px;
  border-radius: 28px;
}

.contact-card form,
.support-panel {
  display: grid;
  gap: 16px;
}

.contact-card label {
  display: grid;
  gap: 8px;
}

.contact-card textarea {
  resize: vertical;
  min-height: 160px;
}

.support-panel {
  display: grid;
}

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

.timeline-grid {
  margin-top: 10px;
}

.site-footer {
  padding: 28px 0 52px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: start;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
}

.footer-brand {
  margin-bottom: 14px;
}

.toast-container {
  position: fixed;
  top: 96px;
  right: 20px;
  display: grid;
  gap: 12px;
  z-index: 160;
}

.toast {
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: toastIn 0.24s ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .promo-layout,
  .shop-layout,
  .contact-layout,
  .footer-grid,
  .product-page-shell,
  .modal-grid,
  .about-layout,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .feature-grid,
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

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

  .announcement-content,
  .results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .section {
    padding: 70px 0;
  }

  .hero-copy h1,
  .page-hero-shell h1 {
    font-size: 2.4rem;
  }

  .feature-grid,
  .category-grid,
  .product-grid,
  .feature-pills {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 440px;
  }

  .floating-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

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

  .drawer-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
}
