:root {
  --color-background: #F5F1E8;
  --color-surface: #FFFFFF;
  --color-text: #141414;
  --color-text-muted: #5A5650;
  --color-accent: #C9A227;
  --color-accent-dark: #A8871F;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.navbar {
  background-color: var(--color-text) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--color-background) !important;
  font-family: var(--font-display);
}

.navbar .nav-link:hover {
  color: var(--color-accent) !important;
}

.navbar-title {
  margin: 0 auto;
  color: var(--color-accent) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
}

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text);
}

.btn-gold {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.btn-gold:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.product-card {
  background-color: var(--color-surface);
  border: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-card .price {
  color: var(--color-accent-dark);
  font-weight: 600;
}

.price-old {
  color: var(--color-text-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.product-media {
  position: relative;
}

.badge-sale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.badge-new {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.6rem;
  background-color: var(--color-text);
  color: var(--color-background);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.banner-oos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem;
  background-color: rgba(20, 20, 20, 0.78);
  color: var(--color-background);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

footer.footer {
  background-color: var(--color-text);
  color: var(--color-background) !important;
  padding: 3rem 0 0;
}

footer.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

footer.footer a:hover,
footer.footer a:focus-visible {
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  text-align: left;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-social a {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-accent);
  opacity: 1;
  text-decoration: none;
}

.footer-logo {
  max-width: 140px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  opacity: 0.8;
  margin: 0;
}

.footer-col-title {
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-email a {
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  padding: 1.25rem 0;
  text-align: center;
}

@media (max-width: 767.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand {
    align-items: center;
  }

  .contact-form {
    text-align: left;
  }
}

.contact-form .form-control {
  background-color: rgba(245, 241, 232, 0.08);
  border-color: rgba(245, 241, 232, 0.3);
  color: var(--color-background);
}

.contact-form .form-control::placeholder {
  color: rgba(245, 241, 232, 0.6);
}

.contact-form .form-control:focus {
  background-color: rgba(245, 241, 232, 0.12);
  border-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: none;
}

.footer-copy {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.8;
}

[data-cart-badge] {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-radius: 50%;
  padding: 0.1em 0.5em;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--color-background);
  text-align: center;
}

.hero-compact {
  min-height: 60vh;
}

.hero-video,
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-logo {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--color-background);
}

.brand-statement {
  max-width: 42rem;
  margin: 4rem auto;
  text-align: left;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
}

.section-eyebrow {
  font-family: var(--font-display);
  color: var(--color-accent-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.brand-pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent-dark);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 2rem 0 0;
}

.banner {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-background);
  text-align: center;
  margin-bottom: 3rem;
}

.banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h1 {
  color: var(--color-background);
}

.editorial-grid {
  --bs-gutter-x: 2.5rem;
  --bs-gutter-y: 3rem;
}

.editorial-grid .product-card {
  overflow: hidden;
}

.editorial-grid .product-card img {
  aspect-ratio: 4 / 5;
  transition: transform 0.4s ease;
}

.editorial-grid .product-card:hover img {
  transform: scale(1.05);
}

.detail-gallery .gallery-main img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-prev { left: 0.6rem; }
.gallery-next { right: 0.6rem; }

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-thumb {
  width: 4.5rem;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.7;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--color-accent);
  opacity: 1;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background-color: var(--color-text);
  color: var(--color-background);
  border-top: 1px solid var(--color-accent);
  padding: 1rem 0;
}

.cookie-consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-inner p {
  flex: 1 1 20rem;
  font-size: 0.9rem;
}

.cookie-consent-inner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 0 3rem;
  line-height: 1.7;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--color-background);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-drawer.open .cart-drawer-backdrop {
  opacity: 1;
}

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

body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.checkout-payment-page {
  max-width: 32rem;
  margin: 0 auto 4rem;
}

.payment-order-summary {
  background-color: var(--color-surface);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

#payment-element {
  background-color: var(--color-surface);
  border-radius: 6px;
  padding: 1.25rem;
}

.cart-page {
  max-width: 44rem;
  margin: 0 auto 4rem;
}

.cart-page-summary {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.cart-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.cart-row-img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-row-info {
  flex: 1;
  min-width: 0;
}

.cart-row-name {
  font-weight: 600;
}

.cart-row-variant {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.cart-row-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 4px;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text);
}

.qty-btn:hover {
  color: var(--color-accent-dark);
}

.qty-input {
  width: 36px;
  border: none;
  background: none;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-row-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-row-remove:hover {
  color: #a53a3a;
}

.cart-row-total {
  font-weight: 600;
}

.cart-empty-message {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2.5rem 0;
}

.admin-page {
  max-width: 64rem;
  margin: 0 auto 4rem;
}

.admin-table {
  background-color: var(--color-surface);
}

.admin-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.badge-active,
.badge-inactive {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background-color: rgba(201, 162, 39, 0.15);
  color: var(--color-accent-dark);
}

.badge-inactive {
  background-color: rgba(90, 86, 80, 0.15);
  color: var(--color-text-muted);
}

.badge-status {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-status-pending { background-color: rgba(90, 86, 80, 0.15); color: var(--color-text-muted); }
.badge-status-paid { background-color: rgba(201, 162, 39, 0.15); color: var(--color-accent-dark); }
.badge-status-fulfilled { background-color: rgba(40, 120, 90, 0.15); color: #1e6b4f; }
.badge-status-shipped { background-color: rgba(40, 90, 160, 0.15); color: #2a5ea0; }
.badge-status-cancelled { background-color: rgba(180, 50, 50, 0.15); color: #a53a3a; }

.admin-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-image-item {
  width: 140px;
  text-align: center;
}

.admin-image-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: var(--color-text) !important;
  background-color: var(--color-accent) !important;
}

.auth-page {
  max-width: 26rem;
  margin: 2rem auto 4rem;
}

.auth-links {
  text-align: center;
}

.auth-links a {
  color: var(--color-accent-dark);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .editorial-grid .product-card:hover img {
    transform: none;
  }
}

.admin-body {
  background-color: var(--color-bg, #faf9f6);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 15rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  background-color: var(--color-surface, #fff);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-brand img {
  height: 36px;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.admin-sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.admin-sidebar-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.admin-sidebar-link.active {
  background-color: rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.admin-sidebar-back {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.admin-content {
  flex-grow: 1;
  min-width: 0;
  padding: 2rem 1.5rem;
}

.admin-stat-card {
  background-color: var(--color-surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 1.25rem;
  height: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.admin-stat-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

@media (max-width: 767.98px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 1;
  }

  .admin-content {
    padding: 1.25rem 1rem;
  }
}
