:root {
  color-scheme: dark;
  --obsidian: #050403;
  --ink: #100b04;
  --smoke: #1b1307;
  --ivory: #f8efe0;
  --muted: #b9aa93;
  --soft: #8a8071;
  --champagne: #bfa06a;
  --gold: #c29b5d;
  --bronze: #806034;
  --deep-gold: #5f461f;
  --emerald: #8f642c;
  --wine: #2a1708;
  --steel: #bfae8c;
  --glass: rgba(194, 155, 93, 0.035);
  --glass-strong: rgba(194, 155, 93, 0.07);
  --line: rgba(248, 239, 224, 0.12);
  --line-gold: rgba(194, 155, 93, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --page-bg:
    linear-gradient(140deg, #050403 0%, #100b04 38%, #1b1307 68%, #070502 100%),
    var(--obsidian);
  --page-sheen: rgba(194, 155, 93, 0.025);
  --page-grid: rgba(194, 155, 93, 0.008);
  --header-bg: linear-gradient(135deg, rgba(38, 27, 11, 0.74), rgba(8, 6, 3, 0.54));
  --nav-bg: rgba(194, 155, 93, 0.024);
  --nav-menu-bg: linear-gradient(145deg, rgba(30, 21, 8, 0.9), rgba(8, 6, 3, 0.78));
  --mobile-panel-bg: linear-gradient(145deg, rgba(30, 21, 8, 0.92), rgba(8, 6, 3, 0.8));
  --card-bg: linear-gradient(145deg, rgba(194, 155, 93, 0.065), rgba(194, 155, 93, 0.024));
  --card-highlight-bg:
    linear-gradient(145deg, rgba(128, 96, 52, 0.24), rgba(42, 23, 8, 0.34)),
    rgba(194, 155, 93, 0.032);
  --control-bg: rgba(194, 155, 93, 0.03);
  --control-hover-bg: rgba(194, 155, 93, 0.052);
  --input-bg: rgba(194, 155, 93, 0.04);
  --media-bg: #120c04;
  --detail-bg: #11100e;
  --select-option-bg: #1b1307;
  --modal-bg: linear-gradient(145deg, rgba(27, 19, 7, 0.94), rgba(8, 6, 3, 0.9));
  --drawer-bg: linear-gradient(145deg, rgba(27, 19, 7, 0.94), rgba(8, 6, 3, 0.9));
  --toast-bg: rgba(18, 12, 4, 0.94);
  --toast-text: #f8efe0;
  --badge-bg: rgba(7, 7, 6, 0.62);
  --hero-shade:
    linear-gradient(90deg, rgba(7, 7, 6, 0.96), rgba(7, 7, 6, 0.74) 43%, rgba(7, 7, 6, 0.18)),
    linear-gradient(180deg, rgba(7, 7, 6, 0.1), rgba(7, 7, 6, 0.96));
  --hero-accent:
    linear-gradient(120deg, rgba(194, 155, 93, 0.06), transparent 34%),
    linear-gradient(235deg, rgba(143, 100, 44, 0.12), transparent 42%);
  --hero-copy: #eee4d6;
  --heading-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
  --dark-contrast: #120b03;
  --overlay-bg: rgba(0, 0, 0, 0.58);
  --thumb-label-bg: rgba(5, 4, 3, 0.68);
  --image-overlay:
    linear-gradient(180deg, transparent 42%, rgba(7, 7, 6, 0.78)),
    linear-gradient(120deg, rgba(194, 155, 93, 0.07), transparent 42%);
  --detail-overlay:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.4)),
    linear-gradient(120deg, rgba(194, 155, 93, 0.075), transparent 44%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--ivory);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.detail-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, var(--page-sheen), transparent 22%),
    repeating-linear-gradient(
      90deg,
      var(--page-grid) 0,
      var(--page-grid) 1px,
      transparent 1px,
      transparent 120px
    );
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(194, 155, 93, 0.52);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  width: min(1220px, calc(100% - 28px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px auto 0;
  padding: 12px clamp(12px, 2.6vw, 22px);
  border: 1px solid rgba(194, 155, 93, 0.13);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(194, 155, 93, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  width: clamp(132px, 14vw, 190px);
  height: 54px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 20px rgba(194, 155, 93, 0.1));
}

.desktop-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(194, 155, 93, 0.09);
  border-radius: 8px;
  background: var(--nav-bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-item {
  position: relative;
}

.nav-item summary {
  list-style: none;
}

.nav-item summary::-webkit-details-marker {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.28);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.has-menu:hover .nav-trigger,
.has-menu:focus-within .nav-trigger,
.has-menu[open] .nav-trigger,
.has-menu.menu-open .nav-trigger {
  background: var(--control-hover-bg);
  color: var(--ivory);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.has-menu:hover .nav-trigger::after,
.has-menu:focus-within .nav-trigger::after,
.has-menu[open] .nav-trigger::after,
.has-menu.menu-open .nav-trigger::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-trigger::before {
  margin-right: 7px;
  color: var(--gold);
  content: "▾";
  font-size: 12px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 60;
  display: grid;
  min-width: 240px;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--nav-menu-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}

.nav-menu::before {
  position: absolute;
  top: -13px;
  right: 0;
  left: 0;
  height: 13px;
  content: "";
}

.has-menu:hover .nav-menu,
.has-menu:focus-within .nav-menu,
.has-menu[open] .nav-menu,
.has-menu.menu-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  transition:
    color 180ms ease,
    background 180ms ease,
    padding 180ms ease;
}

.nav-menu button:hover,
.nav-menu button:focus-visible {
  padding-left: 14px;
  background: var(--control-hover-bg);
  color: var(--ivory);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button,
.text-button,
.cart-button,
.primary-button,
.secondary-button,
.chip,
.tab,
.mobile-action,
.small-button {
  min-height: 44px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  color: var(--ivory);
  background: var(--control-bg);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.icon-button {
  display: grid;
  width: 44px;
  place-items: center;
  font-size: 18px;
}

.text-button,
.cart-button,
.primary-button,
.secondary-button,
.chip,
.tab {
  padding: 0 16px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-button span {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9ad72, #826237);
  color: var(--dark-contrast);
  font-size: 12px;
}

.wishlist-button {
  position: relative;
  width: 52px;
  grid-template-columns: 1fr;
  font-size: 18px;
}

.wishlist-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(194, 155, 93, 0.22);
  border-radius: 50%;
  background: linear-gradient(145deg, #c9ad72, #826237);
  color: var(--dark-contrast);
  font-size: 11px;
  font-weight: 900;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(194, 155, 93, 0.34);
  background: linear-gradient(135deg, #cdb077, #80613a);
  color: var(--dark-contrast);
  box-shadow: 0 12px 28px rgba(194, 155, 93, 0.08);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(194, 155, 93, 0.13);
  background: var(--control-bg);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.icon-button:hover,
.text-button:hover,
.cart-button:hover,
.primary-button:hover,
.secondary-button:hover,
.chip:hover,
.tab:hover,
.mobile-action:hover,
.small-button:hover {
  border-color: var(--line-gold);
  background: var(--control-hover-bg);
  transform: translateY(-2px);
}

.primary-button:hover {
  background: linear-gradient(135deg, #d6bd84, #8d6b3f);
}

.menu-button {
  display: none;
}

.hidden-admin-trigger {
  display: none !important;
}

.mobile-panel {
  position: fixed;
  top: 94px;
  left: 50%;
  z-index: 45;
  display: none;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100svh - 110px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--mobile-panel-bg);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.mobile-panel.open {
  display: grid;
  gap: 9px;
}

.mobile-category-list {
  display: grid;
  gap: 9px;
}

.mobile-panel a,
.mobile-action {
  display: block;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
}

.mobile-panel a {
  min-height: 44px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--ivory);
  font-weight: 800;
}

.mobile-menu-label {
  margin: 8px 0 2px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: min(820px, 86svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(20px, 6vw, 70px);
  margin-top: -88px;
  padding: clamp(128px, 17vw, 190px) clamp(20px, 7vw, 110px) clamp(58px, 7vw, 92px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--hero-shade), url("assets/noventis-hero.png") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--hero-accent);
  mix-blend-mode: screen;
}

.hero-content {
  width: min(720px, 100%);
  transform: translateY(calc(clamp(22px, 4vw, 48px) * -1));
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.96;
}

h1 {
  max-width: 780px;
  color: #fff3df;
  font-size: clamp(62px, 9.4vw, 116px);
  font-weight: 700;
  line-height: 0.9;
  text-shadow:
    0 22px 62px rgba(0, 0, 0, 0.58),
    0 0 36px rgba(194, 155, 93, 0.08);
  font-variant-ligatures: common-ligatures;
  font-feature-settings:
    "liga" 1,
    "kern" 1;
}

.hero h1 {
  max-width: 720px;
}

h2 {
  font-size: clamp(28px, 3.5vw, 48px);
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--hero-copy);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-width: 176px;
}

.hero-showcase {
  display: grid;
  gap: 10px;
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(194, 155, 93, 0.14);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-showcase span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-showcase strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
}

.hero-showcase p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(194, 155, 93, 0.055), rgba(194, 155, 93, 0.02)),
    rgba(7, 6, 3, 0.28);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.commerce-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(18px, 3vw, 34px) auto 0;
}

.commerce-strip article {
  display: grid;
  gap: 6px;
  min-height: 104px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(38, 27, 11, 0.58), rgba(7, 6, 3, 0.56)),
    rgba(194, 155, 93, 0.03);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.commerce-strip strong {
  color: var(--ivory);
  font-size: 14px;
}

.commerce-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.collection-rail {
  position: sticky;
  top: 100px;
  z-index: 38;
  display: flex;
  width: min(1180px, calc(100% - 28px));
  gap: 10px;
  margin: -30px auto 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background: var(--mobile-panel-bg);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.chip {
  flex: 0 0 auto;
  color: var(--muted);
}

.chip.active {
  border-color: rgba(194, 155, 93, 0.3);
  background: var(--glass-strong);
  color: var(--ivory);
}

.section-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 104px) 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-heading .eyebrow,
.about-copy .eyebrow,
.detail-toolbar .eyebrow,
.detail-info .eyebrow {
  margin-bottom: 0;
}

.section-heading h2,
.about-copy h2 {
  max-width: 780px;
}

.products-section {
  padding-top: clamp(48px, 7vw, 86px);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

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

.category-card,
.product-card,
.service-grid article,
.contact-card,
.contact-form,
.modal,
.cart-drawer {
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.category-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.category-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(140deg, rgba(194, 155, 93, 0.1), transparent 42%),
    linear-gradient(320deg, rgba(128, 96, 52, 0.1), transparent 48%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.category-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-6px);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card span {
  margin-bottom: auto;
  color: var(--steel);
  font-weight: 900;
}

.category-card p,
.service-grid p,
.contact-card p,
.about-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.category-card.highlight {
  border-color: rgba(194, 155, 93, 0.32);
  background: var(--card-highlight-bg);
}

.product-tools {
  display: flex;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ivory);
  outline: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

select option {
  background: var(--select-option-bg);
  color: var(--ivory);
}

textarea {
  min-height: 116px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-gold);
  box-shadow: 0 0 0 3px rgba(194, 155, 93, 0.08);
}

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

.product-card {
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.product-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-6px);
}

.product-media {
  position: relative;
  aspect-ratio: 1.16;
  overflow: hidden;
  background: var(--media-bg);
}

.product-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--image-overlay);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.1);
  transition: transform 360ms ease;
}

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

.product-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(194, 155, 93, 0.24);
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.wishlist-toggle {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  width: 42px;
  min-height: 42px;
  border-color: rgba(194, 155, 93, 0.16);
  background: rgba(5, 4, 3, 0.52);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wishlist-toggle.active,
.detail-wishlist.active {
  border-color: rgba(194, 155, 93, 0.38);
  background: rgba(194, 155, 93, 0.13);
  color: var(--gold);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-rating,
.stock-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.product-rating {
  color: rgba(248, 239, 224, 0.82);
}

.stock-pill.ready {
  color: #d8c7a9;
}

.stock-pill.low {
  color: #d1a55f;
}

.stock-pill.out {
  color: #b98274;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.product-top p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-sku {
  color: var(--soft) !important;
  font-size: 12px !important;
}

.price {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.product-detail-page {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  overflow-y: auto;
  padding: clamp(12px, 2.4vw, 24px);
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.product-detail-page:focus {
  outline: none;
}

.detail-shell {
  position: relative;
  display: grid;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.detail-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -4px;
}

.detail-toolbar .eyebrow {
  margin: 0;
}

.detail-icon-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.detail-share,
.detail-back {
  min-height: 42px;
  width: 42px;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
}

.detail-share {
  font-size: 19px;
}

.detail-back {
  font-size: 24px;
}

.detail-gallery {
  display: grid;
  gap: 14px;
}

.detail-main-frame {
  position: relative;
  aspect-ratio: 1.04;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--detail-bg);
  cursor: zoom-in;
}

.detail-main-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: var(--detail-overlay);
}

.detail-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--detail-scale, 1));
  transition: transform 420ms ease;
}

.detail-main-frame:hover img {
  transform: scale(calc(var(--detail-scale, 1) * 1.12));
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--control-bg);
  cursor: pointer;
  padding: 0;
}

.detail-thumb.active {
  border-color: rgba(194, 155, 93, 0.46);
  box-shadow: 0 0 0 3px rgba(194, 155, 93, 0.07);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

.detail-thumb:hover img {
  filter: brightness(1.08);
  opacity: 0.94;
}

.thumb-label {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid rgba(194, 155, 93, 0.14);
  border-radius: 6px;
  background: var(--thumb-label-bg);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-info h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.detail-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
}

.detail-price-row strong {
  color: var(--gold);
  font-size: 26px;
}

.detail-price-row span {
  color: var(--muted);
  font-weight: 800;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-specs span {
  padding: 12px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--muted);
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.related-block,
.recently-viewed {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.recently-viewed {
  margin-top: clamp(28px, 4vw, 44px);
}

.mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-section-head .eyebrow,
.related-block .eyebrow {
  margin: 0;
}

.mini-product-grid,
.related-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-products {
  grid-template-columns: 1fr;
}

.mini-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.03);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.mini-product:hover {
  border-color: var(--line-gold);
  background: rgba(194, 155, 93, 0.052);
  transform: translateY(-2px);
}

.mini-product img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-product div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.mini-product strong,
.mini-product span,
.mini-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product strong {
  color: var(--ivory);
  font-size: 13px;
}

.mini-product span,
.mini-product small {
  color: var(--muted);
  font-size: 11px;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.about-copy {
  position: sticky;
  top: 116px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 210px;
  padding: 24px;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.service-grid article:hover {
  border-color: rgba(128, 96, 52, 0.46);
  transform: translateY(-5px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.contact-form,
.stack-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.contact-form {
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-card {
  align-self: stretch;
  padding: 24px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(28px, 5vw, 54px) 0 20px;
  border-top: 1px solid rgba(194, 155, 93, 0.1);
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.02), rgba(5, 4, 3, 0.88)),
    radial-gradient(circle at 18% 18%, rgba(194, 155, 93, 0.09), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(255, 239, 199, 0.04), transparent 28%),
    linear-gradient(135deg, rgba(16, 11, 5, 0.94), rgba(5, 4, 3, 0.98)),
    #050403;
}

.site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      rgba(194, 155, 93, 0.012) 0,
      rgba(194, 155, 93, 0.012) 1px,
      transparent 1px,
      transparent 126px
    ),
    linear-gradient(180deg, rgba(248, 239, 224, 0.025), transparent 36%);
  opacity: 0.74;
}

.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.18fr) minmax(116px, 0.46fr) minmax(160px, 0.58fr) minmax(240px, 0.92fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(194, 155, 93, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(35, 25, 10, 0.56), rgba(7, 6, 3, 0.64)),
    rgba(9, 8, 6, 0.5);
  box-shadow:
    0 24px 76px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(248, 239, 224, 0.055);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.footer-brand,
.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-brand img {
  width: clamp(92px, 8vw, 112px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.footer-brand p,
.footer-bottom,
.footer-links a,
.footer-links button,
.footer-contact a {
  color: var(--muted);
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.footer-badges span {
  padding: 7px 9px;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.035);
  color: rgba(248, 239, 224, 0.72);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 3px;
  color: rgba(248, 239, 224, 0.92);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links button,
.footer-contact a {
  width: max-content;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-links a:hover,
.footer-links button:hover,
.footer-contact a:hover {
  color: var(--gold);
  transform: translateX(2px);
}

.footer-contact a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.footer-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.25);
}

.footer-subscribe input {
  min-height: 40px;
  border-color: transparent;
  background: rgba(248, 239, 224, 0.035);
}

.footer-subscribe .primary-button {
  min-height: 40px;
  padding: 0 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
  color: rgba(248, 239, 224, 0.56);
  font-size: 12px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 42;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(194, 155, 93, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #cdb077, #806034);
  color: var(--dark-contrast);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(194, 155, 93, 0.1);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  height: 100svh;
  padding: 20px;
  transform: translateX(110%);
  transition: transform 220ms ease;
  background: var(--drawer-bg);
}

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

.drawer-head,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-session-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  margin-left: auto;
}

.admin-session-actions .secondary-button {
  min-height: 38px;
  padding: 0 12px;
}

.modal-brand-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.modal-brand-title img {
  width: 108px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.drawer-head h2,
.modal-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
}

.cart-line img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-line h3 {
  font-size: 15px;
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.qty-row button {
  min-width: 31px;
  height: 31px;
  border: 1px solid rgba(194, 155, 93, 0.11);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ivory);
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(194, 155, 93, 0.1);
  padding-top: 16px;
}

.cart-summary .promo-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.03);
}

.promo-box label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-row input {
  min-height: 38px;
}

.promo-clear {
  width: max-content;
  min-height: 30px;
  color: var(--muted);
}

.cart-summary div,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.cart-summary .cart-total-line {
  padding-top: 10px;
  border-top: 1px solid rgba(194, 155, 93, 0.1);
  color: var(--ivory);
}

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

.cart-summary strong,
.checkout-total strong {
  color: var(--gold);
}

.wishlist-modal {
  width: min(620px, calc(100% - 28px));
}

.wishlist-items {
  display: grid;
  gap: 12px;
}

.wishlist-line {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
  cursor: pointer;
}

.wishlist-line img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.wishlist-line div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.wishlist-line strong,
.wishlist-line span,
.wishlist-line small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-line span,
.wishlist-line small {
  color: var(--muted);
  font-size: 12px;
}

.wishlist-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.terms-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.terms-row input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  display: none;
  width: min(470px, calc(100% - 28px));
  max-height: calc(100svh - 30px);
  overflow-y: auto;
  padding: 22px;
  transform: translate(-50%, -50%);
  background: var(--modal-bg);
}

.modal.open {
  display: grid;
  gap: 18px;
}

.auth-modal {
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  max-height: none;
  height: 100svh;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 54px);
  transform: none;
  background: #050403;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth-modal.open {
  display: grid;
  place-items: center;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(450px, 100%);
}

.auth-modal::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("assets/watch-angle-side.png") 34% center / cover no-repeat;
  filter: brightness(0.62) saturate(0.92) contrast(1.06);
  transform: scale(1.03);
}

.auth-modal::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.64), rgba(5, 4, 3, 0.22) 42%, rgba(5, 4, 3, 0.68)),
    linear-gradient(180deg, rgba(5, 4, 3, 0.05), rgba(5, 4, 3, 0.72)),
    radial-gradient(circle at 22% 20%, rgba(194, 155, 93, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(194, 155, 93, 0.09), transparent 36%);
}

.auth-form-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  width: 100%;
  max-height: min(680px, calc(100svh - clamp(36px, 8vw, 108px)));
  overflow-y: auto;
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid rgba(194, 155, 93, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(34, 24, 9, 0.62), rgba(7, 6, 3, 0.66)),
    rgba(7, 7, 6, 0.44);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(248, 239, 224, 0.06);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.auth-logo-mark {
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

.auth-logo-mark img {
  width: min(118px, 38vw);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
}

.auth-form-panel .modal-head {
  align-items: start;
}

.auth-form-panel .modal-head h2 {
  color: #fff3df;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 0.94;
}

.auth-tabs {
  padding: 5px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.03);
}

.auth-tabs .tab {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
}

.auth-tabs .tab.active {
  background: linear-gradient(135deg, rgba(194, 155, 93, 0.16), rgba(194, 155, 93, 0.055));
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(248, 239, 224, 0.06);
}

.auth-form {
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.24);
}

.auth-form input {
  min-height: 44px;
  background: rgba(7, 7, 6, 0.28);
}

.auth-form .primary-button {
  min-height: 46px;
  margin-top: 4px;
}

@media (min-width: 960px) {
  .auth-form-panel {
    min-height: 540px;
  }
}

.wide-modal {
  width: min(1120px, calc(100% - 28px));
}

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

.tab.active {
  border-color: rgba(194, 155, 93, 0.42);
  background: var(--glass-strong);
}

.hidden {
  display: none !important;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 16px;
}

.admin-card,
.admin-stats article {
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
  padding: 16px;
}

.admin-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats article {
  display: grid;
  gap: 7px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats strong {
  color: var(--gold);
  font-size: 22px;
}

.admin-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.full-admin-form {
  grid-template-columns: 160px repeat(3, minmax(0, 1fr));
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
}

.admin-image-preview {
  grid-row: span 3;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--detail-bg);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.admin-gallery-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(194, 155, 93, 0.025);
}

.admin-gallery-slot {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.22);
}

.gallery-slot-head {
  display: grid;
  gap: 4px;
}

.gallery-slot-head strong {
  color: var(--ivory);
  font-size: 13px;
}

.gallery-slot-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.gallery-slot-frame {
  position: relative;
  min-height: 92px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--detail-bg);
}

.gallery-slot-frame img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: contain;
}

.gallery-slot-frame figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 155, 93, 0.13);
  border-radius: 6px;
  background: rgba(5, 4, 3, 0.66);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.admin-gallery-slot label {
  gap: 6px;
  font-size: 11px;
}

.admin-gallery-slot input[type="file"] {
  min-height: 40px;
  padding: 7px;
}

.admin-gallery-slot input[type="url"] {
  min-height: 38px;
  font-size: 12px;
}

.admin-gallery-slot .small-button {
  min-height: 34px;
  color: var(--muted);
}

.gallery-bulk-upload {
  border: 1px solid rgba(194, 155, 93, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(194, 155, 93, 0.03);
}

.gallery-bulk-upload input[type="file"] {
  min-height: 42px;
  padding: 8px;
}

.wide-field {
  grid-column: span 3;
}

.admin-form-actions {
  display: grid;
  grid-column: span 3;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
}

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

.admin-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr 0.5fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(194, 155, 93, 0.1);
  border-radius: 8px;
  background: var(--control-bg);
}

.product-admin-row {
  grid-template-columns: 72px minmax(150px, 1.4fr) 0.8fr 0.8fr 0.7fr 0.7fr auto;
}

.product-admin-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.product-admin-row div,
.order-admin-row div {
  display: grid;
  gap: 4px;
}

.product-admin-row span,
.order-admin-row span,
.category-admin-row span {
  color: var(--muted);
  font-size: 13px;
}

.category-admin-row {
  grid-template-columns: 1fr 1fr auto;
}

.order-admin-row {
  grid-template-columns: 0.9fr 1fr 0.7fr 0.8fr 1.2fr auto;
  align-items: start;
}

.order-items {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border: 1px solid rgba(194, 155, 93, 0.24);
  border-radius: 8px;
  background: var(--glass-strong);
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  width: min(430px, calc(100% - 34px));
  padding: 13px 16px;
  border: 1px solid rgba(194, 155, 93, 0.32);
  border-radius: 8px;
  background: var(--toast-bg);
  color: var(--toast-text);
  text-align: center;
  transform: translate(-50%, 140%);
  transition: transform 220ms ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 3px;
  }

  .nav-link {
    padding: 0 10px;
  }

  .text-button {
    display: none;
  }

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

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

  .hero-showcase {
    width: min(420px, 100%);
  }
}

@media (max-width: 940px) {
  .desktop-nav,
  #searchToggle,
  #adminOpen {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .site-header {
    top: 8px;
    min-height: 70px;
    margin-top: 8px;
  }

  .hero {
    margin-top: -78px;
    padding-top: 122px;
  }

  .collection-rail {
    top: 84px;
  }

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

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

  .about-section,
  .contact-layout,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .about-copy {
    position: static;
  }

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

  .admin-form,
  .admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tabs,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-admin-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-image-preview,
  .wide-field,
  .admin-form-actions {
    grid-column: span 2;
  }

  .admin-image-preview {
    grid-row: auto;
  }

  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .detail-back {
    width: 42px;
  }

  .detail-shell {
    width: min(760px, calc(100vw - 24px));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(138px, 0.58fr) minmax(220px, 0.9fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .auth-shell {
    width: min(500px, 100%);
  }

  .auth-modal.open {
    place-items: center;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 20px);
    padding: 10px;
  }

  .brand {
    width: 118px;
    height: 48px;
  }

  .cart-button {
    padding: 0 11px;
  }

  .wishlist-button {
    width: 44px;
  }

  .hero {
    min-height: 82svh;
    padding: 120px 18px 48px;
  }

  .hero-content {
    transform: translateY(-18px);
  }

  .hero::before {
    background: var(--hero-shade), url("assets/noventis-hero.png") 63% center / cover no-repeat;
  }

  h1 {
    font-size: clamp(48px, 17vw, 72px);
    line-height: 0.92;
  }

  .hero-actions,
  .product-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .commerce-strip {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-showcase {
    display: none;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    margin-top: 16px;
  }

  .collection-rail {
    width: calc(100% - 20px);
    margin-top: -34px;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .mini-product-grid,
  .related-products {
    grid-template-columns: 1fr;
  }

  .mini-product {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .mini-product img {
    width: 68px;
    height: 68px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-top {
    align-items: start;
    flex-direction: column;
  }

  .product-detail-page {
    width: 100%;
    padding: 10px;
  }

  .detail-shell {
    width: 100%;
    max-height: calc(100svh - 20px);
    padding: 14px;
  }

  .detail-main-frame {
    aspect-ratio: 1;
  }

  .detail-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }

  .detail-price-row {
    align-items: start;
    flex-direction: column;
  }

  .wishlist-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .wishlist-line img {
    width: 72px;
    height: 72px;
  }

  .wishlist-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .wishlist-actions .small-button {
    flex: 1 1 120px;
  }

  .section-wrap {
    width: min(100% - 28px, 1180px);
  }

  .admin-form,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-tabs,
  .admin-stats,
  .full-admin-form,
  .admin-form-actions {
    grid-template-columns: 1fr;
  }

  .admin-image-preview,
  .wide-field,
  .admin-form-actions {
    grid-column: span 1;
  }

  .admin-gallery-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-modal {
    padding: 12px;
  }

  .auth-modal::before {
    background-position: 42% center;
  }

  .auth-form-panel {
    max-height: calc(100svh - 24px);
    padding: 14px;
  }

  .auth-logo-mark img {
    width: min(98px, 38vw);
  }

  .auth-form-panel .modal-head h2 {
    font-size: 26px;
  }

  .auth-form {
    padding: 12px;
  }

  .auth-form input {
    min-height: 42px;
  }

  .auth-form .primary-button {
    min-height: 44px;
  }

  .site-footer {
    padding: 24px 0 18px;
  }

  .footer-inner {
    width: calc(100% - 20px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding: 16px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-brand {
    gap: 9px;
  }

  .footer-brand img {
    width: clamp(84px, 20vw, 96px);
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-badges {
    gap: 6px;
  }

  .footer-badges span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .footer-links {
    gap: 9px;
  }

  .footer-links a,
  .footer-links button,
  .footer-contact a {
    width: max-content;
    max-width: 100%;
  }

  .footer-subscribe {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .footer-bottom {
    width: calc(100% - 20px);
    align-items: center;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .promo-row {
    grid-template-columns: 1fr;
  }

  .mini-product {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .mini-product img {
    width: 62px;
    height: 62px;
  }

  .mini-product .small-button {
    grid-column: 1 / -1;
  }

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

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-subscribe {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Performance mode for older laptops: keeps the layout intact while reducing GPU-heavy effects. */
.site-header,
.nav-menu,
.mobile-panel,
.hero-showcase,
.collection-card,
.product-card,
.modal,
.cart-drawer,
.overlay,
.auth-form-panel,
.toast,
.detail-shell,
.detail-specs span,
.product-rating,
.stock-pill,
.product-badge {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.product-card,
.modal,
.cart-drawer,
.hero-showcase,
.admin-card,
.contact-card,
.auth-form-panel,
.detail-shell {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24) !important;
}

.product-card,
.mini-product,
.collection-card,
.admin-card,
.contact-card,
.primary-button,
.secondary-button,
.small-button,
.icon-button {
  transition-duration: 90ms !important;
}

.product-card:hover,
.mini-product:hover,
.collection-card:hover,
.admin-card:hover {
  transform: none !important;
}

.product-card:hover .product-media img,
.detail-main-frame:hover img,
.auth-modal::before,
.brand-logo {
  transform: none !important;
  filter: none !important;
}

.product-media img,
.detail-main-frame img {
  transition: none !important;
}
