/* ============================================================
   COASTAL EQUIPMENT — COFFEE CATALOGUE
   style.css  |  Vanilla CSS, no frameworks
   ============================================================ */

/* ── 1. CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand */
  --clr-red: #d42b2b;
  --clr-red-dark: #a81f1f;
  --clr-red-light: #e84040;
  --clr-dark: #0e0e0e;
  --clr-dark-2: #1a1a1a;
  --clr-dark-3: #242424;
  --clr-mid: #3a3a3a;
  --clr-border: rgba(255, 255, 255, 0.12);
  --clr-white: #ffffff;
  --clr-off-white: #f5f5f5;
  --clr-muted: rgba(255, 255, 255, 0.55);
  --clr-accent: #c8a96e;
  /* warm gold accent */
  /* Italian flag */
  --clr-italy-green: #009246;
  --clr-italy-red: #ce2b37;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --navbar-h: 68px;
  --italy-bar-h: 32px;
  --navbar-island-mt: 12px;
  /* gap between flag bar and island */

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-med: 320ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-island: 10px;

  /* Shadow */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-island: 0 8px 32px rgba(180, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-off-white);
  color: var(--clr-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── 3. Italian Flag Accent Bar ────────────────────────────── */
.italy-bar {
  height: var(--italy-bar-h);
  background: transparent;
  /* fully transparent — hero image shows through */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 200;
  overflow: hidden;
}

.italy-bar__stripe {
  display: block;
  height: 3px;
  align-self: center;
}

.italy-bar__stripe--green {
  background: var(--clr-italy-green);
}

.italy-bar__stripe--red {
  background: var(--clr-italy-red);
}

.italy-bar__text {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  white-space: nowrap;
}

/* On light-background pages, make the flag-bar text readable */
.page-light .italy-bar__text {
  color: rgba(0, 0, 0, 0.45);
}

/* ── 4. Site Header (fixed, transparent — floats over hero) ─────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  background: transparent;
  pointer-events: none;
  /* let the italy-bar and row handle their own events */
}

/* Italy bar: still dark but within the fixed header */
.site-header .italy-bar {
  pointer-events: all;
}

/* ── Scrolled state: hide logo and phone — only center pill stays visible ── */
.site-header.scrolled .navbar__brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

.site-header.scrolled .navbar__phone {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}

/* ── 5. Transparent Navbar Row (3-column: logo | pill | phone) ───── */
.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: transparent;
  pointer-events: all;
  gap: 16px;
}

/* ── LEFT: Logo ───────────────────────────────────────────── */
.navbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
  /* No background — sits directly over the hero image */
}

.navbar__brand:hover {
  opacity: 0.85;
}

.navbar__logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  /* white logo over dark hero */
  -webkit-filter: brightness(0) invert(1);
}

/* ── CENTER: Red Pill — nav links + hamburger ONLY ────────────── */
.navbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--clr-red);
  border-radius: var(--radius-island);
  box-shadow: var(--shadow-island);
  height: var(--navbar-h);
  padding: 0 8px;
  transition: box-shadow var(--transition-med);
  /* No overflow:hidden so items breathe */
}

/* Center nav links inside the pill */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  color: var(--clr-white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── RIGHT: Phone number (white text, directly over hero) ─────── */
.navbar__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  /* always white — over hero image */
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  transition: opacity var(--transition-fast);
}

.navbar__phone:hover {
  opacity: 0.8;
}

.navbar__phone-num {
  font-variant-numeric: tabular-nums;
}

/* ── Light-background page overrides (catalogue + product detail) ─── */
/* These pages have no dark hero, so the white logo and phone are
   invisible. The .page-light class on <body> switches them to dark. */
.page-light {
  padding-top: 120px;
  /* push content below the fixed header */
}

.page-light .navbar__logo {
  filter: brightness(0);
  -webkit-filter: brightness(0);
}

.page-light .navbar__pill-logo-img {
  filter: brightness(0);
  -webkit-filter: brightness(0);
}

.page-light .navbar__phone {
  color: #000000;
  text-shadow: none;
}

.page-light .navbar__phone svg {
  color: #000000;
}

/* ── Mobile-only pill elements (phone icon + logo inside the red pill) ── */
/* Hidden by default on desktop — shown only on mobile via media query */
.navbar__pill-phone {
  display: none;
  align-items: center;
  color: #ffffff;
  padding: 8px 12px;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.navbar__pill-phone:hover {
  opacity: 0.8;
}

.navbar__pill-logo {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  /* takes up remaining center space */
}

.navbar__pill-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
}

/* MENU button */
.navbar__menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.navbar__menu-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar__menu-btn.is-active {
  background: var(--clr-dark);
  border-color: var(--clr-dark);
}

/* Hamburger icon */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition-med), opacity var(--transition-fast), width var(--transition-med);
}

.hamburger-icon span:first-child {
  width: 18px;
}

.hamburger-icon span:nth-child(2) {
  width: 13px;
}

.hamburger-icon span:last-child {
  width: 18px;
}

/* Animated X state */
.navbar__menu-btn.is-active .hamburger-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
  width: 18px;
}

.navbar__menu-btn.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__menu-btn.is-active .hamburger-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
  width: 18px;
}

/* ── 5. Mega Menu ──────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.mega-menu[hidden] {
  display: block !important;
}

/* override hidden so we animate */
.mega-menu.is-visible {
  pointer-events: all;
}

/* Overlay (mobile full-screen backdrop) */
.mega-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.mega-menu.is-visible .mega-menu__overlay {
  opacity: 1;
}

/* Panel — positioned below the fixed site-header */
.mega-menu__panel {
  position: fixed;
  top: calc(var(--italy-bar-h) + var(--navbar-h) + 20px);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--italy-bar-h) - var(--navbar-h) - 20px);
  overflow-y: auto;
  background: var(--clr-dark-2);
  border-bottom: 1px solid var(--clr-border);
  padding: 32px 0 40px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

.mega-menu.is-visible .mega-menu__panel {
  transform: translateY(0);
  opacity: 1;
}

/* Search row */
.mega-menu__search-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 24px;
}

.search-field {
  display: flex;
  align-items: center;
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.search-field:focus-within {
  border-color: var(--clr-red);
}

.search-icon {
  flex-shrink: 0;
  margin: 0 14px;
  color: var(--clr-muted);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 14px 0;
  caret-color: var(--clr-red);
}

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

.search-btn {
  background: var(--clr-red);
  border: none;
  color: var(--clr-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 14px 22px;
  transition: background var(--transition-fast);
}

.search-btn:hover {
  background: var(--clr-red-dark);
}

/* Divider */
.mega-menu__divider {
  max-width: 1200px;
  margin: 0 auto 28px;
  height: 1px;
  background: var(--clr-border);
}

/* Columns */
.mega-menu__columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 160px;
}

.mega-col__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 4px;
}

.mega-col__link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-white);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.mega-col__link:hover {
  color: var(--clr-red-light);
  transform: translateX(4px);
}

/* Social col */
.mega-col--social {
  gap: 16px;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--clr-white);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  background: var(--clr-red);
  border-color: var(--clr-red);
  transform: translateY(-2px);
}

/* ── 6. Hero (starts at top: 0; fixed header floats above it) ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* No top padding — the fixed site-header overlays it naturally */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/bg/hero_coffee.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.75) 100%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

.hero.loaded .hero__content {
  opacity: 1;
  transform: translateY(0);
}

.hero__divider--top,
.hero__divider--bottom {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.hero__headline {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero__sub {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Discover more link */
.hero__discover {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--clr-white);
  text-align: center;
  animation: bob 2.4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.9s ease 0.8s;
}

.hero.loaded .hero__discover {
  opacity: 1;
}

.hero__discover:hover {
  color: var(--clr-accent);
}

.hero__arrow {
  transition: transform var(--transition-fast);
}

.hero__discover:hover .hero__arrow {
  transform: translateY(4px);
}

.hero__discover-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── 7. Catalogue Section ──────────────────────────────────── */
.catalogue {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}

.catalogue__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
}

.catalogue__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.catalogue__subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
  font-weight: 400;
}

/* Product result count (used on the full-catalogue page) */
.catalogue__result-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.04em;
  display: block;
  position: relative;
  margin-bottom: 24px;
  padding-top: 10px;
  margin-top: 0;
  z-index: 10;
}

.catalogue__result-count span {
  color: var(--clr-red);
  font-weight: 800;
}

/* Filter buttons */
.catalogue__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid #ddd;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
}

.filter-btn--active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: var(--clr-white);
}

.filter-btn--active:hover {
  background: var(--clr-red-dark);
  color: var(--clr-white);
}

/* ── 8. Product Grid ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── 9. Product Card ───────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
  cursor: pointer;
  /* Entry animation */
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.5s ease forwards;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Stagger card entries */
.product-card:nth-child(1) {
  animation-delay: 0.05s;
}

.product-card:nth-child(2) {
  animation-delay: 0.12s;
}

.product-card:nth-child(3) {
  animation-delay: 0.19s;
}

.product-card:nth-child(4) {
  animation-delay: 0.26s;
}

.product-card:nth-child(5) {
  animation-delay: 0.33s;
}

.product-card:nth-child(6) {
  animation-delay: 0.40s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden state for filter */
.product-card.is-hidden {
  display: none;
}

/* Brand tag (replaces badge) */
.product-card__brand-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--clr-red);
  color: var(--clr-white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.product-card__brand-tag--new {
  background: #1a6f3e;
}

.product-card__brand-tag--premium {
  background: #6b3d9a;
}

.product-card__brand-tag--gaggia {
  background: var(--clr-red);
  /* Gaggia brand red */
}

.product-card__brand-tag--jura {
  background: #1a3a6b;
}

.product-card__brand-tag--saeco {
  background: #8b4513;
}

.product-card__brand-tag--aurora {
  background: #2a5a7a;
}

.product-card__brand-tag--magister {
  background: #2d2d2d;
  /* Magister dark-steel */
}

/* ── "More items →" link below the grid ───────────────────── */
.catalogue__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.catalogue__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-red);
  border: 2px solid var(--clr-red);
  border-radius: 100px;
  padding: 12px 32px;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.catalogue__more-link:hover {
  background: var(--clr-red);
  color: var(--clr-white);
  transform: translateX(4px);
}

/* Image */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-off-white);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

.product-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent 60%);
  pointer-events: none;
}

/* Body */
.product-card__body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-red);
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Feature bullet list */
.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card__features li {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}

.product-card__features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-red);
  font-size: 0.9em;
  line-height: 1.5;
}

/* Footer of card — hidden (quote buttons removed) */
.product-card__footer {
  display: none !important;
}

/* Quote button */
.quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-red);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.quote-btn:hover {
  background: var(--clr-red-dark);
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(212, 43, 43, 0.4);
}

.quote-btn svg {
  transition: transform var(--transition-fast);
}

.quote-btn:hover svg {
  transform: translateX(3px);
}

/* ── 10. Quote Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-modal);
  position: relative;
  overflow: hidden;
  transform: scale(0.94) translateY(16px);
  transition: transform var(--transition-med);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--clr-off-white);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
}

.modal__close:hover {
  background: #eee;
  transform: rotate(90deg);
}

.modal__header {
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-red-dark) 100%);
  padding: 32px 32px 28px;
  text-align: center;
}

.modal__icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.modal__subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Form */
.modal__form {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #444;
  text-transform: uppercase;
}

.form-label span {
  color: var(--clr-red);
}

.form-input {
  background: var(--clr-off-white);
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--clr-dark);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px rgba(212, 43, 43, 0.12);
}

.form-input::placeholder {
  color: #aaa;
}

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

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--clr-red);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  margin-top: 4px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.form-submit:hover {
  background: var(--clr-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 43, 43, 0.4);
}

/* ── 11. Footer ────────────────────────────────────────────── */
.footer {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 60px 40px 0;
  border-top: 3px solid var(--clr-red);
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand {
  flex: 1;
  min-width: 220px;
}

.footer__logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  display: block;
}

.footer__brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.83rem;
  color: var(--clr-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--clr-red-light);
}

.footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ── 12. Responsive ────────────────────────────────────────── */

/* At 1080px: shrink nav links, hide phone number text (keep icon) */
@media (max-width: 1080px) {
  .navbar-row {
    padding: 10px 18px;
  }

  .navbar__links {
    gap: 0;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 0.68rem;
  }

  .navbar__phone-num {
    display: none;
  }

  /* icon only */
}

/* At 860px: mobile transformation — pill becomes full-width w/ phone|logo|hamburger */
@media (max-width: 860px) {

  /* ── Hide outside desktop elements ── */
  .navbar__brand {
    display: none;
  }

  /* outside logo */
  .navbar__phone {
    display: none;
  }

  /* outside phone number */

  /* ── Navbar row: let the pill fill all available space ── */
  .navbar-row {
    padding: 8px 14px;
    gap: 0;
    background: transparent !important;
  }

  /* ── Pill: expand to fill the row, switch to space-between layout ── */
  .navbar {
    flex: 1;
    width: 100%;
    justify-content: space-between;
    padding: 0 4px;
    height: var(--navbar-h);
  }

  /* ── Hide desktop nav links inside pill ── */
  .navbar__links {
    display: none;
  }

  /* ── Show mobile pill elements ── */
  .navbar__pill-phone {
    display: flex;
  }

  .navbar__pill-logo {
    display: flex;
  }

  /* ── Menu button: hide the "MENU" text label on mobile ── */
  .menu-btn-label {
    display: none;
  }

  /* ── Hamburger-only button styling on mobile ── */
  .navbar__menu-btn {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
  }

  /* Mega menu panel: account for fixed header height */
  .mega-menu__panel {
    top: calc(var(--italy-bar-h) + var(--navbar-h) + 18px);
    padding: 24px 0 40px;
  }

  .mega-menu__search-row,
  .mega-menu__divider {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mega-menu__columns {
    padding: 0 20px;
    gap: 36px;
  }

  /* Content below header */
  .catalogue {
    padding: 52px 20px 80px;
  }

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

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

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

  .modal__form {
    padding: 24px 20px 28px;
  }

  .modal__header {
    padding: 28px 20px 24px;
  }
}

/* At 560px: smallest screens — tighten padding, shrink pill logo */
@media (max-width: 560px) {
  :root {
    --italy-bar-h: 24px;
    --navbar-h: 56px;
  }

  /* Header always transparent */
  .site-header {
    background: transparent !important;
  }

  .navbar-row {
    background: transparent !important;
    padding: 6px 10px;
  }

  .italy-bar__text {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  /* Pill logo a little smaller on phones */
  .navbar__pill-logo-img {
    height: 26px;
  }

  .hero__headline {
    letter-spacing: 0.03em;
  }

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

  .product-card__body {
    padding: 14px 12px 14px;
    gap: 5px;
  }

  .product-card__name {
    font-size: 0.82rem;
  }

  .product-card__category {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .product-card__features li {
    font-size: 0.68rem;
    padding-left: 10px;
  }

  .product-card__brand-tag {
    top: 8px;
    left: 8px;
    font-size: 0.5rem;
    padding: 3px 7px;
  }

  .product-card__image {
    padding: 12px;
  }

  .footer {
    padding: 40px 20px 0;
  }

  .footer__inner {
    gap: 36px;
  }

  .footer__links {
    gap: 28px;
  }
}

/* ── WhatsApp Floating Action Button ─────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.whatsapp-fab svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE  (product-detail.html)
═══════════════════════════════════════════════════════════ */

/* ── Outer wrapper ─────────────────────────────────────── */
.pd-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

/* ── 2-column detail layout ───────────────────────────── */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 860px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Left: image container ────────────────────────────── */
.pd-image-col {
  position: relative;
  /* mobile default — scrolls normally */
}

@media (min-width: 768px) {
  .pd-image-col {
    position: sticky;
    top: 100px;
  }
}

.pd-image-wrap {
  background: #f7f7f7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.pd-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Right: info column ───────────────────────────────── */
.pd-info-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Breadcrumb */
.pd-breadcrumb {
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pd-breadcrumb a {
  color: var(--clr-red);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  text-decoration: underline;
}

/* Title */
.pd-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Specs list */
.pd-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

.pd-spec-item {
  display: flex;
  padding: 13px 20px;
  gap: 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.pd-spec-item:nth-child(odd) {
  background: #fafafa;
}

.pd-spec-label {
  font-weight: 700;
  color: #555;
  min-width: 110px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.pd-spec-value {
  color: var(--clr-dark);
  line-height: 1.5;
}

/* ── Enquiry button ───────────────────────────────────── */
.pd-enquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a7a42;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 20px rgba(26, 122, 66, 0.35);
  text-decoration: none;
  align-self: flex-start;
}

.pd-enquiry-btn:hover {
  background: #155f33;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 122, 66, 0.45);
}

.pd-enquiry-btn:active {
  transform: translateY(0);
}

.pd-enquiry-btn svg {
  flex-shrink: 0;
}

/* ── Error state ──────────────────────────────────────── */
.pd-error {
  display: none;
  background: #fff3f3;
  border: 1px solid #f9c0c0;
  border-radius: 12px;
  padding: 24px 28px;
  color: #c0392b;
  font-weight: 600;
  margin: 40px 0;
  text-align: center;
}

/* ── Related products section ─────────────────────────── */
.pd-related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.pd-related__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .pd-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pd-section {
    padding: 120px 20px 60px;
  }

  .pd-related {
    padding: 0 20px 80px;
  }

  .pd-related__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Loading skeleton pulse ───────────────────────────── */
.pd-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pd-shimmer 1.4s infinite;
  border-radius: 12px;
}

@keyframes pd-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── Contact Social Media Row ── */
.contact-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.contact-social-row .social-icon svg {
  width: 32px;
  height: 32px;
  color: #dc2626;
  transition: transform 0.2s ease;
}

.contact-social-row .social-icon:hover svg {
  transform: scale(1.1);
  color: #b91c1c;
}

/* --- Force 2-Column Grid on Mobile --- */
@media (max-width: 768px) {

  .product-grid,
  #full-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  /* Shrink text slightly so it fits inside the half-size cards */
  .product-card__name {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .product-card__features li {
    font-size: 11px !important;
  }

  .product-card__category {
    font-size: 10px !important;
  }

  .product-card__body {
    padding: 10px !important;
  }

  .product-card__features {
    display: none !important;
  }
}