/* =========================
   Design tokens
   ========================= */

:root {
  --bg: #f7f3ec;           /* warm parchment */
  --bg-alt: #fdfbf8;       /* off white */
  --ink: #221c15;          /* deep brown/charcoal */
  --muted: #7f7468;        /* soft taupe */
  --border: #ddd1c2;
  --accent: #16352f;       /* bottle green */
  --accent-soft: #c6a878;  /* champagne gold */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* =========================
   Global
   ========================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, #fdfbf8 0, #f7f3ec 38%, #f3eee6 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}
/* Compact section spacing for pages where header/content should sit closer */
.section--compact {
  padding-top: 1.2rem;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.section-link:hover {
  border-color: var(--muted);
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid rgba(221, 209, 194, 0.65);
}

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

/* Left and right navs flanking centered brand */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

/* LOGO + BRAND BLOCK ---------------------------------------- */

.brand-banner {
  position: relative;
  display: grid;
  place-items: center;
}

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.brand-center img {
  height: 48px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-center .brand-main {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.brand-center .brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Removed decorative arc: using a single centered logo for clarity */

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 0.6rem;
}

.nav-link--icon:hover {
  border-color: var(--ink);
}

.nav-link--icon svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}

/* Cart icon */
.nav-link--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem 0.3rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-link--cart:hover {
  border-color: var(--border);
  background: rgba(198, 168, 120, 0.08);
}

.nav-link--cart::after {
  display: none;
}

.icon-cart {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  min-width: 1.4rem;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

/* =========================
   Hero
   ========================= */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 1.2rem;
  color: var(--accent-soft);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

.hero-text {
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 32rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: var(--ink);
  color: #fdfbf8;
}

.btn-primary:hover {
  background: #16100a;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* Hero imagery */

.hero-image-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fdfbf8;
  box-shadow: var(--shadow-soft);
}

.hero-card--secondary {
  max-width: 80%;
  align-self: flex-end;
}

.hero-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-card-caption {
  padding: 1.1rem 1.2rem 1.3rem;
}

.hero-card-caption--small {
  padding: 0.9rem 1rem 1rem;
}

.hero-card-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   Product grid
   ========================= */

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

.product-card {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(221, 209, 194, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

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

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

.product-card-body {
  padding: 1rem 1.2rem 1.3rem;
}

.product-card-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.product-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.product-card-price {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.product-card-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.product-card-link:hover {
  border-color: var(--ink);
}

/* =========================
   Two-column / ethos
   ========================= */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.3rem;
}

.two-column-block h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.two-column-block p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

.two-column-block--border {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.pillar h3 {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid rgba(221, 209, 194, 0.8);
  background: rgba(247, 243, 236, 0.95);
  padding: 2.2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-main {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-link {
  color: var(--muted);
}

.footer-link:hover {
  color: var(--ink);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   Responsiveness
   ========================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image-panel {
    order: -1;
  }

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

  .two-column,
  .pillars {
    grid-template-columns: 1fr;
  }

  .two-column-block--border {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }
  .nav-left { display: none; }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Page titles & layout
   ========================= */

.page-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0.3rem 0 0.8rem;
}

.page-intro {
  max-width: 35rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Narrow content helper for page headers */
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

/* =========================
   Shop layout
   ========================= */

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.shop-filters {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.filters-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.filter-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  background: #fdfbf8;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--ink);
}

.filter-select:focus {
  outline: none;
  border-color: var(--ink);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.shop-results {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.shop-results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.shop-count {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================
   Product detail
   ========================= */

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 2.6rem;
  align-items: flex-start;
}

.product-detail-image img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.8);
  box-shadow: var(--shadow-soft);
}

/* =========================
  Carousel (product detail)
  ========================= */

.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 220ms ease-in-out, transform 260ms ease;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.8);
  box-shadow: var(--shadow-soft);
}

/* Optional slide animation helpers */
.carousel-slide.enter-left { transform: translateX(-8%); }
.carousel-slide.enter-right { transform: translateX(8%); }
.carousel-slide.exit-left { transform: translateX(-8%); opacity: 0; }
.carousel-slide.exit-right { transform: translateX(8%); opacity: 0; }

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(34, 28, 21, 0.6);
  color: #fdfbf8;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-control:hover {
  background: rgba(34, 28, 21, 0.8);
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

.carousel-control[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(34, 28, 21, 0.25);
  border: none;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent-soft);
}

@media (max-width: 640px) {
  .carousel-control {
    width: 32px;
    height: 32px;
  }
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-detail-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  margin: 0;
}

.product-detail-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.product-detail-price {
  font-size: 1rem;
  margin-top: 0.4rem;
}

.product-detail-copy {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Breadcrumb-style link */

.breadcrumb-link {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.breadcrumb-link:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* =========================
   Cart
   ========================= */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 2.3rem;
}

.cart-items-wrapper {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-empty-message {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.cart-summary {
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 1.4rem 1.3rem 1.6rem;
}

.cart-summary-title {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.cart-summary-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.cart-summary-small {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Cart items styling */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fdfbf8;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  align-items: center;
  transition: all 0.2s ease;
}

.cart-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-soft);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-item-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.cart-item-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-soft);
  margin: 0;
  margin-top: 0.3rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--ink);
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    padding: 1rem;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  .cart-item-title {
    font-size: 1.05rem;
  }
  
  .cart-item-meta {
    font-size: 0.85rem;
  }
  
  .cart-item-price {
    font-size: 1rem;
  }
}

/* =========================
   Success page
   ========================= */

.success-layout {
  display: flex;
  justify-content: center;
}

.success-card {
  max-width: 540px;
  width: 100%;
  background: #fdfbf8;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 209, 194, 0.9);
  padding: 2.2rem 2rem 2.4rem;
  box-shadow: var(--shadow-soft);
}

.success-note {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* =========================
   Responsive tweaks (pages)
   ========================= */

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

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

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

@media (max-width: 640px) {
  /* No arc in new design */
  .nav { position: static; justify-content: center; }
}
