:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-soft: #F3EFE9;
  --text: #1C1917;
  --text-muted: #6B6560;
  --border: #E9E3DC;
  --accent: #9A6B4C;
  --accent-dark: #7F553A;
  --wa: #1F8A4C;
  --wa-hover: #18713D;
  --danger: #B4433C;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.05);
  --shadow-lg: 0 18px 45px rgba(28, 25, 23, 0.16);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Announcement bar */
.announcement-bar {
  background-color: var(--text);
  color: #FAF8F5;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--text);
  color: #FAF8F5;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  background-color: var(--surface-soft);
}

.cart-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #FAF8F5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.18s ease;
}

.cart-btn:hover {
  background-color: #2E2926;
}

.cart-btn:active {
  transform: scale(0.98);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Search panel */
.search-panel {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 10px 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.search-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}

/* Hero */
.hero {
  padding: 26px 0 18px;
}

.hero-inner {
  background: linear-gradient(135deg, #F4ECE2 0%, #EFE5D8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background-color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(154, 107, 76, 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  max-width: 18ch;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 54ch;
}

/* Category filters */
.catalog-controls {
  padding: 6px 0 14px;
}

.controls-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-chip.is-active {
  background-color: var(--text);
  border-color: var(--text);
  color: #FAF8F5;
}

.results-count {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Product grid */
.catalog-section {
  padding-bottom: 40px;
}

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

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

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
}

.product-card-trigger {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--surface-soft);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(28, 25, 23, 0.86);
  color: #FAF8F5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}

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

.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.product-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-price {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.product-old-price {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.color-dot-mini {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.22);
}

.product-sizes-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.product-card-cta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.empty-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 16px;
}

.empty-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.14s ease, border-color 0.18s ease;
}

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

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  background-color: #2E2926;
}

.btn-wa {
  background-color: var(--wa);
  color: #FFFFFF;
}

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

.btn-outline {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding: 28px 0 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.footer-meta {
  margin: 2px 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg);
}

.footer-pill-wa {
  background-color: var(--wa);
  border-color: var(--wa);
  color: #FFFFFF;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-credit {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
}

.footer-credit:hover {
  text-decoration: underline;
}

/* Floating mobile cart bar */
.mobile-cart-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 35;
}

.mobile-cart-trigger {
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  background-color: var(--text);
  color: #FAF8F5;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.mobile-cart-cta {
  font-size: 14px;
  font-weight: 700;
  color: #E7C9AE;
}

/* Modal / Bottom Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(28, 25, 23, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden],
.search-panel[hidden],
.mobile-cart-bar[hidden],
.toast[hidden],
[hidden] {
  display: none !important;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92dvh;
  overflow-y: auto;
  background-color: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr;
}

.modal-media {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  width: 100%;
  background-color: var(--surface-soft);
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-category {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.modal-title {
  margin: -6px 0 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.modal-price {
  font-size: 22px;
  font-weight: 700;
}

.modal-old-price {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.option-label {
  font-weight: 600;
}

.option-value {
  color: var(--text-muted);
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  min-width: 46px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
}

.size-pill.is-selected {
  background-color: var(--text);
  border-color: var(--text);
  color: #FAF8F5;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-size: 12.5px;
}

.color-swatch-btn.is-selected {
  border-color: var(--text);
  background-color: var(--surface-soft);
  font-weight: 600;
}

.swatch-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.2);
}

.quantity-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

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

.qty-btn {
  width: 40px;
  height: 38px;
  border: none;
  background-color: var(--surface-soft);
  font-size: 18px;
  font-weight: 600;
}

.qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

/* Cart drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background-color: rgba(28, 25, 23, 0.52);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 430px;
  height: 100%;
  background-color: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.1;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cart-item-img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background-color: var(--surface-soft);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 4px;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-item-variant {
  font-size: 12.5px;
  color: var(--text-muted);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cart-item-stepper button {
  width: 30px;
  height: 28px;
  border: none;
  background: var(--surface-soft);
  font-weight: 600;
}

.cart-item-stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-subtotal {
  font-weight: 700;
  font-size: 14.5px;
}

.cart-empty {
  text-align: center;
  padding: 48px 14px;
}

.cart-empty-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 16px;
}

.cart-empty-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg);
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.field-group input,
.field-group select {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  font-size: 13.5px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.cart-total {
  font-size: 20px;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  background-color: var(--text);
  color: #FAF8F5;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .hero-inner {
    padding: 36px 34px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .modal-sheet {
    border-radius: var(--radius-lg);
  }

  .modal-content {
    grid-template-columns: 1fr 1.05fr;
  }

  .modal-media {
    max-height: none;
    height: 100%;
  }

  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    float: none;
    margin: 0;
  }

  .modal-details {
    padding: 28px 26px;
  }

  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-cart-bar {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .controls-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
