:root {
  --page-max-width: 1200px;
  --page-gutter: 1.5rem;
  --surface: #ffffff;
  --bg: #f6f7fb;
  --text: #0f172a;
  --muted: #5f6a7f;
  --accent: #1f8ef1;
  --accent-strong: #ff5f6d;
  --border: #e4e7ec;
  --radius-lg: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.no-scroll {
  overflow: hidden;
}

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

a:hover {
  text-decoration: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0;
}

.page-footer {
  background: linear-gradient(180deg, #0d111b, #05070f);
  color: #e2e8f0;
  padding: 3rem var(--page-gutter) 2rem;
  border: none;
}

.page-footer .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}

.footer-brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-brand p {
  color: rgba(226, 232, 240, 0.8);
  max-width: 280px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-badges span {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}

.footer-links-grid strong {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.footer-links-grid a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.95rem;
}

.footer-links-grid a:hover {
  color: #ffffff;
}

.footer-news-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-news-card strong {
  color: #ffffff;
  font-size: 1rem;
}

.footer-news-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.75);
}

.footer-news-card .btn.subtle {
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: inherit;
  box-shadow: none;
  transition: all 0.2s ease;
}

.footer-news-card .btn.subtle:hover {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.7);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links a {
  color: inherit;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  border-color: #1f8ef1;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.badge-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.badge-strip span {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(31, 142, 241, 0.08);
  border: 1px solid rgba(31, 142, 241, 0.2);
  font-weight: 600;
}

.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(31, 142, 241, 0.4));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0 var(--page-gutter);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

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

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #2c6dc7);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero + .section {
  margin-top: 0;
}

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

.trust-strip span {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
}

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

.category-tile {
  height: 180px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(15, 23, 42, 0.8));
}

.category-tile h3 {
  position: relative;
  margin: 0;
  font-size: 1.125rem;
}

.category-tile span {
  position: relative;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.product-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.product-card .price {
  font-weight: 700;
  color: var(--accent-strong);
}

.star-rating {
  color: #ffb703;
  font-size: 0.9rem;
  margin: 0.35rem 0;
}

.product-card button {
  margin-top: 0.5rem;
}

.deal-banner {
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.deal-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(31, 142, 241, 0.4));
  z-index: 0;
}

.deal-banner-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.deal-banner h3 {
  margin-bottom: 0.5rem;
}

.newsletter {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.newsletter form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter input {
  flex: 1;
  min-width: 240px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.newsletter button {
  min-width: 140px;
}

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

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1.25rem;
  font-style: italic;
}

.testimonial-card strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.site-logo {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(31, 142, 241, 0.12);
}

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

.icon-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
}

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

.icon-button svg {
  height: 22px;
  width: 22px;
  fill: none;
  stroke: var(--muted);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-bottom: 5px;
  border-radius: 2px;
}

.mobile-overlay {
  z-index: 950;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  width: min(320px, 80vw);
  height: 100%;
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 0;
}

.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0;
  line-height: 1;
}

.filters-wrapper {
  display: grid;
  gap: 1rem;
}

.filters {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.filters h3 {
  margin-top: 0;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.filter-group input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
}

.filter-group select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mobile-filter summary {
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  list-style: none;
  cursor: pointer;
}

.mobile-filter summary::-webkit-details-marker {
  display: none;
}

.mobile-filter[open] .filters {
  display: block;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

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

.pagination {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pagination button {
  border-radius: 50px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  background: var(--surface);
  cursor: pointer;
}

.collection-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  overflow-x: hidden;
}

.collection-row.scrollable {
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70%, 1fr);
  scroll-snap-type: x mandatory;
}

.collection-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

.collection-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.collection-card .collection-info {
  padding: 1rem;
}

.collection-card h4 {
  margin: 0;
}

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

.product-gallery {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.product-gallery .main-img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.product-gallery .thumbnails {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.product-gallery .thumbnails img {
  border-radius: var(--radius-sm);
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-gallery .thumbnails img.active {
  border-color: var(--accent);
}

.product-meta {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.product-meta h2 {
  margin-top: 0;
}

.product-meta .price {
  font-size: 1.75rem;
  color: var(--accent-strong);
}

.product-meta select,
.product-meta input[type="number"] {
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.tabs button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.tabs button.active {
  border-color: var(--accent);
  background: rgba(31, 142, 241, 0.12);
}

.tab-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--surface);
}

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

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

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

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

.cart-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 1.25rem;
  align-self: start;
  box-shadow: var(--shadow-soft);
}

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

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.map {
  width: 100%;
  height: 200px;
  background: #dfe4ef;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.inline-form {
  display: grid;
  gap: 0.75rem;
}

.inline-form input,
.inline-form select,
.inline-form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.85rem;
  width: 100%;
  resize: vertical;
}

.inline-form button {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.cart-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-weight: 600;
}

.cart-toast.visible {
  opacity: 1;
  pointer-events: auto;
}

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

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

  .filters {
    position: static;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .hero {
    min-height: 420px;
  }

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

  .filters {
    border-radius: var(--radius-sm);
  }

  .collection-row {
    overflow-x: auto;
    grid-auto-columns: 75%;
    grid-auto-flow: column;
    scroll-snap-type: x mandatory;
  }
}

@media (min-width: 901px) {
  .mobile-filter summary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
