:root {
  --ink: #161616;
  --muted: #6b665d;
  --paper: #fbf8f1;
  --sand: #e7dcc7;
  --gold: #b8873b;
  --gold-dark: #8e6427;
  --green: #12382f;
  --navy: #152438;
  --line: #e5decf;
  --white: #fffdf8;
  --danger: #9c2d2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  font-weight: 720;
}

h3 {
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(184, 135, 59, 0.22);
  box-shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.site-topbar {
  color: #efe8dc;
  background: linear-gradient(90deg, var(--green), #111927);
  font-size: 0.78rem;
  font-weight: 720;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
}

.topbar-inner div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.topbar-inner a {
  color: #fff;
}

.navbar {
  padding: 0.7rem 0;
}

.main-navbar {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 248, 241, 0.92));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand small {
  margin-top: 0.18rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.main-menu {
  gap: 0.18rem;
  padding: 0.28rem;
  border: 1px solid rgba(184, 135, 59, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav-link {
  position: relative;
  border-radius: 999px;
  font-weight: 650;
  color: var(--ink);
  padding: 0.55rem 0.92rem !important;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff;
  background: var(--green);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.dropdown-menu {
  margin-top: 0.75rem;
  padding: 0.7rem;
  border-color: rgba(184, 135, 59, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 56, 47, 0.18);
}

.category-menu {
  min-width: 460px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
}

.dropdown-menu.show.category-menu {
  display: grid;
}

.dropdown-item {
  border-radius: 7px;
  font-weight: 720;
  white-space: normal;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background: var(--green);
}

.nav-whatsapp {
  min-width: 112px;
  box-shadow: 0 10px 24px rgba(184, 135, 59, 0.24);
}

.btn {
  border-radius: 7px;
  font-weight: 700;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 19, 27, 0.86) 0%, rgba(11, 19, 27, 0.64) 45%, rgba(11, 19, 27, 0.18) 100%);
}

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

.hero-media picture {
  display: block;
}

.hero-media img {
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.25rem;
  color: #f5ead6;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.muted-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head a {
  color: var(--green);
  font-weight: 750;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.category-tile span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  background: rgba(18, 56, 47, 0.9);
  color: #fff;
  font-weight: 800;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.product-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  min-height: 2.45rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green);
  font-weight: 850;
}

.product-price del,
.detail-price del {
  color: var(--muted);
  font-weight: 500;
}

.stock {
  width: fit-content;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.stock-disponible {
  background: #e7f3ec;
  color: #17603c;
}

.stock-rupture {
  background: #f7e4e4;
  color: #8e2222;
}

.stock-sur_commande {
  background: #fff3d8;
  color: #81550c;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.about-band {
  background: var(--green);
  color: #fff;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  align-items: center;
  gap: 2rem;
}

.about-panel p {
  color: #e7dcc7;
}

.contact-strip {
  padding: 2rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, auto);
  gap: 1.25rem;
  align-items: center;
}

.contact-grid a,
.contact-grid span {
  font-weight: 750;
}

.site-footer {
  padding: 4rem 0 1.4rem;
  color: #e9e1d3;
  background: #111;
}

.site-footer a {
  color: #fff;
}

.footer-title {
  color: #fff;
  font-size: 0.95rem;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9b1a5;
}

.page-hero {
  padding: 4.5rem 0;
  color: #fff;
  background: linear-gradient(120deg, var(--green), var(--navy));
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: #ece2d1;
  font-size: 1.12rem;
}

.page-hero-shop {
  background: linear-gradient(120deg, #12251f, #1a2533);
}

.page-hero-gallery {
  background:
    linear-gradient(120deg, rgba(18, 56, 47, 0.94), rgba(21, 36, 56, 0.92)),
    url("../img/hero-men-beldi.webp") center / cover;
}

.breadcrumb-wrap {
  margin-bottom: 1rem;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.breadcrumb a,
.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.84);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.catalog-filter {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-head,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-head h2,
.catalog-toolbar h2 {
  margin: 0;
  font-size: 1.1rem;
}

.filter-head a,
.catalog-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

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

.catalog-toolbar {
  margin-bottom: 1rem;
}

.seo-copy {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.empty-state,
.page-compact {
  min-height: 360px;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.gallery-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  column-count: 4;
  column-gap: 1rem;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-caption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  border-radius: 7px;
  color: #fff;
  background: rgba(17, 17, 17, 0.74);
  backdrop-filter: blur(10px);
}

.gallery-caption strong {
  line-height: 1.2;
}

.gallery-caption small {
  color: #f0dfbf;
  font-weight: 750;
}

.gallery-item:hover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.product-detail-section {
  padding-top: 3rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 3rem;
}

.product-gallery {
  min-width: 0;
}

.gallery-main {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.gallery-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.detail-price {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 850;
}

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.selector-grid label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 750;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.stripe-box {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.stripe-box h2 {
  font-size: 1.15rem;
}

.product-description {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.detail-specs dl,
.order-dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.detail-specs dt,
.order-dl dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-info,
.contact-form {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.narrow {
  max-width: 900px;
}

.about-values {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.about-values div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.alert-wrap {
  margin-top: 1rem;
}

.admin-body {
  background: #f4f0e8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1.2rem;
  background: #111;
  color: #fff;
}

.admin-brand {
  color: #fff;
  margin-bottom: 1.8rem;
}

.admin-nav {
  display: grid;
  gap: 0.35rem;
}

.admin-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 7px;
  color: #efe8dc;
  font-weight: 700;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
  padding: 2rem;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card,
.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 24, 16, 0.04);
}

.admin-card {
  padding: 1.4rem;
}

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

.admin-stat {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem;
}

.admin-stat span {
  color: var(--muted);
  font-weight: 750;
}

.admin-stat strong {
  font-size: 1.65rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-actions a {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 750;
}

.admin-form h2 {
  font-size: 1.15rem;
}

.form-actions {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.admin-photo-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-photo-list label {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.admin-photo-list img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.admin-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green), #0f1622);
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: 2rem;
  border-radius: 8px;
  background: #fff;
}

.admin-login-card h1 {
  font-size: 1.6rem;
  text-align: center;
}

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

  .admin-stat-grid,
  .quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 991px) {
  .hero {
    min-height: 660px;
  }

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

  .about-panel,
  .contact-grid,
  .product-detail,
  .product-description,
  .contact-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filter {
    position: static;
  }

  .main-menu {
    align-items: stretch !important;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-link {
    border-radius: 7px;
  }

  .category-menu {
    min-width: 100%;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-actions,
  .detail-actions,
  .footer-bottom,
  .section-head,
  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .category-grid,
  .selector-grid,
  .admin-stat-grid,
  .quick-actions,
  .detail-specs dl,
  .order-dl,
  .about-values div {
    grid-template-columns: 1fr;
  }

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

  .topbar-inner,
  .topbar-inner div,
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .gallery-grid {
    column-count: 1;
  }

  .contact-grid {
    gap: 0.65rem;
  }
}
