/* ---------- Design tokens ---------- */
:root {
  --color-bg: #faf5ec;
  --color-bg-alt: #f2e6d3;
  --color-surface: #ffffff;
  --color-text: #2b2320;
  --color-text-soft: #6b5b4c;
  --color-primary: #b5563a;
  --color-primary-dark: #954730;
  --color-secondary: #7c5a3a;
  --color-accent: #d9a441;
  --color-border: #e6d7bf;

  --font-heading: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(43, 35, 32, 0.06);
  --shadow: 0 12px 30px rgba(43, 35, 32, 0.1);
  --shadow-lg: 0 24px 60px rgba(43, 35, 32, 0.16);

  --header-h: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* Shutter/blind hover: 5 slats flip open in cascade, like a persiana,
   revealing the fill color underneath. Purely decorative, z-index keeps it
   behind the label/arrow so text stays legible through the whole animation. */
.btn-shutters {
  position: absolute;
  inset: -1px;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  perspective: 260px;
  pointer-events: none;
}

.btn-shutters span {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  transform: rotateX(90deg);
  transform-origin: top;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.15s ease 0.1s;
}

.btn-shutters span:nth-child(1) { top: 0%; }
.btn-shutters span:nth-child(2) { top: 20%; }
.btn-shutters span:nth-child(3) { top: 40%; }
.btn-shutters span:nth-child(4) { top: 60%; }
.btn-shutters span:nth-child(5) { top: 80%; }

.btn:hover .btn-shutters span {
  transform: rotateX(0deg);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.1s ease;
}

.btn:hover .btn-shutters span:nth-child(1) { transition-delay: 0s; }
.btn:hover .btn-shutters span:nth-child(2) { transition-delay: 0.05s; }
.btn:hover .btn-shutters span:nth-child(3) { transition-delay: 0.1s; }
.btn:hover .btn-shutters span:nth-child(4) { transition-delay: 0.15s; }
.btn:hover .btn-shutters span:nth-child(5) { transition-delay: 0.2s; }

.btn-primary .btn-shutters span {
  background: var(--color-primary-dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-outline .btn-shutters span {
  background: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .btn-shutters span,
  .btn:hover .btn-shutters span {
    transition: opacity 0.1s ease !important;
    transition-delay: 0s !important;
  }
}

/* Arrow icon: slides forward on hover, used on buttons and inline links */
.btn-arrow {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-arrow svg {
  display: block;
}

a:hover .btn-arrow,
button:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-danger {
  background: transparent;
  border-color: #d9534f;
  color: #d9534f;
}

.btn-danger:hover {
  background: #d9534f;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 245, 236, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text);
}

.brand-mark {
  color: var(--color-primary);
  display: inline-flex;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
}

.main-nav a.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Flash messages ---------- */
.flash-wrap {
  padding-top: 20px;
}

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 0.92rem;
}

.flash-success {
  background: #e7f3e8;
  color: #2f6b34;
}

.flash-error {
  background: #fbe8e6;
  color: #a13327;
}

.flash-info {
  background: #eef1fb;
  color: #3a4b9e;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero-bg-shape {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-accent), transparent 70%);
  opacity: 0.35;
  filter: blur(10px);
  z-index: 0;
}

.hero-bg-shape.two {
  top: auto;
  bottom: -220px;
  right: auto;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 60% 40%, var(--color-primary), transparent 70%);
  opacity: 0.18;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  color: var(--color-text);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  perspective: 1000px;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transform: rotate(2deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card:hover {
  box-shadow: var(--shadow-lg), 0 30px 50px rgba(43, 35, 32, 0.14);
}

.hero-card img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
  transform: rotate(-3deg);
}

.hero-badge strong {
  display: block;
  font-size: 1.4rem;
}

.hero-badge span {
  font-size: 0.75rem;
  opacity: 0.9;
  font-family: var(--font-body);
}

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  line-height: 0;
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 46px;
  display: block;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.trust-item h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head p {
  color: var(--color-text-soft);
  margin: 0;
  max-width: 50ch;
}

/* ---------- About teaser ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-media img.active {
  opacity: 1;
}

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

.product-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.product-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.product-dots .dot.active {
  background: #fff;
  transform: scale(1.3);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(43, 35, 32, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  font-size: 1.1rem;
  margin: 0;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-top: auto;
}

.product-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.product-links .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-soft);
}

/* ---------- Steps (come funziona) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Catalogo filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-soft);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-card a.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Final CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  margin: 0 24px;
  max-width: 1112px;
  margin-inline: auto;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 28px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-band .btn-primary:hover {
  background: var(--color-bg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
}

.footer-brand .brand-mark {
  color: var(--color-accent);
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin: 0;
}

.footer-tagline {
  font-size: 0.88rem;
  margin: 6px 0 0;
  max-width: 32ch;
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-nav a:hover, .footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-admin-link {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-admin-link:hover {
  opacity: 1;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}

/* ---------- Scroll reveal ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- Admin ---------- */
.admin-shell {
  min-height: 100vh;
  background: var(--color-bg-alt);
}

.admin-topbar {
  background: var(--color-text);
  color: #fff;
  padding: 18px 0;
}

.admin-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.admin-topbar a:hover {
  color: #fff;
}

.admin-main {
  padding: 48px 0 80px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-table-wrap {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  vertical-align: middle;
}

.admin-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

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

.admin-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  max-width: 720px;
}

.admin-card.narrow {
  max-width: 420px;
  margin: 60px auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-error {
  color: #a13327;
  font-size: 0.82rem;
  margin-top: 6px;
}

.current-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.current-image-item {
  position: relative;
  width: 84px;
  height: 84px;
}

.current-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.current-image-item form {
  position: absolute;
  top: -8px;
  right: -8px;
}

.remove-image-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #d9534f;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.remove-image-btn:hover {
  background: #c9302c;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .trust-grid, .steps-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a.nav-cta {
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

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

  .cta-band {
    padding: 48px 28px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 64px 0 80px;
  }

  .section {
    padding: 64px 0;
  }
}

/* ---------- Product detail page ---------- */
.breadcrumb-back {
  display: inline-block;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.breadcrumb-back:hover {
  color: var(--color-primary);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg-alt);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 1;
}

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

.product-detail-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 10px 0 16px;
}

.product-detail-meta {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 4px;
}

.product-detail-desc {
  color: var(--color-text-soft);
  line-height: 1.65;
  margin: 20px 0 28px;
  white-space: pre-line;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail-note {
  color: var(--color-text-soft);
  font-size: 0.85rem;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}
