/* styles.css */

#sib-container input {
  color: hsl(358, 84%, 52%);
}
/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Variables */
:root {
  --red: rgb(236, 29, 37);
  --black: #000;
  --white: #fff;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

/* Left, centre, right columns */
.nav-left,
.social-links {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.logo-centre {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  height: 42px;
  width: auto;
}

/* Top-level nav */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--black);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Red underline + colour on hover or active parent */
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Tiny chevron to indicate dropdown on Products */
.nav-item-has-dropdown > .nav-link::after {
  content: "▾";
  font-size: 0.65em;
  margin-left: 0.25rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.nav-item-has-dropdown:hover > .nav-link::after {
  transform: translateY(1px) rotate(180deg);
  color: var(--red);
}

/* First-level dropdown: categories */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    visibility 0.18s ease-out;
  background-clip: padding-box;
  z-index: 999;
}

/* Show categories when hovering "Products" */
.nav-item-has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  position: relative;
  white-space: nowrap;
}

/* Category row */
.dropdown-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease;
}

/* Subtle left accent + red hover */
.dropdown-item > a::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0;
  margin-right: 0.4rem;
  background: var(--red);
  transition: height 0.15s ease;
}

.dropdown-item > a:hover {
  background: rgba(236, 29, 37, 0.06);
  color: var(--red);
  padding-left: 1.2rem;
}

.dropdown-item > a:hover::before {
  height: 14px;
}

/* Second-level dropdown: base state (inherits .dropdown but we override position & transition) */
.dropdown.submenu {
  top: 0;
  left: 100%;
  margin-left: 0.2rem;
  min-width: 240px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--red);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;

  /* override the Y-translate with an X-translate for the side dropdown */
  transform: translateX(8px);
  opacity: 0;
  visibility: hidden;
}

/* Only show the submenu when hovering the category that has children */
.dropdown-item.has-submenu:hover > .dropdown.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Product links styling (you already have this but keep it together) */
.dropdown.submenu li a {
  display: block;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease;
}

.dropdown.submenu li a:hover {
  background: rgba(236, 29, 37, 0.08);
  color: var(--red);
  padding-left: 1.2rem;
}

.dropdown.submenu li a:visited {
  color: var(--black);
}

/* Optional: visited links in submenu stay on-brand, not purple */
.dropdown.submenu li a:visited {
  color: var(--black);
}

/* =========================
   MOBILE NAV (<= 768px)
   ========================= */
.mobile-menu-toggle {
  display: none; /* hidden on desktop by default */
}

/* Mobile menu is hidden by default */
.mobile-menu {
  display: none;
}

/* Desktop defaults (already exist, but keep as baseline) */
/* .nav-left, .social-links, .dropdown, etc. stay as you have them */

/* ---- Mobile rules ---- */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav/social */
  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  /* Burger x-transform when nav open */
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-left,
  .social-links {
    display: none;
  }

  .logo-centre {
    margin: 0 auto;
  }

  /* Mobile slide-down menu */
  .mobile-menu {
    display: block;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  body.mobile-nav-open .mobile-menu {
    max-height: 75vh; /* enough for scroll; tweak if needed */
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0.5rem 1rem 1rem;
    margin: 0;
  }

  .mobile-nav-item {
    margin-bottom: 0.3rem;
  }

  .mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.55rem 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.98rem;
    text-decoration: none;
    color: var(--black);
  }

  .mobile-nav-link:hover {
    color: var(--red);
  }

  .mobile-cat-link {
    flex: 1;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    font-weight: 600; /* categories bold in mobile too */
    text-decoration: none;
    color: var(--black);
  }

  .mobile-cat-link:hover {
    color: var(--red);
  }
}

/* Social icons right-aligned */
.social-links {
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-links a img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  fill: var(--black);
  transition: fill 0.3s;
}
.social-links a:hover img {
  filter: invert(30%) sepia(83%) saturate(3804%) hue-rotate(347deg)
    brightness(91%) contrast(97%);
  transform: translateY(-1px);
}

/* Sections */

h1 {
  color: rgb(236, 29, 37);
}

h1,
h2,
h3 {
  scroll-margin-top: 120px;
}

h4 {
  color: rgb(236, 29, 37);
  font-weight: 800;
  font-size: 1.2rem;
}

section.sect100 {
  padding: 100px 1rem 60px;
}

section.min-v-height {
  min-height: 100vh;
}

#home {
  background: var(--red);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}
#home h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
#signup-form {
  margin-top: 1rem;
}
#signup-form input[type="email"] {
  padding: 0.75rem 1rem;
  width: 250px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}
#signup-form button {
  padding: 0.75rem 1.2rem;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
#signup-form button:hover {
  opacity: 0.9;
}

#about {
  background: var(--white);
  color: var(--black);
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
#about .about-text {
  flex: 1 1 300px;
}
#about .about-image {
  flex: 1 1 300px;
}
#about .about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#contact {
  background: var(--black);
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 0;
}
#contact .contact-details {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
}
#contact a {
  color: var(--red);
  text-decoration: none;
}

#contact h2 {
  margin-bottom: 1.5rem;
}

.contact-shell {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-left {
  display: grid;
  align-content: start;
}

.contact-right {
  display: grid;
  align-content: start;
}

.sf-pb {
  padding-bottom: 2em;
}

/* Footer spacing */
.spacer {
  height: 60px;
}

footer#footer {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
}
footer#footer p {
  margin: 0;
  font-size: 0.9rem;
}
#contact footer#footer {
  margin-top: auto;
}
.contact-content {
  margin: auto 0;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Color variables */
:root {
  --red: rgb(236, 29, 37);
  --red-dark: #b10012;
  --black: #000;
  --white: #fff;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem; /* slightly smaller than body text */
  font-style: italic; /* reads visually as "meta" navigation */
  color: #888; /* lighter grey so it doesn’t compete with titles */
  margin-top: 0.5rem; /* extra space below the product/category title */
  margin-bottom: 1.5rem; /* a bit of breathing room above the main content */
  font-family: "Copperplate", "Copperplate Gothic Light", serif;
  letter-spacing: 0.02em;
}

.breadcrumbs a {
  color: #666; /* darker than separators but still softer than headings */
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--red); /* tie into your brand red on hover */
  text-decoration: underline;
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Grid Tile Styles */
.grid-item {
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background-color: white;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  height: 100%;
}
.grid-item:hover {
  border-color: var(--red-dark);
  box-shadow: 0 4px 10px rgba(236, 29, 37, 0.2);
  transform: scale(1.02);
  cursor: pointer;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: scale-down;
}

.grid-item h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.grid-item p {
  font-size: 0.95rem;
  color: #666;
  margin: 8px 0 0;
}

main.gridz {
  padding-top: 120px;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.prod-page {
  max-width: 1600px;
  margin: 120px auto 60px;
}

/* === Splash Loader (Centered logo with spinner) === */
#splash-loader {
  position: fixed;
  inset: 0;
  background-color: white; /* Or black if preferred */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader-content {
  position: relative;
  width: 600px; /* Outer container for logo + spinner */
  height: 600px;
}

.loader-logo {
  width: 400px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.spinner {
  width: 600px;
  height: 600px;
  border: 4px solid rgba(236, 29, 37, 0.4);
  border-top: 4px solid var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade-out class */
#splash-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ===== HOME PRODUCT CAROUSEL (OVER RED SECTION) ===== */

.home-carousel {
  width: 100%;
  padding: 2.5rem;
  background: transparent;
}

.home-carousel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.home-carousel-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.home-carousel-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff; /* assumes #home is red; white heading pops nicely */
  text-align: left;
}

/* Single row that holds a moving track */
.home-carousel-row {
  overflow: hidden;
}

/* The track is what we move in JS */
.home-carousel-track {
  display: inline-flex; /* key: track width is content width */
  align-items: stretch;
}

/* Individual tiles */
.home-carousel-item {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-right: 1rem; /* visual gap between tiles */
  flex: 0 0 auto; /* no flex-grow/shrink; width based on content */
  width: 230px; /* card width; tweak if needed */
}

.home-carousel-item:last-child {
  margin-right: 0;
}

.home-carousel-item figure {
  position: relative; /* needed for overlay */
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff; /* keep product cards white for contrast */
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.15s ease;
}

/* Overlay layer (initially transparent) */
.home-carousel-item figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(128, 0, 0, 0); /* dark red, 0 opacity initially */
  transition: background 0.15s ease;
  pointer-events: none; /* don’t block clicks */
}

/* Hover: add red tint and slightly stronger shadow */
.home-carousel-item:hover figure {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
}

.home-carousel-item:hover figure::before {
  background: rgba(128, 0, 0, 0.3); /* ~30% dark red overlay */
}

/* BIGGER, more “hero” image area */
.home-carousel-image-wrap {
  width: 100%;
  padding-top: 115%; /* height relative to width; makes carousel taller */
  position: relative;
  overflow: hidden;
}

.home-carousel-image-wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show whole product/category image */
  transform: translate(-50%, -50%);
}

/* Caption */
.home-carousel-item figcaption {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  justify-content: center;
  position: relative; /* so the text stays above the overlay */
  z-index: 1;
}

.home-carousel-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
  text-align: center;
  transition: color 0.15s ease;
}

/* Hover: text becomes dark red to match tint */
.home-carousel-item:hover .home-carousel-title {
  color: #800000;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .home-carousel-inner {
    max-width: 100%;
    padding: 0 1rem;
  }

  .home-carousel-item {
    width: 55vw;
    margin-right: 0.8rem;
  }
}

@media (max-width: 600px) {
  .home-carousel-heading {
    font-size: 1.2rem;
    text-align: left;
  }

  .home-carousel-item {
    width: 70vw;
    margin-right: 0.75rem;
  }

  .home-carousel-title {
    font-size: 0.9rem;
  }
}

/* =========================
   Single Product Page (modern)
   ========================= */

.prod-page {
  /* header is fixed; this prevents content hiding under nav */
  padding-top: 1px;
}

.prod-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.prod-breadcrumbs {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.9rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.prod-breadcrumbs a {
  color: #111;
  text-decoration: none;
}

.prod-breadcrumbs a:hover {
  text-decoration: underline;
}

.prod-breadcrumbs .sep {
  opacity: 0.5;
}

.prod-breadcrumbs .current {
  opacity: 0.9;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
  padding-top: 0.75rem;
}

/* Left media */
.prod-media {
  position: relative;
  width: 100%;
  max-width: clamp(320px, 40vw, 520px); /* desktop/tablet safety cap */
}

.prod-image-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}

.prod-image-btn:hover .prod-image-hint,
.prod-image-btn:focus-visible .prod-image-hint {
  opacity: 1;
}

.prod-image-btn:hover .prod-image {
  transform: scale(1.06);
}

.prod-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.prod-image.contain {
  object-fit: contain;
}

.prod-image-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* Right info */
.prod-title {
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.prod-subtitle {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
}

.prod-meta {
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  opacity: 0.9;
}

.prod-meta-label {
  font-weight: 700;
}

.prod-category-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
}

.prod-category-link:hover {
  text-decoration: underline;
}

/* Accordions */
.prod-accordions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.prod-acc {
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.prod-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prod-acc summary::-webkit-details-marker {
  display: none;
}

.prod-acc summary::after {
  content: "▾";
  font-weight: 900;
  opacity: 0.6;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.prod-acc[open] summary::after {
  transform: rotate(180deg);
}

.prod-acc-body {
  padding: 0.2rem 1rem 1rem;
}

.prod-richtext {
  line-height: 1.7;
}

.prod-muted {
  opacity: 0.75;
}

.prod-list {
  padding-left: 1.1rem;
}

.prod-kv {
  display: grid;
  gap: 0.65rem;
}

.prod-kv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
}

.prod-kv dt {
  font-weight: 800;
  opacity: 0.85;
}

.prod-kv dd {
  margin: 0;
}

/* CTA */
.prod-cta {
  margin-top: 1.25rem;
}

.prod-cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
}

.prod-cta-btn:hover {
  filter: brightness(0.95);
}

/* Modal */
.no-scroll {
  overflow: hidden;
}

.prod-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.prod-modal.is-open {
  display: block;
}

.prod-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.prod-modal-dialog {
  position: relative;
  max-width: 1600px;
  margin: 5vh auto;
  padding: 1rem;
  background: #111;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.prod-modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.prod-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}

.prod-modal-close:hover {
  opacity: 1;
}

.prod-left {
  display: grid;
  gap: 1rem; /* space between image and button */
  align-content: start;
}

/* Responsive */
@media (max-width: 1100px) {
  .prod-media {
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .prod-media {
    max-width: 360px; /* ~30% reduction */
    margin: 0 auto; /* center it */
  }
}

@media (max-width: 600px) {
  .prod-media {
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .prod-title {
    font-size: 1.8rem;
  }

  .prod-kv-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ===== Downloads rows ===== */

.prod-downloads {
  display: grid;
  gap: 0.75rem;
}

.prod-dl-heading {
  margin: 0.75rem 0 0.25rem;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 900;
}

.prod-dl-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto; /* main link left, actions right */
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

.prod-dl-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* enables ellipsis */
  text-decoration: none; /* kills underline */
  color: #111;
}

.prod-dl-main:hover .prod-dl-title {
  color: rgba(236, 29, 37);
  font-weight: 800;
}

.prod-dl-fileicon {
  color: var(--red); /* SVG uses currentColor */
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prod-dl-fileicon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.prod-dl-title {
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-dl-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.prod-dl-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  text-decoration: none; /* removes any underline */
  color: var(--red); /* makes SVG red */
  border: 1px solid rgba(236, 29, 37, 0.25);
  background: rgba(236, 29, 37, 0.06);
}

.prod-dl-action svg {
  width: 22px;
  height: 22px;
  display: block;
}

.prod-dl-action:hover {
  background: rgba(236, 29, 37, 0.12);
  border-color: rgba(236, 29, 37, 0.4);
}

/* Mobile: stack actions under title if needed */
@media (max-width: 600px) {
  .prod-dl-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .prod-dl-actions {
    justify-content: flex-start;
  }
}

/* Enquiry */

.enquiry__toggle {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 1.4rem 2rem;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.enquiry__panel {
  margin-top: 1rem;
  border: 4px solid red;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.enquiry__title {
  margin-bottom: 0.75rem;
}

.enquiry__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .enquiry__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.enquiry__field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.enquiry__field span {
  font-weight: 700;
  margin-bottom: 0;
  width: 120px;
  flex: 0 0 120px;
}

.enquiry__req {
  color: var(--red);
  margin-left: 0.2rem;
}

.enquiry__field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1rem;
  flex: 1 1 auto;
}

.enquiry__field input::selection {
  border: 2px solid red;
}

.enquiry__field input[aria-invalid="true"] {
  border-color: var(--red);
}

@media (max-width: 520px) {
  .enquiry__field {
    flex-direction: column;
    align-items: stretch;
  }
  .enquiry__field span {
    width: auto;
    flex: 0 0 auto;
  }
}

.enquiry__error {
  display: block;
  color: var(--red);
  min-height: 1.2em;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.enquiry__checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.9rem;
}

.enquiry__placeholder {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px dashed #ddd;
}

.enquiry__muted {
  margin-top: 0.35rem;
  color: #555;
  font-size: 0.98rem;
}

.enquiry__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.enquiry__submit {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 1.4rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
}

.enquiry__submit:hover {
  background: black;
  color: red;
  border: solid 2px red;
  padding: 1.4rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
}

.enquiry__submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.enquiry__cancel {
  background: transparent;
  color: #222;
  border: 1px solid #ddd;
  padding: 1.4rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
}

.enquiry__cancel:hover {
  background: red;
  color: black;
  border: 2px solid black;
}

.enquiry__status {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  display: none;
}

.enquiry__status.is-success,
.enquiry__status.is-error {
  display: block;
}

.enquiry__status.is-success {
  border: 1px solid #cfe9d5;
  background: #f2fbf4;
}

.enquiry__status.is-error {
  border: 1px solid #f3c7c7;
  background: #fff3f3;
}

/* Enquiry items (Chunk 2) */
.enquiry__items {
  margin-top: 1.2rem;
}

.enquiry__itemsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.enquiry__addItem {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2rem;
  float: none;
}

.enquiry__addItem:hover {
  color: red;
  border: 1px solid red;
}

.enquiry__itemsList {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.enquiryItem {
  position: relative;
  border: 1px solid red;
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 0.9rem 0.9rem; /* extra top padding for header */
}

.enquiry__addRow {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

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

.enquiryItem__row {
  display: grid;
  grid-template-columns: 1fr;
}

.enquiryItem__field {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.enquiryItem__field span {
  margin-bottom: 0;
  width: 110px;
  flex: 0 0 110px;
}

.enquiryItem__field select,
.enquiryItem__field input[type="number"],
.enquiryItem__field textarea {
  flex: 1 1 auto;
}

.enquiryItem__field select[aria-invalid="true"],
.enquiryItem__field input[aria-invalid="true"] {
  border-color: var(--red);
}

.enquiryItem__qty input[type="number"] {
  text-align: center;
}

.enquiryItem__qty select {
  width: 110px;
  flex: 0 0 110px;
}

.enquiryItem__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.enquiryItem__remove:hover {
  color: red;
}

.enquiryItem__productWrap.is-hidden {
  display: none;
}

.enquiryItem__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.enquiryItem__title {
  font-weight: 800;
  font-size: 1.15rem;
}

.enquiry__checkbox input[type="checkbox"] {
  accent-color: var(--red);
  transform: scale(1.35);
  transform-origin: left center;
}

/* Extras layout: thumb + notes should never collapse */
.enquiryItem__extras {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

/* Thumbnail box: fixed square, clips, and becomes positioning context */
.enquiryItem__thumbWrap {
  width: 110px; /* tweak to taste */
  height: 110px; /* must be explicit */
  border-radius: 14px;
  overflow: hidden;
  position: relative; /* KEY: gives the img an anchor */
  flex: 0 0 auto;
}

/* Force the img to be sized by the box, not by its intrinsic size */
.enquiryItem__thumb {
  position: absolute; /* KEY: removes weird layout influences */
  inset: 0; /* top/right/bottom/left: 0 */
  width: 100% !important;
  height: 100% !important;
  display: block;

  /* prevent global rules like img { max-width:100%; height:auto; } from interfering */
  max-width: none !important;
  max-height: none !important;

  object-fit: contain; /* default behaviour */
  object-position: center;
}

.enquiryItem__thumb.is-cover {
  object-fit: cover;
}

.enquiryItem__thumb.is-contain {
  object-fit: contain;
}

/* Notes label above textarea (as you requested) */
.enquiryItem__notes {
  display: block;
}

.enquiryItem__notes > span {
  display: block;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Give notes a stable size so nothing collapses */
.enquiryItem__notes textarea {
  width: 100%;
  min-height: 110px; /* drives the whole row height */
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  resize: vertical;
}

/* Customer details: label above input (better use of width) */
.enquiry__grid .enquiry__field {
  display: block;
}

.enquiry__grid .enquiry__field > span {
  display: block;
  width: auto;
  margin-bottom: 0.35rem;
}

.enquiry__grid .enquiry__field input {
  width: 100%;
}

/* Item selects: bigger + readable */
.enquiryItem__field select {
  font-size: 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  min-height: 48px;
}

/* Qty select compact but still readable */
.enquiryItem__qty select {
  width: 120px;
  min-width: 120px;
}

/* sucess */

.enquiry__successActions {
  margin-top: 1rem;
}

.enquiry__again {
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.enquiry__status.is-success {
  display: block;
}

.enquiry__body[hidden] {
  display: none;
}
