:root {
  --paper: #F1F0E9;
  --surface: #ffffff;
  --ink: #653218;
  --muted: #786f66;
  --soft: #e5dfd8;
  --line: #ded6cf;
  --accent: #653218;
  --accent-dark: #4d220e;
  --danger: #b04a25;
  --success: #2f694f;
  --black: #050505;
  --shadow: 0 18px 48px rgba(28, 24, 20, 0.13);
}

/* ── iOS / Safari color fix: eliminate blue tint ─────────── */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
  accent-color: var(--ink);
  box-sizing: border-box;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  -webkit-text-decoration-color: currentColor;
  text-decoration-color: currentColor;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--ink);
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
  border-color: var(--ink);
}

::selection {
  background-color: var(--soft);
  color: var(--ink);
}

/* Keep selects usable on iOS */
select {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23653218' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}



html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: 0;
}

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

button {
  color: inherit;
  cursor: pointer;
}

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  align-items: center;
  background: rgba(241, 240, 233, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-search {
  flex: 1;
  min-width: 0;
  max-width: 340px;
  position: relative;
}

/* Mobile: hide desktop search, show toggle icon instead */
.search-toggle-mobile {
  display: none;
}

@media (max-width: 640px) {
  .header-search {
    display: none;
  }
  .search-toggle-mobile {
    display: inline-flex;
  }
}

.header-search-input {
  background: rgba(0,0,0,0.04);
  border: 1px solid transparent;
  border-radius: 20px !important;
  font-size: 14px;
  height: 38px;
  min-height: unset;
  padding: 0 34px 0 36px;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.header-search-input:focus {
  background: #fff;
  border-color: var(--line);
  outline: none;
  box-shadow: none;
}

.header-search .search-clear {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

.header-search .autocomplete-panel {
  top: calc(100% + 6px);
  min-width: 280px;
}

.brand {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 33px;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
}

.main-nav,
.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.header-actions {
  justify-content: flex-end;
}

.main-nav button,
.header-actions button,
.text-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 0;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav button.active,
.main-nav button:hover,
.header-actions button:hover,
.text-link:hover {
  color: var(--ink);
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}

.icon-button svg {
  color: currentColor;
  stroke: currentColor;
}

.icon-button:hover {
  border-color: var(--line);
}

.cart-count {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: 0;
  top: 0;
}

.page {
  min-height: calc(100vh - 111px);
}

.hero {
  background-image:
    linear-gradient(90deg, rgba(17, 15, 13, 0.5), rgba(17, 15, 13, 0.08)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  min-height: min(74vh, 720px);
  padding: 70px 42px 46px;
}

.hero-copy {
  align-self: flex-end;
  max-width: 560px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  margin-bottom: 16px;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
  max-width: 470px;
}

.button,
a.button,
a.button:hover,
a.button:visited,
a.button:active {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--paper);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  text-decoration: none;
}

.button:hover,
a.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}

.button.black,
a.button.black,
a.button.black:hover,
a.button.black:visited,
a.button.black:active {
  background: var(--black);
  border-color: var(--black);
  color: var(--paper);
}

.button.ghost,
a.button.ghost,
a.button.ghost:hover,
a.button.ghost:visited,
a.button.ghost:active {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost.active,
a.button.ghost.active {
  border-color: var(--ink);
  font-weight: 700;
}

.button.full {
  width: 100%;
}

.section {
  padding: 42px;
}

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

.autocomplete {
  position: relative;
}

.autocomplete > svg {
  color: var(--muted);
  height: 19px;
  left: 14px;
  pointer-events: none;
  position: absolute;
  top: 14px;
  width: 19px;
  z-index: 2;
}

/* Override for the compact header search */
.header-search.autocomplete > svg {
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  height: 17px;
  width: 17px;
}

.input.search-input {
  padding-left: 44px;
  padding-right: 48px;
}

.search-section {
  padding-bottom: 18px;
  padding-top: 30px;
}

.search-wide {
  margin: -6px 0 24px;
  max-width: 620px;
}

.search-clear {
  position: absolute;
  right: 4px;
  top: 4px;
}

.autocomplete-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  left: 0;
  margin-top: 6px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.autocomplete-panel button {
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  text-align: left;
}

.autocomplete-panel button:last-child {
  border-bottom: 0;
}

.autocomplete-panel button:hover {
  background: var(--paper);
}

.autocomplete-panel small {
  color: var(--muted);
}

.section-head h2 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 33px;
  font-weight: 500;
  margin: 0;
}

.category-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card {
  aspect-ratio: 4 / 5;
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 6px;
  color: #fff;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.category-card span {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  bottom: 0;
  font-size: 13px;
  font-weight: 700;
  left: 0;
  letter-spacing: 0.08em;
  padding: 42px 16px 16px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.catalog-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: 220px 1fr;
}

.filters {
  align-self: start;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 22px;
  padding-right: 24px;
  position: sticky;
  top: 104px;
}

.filter-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-list button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 5px 0;
  text-align: left;
}
.filter-list button.active {
  color: var(--ink);
  font-weight: 700;
}

.filter-list button.filter-sub {
  padding-left: 14px !important;
  font-size: 15px;
}
.product-grid {
  display: grid;
  gap: 26px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.product-media {
  aspect-ratio: 3 / 4;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.product-media img,
.thumbs img,
.main-image img,
.cart-item img,
.summary-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.badge {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  left: 10px;
  padding: 5px 9px;
  position: absolute;
  top: 10px;
  -webkit-text-fill-color: var(--ink);
}

.product-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 5px;
  -webkit-text-fill-color: var(--ink);
}

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

.price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  -webkit-text-fill-color: var(--ink);
}

.transfer {
  color: var(--muted);
  font-size: 15px;
  -webkit-text-fill-color: var(--muted);
}

.card-swatches {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.card-swatch {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.product-detail {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  padding: 42px;
}

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

.thumbs {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.thumbs button {
  aspect-ratio: 3 / 4;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  padding: 0;
}

.thumbs button.active {
  border-color: var(--ink);
}

.main-image {
  aspect-ratio: 4 / 5;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 104px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.detail-panel h1 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}

.detail-price {
  font-size: 28px;
  margin-bottom: 6px;
}

.payment-note,
.stock-note {
  color: var(--muted);
  line-height: 1.55;
}

.stock-note {
  color: #c15b18;
  font-size: 18px;
  margin: 26px 0;
}

.option-block {
  margin: 24px 0;
}

.option-label {
  color: var(--muted);
  margin-bottom: 10px;
}

.swatches,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.swatch,
.size {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.swatch.active,
.size.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.swatch-chip {
  border: 1px solid rgba(0, 0, 0, 0.16);
  height: 20px;
  width: 20px;
}

.buy-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 110px 1fr;
}

.qty {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  height: 46px;
}

.qty button {
  background: transparent;
  border: 0;
  color: var(--muted);
  height: 100%;
}

.qty span {
  text-align: center;
}

.benefits {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
}

.benefit {
  display: grid;
  gap: 12px;
  grid-template-columns: 24px 1fr;
}

.benefit strong {
  display: block;
  margin-bottom: 3px;
}

.benefit p {
  color: var(--muted);
  margin: 0;
}

.similar {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.cart-drawer {
  background: var(--surface);
  bottom: 0;
  box-shadow: var(--shadow);
  max-width: 540px;
  overflow: auto;
  padding: 26px 28px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform 180ms ease;
  width: min(100vw, 540px);
  z-index: 60;
}

.cart-drawer.open {
  transform: translateX(0);
}

.scrim {
  background: rgba(26, 22, 18, 0.36);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.drawer-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: -6px -28px 20px;
  padding: 0 28px 18px;
}

.drawer-head h2 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.cart-item,
.summary-item {
  display: grid;
  gap: 14px;
  grid-template-columns: 82px 1fr auto;
  margin-bottom: 18px;
}

.cart-item img,
.summary-item img {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

.cart-item h3,
.summary-item h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
}

.ship-box {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 18px;
}

.zip-row {
  display: grid;
  grid-template-columns: 1fr 104px;
}

.input,
.select,
.textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

.textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.zip-row .input {
  border-radius: 4px 0 0 4px;
}

.zip-row .button {
  border-radius: 0 4px 4px 0;
  min-height: 46px;
  padding: 0;
}

.alert {
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
  padding: 12px 14px;
}

.alert.warning {
  background: #fff1e8;
  color: #8e3e16;
}

.alert.success {
  background: #eaf5ef;
  color: var(--success);
}

.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}

.total-line {
  display: flex;
  justify-content: space-between;
}

.total-line.big {
  font-size: 21px;
  font-weight: 700;
  margin-top: 8px;
}

.checkout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 390px;
  padding: 36px 42px 56px;
}

.checkout-main,
.checkout-summary,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
}

.stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.step {
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.step.active {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.form-section-title {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 24px 0 14px;
  padding-bottom: 9px;
  text-transform: uppercase;
}

.check-row,
.radio-card {
  align-items: center;
  display: flex;
  gap: 10px;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.payment-options {
  display: grid;
  gap: 14px;
}

.radio-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.radio-card:has(input:checked) {
  border-color: var(--ink);
}

.bank-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
}

.receipt-preview {
  min-height: 240px;
  white-space: pre-wrap;
}

.admin-page {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 36px 42px;
}

.admin-workspace {
  display: grid;
  gap: 24px;
}

.admin-dashboard-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.admin-dashboard-head h1 {
  font-size: 34px;
  margin: 0;
}

.admin-actions,
.admin-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-login-page {
  display: grid;
  min-height: calc(100vh - 111px);
  padding: 42px;
  place-items: center;
}

.admin-login {
  max-width: 420px;
  width: 100%;
}

.admin-title-row {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-toolbar {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) 260px;
  margin-bottom: 18px;
}

.admin-toolbar.single {
  grid-template-columns: minmax(260px, 460px);
}

.admin-list-head {
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 1fr auto;
  padding: 10px;
}

.admin-row img {
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
  width: 58px;
}

.color-editor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.color-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 170px 42px;
}

.color-row .input {
  min-width: 0;
}

wa-color-picker {
  display: block;
}

.wa-color-picker-inner {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 38px;
  min-height: 46px;
  padding: 6px 8px;
}

.wa-color-picker-inner span {
  color: var(--muted);
  font-size: 11px;
  grid-column: 1 / -1;
}

.wa-color-picker-inner input {
  border: 0;
  height: 30px;
  padding: 0;
  width: 100%;
}

.wa-color-picker-inner code {
  color: var(--muted);
  font-size: 12px;
}

.file-input {
  align-items: center;
  display: flex;
  padding: 10px 14px;
}

.image-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.image-preview {
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.image-preview img,
.category-preview {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-preview .icon-button {
  background: rgba(255, 255, 255, 0.88);
  position: absolute;
  right: 6px;
  top: 6px;
}

.category-preview {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.category-admin-list {
  margin-top: 20px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(26, 22, 18, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.editor-modal {
  max-height: min(92vh, 920px);
  max-width: 760px;
  overflow: auto;
  width: min(100%, 760px);
}

.editor-modal.small {
  max-width: 520px;
}

.muted {
  color: var(--muted);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    gap: 8px;
    padding: 0 14px;
  }

  .header-search {
    max-width: 200px;
  }

  .brand {
    font-size: 24px;
  }

  .hero,
  .section,
  .product-detail,
  .checkout,
  .admin-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalog-layout,
  .product-detail,
  .checkout,
  .admin-page,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    display: none;
  }

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

  .main-image {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 12px;
    gap: 4px;
  }

  .brand {
    font-size: 26px;
  }
}

/* Mobile search bar — shown below header when toggled */
.mobile-search-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  position: sticky;
  top: 76px;
  z-index: 19;
  animation: slideDown 0.18s ease;
}

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

.mobile-search-inner {
  position: relative;
}

.mobile-search-input {
  width: 100%;
  padding-left: 44px;
  padding-right: 44px;
  min-height: 44px;
}

@media (max-width: 560px) {
  .topbar {
    font-size: 10px;
  }

  .header-actions .text-link {
    display: none;
  }

  .hero {
    min-height: 65vh;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    gap: 22px 12px;
  }

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

  .thumbs {
    display: flex;
    order: 2;
  }

  .thumbs button {
    height: 82px;
    min-width: 62px;
  }

  .buy-row,
  .form-grid.two,
  .color-row,
  .cart-item,
  .summary-item {
    grid-template-columns: 1fr;
  }

  .cart-item img,
  .summary-item img {
    width: 88px;
  }

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

.loading-screen {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  font-family: "Velista", Georgia, serif;
  font-size: 24px;
  color: var(--accent);
  background: var(--paper);
}

/* Menu Drawer Styles */
.menu-drawer {
  background: var(--surface);
  bottom: 0;
  box-shadow: var(--shadow);
  max-width: 320px;
  overflow: auto;
  padding: 26px 28px;
  position: fixed;
  left: 0;
  top: 0;
  transform: translateX(-110%);
  transition: transform 180ms ease;
  width: min(100vw, 320px);
  z-index: 60;
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-nav-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease;
}

.menu-link:hover,
.menu-link.active {
  color: var(--black);
  font-weight: 700;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 76px;
  height: 76px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease;
  text-decoration: none;
  padding: 0;
  border: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.24));
}


/* ── Menu Submenu (COLECCIÓN) ─────────────────────────────── */
.menu-coleccion-item {
  border-bottom: 1px solid var(--line);
}

.menu-coleccion-item .menu-link {
  border-bottom: none;
}

.menu-link-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-arrow {
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.2s ease;
  display: inline-block;
  line-height: 1;
}

.menu-arrow.open {
  transform: rotate(90deg);
}
.menu-sub-list {
  list-style: none;
  padding: 0 0 8px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-link-sub {
  font-size: 15px !important;
  padding: 7px 0 !important;
  color: var(--muted);
  border-bottom: none !important;
}

.menu-link-sub.active,
.menu-link-sub:hover {
  color: var(--ink);
  font-weight: 700;
}

.menu-link-sub-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-sub-sub-list {
  list-style: none;
  padding: 0 0 4px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* ── Info Pages ───────────────────────────────────────────── */
.info-page {
  max-width: 780px;
  margin: 0 auto;
}

.info-page-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.info-page-header svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}

.info-page-header h1 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

.info-page-body {
  line-height: 1.75;
}

.info-page-body h2 {
  font-family: "Velista", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  margin: 28px 0 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.info-page-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--ink);
}

.info-page-body p {
  color: var(--ink);
  margin-bottom: 12px;
}

.info-page-body li {
  color: var(--ink);
  margin-bottom: 8px;
  padding-left: 4px;
  list-style: disc inside;
}
