:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-alt: #f4ede2;
  --text: #221c18;
  --muted: #6c6158;
  --primary: #7c2424;
  --primary-hover: #621a1a;
  --accent: #b88933;
  --border: #e6ddd0;
  --success: #1f7a4c;
  --shadow: 0 8px 24px rgba(34, 28, 24, 0.06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.hidden {
  display: none !important;
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #fff8ee;
  font-size: 0.875rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}

.top-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

.contact-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.top-tagline {
  opacity: 0.9;
  font-size: 0.82rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.brand-logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
}

.brand-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.search-wrap {
  flex: 1;
  max-width: 460px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  background: #fff;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

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

.cart-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.cart-header-total {
  font-size: 0.85rem;
  opacity: 0.95;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f5ecde 0%, #fbf8f3 60%, #f1e3ce 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--text);
  max-width: 680px;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.hero-sub a {
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.99);
}

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

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

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

.btn-outline:hover {
  background: var(--surface-alt);
}

.btn-whatsapp {
  background: #1b8a4b;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #156e3b;
}

.btn-full {
  width: 100%;
}

/* Controls & Category Tabs */
.main-section {
  padding: 28px 18px 56px;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.cat-tab:hover {
  border-color: var(--primary);
}

.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.88rem;
  color: var(--text);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

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

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

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f9f6f0;
  overflow: hidden;
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.badge-sku {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(34, 28, 24, 0.74);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.card-title:hover {
  color: var(--primary);
}

.card-short {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-price {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-add {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

/* About Us */
.about-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.about-inner {
  max-width: 860px;
}

.about-inner h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  color: var(--primary);
}

.about-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-contact {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-contact a {
  color: var(--primary);
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--surface-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.modal-img-wrap img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: #f9f6f0;
}

.modal-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.cat-pill {
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.sku-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.modal-info h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.2;
}

.modal-price {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-short {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.modal-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stock-tag {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* Cart Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.drawer-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.drawer-header .icon-close {
  position: static;
}

.cart-items {
  flex: 0 0 auto;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 18px;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.cart-item-price {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

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

.qty-box button {
  background: none;
  border: none;
  width: 28px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}

.qty-box span {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
  background: var(--bg);
}

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

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.order-success {
  padding: 22px 20px;
  text-align: center;
  overflow-y: auto;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.upi-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.upi-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.upi-qr {
  width: 165px;
  height: 165px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.upi-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.success-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .search-wrap {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
}
