@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --primary: #0db8c6;
  --primary-dark: #0a9aa7;
  --accent: #f59e0b;
  --border: #d7e1ec;
  --shadow-soft: 0 24px 50px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.page-main {
  padding: var(--space-5) 0 var(--space-6);
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding: 0.25rem 0;
  display: inline-flex;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: var(--primary);
}

.nav-link.active {
  color: var(--text);
  border-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-field {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  background: #fff;
  min-width: 220px;
}

.search-field:focus-visible {
  outline: 2px solid var(--primary);
}

.header-link {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--text);
  background: rgba(13, 184, 198, 0.12);
}

.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--primary-dark);
}

.price-tag {
  font-weight: 600;
  color: var(--text);
}

.mobile-menu-button {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-panel.open {
  display: flex;
}

.mobile-panel .search-field {
  width: 100%;
  min-width: auto;
}

.mobile-panel .nav-list {
  flex-direction: column;
  gap: 1rem;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.hero-content h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: var(--space-4);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn,
.btn-primary,
.btn-secondary,
button {
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  padding: 0.85rem 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn,
button {
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(13, 184, 198, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.trust-strip {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.trust-item {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.card,
.category-card,
.product-card,
.review-card,
.deal-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.img-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.img-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.img-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

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

.category-card .pill-tag {
  align-self: flex-start;
}

.pill-tag {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(13, 184, 198, 0.12);
  color: var(--primary);
  border: 1px solid rgba(13, 184, 198, 0.3);
}

.product-card .score-badge {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.product-card strong {
  font-size: 1.1rem;
}

.product-card .spec {
  font-size: 0.95rem;
  color: var(--muted);
}

.review-spotlight {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  align-items: center;
}

.review-spotlight img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.review-spotlight h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.review-card {
  gap: 0.35rem;
}

.review-card h4 {
  font-size: 1rem;
  font-weight: 600;
}

.review-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.review-card .score-badge {
  color: var(--accent);
}

.reviews-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.deal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.deal-card h4 {
  font-size: 1.1rem;
}

.deal-card .pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.deal-card .old-price {
  text-decoration: line-through;
  color: var(--muted);
}

.deal-card .new-price {
  font-size: 1.35rem;
  font-weight: 600;
}

.newsletter {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.newsletter form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter input,
.newsletter button {
  flex: 1;
  min-width: 220px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #fff;
}

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

.contact-form button {
  align-self: flex-start;
}

.filter-sidebar {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.filter-sidebar label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.shop-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.sort-select {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.shop-search {
  border-radius: 999px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-4);
}

.shop-layout .shop-grid {
  margin-top: 0;
}

.filters-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.filters-panel {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.filters-panel.open {
  display: flex;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary {
  background: var(--surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary strong {
  font-size: 1.1rem;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-4);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.footer-column h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-column a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer {
  padding-bottom: var(--space-5);
}

.footer-columns > .footer-column {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

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

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: var(--space-3);
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.btn-full {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .filters-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }
  .mobile-menu-button {
    display: inline-flex;
  }
  .tagline {
    display: none;
  }
  .site-header {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .hero,
  .review-spotlight,
  .deal-card,
  .newsletter,
  .footer-columns {
    padding: var(--space-3);
  }
}
