:root {
  --primary: #759b8e;
  --primary-dark: #5f8276;
  --secondary: #96593d;
  --secondary-dark: #7a4a32;
  --dark: #1c1c1e;
  --dark-footer: #121214;
  --text: #3d3d3d;
  --text-muted: #6b6b6b;
  --bg: #f7f6f4;
  --white: #ffffff;
  --grey-light: #ecebea;
  --pastel-teal: #d8ebe6;
  --pastel-blue: #dce8f0;
  --pastel-yellow: #f5ecd8;
  --pastel-peach: #f3e0d4;
  --sale: #7c5cb8;
  --new: #759b8e;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1320px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--dark);
  color: #b8b8b8;
  font-size: 13px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #d4d4d4;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.logo img,
.logo svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo span em {
  font-style: normal;
  color: var(--primary);
}

.search-bar {
  display: flex;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.search-bar select {
  border: none;
  background: var(--grey-light);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  max-width: 140px;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  min-width: 0;
}

.search-bar button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.header-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text);
}

.header-actions svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: relative;
}

.cart-count .badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--secondary);
  color: var(--white);
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Nav */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.btn-category {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-category:hover {
  background: var(--primary-dark);
}

.nav-links {
  display: flex;
  margin-left: auto;
  margin-right: auto;
  gap: 4px;
}

.nav-links a {
  padding: 16px 20px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  display: block;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--grey-light);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 8% 48px 8%;
}

.hero-tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--dark);
  font-weight: 700;
}

.hero p {
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #e8e7e5;
}

.hero-visual img {
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Section */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--dark);
}

.section-title p {
  color: var(--text-muted);
  margin: 0;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card.teal {
  background: var(--pastel-teal);
}
.category-card.blue {
  background: var(--pastel-blue);
}
.category-card.yellow {
  background: var(--pastel-yellow);
}
.category-card.peach {
  background: var(--pastel-peach);
}

.category-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: 0.85;
}

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.category-card .shop-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-image-wrap {
  background: var(--grey-light);
  padding: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--white);
  text-transform: uppercase;
}

.badge-pill.sale {
  background: var(--sale);
}

.badge-pill.new {
  background: var(--new);
}

.product-info {
  padding: 16px;
}

.product-info h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.product-price {
  font-weight: 700;
  color: var(--dark);
  font-size: 15px;
}

.product-price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

.product-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px;
  font-size: 13px;
}

/* Newsletter home */
.newsletter-section {
  background: var(--pastel-yellow);
  padding: 64px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 480px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.newsletter-form button {
  padding: 14px 28px;
  border: none;
  background: var(--secondary);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

.newsletter-decor {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
  opacity: 0.35;
}

/* Featured dark strip */
.featured-dark {
  background: var(--secondary-dark);
  padding: 48px 0;
  overflow: hidden;
}

.featured-dark .section-title h2,
.featured-dark .section-title p {
  color: var(--white);
}

.featured-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.featured-scroll .product-card {
  min-width: 220px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Trust */
.trust-section {
  text-align: center;
  padding: 48px 0;
  background: var(--white);
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  opacity: 0.45;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Page hero */
.page-hero {
  background: var(--grey-light);
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 2.25rem;
  color: var(--dark);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Content pages */
.content-block {
  padding: 48px 0 80px;
}

.content-block .prose {
  max-width: 820px;
  margin: 0 auto;
}

.content-block .prose-wide {
  max-width: 1100px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card .meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(117, 155, 142, 0.2);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #c44;
}

.error-msg {
  color: #c44;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
}

.form-success {
  background: var(--pastel-teal);
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  display: none;
}

.form-success.visible {
  display: block;
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.cart-table img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--grey-light);
  border-radius: 4px;
}

.cart-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.checkout-thanks {
  text-align: center;
  padding: 48px;
  background: var(--pastel-teal);
  border-radius: var(--radius);
  display: none;
}

.checkout-thanks.visible {
  display: block;
}

.checkout-thanks h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* Footer */
.site-footer {
  background: var(--dark-footer);
  color: #a8a8a8;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-grid .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2a2a2c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #a8a8a8;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-newsletter {
  display: flex;
  margin-top: 12px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 13px;
}

.footer-newsletter button {
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #2a2a2c;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* Shop filters */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.filter-panel {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  height: fit-content;
}

.filter-panel h4 {
  margin: 0 0 16px;
  font-size: 15px;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
}

.filter-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Mobile nav toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

@media (max-width: 992px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .search-bar {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 280px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter-inner {
    grid-template-columns: 1fr;
  }
  .newsletter-decor {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .main-nav .container {
    position: relative;
  }
  .nav-inner {
    flex-wrap: wrap;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-actions span.label {
    display: none;
  }
}