:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1f1d1a;
  --muted: #6f675d;
  --brand: #b8922a;
  --brand-dark: #8f6f1e;
  --accent: #1d7a6a;
  --danger: #b93a4f;
  --line: #e7e0d5;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fefdfb 0%, var(--bg) 100%);
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #1f1d1a;
  color: #f6f2ea;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

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

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

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.logo span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.icon-pill {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.46rem 0.9rem;
  font-size: 0.88rem;
  background: #fff;
  cursor: pointer;
}

.icon-pill.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  margin-left: 0.35rem;
}

.hero {
  padding: 3.6rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
.page-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.06;
  margin: 0.6rem 0 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead {
  color: var(--muted);
  line-height: 1.75;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.hero-media {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(31, 29, 26, 0.1);
}

.section {
  padding: 2rem 0 3.3rem;
}

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

.section h2 {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.search-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.2rem;
}

.search-row input,
.input,
select,
textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: inherit;
}

.search-row input {
  min-width: 290px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(31, 29, 26, 0.09);
}

.card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: #f5efe7;
}

.card-body {
  padding: 0.9rem;
}

.card-cat {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  margin: 0.35rem 0;
  font-weight: 700;
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 2.5em;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.7rem 0;
}

.price {
  font-size: 1.05rem;
  font-weight: 700;
}

.mrp {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  font: inherit;
  cursor: pointer;
}

.btn.block {
  width: 100%;
}

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

.btn.brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}

.notice.ok {
  border-color: rgba(29, 122, 106, 0.35);
  background: rgba(29, 122, 106, 0.1);
  color: #0f5d51;
}

.notice.err {
  border-color: rgba(185, 58, 79, 0.35);
  background: rgba(185, 58, 79, 0.09);
  color: #8f1f33;
}

.hidden {
  display: none !important;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 1.1rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
  color: var(--muted);
}

.meta-list strong {
  color: var(--ink);
}

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding: 0.9rem 0;
}

.cart-row:last-child {
  border-bottom: 0;
}

.thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.qty-wrap {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.qty-wrap .btn {
  padding: 0.35rem 0.62rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-overlay.show {
  display: flex;
}

.auth-box {
  width: min(480px, 92vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 1rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.tab-btn {
  border: 0;
  background: #fff;
  padding: 0.65rem;
  font: inherit;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: #fff;
}

.footer {
  margin-top: 2rem;
  background: #1f1d1a;
  color: #e9e2d6;
  padding: 2.3rem 0;
}

.footer small {
  color: #b9afa2;
}

.kaira-static {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.kaira-static h3 {
  margin-top: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid,
  .grid-2,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.7rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

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

  .search-row input {
    min-width: 0;
    width: 100%;
  }

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