:root {
  --accent: #c38d78;
  --accent-dark: #a86f5c;
  --cream: #faf3f0;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --border: #e8e0dc;
  --footer: #0a111f;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(10, 17, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.top-bar {
  background: var(--footer);
  color: #d9dde8;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar i {
  color: var(--accent);
  margin-right: 0.4rem;
}

.top-bar-links a {
  margin-left: 1rem;
  color: #fff;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
}

.cart-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #d64545;
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.hero {
  background: linear-gradient(90deg, var(--cream) 55%, #fff 55%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 520px;
  gap: 2rem;
}

.hero-copy {
  padding: 3rem 0;
}

.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 0.5rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0 0 0 120px;
}

.hero-badge {
  position: absolute;
  top: 12%;
  left: -20px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.section {
  padding: 4.5rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head p {
  color: var(--muted);
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  text-align: center;
}

.cat-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 0 auto 0.75rem;
}

.cat-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-banner img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.split-banner .split-copy {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-copy .tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.product-tabs button {
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.product-tabs button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.product-card {
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  position: relative;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  font-size: 1rem;
  min-height: 2.6em;
}

.product-price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.collection-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
}

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

.collection-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 17, 31, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.brands {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0.55;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-card {
  border: 1px solid var(--border);
  background: #fff;
  padding-bottom: 1rem;
}

.blog-thumb {
  position: relative;
  display: block;
}

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

.blog-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.blog-card h3,
.blog-card .blog-cat,
.blog-card .read-more {
  padding-inline: 1rem;
}

.blog-cat {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.read-more {
  color: var(--accent);
  font-weight: 600;
}

.footer-info {
  background: var(--footer);
  color: #e8ebf3;
  padding: 1.5rem 0;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.footer-info-grid i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.footer-info-grid strong {
  display: block;
  color: #fff;
}

.site-footer {
  background: #0d1528;
  color: #c5c9d6;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #2a3348;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.newsletter-form .inline-newsletter {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
}

.inline-newsletter input {
  flex: 1;
  border: 1px solid #2a3348;
  background: #0a111f;
  color: #fff;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

.inline-newsletter button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

.footer-legal {
  border-top: 1px solid #1c2438;
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pay-icons {
  font-size: 1.6rem;
  display: flex;
  gap: 0.5rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 31, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

body.cart-open .cart-overlay {
  opacity: 1;
  pointer-events: auto;
}

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

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: start;
}

.cart-line img {
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qty-btn,
.cart-remove {
  border: 1px solid var(--border);
  background: #fff;
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 4px;
}

.cart-drawer-foot {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 1rem;
}

.checkout-success {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #e8f6ee;
  color: #1d6b42;
  border-radius: var(--radius);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid rgba(195, 141, 120, 0.35);
  border-color: var(--accent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.checkbox-row label {
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-error {
  color: #b42318;
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.is-invalid {
  border-color: #b42318 !important;
}

.form-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-banner.is-success {
  background: #e8f6ee;
  color: #1d6b42;
}

.form-banner.is-error {
  background: #fdecec;
  color: #8a1f11;
}

.page-hero {
  background: var(--cream);
  padding: 3rem 0;
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
  margin-inline: auto;
}

.content-page {
  padding: 3rem 0 4rem;
}

.content-page .prose {
  max-width: 820px;
  margin-inline: auto;
}

.content-page .prose h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
}

.blog-list article {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.blog-list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 1024px) {
  .product-grid,
  .footer-grid,
  .footer-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-inner,
  .split-banner,
  .collection-row,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background: var(--cream);
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    padding: 1rem 4vw;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .blog-list article {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-info-grid {
    grid-template-columns: 1fr;
  }
}
