/* Fikile Solutions - site styles (all public pages).
   Rules that only apply to one page are prefixed with its body class,
   e.g. body.page-contact. The admin dashboard uses admin.css. */

:root {
  --brand: #1497b3;
  --brand-dark: #0f7a92;
  --text: #1a1a1a;
  --muted: #000;
  --border: #d7e1e5;
  --bg: #ffffff;
  --card: #ffffff;
}

/* contact page uses its own value */
body.page-contact {
  --muted: #5b6770;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-links {
  display: flex;
  align-items: center;
}

.top-links a {
  color: #fff;
  text-decoration: none;
  padding: 2px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}

.top-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.top-links a:first-child {
  padding-left: 0;
}

.top-links a:last-child {
  border-right: none;
}

.top-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--brand-dark);
  color: #fff;
}

.social-links svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  /* 1fr | menu | 1fr keeps the main menu centred on the page */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}

.main-nav {
  grid-column: 2;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: #c5ced3;
}

.cart-link {
  color: var(--text);
  display: flex;
  transition: color 0.2s;
}

.cart-link:hover {
  color: var(--brand);
}

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}

.search-toggle:hover {
  color: var(--brand);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  display: block;
}

.search-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.search-panel.open {
  display: block;
}

.search-panel form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--brand);
}

.search-panel button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 4px;
  padding: 0 20px;
  cursor: pointer;
}

.search-panel button:hover {
  background: var(--brand-dark);
}

.logo-name {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-label {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 2.2;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--brand);
  display: block;
}

@media (max-width: 900px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-actions {
    order: 1;
    margin-left: auto;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    order: 2;
    margin-left: 8px;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    padding-top: 12px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    height: auto;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .top-bar {
    font-size: 13px;
  }

  .top-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .top-links a {
    padding: 0;
    border-right: none;
  }

  .brand-label {
    font-size: 0.95rem;
    margin-left: 12px;
    padding-left: 12px;
  }
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  min-height: 200px;
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  /* the same black overlay on every slide: a band along the bottom and
     shading behind the text on the left (clear top-right), then the photo */
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0px, rgba(0, 0, 0, 0.5) 30px, rgba(0, 0, 0, 0) 80px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 42%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0) 64%),
    var(--photo);
  background-size: cover;
  background-position: center 30%;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-1 {
  --photo: url("img/slide1.jpeg");
}

.slide-2 {
  --photo: url("img/slide2.jpeg");
}

.slide-3 {
  --photo: url("img/slide3.jpeg");
}

@media (max-width: 700px) {

  /* phones and small tablets: the text spans the slide, so shade all of it */
  .slide {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), var(--photo);
  }
}

.slide-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.slide-content>* {
  max-width: 440px;
}

/* slanted tag */
.slide-label {
  --slant: 8px;
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 22px 6px 18px;
  margin-bottom: 14px;
}

.slide-label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.slide h1,
.slide h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.slide p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

.slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn {
  --cut: 12px;
  /* size of the cut-off top-right corner */
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px 12px 24px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero-btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-btn.outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

/* the clip removes the border at the corner, so draw it along the cut */
.hero-btn.outline::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(100% - var(--cut) + 1px);
  /* + the 1px border */
  width: calc(var(--cut) * 1.4142 + 1px);
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: 0 0;
  transform: rotate(45deg);
}

.hero-btn.outline:hover::after {
  background: #fff;
}

/* dots with the arrows just below them: right side, centred */
.hero-side {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.hero-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(20, 151, 179, 0.5);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.hero-dot:hover {
  background: rgba(20, 151, 179, 0.85);
}

.hero-dot.active {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 151, 179, 0.35);
}

/* nudged lower without moving the dots */
.hero-nav {
  display: flex;
  gap: 6px;
  position: relative;
  top: 24px;
}

.hero-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero {
    height: 460px;
  }

  .slide-content {
    padding: 0 24px;
  }

  .slide h1,
  .slide h2 {
    font-size: 32px;
  }

  .slide p {
    font-size: 13px;
  }

  .hero-side {
    right: 16px;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

@media (max-width: 700px) {

  /* narrow screens: stack the arrows so they don't cover the slide text */
  .hero-nav {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    height: 440px;
  }

  .slide-content {
    padding: 0 56px 0 16px;
  }

  .slide h1,
  .slide h2 {
    font-size: 27px;
  }
}

/* ---------- Home: about ---------- */
.home-about {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* vertical blue line down the left, with a gap before the photo */
.home-about-image {
  position: relative;
  padding-left: 34px;
}

.home-about-image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}

.home-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

:where(body.page-index) .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.home-about h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.home-about p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}

:where(body.page-index) .about-points {
  list-style: none;
  margin-bottom: 26px;
}

:where(body.page-index) .about-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* small teal square, centred on the first line of text */
:where(body.page-index) .about-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.cut-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  padding: 12px 28px 12px 24px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s;
}

.cut-btn:hover {
  background: var(--brand-dark);
}

.btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.cut-btn:hover .btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 820px) {
  .home-about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-about-image {
    padding-left: 20px;
  }
}

/* ---------- Home: services ---------- */
.home-services {
  margin-bottom: 80px;
}

/* dark band; the cards below overlap its lower edge */
.services-band {
  /* blue on the left, darkening towards black on the right */
  background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 40%, #0c5a6b 72%, #0a1a1f 100%);
  color: #fff;
  padding: 64px 20px 150px;
}

.services-intro {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.services-intro h2 {
  max-width: 560px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
}

.explore-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.explore-link span {
  transition: transform 0.2s;
}

.explore-link:hover {
  text-decoration: underline;
}

.explore-link:hover span {
  transform: translateX(4px);
}

.service-cards {
  position: relative;
  max-width: 1100px;
  margin: -110px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  box-sizing: content-box;
}

.service-card {
  display: block;
  background: #0f7a92;
  border: 1px solid #e3e8ea;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* placeholder shows until the photo exists; the img removes itself if missing */
.service-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.service-card-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.service-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--brand);
}

@media (max-width: 900px) {
  .services-intro {
    flex-direction: column;
    gap: 16px;
  }

  .services-intro h2 {
    font-size: 24px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-band {
    padding: 44px 16px 130px;
  }

  .services-intro h2 {
    font-size: 21px;
  }

  .service-cards {
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 20px;
  }
}

/* ---------- Home: our solutions (photo gallery) ---------- */
.home-solutions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
  box-sizing: content-box;
}

.solutions-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.solutions-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.solutions-head p {
  font-size: 13px;
  color: var(--muted);
}

/* mix of big (2x2), tall (1x2) and wide (2x1) tiles; "dense" fills any gaps */
.solutions-gallery {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #eef2f3;
  cursor: zoom-in;
  font: inherit;
}

.gallery-tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.wide {
  grid-column: span 2;
}

.gallery-tile.tall {
  grid-row: span 2;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.06);
}

.gallery-tile:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* small vertical blue bar before each title */
.gallery-caption::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.12em;
  background: var(--brand);
}

/* small zoom icon, shown on hover */
.gallery-tile::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* full-screen viewer */
.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: transparent;
}

:where(body.page-index) .lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  text-align: center;
}

.lightbox-figure img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--brand-dark);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.lightbox.single .lightbox-nav,
.lightbox.single .lightbox-counter {
  display: none;
}

@media (max-width: 820px) {
  .solutions-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 125px;
  }

  .solutions-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .home-solutions {
    padding: 0 16px 60px;
  }

  .solutions-gallery {
    grid-auto-rows: 100px;
    gap: 10px;
  }

  .gallery-caption {
    font-size: 13px;
    padding: 30px 12px 10px;
  }

  .lightbox-figure img {
    max-width: 100vw;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}

/* ---------- Home: partners ---------- */
.home-partners {
  background: #fafafaff;
  padding: 52px 20px;
}

.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.partners-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.partners-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.partner-logos {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-logo {
  height: 120px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 820px) {
  .partners-head h2 {
    font-size: 26px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-partners {
    padding: 56px 16px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partner-logo {
    height: 96px;
  }
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  min-width: 0;
  /* lets cards shrink inside narrow grid columns */
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #c5d3d8;
}

.product-card:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

.product-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-body h3 a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* the name link covers the whole card, making all of it clickable */
.product-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  /* price and button stack when the card is very narrow */
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
}

.add-to-cart-btn {
  position: relative;
  z-index: 1;
  /* sits above the card-wide product link */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart-btn:hover {
  background: var(--brand-dark);
}

.add-to-cart-btn.added {
  background: #1e8e5a;
}

.add-to-cart-btn:disabled {
  background: #e3e9eb;
  color: #6f7c82;
  cursor: default;
}

.add-to-cart-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-chip {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tag-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.shop-message {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 48px 0;
}

.shop-message a {
  color: var(--brand);
}

/* ---------- Home: our products ---------- */
.home-products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px 80px;
  box-sizing: content-box;
}

.home-products[hidden] {
  display: none;
}

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.products-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.view-all-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.view-all-link span {
  transition: transform 0.2s;
}

.view-all-link:hover {
  text-decoration: underline;
}

.view-all-link:hover span {
  transform: translateX(4px);
}

.home-products .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .home-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .home-products {
    padding: 56px 16px 64px;
  }

  .products-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products-head h2 {
    font-size: 26px;
  }

  .home-products .product-grid {
    gap: 12px;
  }

  .home-products .product-body {
    padding: 12px;
  }
}

/* ---------- Home: newsletter ---------- */
.home-newsletter {
  background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 55%, #0c5a6b 100%);
  color: #fff;
  padding: 56px 20px;
}

.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.newsletter-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-newsletter h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.home-newsletter p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-form .newsletter-row {
  display: flex;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: none;
  background: #fff;
  color: var(--text);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: inset 0 0 0 2px #000;
}

.newsletter-form button {
  flex-shrink: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: none;
  padding: 0 28px 0 24px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #1f2a2e;
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: default;
}

/* spam trap: hidden from people, visible to bots */
.newsletter-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-note {
  font-size: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
}

.newsletter-message.success {
  background: rgba(255, 255, 255, 0.95);
  color: #1e6b47;
}

.newsletter-message.error {
  background: rgba(255, 255, 255, 0.95);
  color: #c0392b;
}

@media (max-width: 820px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .home-newsletter {
    padding: 44px 16px;
  }

  .newsletter-intro {
    flex-direction: column;
    gap: 14px;
  }

  .newsletter-form .newsletter-row {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form button {
    padding: 14px 24px;
  }
}

/* ---------- Cart count and pop-up ---------- */
.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 40px);
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cart-toast.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cart-toast a {
  color: #7fd3e6;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: #c9d6db;
  font-size: 13px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1.2fr;
  gap: 32px;
}

.footer-logo {
  display: block;
  width: fit-content;
}

/* Logo is black + teal; invert + hue-rotate turns the black white and keeps the teal */
.footer-logo img {
  width: 110px;
  height: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}

.site-footer h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #c9d6db;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: var(--brand);
}

.site-footer .footer-follow {
  font-size: 12px;
  margin: 10px 0 6px;
}

.footer-social {
  display: flex;
  gap: 6px;
}

.footer-social a {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--brand-dark);
}

.footer-social svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.footer-products li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #5b6770;
  stroke-width: 1.6;
}

.product-name {
  display: block;
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
}

.product-link {
  font-size: 12px;
}

.site-footer .product-link {
  color: var(--brand);
}

.site-footer .product-link:hover {
  color: #fff;
}

.footer-product-price {
  display: block;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
}

.footer-products-empty {
  color: #8fa3ab;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 12px;
  color: #ffffff;
}

@media (max-width: 820px) {

  /* ---------- Responsive ---------- */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .page-content {
    padding: 32px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 16px 24px;
  }

  .footer-bottom-inner {
    padding: 14px 16px;
  }
}

/* ---------- Breadcrumb ---------- */
/* photo background with a black overlay (darker on the left, behind the text) */
.page-banner {
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.863);
  background-image: url("img/breadcrumb.jpeg");
  background-size: cover;
  background-position: center 60%;
  color: #fff;
}

.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 74px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.breadcrumb li+li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 1px 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.page-banner h1 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-banner h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--brand);
  margin-top: 8px;
}

/* ---------- About intro ---------- */
.about-intro {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  aspect-ratio: 4 / 3;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa7ad;
  font-size: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

:where(body.page-about) .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

:where(body.page-about) .about-points {
  list-style: none;
  margin-top: 4px;
}

:where(body.page-about) .about-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

/* small teal square, centred on the first line of text */
:where(body.page-about) .about-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

/* ---------- Milestones ---------- */
.milestones {
  max-width: 960px;
  margin: 72px auto 0;
}

.milestones h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}

.milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.milestone-card {
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 28px;
}

.milestone-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

:where(body.page-about) .btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  padding: 12px 22px;
  transition: background 0.2s;
}

:where(body.page-about) .btn:hover {
  background: var(--brand-dark);
}

@media (max-width: 820px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .milestones {
    margin-top: 48px;
  }
}

@media (max-width: 520px) {
  .page-banner-inner {
    padding: 48px 16px 52px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }
}

/* ---------- Services ---------- */
.services-list {
  max-width: 960px;
  margin: 0 auto;
}

.service {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service:first-child {
  padding-top: 0;
}

.service:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Placeholder shows until the photo file exists; the img removes itself if missing */
.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9aa7ad;
  font-size: 12px;
  overflow: hidden;
}

.service-image svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.service-points {
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* small teal square, centred on the first line of text */
.service-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

@media (max-width: 820px) {
  .service {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Shop layout and sidebar ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.shop-layout.is-empty {
  grid-template-columns: 1fr;
}

.shop-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.sidebar-search,
.price-inputs input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.sidebar-search:focus,
.price-inputs input:focus {
  border-color: var(--brand);
}

.category-list {
  list-style: none;
}

.category-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}

.category-list button:hover,
.category-list button.active {
  color: var(--brand);
}

.category-list button.active {
  font-weight: 600;
}

.category-count {
  font-size: 11px;
  font-weight: 500;
  color: #6f7c82;
  background: #f1f5f6;
  padding: 1px 8px;
}

.category-list button.active .category-count {
  background: var(--brand);
  color: #fff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.clear-filters {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.shop-count {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sort select {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.filters-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-sidebar {
    display: none;
    position: static;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--border);
  }

  .shop-sidebar.open {
    display: block;
  }

  .filters-toggle {
    display: inline-flex;
  }
}

/* ---------- Product page ---------- */
.product-detail {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-image {
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-image svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.detail-info .product-category {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 8px;
}

.detail-info .product-category:hover {
  text-decoration: underline;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.stock-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  margin-bottom: 20px;
}

.stock-status.in {
  background: #e6f5ee;
  color: #1e8e5a;
}

.stock-status.out {
  background: #fdf1f0;
  color: #c0392b;
}

.detail-desc {
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
  margin-bottom: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

:where(body.page-product) .btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  text-decoration: none;
  padding: 11px 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

:where(body.page-product) .btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Quantity picker ---------- */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: #fff;
}

.qty-btn {
  width: 34px;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.qty-btn:hover {
  color: var(--brand);
  background: #f5f9fa;
}

.qty input {
  width: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input:focus {
  outline: none;
  background: #f5f9fa;
}

.detail-buy {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.detail-buy .qty-btn {
  width: 40px;
}

.detail-buy .add-to-cart-btn {
  font-size: 14px;
  padding: 12px 24px;
}

/* ---------- Gallery ---------- */
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  border: 1px solid var(--border);
  overflow: hidden;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s;
}

.gallery-nav:hover {
  background: var(--brand);
  color: #fff;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  background: #f5f9fa;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--brand);
  opacity: 1;
}

:where(body.page-product) .lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-inner img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.lightbox .gallery-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}

.lightbox .gallery-nav:hover {
  background: var(--brand);
}

.lightbox .gallery-nav.prev {
  left: 20px;
}

.lightbox .gallery-nav.next {
  right: 20px;
}

.lightbox .gallery-counter {
  right: auto;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .lightbox-inner img {
    max-width: 100vw;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related {
  max-width: 1000px;
  margin: 64px auto 0;
}

.related h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 820px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto 110px 28px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-child {
  border-top: 1px solid var(--border);
}

.cart-item.is-unavailable .cart-thumb,
.cart-item.is-unavailable .cart-line-total {
  opacity: 0.45;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-thumb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cart-name:hover {
  color: var(--brand);
}

.cart-unit {
  font-size: 13px;
  color: var(--muted);
}

.cart-warning {
  font-size: 12px;
  color: #c0392b;
}

.cart-line-total {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.cart-remove {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #8a969b;
  cursor: pointer;
}

.cart-remove:hover {
  color: #c0392b;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}

.cart-actions a {
  color: var(--brand);
  text-decoration: none;
}

.cart-actions a:hover {
  text-decoration: underline;
}

.link-btn {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-summary {
  position: sticky;
  top: 20px;
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 24px;
}

.cart-summary h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
}

.summary-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 18px;
}

.order-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.order-form label {
  font-size: 12px;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--brand);
}

.order-form textarea {
  min-height: 70px;
  resize: vertical;
}

.btn-block {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-block:hover {
  background: var(--brand-dark);
}

.btn-block:disabled {
  background: #c5ced3;
  cursor: default;
}

.order-sent {
  margin-top: 14px;
  font-size: 13px;
  background: #e6f5ee;
  color: #1e6b47;
  padding: 12px;
}

.order-sent .link-btn {
  display: block;
  margin-top: 8px;
  color: #1e6b47;
}

.cart-empty {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.cart-empty p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty  total";
    gap: 8px 12px;
  }

  .cart-thumb {
    grid-area: thumb;
    width: 60px;
    height: 60px;
  }

  .cart-info {
    grid-area: info;
  }

  .cart-item .qty {
    grid-area: qty;
    justify-self: start;
  }

  .cart-line-total {
    grid-area: total;
    align-self: center;
  }

  .cart-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
  }
}

.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  background: #f4fafa;
  padding: 48px;
}

/* ---------- Contact details ---------- */
.contact-info h2,
.contact-form h2 {
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.info-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  margin-bottom: 24px;
}

.info-item h3 {
  grid-column: 2;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-row {
  display: contents;
}

.info-row svg {
  grid-column: 1;
  width: 20px;
  height: 20px;
  align-self: center;
  fill: var(--text);
}

.info-row span,
.info-row a {
  grid-column: 2;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.info-row a:hover {
  color: var(--brand);
}

.info-lines {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

/* ---------- Form ---------- */
.contact-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

:where(body.page-contact) .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:where(body.page-contact) .field.full {
  grid-column: 1 / -1;
}

:where(body.page-contact) .field label {
  font-size: 12px;
  font-weight: 500;
  color: #000;
}

:where(body.page-contact) .field input,
:where(body.page-contact) .field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

:where(body.page-contact) .field textarea {
  min-height: 110px;
  resize: vertical;
}

:where(body.page-contact) .field input:focus,
:where(body.page-contact) .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 151, 179, 0.15);
}

.submit-btn {
  grid-column: 1 / -1;
  justify-self: start;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
}

.submit-btn:hover {
  background: var(--brand-dark);
}

@media (max-width: 820px) {

  /* ---------- Responsive ---------- */
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 32px 16px;
  }

  .contact-form form {
    grid-template-columns: 1fr;
  }
}

/* ---------- WhatsApp button (added by js/whatsapp.js) ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 9px;
  background: #25d366;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #0f7a92;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* soft pulse to draw the eye */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: whatsapp-pulse 2.4s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before {
    animation: none;
  }
}

/* keep the cart's "Added to cart" pop-up above the button */
.cart-toast {
  bottom: 72px;
}

@media (max-width: 520px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    font-size: 12px;
    padding: 6px 12px 6px 8px;
  }

  .whatsapp-float svg {
    width: 18px;
    height: 18px;
  }

  .cart-toast {
    bottom: 62px;
  }
}

/* ---------- Touch screens: bigger tap areas for small controls ----------
   Only on phones/tablets (coarse pointer). Invisible, so nothing looks different;
   each small icon or dot just becomes at least ~24px to tap. */
@media (pointer: coarse) {

  .social-links a,
  .footer-social a,
  .hero-dot {
    position: relative;
  }

  .social-links a::after,
  .footer-social a::after {
    content: "";
    position: absolute;
    inset: -5px;
  }

  .hero-dot::after {
    content: "";
    position: absolute;
    inset: -7px;
  }
}