/* ============================================================
   ICE Arabia — restyled in a warm, organic food-brand look
   Palette: deep teal · cream · orange · brown
   ============================================================ */

:root {
  /* Brand colors — derived from the ICE logo (turquoise #20B0B8 + sand/gold #C0B088) */
  --teal-900: #0a3e42;   /* darkest — header, footer */
  --teal-800: #0d575c;   /* hero / training backgrounds */
  --teal-700: #107e84;   /* mid teal — accents, stat numbers */
  --teal-600: #159aa0;
  --teal-500: #20b0b8;   /* logo turquoise — bright highlights */

  --cream:    #fbf4e6;
  --cream-2:  #f3e8ce;
  --sand:     #e3d2a4;

  /* gold accent (replaces the old orange) */
  --orange:   #c9ac63;   /* gold fill — CTAs, icons, rings */
  --orange-d: #a07e2e;   /* deep gold — text accents, hovers */
  --rust:     #0d575c;

  --brown:    #574832;
  --brown-2:  #7c6a4e;
  --ink:      #1d2b2b;
  --white:    #fffdf6;

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -18px rgba(40, 30, 18, .35);
  --shadow-sm: 0 8px 22px -12px rgba(40, 30, 18, .35);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 800; font-size: .95rem; letter-spacing: .2px;
  padding: .8em 1.5em; border-radius: 100px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid {
  background: linear-gradient(160deg, #d6ba74, var(--orange));
  color: var(--teal-900); box-shadow: 0 12px 24px -12px rgba(160, 126, 46, .85);
}
.btn--solid:hover { background: linear-gradient(160deg, #cdae66, var(--orange-d)); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow {
  display: inline-block; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2.5px; font-size: .76rem; color: var(--orange-d);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--sand); }

.section { position: relative; padding: 92px 0; }
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-title {
  font-family: var(--display); font-weight: 700; color: var(--teal-800);
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.5px;
}
.section-title--light { color: var(--white); }
.section-sub { margin-top: 16px; color: var(--brown-2); font-size: 1.08rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar { background: var(--teal-900); color: #d7e6e3; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.topbar__contacts { display: flex; gap: 22px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .ic { color: var(--orange); margin-right: 5px; }
.topbar__meta { display: flex; align-items: center; gap: 18px; }
.topbar__lang { font-weight: 700; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 100px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal-800);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.header.scrolled { background: rgba(19, 63, 61, .96); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; gap: 18px; padding-block: 16px; transition: padding .3s; }
.header.scrolled .header__inner { padding-block: 10px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__logo {
  height: 48px; flex: none; display: grid; place-items: center;
  background: var(--white); border-radius: 12px; padding: 6px 12px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4);
}
.brand__logo img { height: 30px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; color: var(--white); }
.brand__text strong { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: .2px; }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--sand); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; gap: 6px; }
.nav a {
  color: #e7f0ee; font-weight: 700; font-size: .96rem; padding: 9px 14px; border-radius: 100px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.header__cta { margin-left: 8px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; isolation: isolate;
  background:
    linear-gradient(105deg, rgba(10, 62, 66, .95) 0%, rgba(13, 87, 92, .88) 42%, rgba(13, 87, 92, .60) 100%),
    radial-gradient(1100px 600px at 80% -10%, rgba(21, 154, 160, .45), transparent 60%),
    url(../assets/backgroundlandingpage.jpg) center / cover no-repeat,
    linear-gradient(165deg, var(--teal-800) 0%, var(--teal-900) 100%);
  color: var(--white);
  padding: 110px 0 150px;
  overflow: hidden;
}
.hero__bg-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__title {
  font-family: var(--display); font-weight: 900; letter-spacing: -1px;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.hero__lead { margin-top: 22px; font-size: 1.16rem; max-width: 600px; color: #e0ece9; }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* floating product circles */
.hero__floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute; border-radius: 50%; overflow: hidden;
  background: var(--white);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .55),
              0 0 0 6px rgba(251, 243, 226, .18);
  display: grid; place-items: center;
  animation: bob 7s ease-in-out infinite;
}
.floater img { width: 100%; height: 100%; object-fit: cover; }
.floater--1 { width: 150px; height: 150px; top: 14%; right: 6%; animation-delay: 0s; }
.floater--2 { width: 110px; height: 110px; top: 52%; right: 22%; animation-delay: .9s; }
.floater--3 { width: 92px;  height: 92px;  top: 70%; right: 7%;  animation-delay: 1.8s; }
.floater--4 { width: 124px; height: 124px; top: 8%;  right: 30%; animation-delay: 1.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ============================================================
   TORN PAPER DIVIDERS
   ============================================================ */
.torn { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 3; }
.torn svg { width: 100%; height: 70px; display: block; }
.torn--bottom { bottom: -1px; }
.torn--top { top: -1px; }
.torn--bottom svg path { fill: var(--cream); }      /* hero -> cream */
.torn--cream svg path { fill: var(--cream-2); }      /* about -> products band */
.torn--top svg path { fill: var(--cream-2); }        /* products band -> training top */
.torn--teal-down svg path { fill: var(--cream); }    /* training -> brands cream */
.torn--footer svg path { fill: var(--cream); }       /* contact -> footer */

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--cream); padding: 18px 0 40px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 34px 20px; box-shadow: var(--shadow);
  margin-top: -46px; position: relative; z-index: 5;
  border: 1px solid rgba(91, 70, 54, .08);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(91, 70, 54, .14); }
.stat__num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--teal-700); line-height: 1; }
.stat__label { display: block; margin-top: 8px; font-weight: 700; font-size: .92rem; color: var(--brown-2); }

/* ============================================================
   ABOUT / FEATURES
   ============================================================ */
.about { background: var(--cream); padding-bottom: 130px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--white); border-radius: var(--radius-lg); padding: 38px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.8rem; margin-bottom: 20px;
  background: color-mix(in srgb, var(--c) 16%, white);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 30%, white);
}
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--teal-800); margin-bottom: 8px; }
.feature p { color: var(--brown-2); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: var(--cream-2); padding-top: 70px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__img {
  aspect-ratio: 16 / 11; position: relative; overflow: hidden;
  background: var(--cream-2); display: grid; place-items: center;
  border-bottom: 1px solid rgba(91, 70, 54, .06);
}
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__body { padding: 24px 26px 28px; }
.product__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--teal-800); margin-bottom: 8px; }
.product__body p { color: var(--brown-2); font-size: .98rem; }

.product--cta { background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #fff; align-items: center; text-align: center; justify-content: center; }
.product__body--cta { padding: 40px 30px; }
.product--cta h3 { font-family: var(--display); color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.product--cta p { color: #d5e6e3; margin-bottom: 22px; }

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.featured { background: var(--cream-2); padding-top: 30px; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fproduct {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-align: center;
}
.fproduct:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fproduct__img {
  aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 18px;
  border-bottom: 1px solid rgba(91, 70, 54, .06);
}
.fproduct__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.fproduct:hover .fproduct__img img { transform: scale(1.05); }
.fproduct h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--teal-800);
  padding: 16px 14px 20px; line-height: 1.25;
}
.featured__more { text-align: center; margin-top: 44px; }

/* ============================================================
   TRAINING
   ============================================================ */
.training {
  position: relative;
  background:
    radial-gradient(900px 500px at 10% 0%, var(--teal-600), transparent 55%),
    linear-gradient(160deg, var(--teal-800), var(--teal-900));
  color: var(--white); padding: 130px 0;
}
.training__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.training__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
  background: var(--teal-900);
  outline: 6px solid rgba(255, 255, 255, .12); outline-offset: -6px;
}
.training__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.training__text p { color: #dceae7; font-size: 1.08rem; }
.ticks { margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 700; color: #eaf3f1; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px;
  display: grid; place-items: center; background: var(--orange); color: var(--teal-900); border-radius: 50%; font-size: .8rem; font-weight: 800;
}

/* ============================================================
   BRANDS
   ============================================================ */
.brands { background: var(--cream); }
.brand-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.brand-logo {
  background: var(--white); border-radius: var(--radius); aspect-ratio: 3 / 2;
  display: grid; place-items: center; padding: 22px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .08);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.brand-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.brand-logo img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  opacity: 1; transition: transform .3s;
}
.brand-logo--extra { display: none; }
.brand-logos.is-expanded .brand-logo--extra { display: grid; animation: fadeUp .45s var(--ease) both; }
.brands__more-wrap { text-align: center; margin-top: 30px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cream); padding-bottom: 150px; }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.loc {
  background: var(--white); border-radius: var(--radius); padding: 26px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
  border-left: 6px solid var(--orange);
}
.loc h3 { font-family: var(--display); font-weight: 600; color: var(--teal-800); font-size: 1.3rem; margin-bottom: 6px; }
.loc p { color: var(--brown-2); font-size: .96rem; }

.contact__panel {
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900)); color: #fff;
  border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow);
}
.contact__panel h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 20px; }
.contact__list { display: grid; gap: 14px; margin-bottom: 26px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.contact__list .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--orange); color: var(--teal-900); border-radius: 50%; }
.contact__list a { color: #eaf3f1; }
.contact__list a:hover { color: #fff; }
.contact__panel .btn--ghost { margin-top: 12px; }

/* Locations */
.locations { background: var(--white); }
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
a.loc { display: block; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.loc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.loc__dir { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--teal-700); font-weight: 800; font-size: .9rem; }
.loc__dir svg { width: 15px; height: 15px; }
a.loc:hover .loc__dir { color: var(--teal-800); }
.contact__single { max-width: 620px; margin: 0 auto; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; background: var(--teal-900); color: #c8dad7; padding-top: 90px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.brand--light .brand__text strong { color: #fff; }
.footer__brand p { margin: 18px 0; max-width: 320px; font-size: .96rem; }
.footer__col h4 { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.footer__col a, .footer__cities { display: block; padding: 5px 0; color: #b6cdc9; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__cities { margin-top: 8px; font-size: .85rem; color: #8fb0ab; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; font-weight: 800; transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--orange); color: var(--teal-900); transform: translateY(-3px); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 14px; padding-block: 20px; font-size: .85rem; color: #8fb0ab; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px;
    background: var(--teal-900); padding: 14px 22px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; }

  .training__inner { grid-template-columns: 1fr; gap: 34px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .cards-3, .product-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .stat + .stat::before { display: none; }
  .topbar__meta span { display: none; }
  .topbar__contacts { gap: 14px; font-size: .8rem; }
  .hero { padding: 76px 0 110px; }
  .hero__floaters { opacity: .4; }
  .contact__cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .hero__floaters { display: none; }                 /* cleaner hero on phones */
  .hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); letter-spacing: -.4px; }
  .hero__lead { font-size: 1.05rem; }
  .section-sub { font-size: 1rem; }
  .topbar__contacts a:nth-child(2) { display: none; } /* hide long email; phone + lang stay */
  .qty__btn { width: 40px; height: 40px; }            /* bigger tap targets */
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}

@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }    /* keep 2×2, not a tall single column */
  .brand__text em { display: none; }
  .brand-logos { grid-template-columns: repeat(2, 1fr); }
  .container { padding-inline: 16px; }
  .brand__logo { height: 42px; padding: 5px 9px; }
  .brand__logo img { height: 26px; }
  .brand__text strong { font-size: 1.04rem; }
  .btn--lg { padding: .85em 1.4em; font-size: .98rem; }
  .hero__actions { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floater { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   CART ICON + BADGE
   ============================================================ */
.header--solid { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55); }
.nav a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
.cart-link {
  position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s;
}
.cart-link:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--orange); color: var(--teal-900); border-radius: 100px;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .4);
}
.cart-count--empty { display: none; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero {
  position: relative; isolation: isolate; color: var(--white); overflow: hidden;
  background: radial-gradient(900px 420px at 80% -20%, var(--teal-600), transparent 60%),
              linear-gradient(165deg, var(--teal-800), var(--teal-900));
  padding: 64px 0 92px;
}
.page-hero--sm { padding: 54px 0 84px; }
.page-hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px); background-size: 22px 22px;
}
.page-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.06; }
.page-hero p { max-width: 660px; margin-top: 14px; color: #dceae7; font-size: 1.08rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--sand); margin-bottom: 16px; font-weight: 700; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .7; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog { background: var(--cream); padding: 46px 0 100px; }
.catalog__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.catalog__tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  font-family: var(--body); font-weight: 800; font-size: .9rem; padding: 9px 16px; border-radius: 100px;
  border: 2px solid var(--sand); background: transparent; color: var(--brown); cursor: pointer; transition: all .2s var(--ease);
}
.tab span { opacity: .55; font-size: .82rem; margin-left: 2px; }
.tab:hover { border-color: var(--teal-600); color: var(--teal-800); }
.tab.is-active { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.tab.is-active span { opacity: .85; }
.catalog__search { position: relative; display: flex; align-items: center; }
.catalog__search svg { position: absolute; left: 14px; color: var(--brown-2); }
.catalog__search input {
  font: inherit; padding: 11px 16px 11px 40px; border-radius: 100px; border: 2px solid var(--sand);
  background: #fff; color: var(--ink); min-width: 240px;
}
.catalog__search input:focus { outline: none; border-color: var(--teal-600); }
.catalog__count { color: var(--brown-2); font-weight: 700; font-size: .92rem; margin: 18px 0 22px; }
.catalog__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.catalog__empty { text-align: center; padding: 70px 0; color: var(--brown-2); font-weight: 700; }

.pcard {
  background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); cursor: pointer;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.pcard__img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid rgba(91, 70, 54, .06); position: relative; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.img-fallback { opacity: .22; padding: 16%; }

/* hover overlay — reveals the product description over the image */
.pcard__overlay {
  position: absolute; inset: 0; padding: 18px;
  background: linear-gradient(to top, rgba(10, 62, 66, .95), rgba(13, 87, 92, .85));
  color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: opacity .28s var(--ease), transform .28s var(--ease);
  pointer-events: none;
}
.pcard:hover .pcard__overlay, .pcard:focus-visible .pcard__overlay { opacity: 1; transform: none; }
.pcard__ovspecs { display: grid; gap: 5px; font-size: .85rem; }
.pcard__ovspecs li { color: #eaf3f1; }
.pcard__hint { margin-top: 8px; font-weight: 800; font-size: .7rem; letter-spacing: .6px; text-transform: uppercase; color: var(--sand); }
.pcard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__cat { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--orange-d); }
.pcard__body h3 { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--teal-800); line-height: 1.25; }
.pcard__specs { font-size: .8rem; color: var(--brown-2); display: grid; gap: 2px; margin: 2px 0 6px; }
.pcard__add { margin-top: auto; }
.pcard__add.is-added { background: var(--teal-700); color: #fff; }

/* product detail modal */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 40, 42, .62); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; max-width: 660px; width: calc(100% - 40px); margin: 9vh auto;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; animation: modalIn .3s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__img { background: #fff; display: grid; place-items: center; padding: 26px; }
.modal__img img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
.modal__body { padding: 30px; display: flex; flex-direction: column; gap: 10px; max-height: 88vh; overflow-y: auto; }
.modal__body .pcard__cat { font-size: .72rem; }
.modal__body h3 { font-family: var(--display); font-weight: 600; color: var(--teal-800); font-size: 1.6rem; line-height: 1.2; }
.modal__specs { display: grid; gap: 9px; margin: 8px 0 20px; }
.modal__specs li { color: var(--brown); border-bottom: 1px solid rgba(91, 70, 54, .1); padding-bottom: 9px; font-size: .96rem; font-weight: 600; }
.modal__specs li:last-child { border-bottom: 0; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--teal-800); font-size: 1.05rem; cursor: pointer; box-shadow: var(--shadow-sm);
}
.modal__close:hover { background: #fff; }
@media (max-width: 620px) {
  .modal__dialog { grid-template-columns: 1fr; margin: 6vh auto; max-height: 86vh; overflow: auto; }
  .modal__img { padding: 18px; }
  .modal__img img { max-height: 190px; }
  .modal__body { padding: 22px; }
  .modal__body h3 { font-size: 1.4rem; }
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--teal-900); color: #fff; padding: 12px 24px; border-radius: 100px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   CHECKOUT / QUOTE REQUEST
   ============================================================ */
.checkout { background: var(--cream); padding: 46px 0 110px; }
.checkout__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.checkout__cart, .checkout__panel {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(91, 70, 54, .07);
}
.checkout__cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.checkout__cart-head h2 { font-family: var(--display); font-weight: 600; color: var(--teal-800); font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.pill { background: var(--teal-800); color: #fff; font-size: .8rem; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 100px; display: inline-grid; place-items: center; font-family: var(--body); font-weight: 800; }
.link-btn { background: none; border: 0; color: var(--orange-d); font-weight: 800; cursor: pointer; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }

.ckitem { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(91, 70, 54, .1); }
.ckitem__img { width: 64px; height: 64px; background: #fff; border-radius: 12px; border: 1px solid rgba(91, 70, 54, .08); display: grid; place-items: center; padding: 6px; }
.ckitem__img img { width: 100%; height: 100%; object-fit: contain; }
.ckitem__info h3 { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--teal-800); line-height: 1.2; }
.ckitem__cat { font-size: .78rem; color: var(--brown-2); }
.qty { display: flex; align-items: center; border: 2px solid var(--sand); border-radius: 100px; overflow: hidden; }
.qty__btn { width: 32px; height: 34px; border: 0; background: transparent; font-size: 1.15rem; font-weight: 800; color: var(--teal-800); cursor: pointer; line-height: 1; }
.qty__btn:hover { background: var(--cream-2); }
.qty__val { width: 40px; text-align: center; border: 0; font: inherit; font-weight: 800; background: transparent; color: var(--ink); }
.qty__val:focus { outline: none; }
.ckitem__rm { background: none; border: 0; color: var(--brown-2); font-size: 1rem; cursor: pointer; padding: 6px; border-radius: 8px; }
.ckitem__rm:hover { color: #c0492f; background: rgba(192, 73, 47, .08); }
.checkout__empty { text-align: center; padding: 34px 0 10px; color: var(--brown-2); }
.checkout__empty p { margin-bottom: 16px; font-weight: 700; }

.checkout__panel { position: sticky; top: 88px; }
.checkout__panel h2 { font-family: var(--display); font-weight: 600; color: var(--teal-800); font-size: 1.4rem; margin-bottom: 16px; }
.checkout__panel.is-disabled { opacity: .5; pointer-events: none; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .85rem; color: var(--brown); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 14px; border: 2px solid var(--sand); border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout__note { font-size: .82rem; color: var(--brown-2); margin: 4px 0 14px; }
.checkout__err { color: #c0492f; font-weight: 700; margin-top: 12px; font-size: .9rem; }

.btn--wa { background: #25d366; color: #073a26; }
.btn--wa:hover { background: #1fbe5a; color: #042; }
.btn--ghost-d { background: transparent; border: 2px solid var(--teal-700); color: var(--teal-800); margin-top: 10px; }
.btn--ghost-d:hover { background: var(--cream-2); }

/* ---- responsive: catalog + checkout ---- */
@media (max-width: 1040px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 940px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__panel { position: static; }
}
@media (max-width: 720px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .catalog__toolbar { flex-direction: column; align-items: stretch; }
  .catalog__search input { width: 100%; }
  .ckitem { grid-template-columns: 56px 1fr auto; grid-template-areas: "img info rm" "img qty qty"; row-gap: 10px; }
  .ckitem__img { grid-area: img; width: 56px; height: 56px; }
  .ckitem__info { grid-area: info; }
  .ckitem .qty { grid-area: qty; justify-self: start; }
  .ckitem__rm { grid-area: rm; align-self: start; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .catalog__grid { grid-template-columns: 1fr; }
}
