:root {
  --store-bg: #f7f1e7;
  --store-surface: #fffdf9;
  --store-surface-soft: #f4ece0;
  --store-border: rgba(118, 89, 34, 0.16);
  --store-border-strong: rgba(118, 89, 34, 0.28);
  --store-text: #261d12;
  --store-muted: #6b6154;
  --store-accent: #946f31;
  --store-accent-strong: #b88939;
  --store-shadow: 0 16px 34px rgba(71, 48, 13, 0.08);
}

body {
  background: linear-gradient(180deg, #fffdf9 0%, var(--store-bg) 100%);
  color: var(--store-text);
}

body.menu-open,
body.cookie-panel-open,
body.product-lightbox-open {
  overflow: hidden;
}

a,
.main-nav a,
.mobile-nav a,
.header-link,
.store-header-link {
  color: var(--store-text);
}

.button {
  min-height: 44px;
}

.button-outline {
  border-color: var(--store-border-strong);
  color: var(--store-text);
  background: rgba(255, 255, 255, 0.82);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--store-accent);
  color: var(--store-accent);
}

.button-primary {
  background: linear-gradient(135deg, var(--store-accent-strong), var(--store-accent));
  color: #fffaf2;
  border-color: transparent;
}

.store-topbar {
  border-bottom: 1px solid rgba(36, 27, 16, 0.08);
  background: rgba(255, 251, 243, 0.96);
}

.store-topbar-shell {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  font-size: 0.86rem;
  color: var(--store-muted);
}

.store-topbar-shell a {
  color: var(--store-accent);
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 243, 0.98);
  border-bottom: 1px solid rgba(36, 27, 16, 0.08);
  backdrop-filter: blur(12px);
}

.store-header-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.store-brand-logo {
  width: auto;
  height: clamp(52px, 6vw, 78px);
  max-width: 78px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.store-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.store-brand-copy strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.store-brand-copy small {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--store-muted);
}

.store-header-search,
.store-mobile-search,
.catalog-search-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-header-search input,
.store-mobile-search input,
.catalog-search-inline input,
.news-search-field input,
.shipping-form input,
.shipping-form select,
.contact-form-wrap input,
.contact-form-wrap textarea,
.account-card input,
.account-card textarea,
.product-purchase-card input,
.order-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--store-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--store-text);
}

.store-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.store-header-link {
  font-size: 0.92rem;
  white-space: nowrap;
}

.store-nav-shell {
  padding: 0 0 0.8rem;
}

.store-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.store-mobile-nav {
  background: rgba(255, 251, 243, 0.98);
  border-top: 1px solid rgba(36, 27, 16, 0.08);
}

.catalog-home-hero,
.catalog-page-head {
  padding: 2rem 0 1.3rem;
}

.catalog-home-hero-shell,
.catalog-page-head-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.catalog-home-hero h1,
.catalog-page-head h1 {
  margin: 0.3rem 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 1.8vw, 2.35rem);
  line-height: 1.08;
  color: var(--store-text);
}

.catalog-home-hero p,
.catalog-page-head p,
.catalog-card-meta {
  color: var(--store-muted);
}

.catalog-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-strip {
  padding-bottom: 1.1rem;
}

.catalog-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.catalog-strip-links a,
.catalog-sort-links a,
.catalog-sidebar-links a,
.catalog-mobile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--store-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--store-text);
}

.catalog-strip-links a:hover,
.catalog-sort-links a:hover,
.catalog-sidebar-links a:hover,
.catalog-mobile-links a:hover,
.catalog-strip-links a.active,
.catalog-sort-links a.active,
.catalog-sidebar-links a.active,
.catalog-mobile-links a.active {
  border-color: var(--store-accent);
  color: var(--store-accent);
}

.catalog-section,
.catalog-page-body {
  padding: 1rem 0 2.5rem;
}

.catalog-section-head,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}

.catalog-section-head h2 {
  margin: 0.25rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 1.3vw, 1.75rem);
  color: var(--store-text);
}

.catalog-more-link {
  color: var(--store-accent);
  font-weight: 600;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.catalog-sidebar-card,
.catalog-card,
.catalog-empty-state,
.news-search-form,
.shop-summary-card,
.cart-item,
.shipping-option,
.order-top-strip,
.order-panel,
.account-card,
.contact-form-wrap,
.product-purchase-card,
.cookie-banner-shell,
.cookie-panel-dialog {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 20px;
  box-shadow: var(--store-shadow);
}

.catalog-sidebar-card,
.catalog-empty-state,
.shop-summary-card,
.contact-form-wrap,
.account-card,
.order-panel,
.product-purchase-card,
.cookie-banner-shell,
.cookie-panel-dialog {
  padding: 1.25rem;
}

.catalog-sidebar-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--store-text);
}

.catalog-sidebar-links,
.catalog-mobile-panel {
  display: grid;
  gap: 0.55rem;
}

.catalog-sidebar-links a,
.catalog-mobile-links a {
  justify-content: space-between;
}

.catalog-main {
  min-width: 0;
}

.catalog-mobile-filters {
  display: none;
  margin-bottom: 1rem;
}

.catalog-mobile-filters summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  font-weight: 600;
}

.catalog-mobile-filters[open] .catalog-mobile-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--store-border);
  background: var(--store-surface);
}

.catalog-mobile-block {
  display: grid;
  gap: 0.65rem;
}

.catalog-toolbar {
  flex-wrap: wrap;
}

.catalog-sort-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catalog-grid {
  display: grid;
  gap: 1.1rem;
  justify-content: start;
}

.catalog-grid-products {
  grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
}

.catalog-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.catalog-card-cover {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--store-surface-soft);
}

.catalog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.catalog-card-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.catalog-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--store-text);
}

.catalog-card-body h3 a {
  color: inherit;
}

.catalog-card-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
}

.catalog-card-price strong,
.eyebrow {
  color: var(--store-accent);
}

.catalog-card-price span {
  color: var(--store-muted);
  text-decoration: line-through;
}

.catalog-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.catalog-card-actions form {
  margin: 0;
}

.catalog-empty-state {
  text-align: center;
}

.store-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(36, 27, 16, 0.08);
  background: rgba(255, 251, 243, 0.96);
}

.store-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(150px, 1fr));
  gap: 1.25rem;
}

.store-footer-brand img {
  display: block;
  width: auto;
  height: clamp(56px, 7vw, 80px);
  max-width: 100%;
  object-fit: contain;
}

.store-footer-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.store-footer-grid > div a,
.store-footer-grid > div button {
  display: block;
  width: fit-content;
  margin-top: 0.45rem;
}

.store-footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 1.4rem;
  color: var(--store-muted);
}

.footer-cookie-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--store-accent);
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 70;
}

.cookie-banner-shell,
.cookie-panel-dialog {
  max-width: 860px;
  margin: 0 auto;
}

.cookie-banner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.cookie-actions,
.cookie-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.cookie-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 27, 16, 0.26);
}

.cookie-panel-dialog {
  position: relative;
  max-width: 720px;
  margin: 8vh auto 0;
}

.cookie-panel-head,
.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-panel-head {
  margin-bottom: 1rem;
}

.cookie-panel-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--store-border);
  border-radius: 999px;
  background: var(--store-surface-soft);
  color: var(--store-text);
}

.cookie-panel-options {
  display: grid;
  gap: 0.8rem;
}

.cookie-option {
  padding: 1rem 1.05rem;
  border: 1px solid var(--store-border);
  border-radius: 16px;
  background: var(--store-surface-soft);
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(28, 23, 16, 0.72);
}

.product-image-lightbox__panel {
  position: relative;
  width: min(92vw, 900px);
  padding: 1rem;
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: var(--store-shadow);
}

.product-image-lightbox__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.product-image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--store-border);
  background: #fff;
  color: var(--store-text);
}

@media (max-width: 1080px) {
  .store-header-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .store-header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .catalog-layout,
  .store-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .store-topbar-shell {
    justify-content: center;
    flex-wrap: wrap;
  }

  .store-header-actions,
  .store-nav {
    display: none;
  }

  .catalog-home-hero-shell,
  .catalog-page-head-shell,
  .catalog-section-head,
  .catalog-toolbar,
  .store-footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-mobile-filters {
    display: block;
  }

  .catalog-sidebar {
    display: none;
  }
}

@media (max-width: 560px) {
  .catalog-home-hero,
  .catalog-page-head,
  .catalog-page-body,
  .catalog-section {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }

  .catalog-home-hero h1,
  .catalog-page-head h1 {
    font-size: 1.75rem;
  }

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

  .catalog-card-actions,
  .catalog-home-hero-actions {
    flex-direction: column;
  }

  .catalog-card-actions .button,
  .catalog-card-actions form,
  .catalog-card-actions form .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .catalog-grid-products {
    grid-template-columns: 1fr;
  }
}
