/* ========================
   DESIGN SYSTEM - Antique Atelier
   ======================== */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe5d7;
  --ink: #201c18;
  --ink-2: #3d332c;
  --muted: #776a5e;
  --accent: #b07a3a;
  --accent-2: #8b5b2a;
  --line: #ded3c2;
  --line-strong: #cdbca6;
  --shadow: 0 20px 50px rgba(32, 22, 15, 0.18);
  --shadow-soft: 0 12px 30px rgba(32, 22, 15, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --transition: 220ms ease;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Garamond, serif;
  --font-body: "Avenir Next", "Gill Sans", "Trebuchet MS", "Helvetica Neue", sans-serif;
  /* Legacy aliases (admin/local pages) */
  --bg-primary: var(--paper);
  --bg-secondary: #fff;
  --bg-tertiary: #f3ede4;
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --accent-gold: var(--accent);
  --border-color: var(--line-strong);
}

/* ========================
   RESET & BASE
   ======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(700px 500px at 90% 8%, rgba(255, 255, 255, 0.7), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

p {
  margin-bottom: 1em;
  color: var(--ink-2);
}

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

a:hover {
  color: var(--accent-2);
}

/* ========================
   LAYOUT
   ======================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin: 1.5rem 0 0;
}

/* ========================
   NAVBAR
   ======================== */

.navbar {
  background: rgba(246, 241, 231, 0.86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 4px;
}

.navbar-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
}

.nav-link.cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.nav-link.cta:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.nav-link-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
}

.cart-icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.cart-count-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cart-fab {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
}

.cart-fab:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* ========================
   BUTTONS
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================
   HERO
   ======================== */

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-title {
  margin: 1rem 0;
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--ink-2);
}

.hero-search {
  margin: 1.4rem 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1.1fr auto;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.hero-search select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
}

.hero-search input::placeholder {
  color: var(--muted);
}

.hero-search .btn {
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 2rem;
}

.hero-highlights {
  display: none;
}

.hero-highlight {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-highlight span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hero-highlight strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(32, 22, 15, 0.08) 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ========================
   FEATURED / PRODUCTS
   ======================== */

.featured {
  padding: 3.5rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.annunci-marquee {
  --marquee-duration: 90s;
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0;
}

.annunci-marquee::before,
.annunci-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 5;
  pointer-events: none;
}

.annunci-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(246, 241, 231, 0) 100%);
}

.annunci-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper) 0%, rgba(246, 241, 231, 0) 100%);
}

.marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: home-marquee-ltr var(--marquee-duration) linear infinite;
  will-change: transform;
}

.annunci-marquee:hover .marquee-track,
.annunci-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 clamp(240px, 24vw, 320px);
}

.marquee-item .product-card {
  height: 100%;
}

/* In live feed the whole card is a single click target. */
.annunci-marquee .product-carousel,
.annunci-marquee .product-carousel * {
  pointer-events: none;
}

.annunci-marquee .fav-btn {
  display: none;
}

.marquee-track-loading {
  animation: none;
}

@keyframes home-marquee-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.skeleton-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(90deg, #f1e8d9 0%, #fbf7f0 50%, #f1e8d9 100%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s linear infinite;
}

.skeleton-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 260px;
  background: rgba(217, 201, 177, 0.45);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 84px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(217, 201, 177, 0.65), rgba(217, 201, 177, 0.65)) 0 0 / 80% 14px no-repeat,
    linear-gradient(rgba(217, 201, 177, 0.5), rgba(217, 201, 177, 0.5)) 0 26px / 100% 12px no-repeat,
    linear-gradient(rgba(217, 201, 177, 0.5), rgba(217, 201, 177, 0.5)) 0 48px / 62% 12px no-repeat;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.product-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: #f3ede1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3ede1;
}

.product-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3ede1;
}

.product-carousel-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
  border: 1px solid transparent;
}

.product-info .product-badge {
  position: static;
  display: inline-flex;
  margin: 0.6rem 0 0.8rem;
}

.badge-available {
  background: #e7f2e7;
  color: #2d5f2f;
  border-color: #c9e1c9;
}

.badge-reserved {
  background: #fff3dd;
  color: #7a5a1e;
  border-color: #f0d7a7;
}

.badge-sold {
  background: #f8e3e3;
  color: #8b2e2e;
  border-color: #e8bcbc;
}

.badge-featured {
  background: #fff7e7;
  color: var(--accent-2);
  border-color: #ead5b1;
  position: absolute;
  top: 12px;
  right: 12px;
}

.fav-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(32, 22, 15, 0.18);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(32, 22, 15, 0.12);
  transition: var(--transition);
  z-index: 3;
}

.fav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(176, 122, 58, 0.45);
}

.fav-btn svg {
  width: 22px;
  height: 22px;
}

.fav-btn svg path {
  fill: transparent;
  stroke: rgba(32, 22, 15, 0.65);
  stroke-width: 2;
}

.fav-btn.active {
  border-color: rgba(192, 57, 43, 0.45);
}

.fav-btn.active svg path {
  fill: rgba(192, 57, 43, 0.92);
  stroke: rgba(192, 57, 43, 0.92);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.product-name {
  font-size: 1.1rem;
  color: var(--ink);
}

.product-description {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.25rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-2);
}

.product-price.sold {
  color: var(--muted);
}

/* ========================
   COLLECTIONS / CARDS
   ======================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
}

.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 1;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card h3,
.collection-card p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.collection-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* ========================
   TRUST STRIP
   ======================== */

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========================
   MOOD / VINTAGE REEL
   ======================== */

.mood {
  padding: 4.5rem 0;
}

.mood-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.mood-copy p {
  color: var(--muted);
  max-width: 62ch;
}

.mood-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.mood-kpi {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.2rem;
}

.mood-kpi span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.mood-kpi strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.vintage-reel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.vintage-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(0deg, rgba(32, 22, 15, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(70% 80% at 30% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(75% 90% at 70% 85%, rgba(32, 22, 15, 0.16), transparent 62%);
  animation: reel-grain 10s steps(20) infinite;
}

.vintage-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(32, 22, 15, 0.1) 100%);
}

.vintage-reel picture,
.vintage-reel img {
  width: 100%;
  height: 100%;
}

.vintage-reel img {
  object-fit: cover;
  transform-origin: 50% 45%;
  animation: reel-kenburns 16s ease-in-out infinite alternate;
}

.reel-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.reel-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(176, 122, 58, 0.18);
}

.mood-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.mood-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}

.mood-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.mood-shot:hover img {
  transform: scale(1.04);
}

@keyframes reel-kenburns {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: saturate(0.98) contrast(1.02);
  }
  100% {
    transform: scale(1.1) translate3d(-2%, -1.2%, 0);
    filter: saturate(1.02) contrast(1.04);
  }
}

@keyframes reel-grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2%, 1.5%, 0);
  }
}

/* ========================
   CATALOG
   ======================== */

.catalog-hero {
  text-align: left;
  padding: 3rem 0 1.5rem;
}

.catalog-hero p {
  max-width: 640px;
}

.catalog-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-soft);
}

.filters-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.filters-titlebar h3 {
  margin: 0;
}

.filters-open {
  display: none;
}

.filters-close {
  display: none;
}

.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 22, 15, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
}

.filter-group {
  margin-bottom: 1.2rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.9rem;
}

.filter-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  border-radius: 6px;
}

.filter-check {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0 !important;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}

.filter-group input::placeholder {
  color: var(--muted);
}

.catalog-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.result-count {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========================
   PRODUCT DETAIL
   ======================== */

.product-container {
  padding: 2.5rem 0 4rem;
}

.breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
}

.product-gallery {
  flex: 1;
}

.product-main-image {
  width: 100%;
  height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  position: relative;
  cursor: zoom-in;
}

.product-main-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3ede1;
}

.gallery-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(32, 22, 15, 0.72);
  color: #fff;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(7, 7, 9, 0.94);
  display: grid;
  place-items: center;
  padding: 12px;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-inner {
  width: min(96vw, 1500px);
  height: min(92vh, 1000px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.gallery-lightbox-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
}

.gallery-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0d0d0f;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(18, 18, 20, 0.7);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox-close {
  right: 12px;
  top: 12px;
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-nav.prev { left: 12px; }
.gallery-lightbox-nav.next { right: 12px; }

.gallery-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(18, 18, 20, 0.72);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

body.gallery-open {
  overflow: hidden;
}

.product-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 0.6rem;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  background: #fff;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent);
}

.product-info h1 {
  margin-bottom: 0.4rem;
}

.product-year {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.product-price-detail {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 1rem 0;
}

.product-price-detail.sold {
  color: var(--muted);
}

.product-specs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--ink);
}

.spec-value {
  color: var(--muted);
  text-align: right;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.product-inquiry-btn {
  background-color: #fff;
  color: var(--accent-2);
  border: 1px solid var(--accent);
  padding: 1rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
}

.product-inquiry-btn:hover {
  background-color: var(--accent);
  color: #fff;
}

.product-note {
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========================
   CTA / CALL OUT
   ======================== */

.cta {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
  text-align: center;
}

.cta p {
  margin: 0.7rem 0 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================
   CONTACT PAGE
   ======================== */

.hero-simple {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.contact-section {
  padding: 3rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin-bottom: 0.8rem;
}

.contact-link {
  display: inline-block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-2);
}

.contact-link:hover {
  text-decoration: underline;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 122, 58, 0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========================
   CART / CHECKOUT
   ======================== */

.cart-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.cart-item img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.cart-item h4 {
  margin-bottom: 0.4rem;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.quantity-btn,
.remove-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.remove-btn {
  color: #8b2e2e;
  border-color: #e4c3c3;
}

.quantity-btn:hover,
.remove-btn:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  position: sticky;
  top: 110px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 0.8rem 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.summary-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cart-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.payment-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.payment-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.payment-links a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.alert-success {
  border-color: #c6e2c6;
  color: #2d5f2f;
  background: #f0faf0;
}

.alert-error {
  border-color: #e4c3c3;
  color: #8b2e2e;
  background: #fdf3f3;
}

/* ========================
   LEGAL PAGES
   ======================== */

.legal-page {
  padding: 2rem 0 4rem;
  max-width: 900px;
}

.legal-page .last-updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-page section:last-child {
  border-bottom: none;
}

.legal-page h2 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
}

.legal-page li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.legal-page li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ========================
   FOOTER
   ======================== */

.footer {
  background: #fdfbf8;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--muted);
}

.footer-section a:hover {
  color: var(--ink);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ========================
   ANIMATIONS
   ======================== */

.reveal {
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .annunci-marquee {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .marquee-track {
    width: max-content;
  }

  .skeleton-card {
    background-position: 0 0 !important;
  }
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .catalog-section,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .filters,
  .cart-summary {
    position: static;
  }

  .product-main-image {
    height: 420px;
  }
}

@media (max-width: 720px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-menu {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.85rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .navbar-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-link-cart .cart-count-badge { margin-left: 0; }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    letter-spacing: 0.1em;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .marquee-track {
    gap: 0.9rem;
  }

  .marquee-item {
    flex-basis: clamp(220px, 78vw, 280px);
  }

  .product-image {
    height: 220px;
  }

  .gallery-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .gallery-lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  /* Catalog filters: mobile bottom sheet */
  .filters-open {
    display: inline-flex;
    padding: 0.7rem 1.15rem;
  }

  .filters-close {
    display: inline-flex;
  }

  .filters {
    display: none;
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .filters-backdrop {
    display: block;
  }

  body.filters-open .filters {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    top: auto;
    max-height: calc(100vh - 160px);
    overflow: auto;
    z-index: 2001;
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
  }

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

  .cart-item img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

/* ========================
   UTILITIES
   ======================== */

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
