:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-soft: #f4ece1;
  --surface-subtle: #eae0d2;
  --surface-contrast: #201510;
  --surface-contrast-light: #35231a;
  --text-main: #241813;
  --text-muted: #5c473b;
  --text-light: #877163;
  --text-inverse: #ffffff;
  --brand-brown: #7a4d2c;
  --brand-brown-hover: #5c351b;
  --brand-brown-soft: #f8f1e9;
  --brand-brown-border: #decbbe;
  --brand-blue: #7a4d2c;
  --brand-blue-hover: #5c351b;
  --brand-blue-soft: #f8f1e9;
  --brand-blue-border: #decbbe;
  --accent-coffee: #7a4d2c;
  --accent-coffee-hover: #5c351b;
  --accent-coffee-soft: #f8f1e9;
  --accent-coffee-border: #decbbe;
  --accent-amber: #8a5a36;
  --accent-amber-hover: #694022;
  --accent-amber-soft: #faf2eb;
  --accent-amber-border: #e3d1c3;
  --accent-cypress: #634832;
  --accent-cypress-soft: #f5ece3;
  --accent-cypress-border: #dbcbbe;
  --accent-cashmere: #3a2820;
  --accent-cashmere-soft: #f8f1e9;
  --accent-cashmere-border: #decbbe;
  --border: #e7ddd1;
  --border-light: #f2ebe1;
  --border-hover: #cbb8a6;
  --glass-surface: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(231, 221, 209, 0.85);
  --glass-blur: blur(14px);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: var(--font-family);
  --font-serif: var(--font-family);
  --shadow-xs: 0 1px 3px rgba(36, 24, 19, 0.04);
  --shadow-sm: 0 3px 10px rgba(36, 24, 19, 0.06);
  --shadow-md: 0 8px 24px rgba(36, 24, 19, 0.08);
  --shadow-lg: 0 18px 48px rgba(36, 24, 19, 0.11);
  --shadow-popup: 0 30px 80px rgba(36, 24, 19, 0.18);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-modal: 28px;
  --radius-pill: 9999px;
  --transition-fast: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1380px;
}

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

html, body, button, input, select, textarea, optgroup, p, h1, h2, h3, h4, h5, h6, a, span, label, td, th, li, blockquote, dt, dd {
  font-family: var(--font-family);
}

.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, [class^="fa-"], [class*=" fa-"] {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-style: normal !important;
  font-weight: 900;
}

.fa-brands, [class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

.fa-regular, [class*="fa-regular"] {
  font-weight: 400;
}

.fa::before, .fas::before, .far::before, .fab::before, .fa-solid::before, .fa-regular::before, .fa-brands::before, [class^="fa-"]::before, [class*=" fa-"]::before {
  font-family: inherit !important;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-coffee) var(--surface-soft);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-coffee) var(--surface-soft);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--surface-soft);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-coffee);
  border-radius: 9999px;
  border: 2px solid var(--surface-soft);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-brown-hover);
}

body {
  line-height: 1.64;
  background-color: var(--bg);
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  min-height: 100vh;
}

main, .site-main {
  display: block;
  width: 100%;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--surface-contrast);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-family) !important;
  color: inherit;
  transition: var(--transition-fast);
}

input, textarea, select {
  font-family: var(--font-family) !important;
  color: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.2;
  font-family: var(--font-family) !important;
}

.btn-primary {
  background: var(--accent-coffee);
  color: #ffffff;
  border-color: var(--accent-coffee);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--accent-coffee-hover);
  border-color: var(--accent-coffee-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sapphire, .btn-gold {
  background: var(--accent-coffee);
  color: #ffffff;
  border-color: var(--accent-coffee);
  box-shadow: var(--shadow-xs);
}

.btn-sapphire:hover, .btn-gold:hover {
  background: var(--accent-coffee-hover);
  border-color: var(--accent-coffee-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
  background: var(--accent-coffee-soft);
  border-color: var(--accent-coffee);
  color: var(--accent-coffee-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 15px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-soft);
  color: var(--surface-contrast);
  transform: translateY(-1px);
}

.icon-btn .badge-count,
.cart-summary-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-coffee);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  min-width: 19px;
  height: 19px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

.btn:active, .icon-btn:active, .product-fav-btn:active {
  transform: scale(0.97) !important;
}

.animate-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-target.in-view {
  opacity: 1;
  transform: translateY(0);
}

.me-1, .mr-1 { margin-right: 6px !important; }
.me-2, .mr-2 { margin-right: 10px !important; }
.me-3, .mr-3 { margin-right: 16px !important; }
.me-4, .mr-4 { margin-right: 24px !important; }

.ms-1, .ml-1 { margin-left: 6px !important; }
.ms-2, .ml-2 { margin-left: 10px !important; }
.ms-3, .ml-3 { margin-left: 16px !important; }
.ms-4, .ml-4 { margin-left: 24px !important; }

.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }

.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }

.bg-surface-soft { background: var(--surface-soft) !important; }
.bg-surface { background: var(--surface) !important; }
.text-contrast { color: var(--surface-contrast) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-brand { color: var(--accent-coffee) !important; }
.border-warm { border: 1px solid var(--border) !important; }
.border-warm-light { border: 1px solid var(--border-light) !important; }
.badge-brown { background: var(--accent-coffee-soft); color: var(--accent-coffee); border: 1px solid var(--accent-coffee-border); border-radius: var(--radius-pill); }

select, .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a4d2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px !important;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-dropdown-wrap {
  position: relative;
  width: 100%;
}

.custom-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: var(--transition-fast);
}

.custom-dropdown-btn:focus,
.custom-dropdown-btn.active,
.custom-dropdown-wrap.open .custom-dropdown-btn {
  border-color: var(--accent-coffee);
  box-shadow: 0 0 0 3px rgba(122, 77, 44, 0.15);
}

.custom-dropdown-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.custom-dropdown-wrap.open .custom-dropdown-arrow,
.custom-dropdown-btn.open .custom-dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 8px;
  min-width: 220px;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-dropdown-wrap.open .custom-dropdown-menu {
  display: block;
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-main);
  transition: background 0.15s ease;
  user-select: none;
}

.custom-dropdown-item:hover {
  background: var(--surface-soft);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 32px 0;
}

.page-hero-banner + .section {
  padding-top: 0;
  padding-bottom: 32px;
}

.auth-section {
  padding: 0 0 32px !important;
}

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