:root {
  --saffron: #e85d04;
  --saffron-light: #f48c06;
  --saffron-dark: #c2410c;
  --green: #1b4332;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --cream: #fbf6ee;
  --cream-dark: #f3e9d7;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --brown: #3d2314;
  --text: #2c1810;
  --muted: #6b5a4e;
  --white: #fffdf8;
  --border: #ead9c0;
  --danger: #9b2226;
  --shadow: 0 10px 40px rgba(61, 35, 20, 0.1);
  --radius: 16px;
  --nav-h: 78px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.promo-bar {
  background: linear-gradient(90deg, var(--green), var(--green-mid));
  color: var(--gold-light);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--saffron));
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--green);
}

.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin-left: 12px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brown);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 240px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  outline: none;
  font-size: 0.88rem;
}

.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  max-height: 360px;
  overflow: auto;
  z-index: 90;
}

.search-results.open {
  display: block;
}

.search-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
  cursor: pointer;
}

.search-item:hover {
  background: var(--cream-dark);
}

.search-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: var(--green);
  transition: 0.2s ease;
}

.icon-btn:hover {
  background: var(--green);
  color: var(--gold-light);
  border-color: var(--green);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--saffron);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(27, 67, 50, 0.88) 0%, rgba(232, 93, 4, 0.45) 55%, rgba(27, 67, 50, 0.7) 100%),
    url("../assets/products/hero.jpg?v=3") center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  padding: 80px 0;
}

.eyebrow {
  color: var(--gold-light);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  max-width: 14ch;
}

.hero p {
  max-width: 46ch;
  margin: 18px 0 32px;
  font-size: 1.05rem;
  color: #f5ead6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green);
}

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

.btn-dark {
  background: var(--green);
  color: var(--gold-light);
}

.btn-ghost {
  background: var(--cream-dark);
  color: var(--green);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2,
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green);
}

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

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover img {
  transform: scale(1.08);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.85), transparent 55%);
}

.cat-card div {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.cat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-media {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  background: #e8d5b5;
  overflow: hidden;
}

.product-media a {
  position: absolute;
  inset: 0;
  display: block;
}

.product-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--saffron);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill.gold {
  background: var(--gold);
  color: var(--green);
}

.pill.green {
  background: var(--green-mid);
}

.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  color: var(--muted);
}

.wish-btn.active {
  color: var(--saffron);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

.stars {
  color: var(--gold);
  font-size: 0.82rem;
}

.stars span {
  color: var(--muted);
  margin-left: 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.price {
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.discount {
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.offer-banner {
  background:
    linear-gradient(100deg, rgba(27, 67, 50, 0.92), rgba(232, 93, 4, 0.75)),
    url("../assets/products/offer.jpg?v=3") center/cover;
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.offer-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
}

.offer-codes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-code {
  background: rgba(255, 253, 248, 0.12);
  border: 1px dashed var(--gold-light);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.code {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: grid;
  place-items: center;
  color: var(--saffron);
  font-size: 1.3rem;
}

.feature h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 6px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
}

.review-card p {
  font-size: 0.92rem;
  margin: 10px 0 16px;
}

.reviewer {
  font-weight: 600;
  font-size: 0.9rem;
}

.newsletter {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.newsletter h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-light);
}

.news-form {
  display: flex;
  gap: 10px;
}

.news-form input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
}

.site-footer {
  background: #12261c;
  color: #d9cbb8;
  padding: 56px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.copyright {
  border-top: 1px solid rgba(232, 212, 139, 0.15);
  padding-top: 16px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(120deg, var(--green), var(--green-mid));
  color: #fff;
  padding: 48px 0 36px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

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

.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.filters h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 12px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin: 6px 0;
  cursor: pointer;
}

.range-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar select {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #e8d5b5;
  border: 1px solid var(--border);
  width: 100%;
  height: 0;
  padding-top: 100%;
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbs img.active,
.thumbs img:hover {
  border-color: var(--gold);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream-dark);
  cursor: pointer;
}

.qty span {
  min-width: 36px;
  text-align: center;
}

.weight-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.weight-pills button {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.weight-pills button.active {
  background: var(--green);
  color: var(--gold-light);
  border-color: var(--green);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: var(--cream-dark);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.cart-item,
.wish-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  align-items: center;
}

.cart-item img,
.wish-item img,
.search-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8d5b5;
}

.summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}

.coupon {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
}

.coupon input,
.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--white);
  outline: none;
}

.form-control:focus,
.coupon input:focus {
  border-color: var(--gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pay-options {
  display: grid;
  gap: 10px;
}

.pay-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--white);
}

.pay-option.active {
  border-color: var(--gold);
  background: var(--cream-dark);
}

.auth-card {
  width: min(460px, 100%);
  margin: 40px auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: var(--font-serif);
  color: var(--green);
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.info-card {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
}

.info-card h2 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  margin-bottom: 16px;
}

.track-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
}

.timeline {
  margin-top: 28px;
  display: grid;
  gap: 0;
}

.tl-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 4px;
  position: relative;
}

.tl-dot::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  width: 2px;
  height: 42px;
  background: var(--border);
}

.tl-step:last-child .tl-dot::after {
  display: none;
}

.tl-step.done .tl-dot {
  background: var(--green-light);
}

.tl-step.current .tl-dot {
  background: var(--saffron);
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.18);
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(27, 67, 50, 0.4);
  z-index: 100;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--cream);
  padding: 20px;
  overflow: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 120;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.3s ease;
}

.toast.show {
  transform: none;
  opacity: 1;
}

.empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.success-box {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 48px 24px;
  border: 1px solid var(--border);
}

.success-box h1 {
  font-family: var(--font-serif);
  color: var(--green);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(300px, 86vw);
  background: var(--cream);
  z-index: 110;
  padding: 24px;
  transform: translateX(100%);
  transition: 0.3s ease;
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  transform: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 105;
}

.overlay.open {
  display: block;
}

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

  .layout-shop,
  .detail,
  .cart-layout,
  .newsletter,
  .offer-banner,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .search-wrap {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 640px) {
  .cats,
  .product-grid,
  .features,
  .reviews,
  .form-grid,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  .offer-banner,
  .newsletter {
    padding: 28px 20px;
  }

  .cart-item,
  .wish-item {
    grid-template-columns: 72px 1fr;
  }

  .header-inner {
    gap: 10px;
  }
}
