:root {
  --black: #000000;
  --ink: #111111;
  --gold: #c9a227;
  --gold-dark: #8b6d16;
  --gray: #eaeaea;
  --cloud: #f7f7f4;
  --steel: #64707d;
  --line: rgba(17, 17, 17, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --font-display: Impact, "Arial Black", sans-serif;
  --font-base: Inter, Montserrat, Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cloud);
  font-family: var(--font-base);
  line-height: 1.5;
}

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

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

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

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

[data-glass] {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(160%);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(1120px, calc(100% - 28px));
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--radius);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0;
}

.brand-mark img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--black);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link,
.nav-dropdown-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(0, 0, 0, 0.72);
  font: inherit;
  font-weight: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.nav-link:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger {
  background: rgba(0, 0, 0, 0.06);
  color: var(--black);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  transform: translateX(-50%);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  justify-content: flex-start;
  padding: 0 12px;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--black);
  cursor: pointer;
}

.cart-trigger {
  grid-template-columns: 18px auto auto;
  gap: 8px;
  padding: 0 12px;
  font-weight: 800;
}

.cart-glyph {
  width: 16px;
  height: 16px;
  border: 2px solid var(--black);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.cart-glyph::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -8px;
  height: 8px;
  border: 2px solid var(--black);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.hero-shell {
  padding-top: 92px;
  overflow: hidden;
  background: #f0ede8;
}

.hero-shell picture,
.hero-shell img {
  width: 100%;
}

.hero-shell picture {
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.hero-shell img {
  height: auto;
  object-fit: contain;
  background: #f0ede8;
}

.hero-shell::after {
  content: none;
}

.page-hero {
  position: relative;
  min-height: 52vh;
  padding-top: 92px;
  overflow: hidden;
  background: #f0ede8;
}

.page-hero picture,
.page-hero img {
  width: 100%;
  height: 100%;
}

.page-hero picture {
  position: absolute;
  inset: 0;
}

.page-hero img {
  object-fit: cover;
  object-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08) 58%, rgba(255, 255, 255, 0.12));
}

.hero-copy {
  display: flex;
  justify-content: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 4px;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: calc(52vh - 92px);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(28px, 6vw, 70px);
  color: white;
}

.hero-copy p,
.page-hero-copy p,
.section-heading p,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.page-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.page-hero-clean {
  width: min(1120px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding-top: 92px;
  border-radius: var(--radius);
  background: transparent;
}

.page-hero-clean::after {
  content: none;
}

.page-hero-clean img {
  position: static;
  width: 100%;
  height: clamp(260px, 40vw, 460px);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
}

.page-banner-clean picture,
.page-banner-clean img {
  display: block;
  width: 100%;
}

.page-banner-clean img {
  height: auto;
  object-fit: contain;
  background: #f0ede8;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary-link,
.primary-button {
  width: fit-content;
  background: var(--black);
  color: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.primary-link:hover,
.primary-button:hover {
  background: #232323;
}

.secondary-link,
.secondary-button {
  background: rgba(255, 255, 255, 0.82);
  color: var(--black);
  border-color: var(--line);
}

.danger-button {
  background: #fff3f0;
  color: #9e2617;
  border-color: #f2c3bc;
}

.catalog-band,
.info-band,
.contact-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0;
}

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

.section-heading h2,
.info-band h2,
.contact-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.filter-bar,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.filter-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(0, 0, 0, 0.72);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
}

.product-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #efefed;
  cursor: pointer;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

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

.product-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-info p,
.product-info h3 {
  margin: 0;
}

.product-info p {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 3em;
  font-size: 1.02rem;
  line-height: 1.25;
}

.product-info strong,
.cart-total strong,
.dialog-copy strong {
  color: var(--gold-dark);
  font-size: 1.08rem;
}

.stock-label {
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card.is-out-stock img {
  filter: grayscale(1);
  opacity: 0.72;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-actions,
.form-actions,
.contact-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-actions > * {
  flex: 1;
}

.banner-strip {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.banner-strip img {
  width: min(100%, 1900px);
  height: auto;
  object-fit: contain;
}

.info-band {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
}

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

.policy-grid article {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 14px;
}

.policy-grid h3,
.policy-grid p {
  margin: 0;
}

.policy-grid h3 {
  margin-bottom: 6px;
}

.policy-grid p,
.contact-band p {
  color: rgba(0, 0, 0, 0.64);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  margin: clamp(12px, 3vw, 34px) 0 0;
  padding: clamp(38px, 5vw, 64px) max(16px, calc((100vw - 1120px) / 2));
  border-top: 4px solid var(--gold);
  background: #080808;
  color: white;
}

.footer-logo img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: white;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--gold);
}

.site-footer p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .secondary-link {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 180ms ease;
}

.cart-panel.is-open {
  background: rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

.cart-surface {
  width: min(460px, 100%);
  height: 100%;
  overflow: auto;
  padding: 22px;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

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

.panel-head,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.3rem;
  letter-spacing: 0;
}

.cart-items,
.admin-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.cart-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 0.92rem;
}

.cart-item p {
  color: var(--steel);
  font-size: 0.78rem;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 30px 34px;
  align-items: center;
  text-align: center;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  cursor: pointer;
}

.checkout-form,
.product-form {
  display: grid;
  gap: 12px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.form-message,
.empty-state {
  min-height: 22px;
  margin: 0;
  color: var(--steel);
  font-weight: 800;
}

.product-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 22px;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.dialog-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eee;
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.dialog-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.dialog-copy p {
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(201, 162, 39, 0.2), transparent 34%),
    linear-gradient(240deg, rgba(100, 112, 125, 0.18), transparent 38%),
    var(--cloud);
}

.admin-layout {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  margin: 9vh auto 0;
  padding: 24px;
  border-radius: var(--radius);
}

.admin-login img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-login h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0;
}

#login-form {
  display: grid;
  gap: 14px;
}

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

.admin-topbar,
.admin-panel {
  border-radius: var(--radius);
  padding: 14px;
}

.admin-content {
  display: grid;
}

.admin-panel {
  padding: 18px;
}

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

.switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.switch-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch-row input {
  width: 18px;
  min-height: 18px;
}

.admin-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.admin-row img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-row h3,
.admin-row p {
  margin: 0;
}

.admin-row p {
  color: var(--steel);
  overflow-wrap: anywhere;
}

.order-row {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-band,
  .dialog-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand toggle cart"
      "nav nav nav";
    min-height: 58px;
  }

  .brand-mark {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: toggle;
    display: block;
    justify-self: end;
  }

  .main-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding-top: 8px;
    font-size: 0.78rem;
  }

  .main-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    min-height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.62);
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.72);
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .cart-label {
    display: none;
  }

  .cart-trigger {
    grid-area: cart;
    justify-self: end;
  }

  .hero-shell,
  .hero-copy {
    min-height: 0;
  }

  .hero-shell::after {
    content: none;
  }

  .hero-copy {
    padding-top: 14px;
  }

  .hero-shell,
  .page-hero-clean {
    padding-top: 88px;
  }

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

  .section-heading,
  .contact-band {
    display: grid;
    align-items: start;
  }

  .product-actions > * {
    flex-basis: 100%;
  }

  .cart-item {
    grid-template-columns: 68px 1fr;
  }

  .cart-item img {
    width: 68px;
    height: 68px;
  }

  .qty-control {
    grid-column: 1 / -1;
    width: 116px;
  }

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

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

  .admin-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
