/* ============================================================
   JEHAN HOLDING GROUP — Main Stylesheet
   Edit colours in the :root block below to restyle the site.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --green-dark:   #3D5A34;
  --green-mid:    #5C7A48;
  --green-light:  #8CAE78;
  --gold:         #C49A1A;
  --gold-hover:   #A07D10;
  --bg:           #F2F1EE;
  --bg-white:     #FFFFFF;
  --text-dark:    #1E1E1E;
  --text-mid:     #444444;
  --text-light:   #888888;
  --border:       #DCDBD7;
  --card-shadow:  0 2px 12px rgba(0,0,0,0.07);
  --nav-height:   68px;
  --radius:       4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.65;
}

/* RTL support */
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Barlow', Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

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

.arrow-icon { font-size: 1rem; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 24px;
}

.navbar__logo { flex-shrink: 0; }
.navbar__logo img { height: 44px; width: auto; }

.navbar__search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.navbar__search input {
  width: 100%;
  padding: 8px 40px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-dark);
}
.navbar__search input:focus { outline: none; border-color: var(--green-mid); }
.navbar__search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

.navbar__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.navbar__actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-mid);
  gap: 2px;
}
.navbar__actions a svg { width: 20px; height: 20px; }
.basket-badge {
  position: relative;
}
.basket-badge .count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--green-mid);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--green-mid); color: var(--green-mid); }

/* ── Sub-navigation ─────────────────────────────────────────── */
.subnav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.subnav__inner {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 0;
}
.subnav__inner a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.subnav__inner a:hover,
.subnav__inner a.active {
  color: var(--text-dark);
  border-bottom-color: var(--gold);
}

/* ── Hero ───────────────────────────────────────────────────── */
/* ── Keyframe Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 460px;
  gap: 0;
  padding-block: 60px;
}
.hero__content {
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}
.hero__eyebrow { animation: fadeUp 0.6s ease 0.1s both; }
.hero__title   { animation: fadeUp 0.7s ease 0.2s both; }
.hero__sub     { animation: fadeUp 0.7s ease 0.35s both; }
.hero__buttons { animation: fadeUp 0.7s ease 0.5s both; }

.hero__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}
.hero__image {
  animation: slideInRight 0.9s ease 0.3s both;
}
.hero__image img,
.hero__image video {
  width: 130%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  position: relative;
  right: -40px;
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__title {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 400px;
  margin-bottom: 32px;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Scroll-reveal utility ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Feature Strip ──────────────────────────────────────────── */
.feature-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-block: 32px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 220px;
}
.feature-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--green-mid);
}
.feature-item__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-item__desc { font-size: 0.85rem; color: var(--text-mid); }

/* ── Products Section ───────────────────────────────────────── */
.products-section { padding-block: 64px; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--text-mid); font-size: 0.95rem; }

/* ── Home Products Section (redesigned) ── */
.home-products { padding-block: 72px; background: var(--bg); }

.home-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}
.home-products__eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.home-products__header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.home-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .home-prod-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 860px) { .home-prod-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Homepage Product Card (hpc) ── */
.hpc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.hpc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.hpc--mid {
  background: var(--bg);
  border-color: #ccc;
}
.hpc:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.hpc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hpc__icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hpc--mid .hpc__icon-wrap {
  background: #fff;
}
.hpc__icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.hpc__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}
.hpc__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.hpc__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.2;
}
.hpc__desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.hpc__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.hpc__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.hpc__link:hover { color: var(--gold); }
.hpc__cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green-dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.hpc__cta:hover { background: var(--gold); }

.about-prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 860px) { .about-prod-grid { grid-template-columns: 1fr; } }
@media (min-width: 500px) and (max-width: 860px) { .about-prod-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── About Product Card (apc) ── */
.apc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.apc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.apc--mid {
  background: var(--bg);
  border-color: #ccc;
}
.apc:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.apc__icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.apc--mid .apc__icon-wrap {
  background: #fff;
}
.apc__icon-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.apc__num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}
.apc__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.apc__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.2;
}
.apc__desc {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.home-prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.home-prod-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

/* Visual top section */
.home-prod-card__visual {
  background: var(--green-dark);
  padding: 36px 28px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  min-height: 140px;
}
.home-prod-card--accent .home-prod-card__visual {
  background: #2a3f24;
}
.home-prod-card__visual img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 1;
}
.home-prod-card__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 20px;
  letter-spacing: -0.02em;
}

/* Body section */
.home-prod-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-prod-card__cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.home-prod-card__body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.home-prod-card__body p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0 0 20px;
  flex: 1;
}
.home-prod-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.home-prod-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.home-prod-card__link:hover { color: var(--gold); }
.home-prod-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.home-prod-card__cta:hover { background: var(--gold); }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding-block: 36px;
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--text-mid); font-size: 0.95rem; max-width: 660px; }

/* ── Calculator ─────────────────────────────────────────────── */
.calculator-page { padding-block: 40px; }
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.shape-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.shape-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #FAFAF8;
}
.shape-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shape-letter {
  width: 28px;
  height: 28px;
  background: var(--text-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.shape-name-input {
  background: none;
  border: none;
  border-bottom: 1px dashed transparent;
  padding: 0 2px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  width: 110px;
  transition: border-color 0.15s;
}
.shape-name-input:hover,
.shape-name-input:focus { border-bottom-color: var(--text-light); outline: none; }
.shape-name-input:focus { border-bottom-color: var(--green-mid); }
.shape-name-edit-icon {
  color: var(--text-light);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  margin-left: -2px;
}
.shape-label:hover .shape-name-edit-icon { opacity: 1; }

.shape-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-left: 10px;
}
.qty-btn {
  background: #F2F1EE;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--border); color: var(--text-dark); }
.qty-input {
  width: 38px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }

.shape-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.shape-remove:hover { color: #c0392b; background: #fdf2f2; }

.shape-block__body { padding: 24px 20px; }

.shape-selector {
  margin-bottom: 24px;
}
.shape-selector label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  display: block;
  margin-bottom: 14px;
}
.shape-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.shape-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg);
}
.shape-option:hover { border-color: var(--green-light); }
.shape-option.selected { border-color: var(--gold); background: #FDF8EC; }
.shape-option svg {
  width: 64px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 8px;
  color: var(--text-mid);
}
.shape-option.selected svg { color: var(--text-dark); }
.shape-option span { font-size: 0.78rem; color: var(--text-mid); display: block; }
.shape-option.selected span { color: var(--text-dark); font-weight: 600; }

.shape-inputs { display: none; }
.shape-inputs.visible { display: block; }

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
}
.field-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s;
}
.field-group input:focus { outline: none; border-color: var(--green-mid); background: #fff; }

.shape-result {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
  border: 1px dashed var(--border);
}
.shape-result strong { color: var(--text-dark); }

.add-shape-btn {
  background: none;
  border: 2px solid var(--text-dark);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.add-shape-btn:hover { background: var(--text-dark); color: #fff; }

.calc-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

/* Volume Summary Panel */
.volume-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 52px);
}
.volume-panel__logo {
  background: #FAFAF8;
  border-bottom: 1px solid var(--border);
  padding: 20px;
  display: flex;
  justify-content: center;
}
.volume-panel__logo img { height: 50px; }

.volume-panel__title {
  padding: 16px 20px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}

.volume-table {
  width: 100%;
  font-size: 0.85rem;
}
.volume-table thead tr th {
  padding: 10px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  text-align: start;
}
.volume-table thead tr th:last-child { text-align: end; }
.volume-table tbody tr td {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.volume-table tbody tr td:last-child { text-align: end; }
.volume-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vol-letter {
  width: 22px;
  height: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
}

.volume-total {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--text-dark);
}
.volume-total .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.volume-total .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.volume-panel__cta {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.volume-panel__cta .btn { width: 100%; justify-content: center; }
.btn-export {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  gap: 7px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-export:hover { border-color: var(--text-dark); color: var(--text-dark); background: #F7F6F3; }

/* ── Form Page ──────────────────────────────────────────────── */
.form-page { padding-block: 48px; }
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px;
  max-width: 780px;
  margin-inline: auto;
}
.form-card h1 { margin-bottom: 8px; text-transform: uppercase; }
.form-card .form-desc { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-dark);
}
.form-group label .required { color: #c0392b; margin-inline-start: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text-dark);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-mid);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-upload-label {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.file-upload-label:hover { background: var(--bg); }
.file-upload-label input[type="file"] { display: none; }
.file-name-display { font-size: 0.85rem; color: var(--text-light); }

/* ── About Page ─────────────────────────────────────────────── */
.about-page { padding-block: 48px; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.about-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.about-card p { color: var(--text-mid); margin-bottom: 16px; font-size: 0.92rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-download { margin-top: 24px; }
.about-download .btn { text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }
.about-map {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}
.about-map svg { width: 120px; opacity: 0.6; }
.about-map img { width: 180px; object-fit: contain; margin-top: -40px; margin-right: -16px; }

.about-right__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.4;
}
.products-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.product-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  background: var(--bg);
}
.product-mini-card svg {
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-bottom: 10px;
  color: var(--gold);
}
.product-mini-card h4 {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-mini-card p { font-size: 0.75rem; color: var(--text-mid); }

.about-tagline-bottom {
  font-size: 0.95rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.about-map-mini { display: flex; justify-content: flex-end; margin-top: 16px; }
.about-map-mini svg { width: 90px; opacity: 0.5; }

/* ── Locations Page ─────────────────────────────────────────── */
.locations-page { padding-block: 48px; }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.location-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
}
.location-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--green-mid);
}
.location-card h3 { font-size: 1rem; margin-bottom: 6px; }
.location-card p { font-size: 0.85rem; color: var(--text-mid); }
.location-card .detail { margin-top: 8px; font-size: 0.82rem; color: var(--text-mid); }

/* ── Help Page ──────────────────────────────────────────────── */
.help-page { padding-block: 48px; }
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-page { padding-block: 48px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-info {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--green-mid);
}
.contact-item__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.contact-item__value { font-size: 0.9rem; color: var(--text-dark); }

/* ── Map Section ────────────────────────────────────────────── */
.map-section {
  padding-top: 48px;
  background: var(--bg);
}
.map-header {
  margin-bottom: 24px;
}
.map-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.map-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}
.map-wrapper {
  position: relative;
  width: 100%;
  border-top: 3px solid var(--gold);
  border-bottom: none;
  overflow: hidden;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 440px;
  filter: grayscale(18%) sepia(12%) contrast(1.02) brightness(1.01);
}
.map-overlay-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  pointer-events: none;
}
.map-overlay-label svg {
  color: var(--gold);
  flex-shrink: 0;
}
body.rtl .map-overlay-label { left: 50%; transform: translateX(-50%); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding-block: 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 0.8rem; color: var(--text-light); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 0.8rem; color: var(--text-mid); transition: color 0.2s; }
.footer__links a:hover { color: var(--text-dark); }

/* ── Mobile Hamburger ───────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}
.subnav.mobile-open { display: block; }
.subnav.mobile-open .subnav__inner {
  flex-direction: column;
  height: auto;
  padding-block: 8px;
  align-items: flex-start;
}
.subnav.mobile-open .subnav__inner a {
  height: auto;
  padding-block: 10px;
  border-bottom-color: transparent;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .calculator-layout { grid-template-columns: 1fr; }
  .volume-panel { position: static; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 40px; }
  .hero__image { justify-content: center; }
  .hero__image img { width: 100%; right: 0; max-width: 420px; }
  .about-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 28px; }
}

@media (max-width: 640px) {
  .hamburger { display: block; }
  .subnav:not(.mobile-open) { display: none; }
  .navbar__search { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .shape-options { grid-template-columns: 1fr; }
  .products-mini { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .about-card { padding: 24px; }
  .hero__title { font-size: 2rem; }
}

/* ── RTL Adjustments ────────────────────────────────────────── */
body.rtl .hero { background-image: none; }
body.rtl .footer__inner { flex-direction: row-reverse; }
body.rtl .subnav__inner a { border-bottom: 2px solid transparent; }
body.rtl .shape-remove { margin-inline-start: auto; }

/* ── Basket Drawer ──────────────────────────────────────────── */
#basket-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
#basket-overlay.bsk-visible { opacity: 1; pointer-events: all; }

#basket-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw;
  background: var(--bg-white); z-index: 901;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.13);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#basket-drawer.bsk-open { transform: translateX(0); }

.bsk-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.bsk-header h2 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 1.35rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-dark);
}
.bsk-close-btn {
  background: none; border: none; padding: 4px; color: var(--text-light);
  display: flex; align-items: center; transition: color 0.15s;
}
.bsk-close-btn:hover { color: var(--text-dark); }

#basket-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
}
#basket-empty p:first-of-type { font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
#basket-empty p:last-of-type { font-size: 0.85rem; color: var(--text-light); margin-bottom: 24px; }
.bsk-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; padding: 10px 20px; border-radius: var(--radius);
  text-decoration: none; transition: background 0.2s;
}
.bsk-cta:hover { background: var(--gold-hover); }

#basket-items { flex: 1; overflow-y: auto; padding: 8px 0; }

.bsk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
}
.bsk-item__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(140,174,120,0.2); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.bsk-item__body { flex: 1; min-width: 0; }
.bsk-item__name { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.bsk-item__meta { font-size: 0.78rem; color: var(--text-light); margin-top: 1px; }
.bsk-item__qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bsk-item__qty span { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.bsk-qty-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-mid); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.bsk-qty-btn:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.bsk-item__del {
  background: none; border: none; color: var(--text-light); padding: 4px;
  flex-shrink: 0; transition: color 0.15s;
}
.bsk-item__del:hover { color: #ba1a1a; }

#basket-footer { padding: 20px 24px; border-top: 1px solid var(--border); flex-shrink: 0; }
.bsk-total-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.bsk-total-label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
#basket-subtotal { font-family: 'Barlow Condensed', Arial, sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.bsk-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--gold); color: #fff; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em; padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none; border: none; transition: background 0.2s;
}
.bsk-checkout-btn:hover { background: var(--gold-hover); }
.bsk-clear-btn {
  display: block; width: 100%; margin-top: 10px; background: none;
  border: 1px solid var(--border); color: var(--text-light); font-weight: 600;
  font-size: 0.8rem; padding: 9px; border-radius: var(--radius); transition: background 0.15s;
}
.bsk-clear-btn:hover { background: #ffdad6; color: #ba1a1a; border-color: #ba1a1a; }

/* RTL basket */
body.rtl #basket-drawer { right: auto; left: 0; transform: translateX(-100%); box-shadow: 4px 0 32px rgba(0,0,0,0.13); }

/* ── Floating WhatsApp Button ───────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 16px 12px 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  max-width: 52px;
  overflow: hidden;
  white-space: nowrap;
}
.whatsapp-float__label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s, max-width 0.3s;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  transform: translateY(-2px);
  max-width: 200px;
}
.whatsapp-float:hover .whatsapp-float__label {
  opacity: 1;
  max-width: 120px;
}

/* RTL: flip to left side */
html[dir=rtl] .whatsapp-float,
body.rtl .whatsapp-float {
  right: auto;
  left: 20px;
  flex-direction: row-reverse;
}

/* ── Products Page ──────────────────────────────────────────── */
.products-page { padding-block: 48px; background: var(--bg); }

/* Main type toggle */
.product-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 600px) { .product-type-toggle { grid-template-columns: 1fr; } }

.product-type-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.product-type-btn:hover { border-color: var(--green-mid); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.product-type-btn.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: 0 4px 20px rgba(61,90,52,0.18);
}
.product-type-btn__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-mid);
  transition: background 0.2s, color 0.2s;
}
.product-type-btn__icon svg { width: 26px; height: 26px; }
.product-type-btn__icon img { width: 36px; height: 36px; object-fit: contain; }
.product-type-btn.active .product-type-btn__icon { background: rgba(255,255,255,0.15); color: #fff; }
.product-type-btn__text { flex: 1; }
.product-type-btn__name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  transition: color 0.2s;
}
.product-type-btn__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 2px;
  transition: color 0.2s;
}
.product-type-btn.active .product-type-btn__name,
.product-type-btn.active .product-type-btn__desc { color: rgba(255,255,255,0.9); }
.product-type-btn__arrow {
  font-size: 1.1rem;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
}
.product-type-btn.active .product-type-btn__arrow { color: rgba(255,255,255,0.7); }
.product-type-btn:hover .product-type-btn__arrow { transform: translateX(3px); }

/* Ready Mix coming soon panel */
.readymix-coming {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.readymix-coming__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
}
.readymix-coming__icon svg { width: 36px; height: 36px; }
.readymix-coming h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.readymix-coming p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 24px;
}

/* Category tabs */
.cat-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  white-space: nowrap;
}
.cat-tab svg { flex-shrink: 0; }
.cat-tab:hover { border-color: var(--green-mid); color: var(--green-dark); }
.cat-tab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* Filter bar */
.products-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.products-filter-bar__left {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
.products-filter-bar__left span { color: var(--text-dark); font-weight: 700; }
.products-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-width: 240px;
  transition: border-color 0.18s;
}
.products-search:focus-within { border-color: var(--green-mid); }
.products-search input {
  border: none;
  background: none;
  font-size: 0.875rem;
  color: var(--text-dark);
  width: 100%;
}
.products-search input:focus { outline: none; }
.products-search svg { color: var(--text-light); flex-shrink: 0; }

/* Product cards grid */
.products-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .products-grid-main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products-grid-main { grid-template-columns: 1fr; } }

.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.prod-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); }
.prod-card.hidden { display: none; }

.prod-card__img {
  background: #F7F6F3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: var(--green-mid);
  border-bottom: 1px solid var(--border);
}
.prod-card__img svg { width: 72px; height: 72px; opacity: 0.7; }
.prod-card__img--photo { background: #fff; padding: 0; }
.prod-card__img--photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.prod-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prod-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-mid);
}
.prod-card__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  line-height: 1.25;
}
.prod-card__desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 6px 0 0;
}
.prod-card__footer {
  padding: 0 20px 18px;
  margin-top: auto;
}
.prod-card__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  text-decoration: none;
}
.prod-card__btn:hover { border-color: var(--green-dark); color: var(--green-dark); background: #F2F1EE; }

/* Empty state */
.products-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Category icon strip */
.cat-icon-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: #fff;
}
@media (max-width: 700px) { .cat-icon-strip { grid-template-columns: repeat(3, 1fr); } }
.cat-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background 0.18s;
  text-align: center;
}
.cat-icon-item:last-child { border-right: none; }
.cat-icon-item:hover { background: #F7F6F3; }
.cat-icon-item.active { background: var(--green-dark); color: #fff; }
.cat-icon-item.active svg { color: #fff; }
.cat-icon-item.active .cat-icon-label { color: #fff; }
.cat-icon-item svg { width: 36px; height: 36px; color: var(--green-mid); }
.cat-icon-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  line-height: 1.3;
}
body.rtl #basket-drawer.bsk-open { transform: translateX(0); }

/* ================================================================
   RESPONSIVE OVERHAUL — Mobile · Tablet · Desktop  (v11)
   Breakpoints: 1024px | 768px | 640px | 480px | 380px
   ================================================================ */

/* ── Bug fix: product-type-toggle has 3 buttons, needs 3 cols ── */
.product-type-toggle { grid-template-columns: repeat(3, 1fr); }

/* ── Subnav: horizontal scroll on tablet (no hamburger) ──────── */
@media (max-width: 900px) and (min-width: 641px) {
  .subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav__inner { width: max-content; min-width: 100%; }
}

/* ── 1024px — large tablet ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__image img, .hero__image video { width: 115%; }
  .calculator-layout { grid-template-columns: 1fr 300px; }
  .home-prod-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 768px — tablet ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding-inline: 18px; }

  /* Hero: stack */
  .hero__inner { grid-template-columns: 1fr; min-height: unset; padding-block: 40px 0; }
  .hero__image { overflow: hidden; justify-content: center; margin-top: 20px; max-height: 280px; }
  .hero__image img, .hero__image video { width: 100%; max-width: 480px; right: 0; }
  .hero__sub { max-width: 100%; }

  /* Feature strip */
  .feature-strip__inner { gap: 24px; padding-block: 28px; }

  /* Product card grid: 2 col on tablet */
  .home-prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Product toggle: 2 col on tablet, hide count */
  .product-type-toggle { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-type-btn { padding: 16px 18px; gap: 12px; }
  .product-type-btn__desc { display: none; }

  /* Products filter bar */
  .products-filter-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .products-search { width: 100%; min-width: unset; }

  /* Layout stacks */
  .about-layout { grid-template-columns: 1fr; }
  .about-card { padding: 32px 28px; }
  .contact-layout { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }

  /* Calculator */
  .calculator-layout { grid-template-columns: 1fr; }
  .volume-panel { position: static; }

  /* Forms */
  .form-card { padding: 32px 24px; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__links { flex-wrap: wrap; gap: 16px; }

  /* Page header */
  .page-header { padding-block: 28px; }
  .page-header p { font-size: 0.88rem; }
}

/* ── 640px — mobile (hamburger) ──────────────────────────────── */
@media (max-width: 640px) {
  .hamburger { display: block; }
  .subnav:not(.mobile-open) { display: none; }
  .navbar__search { display: none; }

  /* Hero */
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero__image { max-height: 240px; }

  /* Grids */
  .home-prod-grid { grid-template-columns: 1fr; }
  .about-prod-grid { grid-template-columns: 1fr; }
  .products-mini { grid-template-columns: 1fr; }

  /* Product toggle: 1 col, restore count */
  .product-type-toggle { grid-template-columns: 1fr; gap: 10px; }
  .product-type-btn__desc { display: block; }

  /* Calculator inputs */
  .shape-options { grid-template-columns: 1fr; }
  .inputs-grid { grid-template-columns: 1fr; }

  /* About / Forms */
  .about-card { padding: 24px 20px; }
  .form-card { padding: 24px 16px; }

  /* Map */
  .map-wrapper iframe { height: 300px; }
}

/* ── 480px — small mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding-inline: 14px; }

  /* Navbar */
  .navbar__logo img { height: 36px; }
  .navbar__actions { gap: 12px; }
  .lang-toggle { padding: 4px 8px; font-size: 0.74rem; }

  /* Hero: stack CTA buttons */
  .hero__buttons { flex-direction: column; gap: 10px; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .hero__image { max-height: 210px; }
  .hero__inner { padding-block: 28px 0; }

  /* Feature items: vertical stack */
  .feature-strip__inner { flex-direction: column; gap: 18px; }
  .feature-item { min-width: 0; }

  /* Home products section */
  .home-products { padding-block: 48px; }
  .home-products__header { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Product type btn: compact */
  .product-type-btn { padding: 14px 16px; }

  /* Cat tabs */
  .cat-tabs { gap: 6px; }
  .cat-tab { font-size: 0.68rem; padding: 7px 10px; gap: 5px; }

  /* Cat icon strip */
  .cat-icon-strip { grid-template-columns: repeat(3, 1fr); }
  .cat-icon-item { padding: 16px 8px; }
  .cat-icon-label { font-size: 0.62rem; }

  /* About */
  .about-prod-grid { grid-template-columns: 1fr; }
  .about-right__tagline { font-size: 0.95rem; }
  .about-download .btn { width: 100%; justify-content: center; }

  /* Calculator header */
  .shape-label { flex-wrap: wrap; gap: 6px; }
  .shape-name-input { width: 80px; }

  /* Product detail sticky off */
  .pd-image-col { position: static !important; }

  /* Footer */
  .footer__links { gap: 12px; }
  .page-header { padding-block: 20px; }

  /* Contact info */
  .contact-info { padding: 28px 20px; }
}

/* ── 380px — very small ──────────────────────────────────────── */
@media (max-width: 380px) {
  .hero__image { display: none; }
  .hero__inner { padding-bottom: 36px; }
  .container { padding-inline: 12px; }
  .navbar__inner { gap: 10px; }
}

/* ── Touch: disable hover transforms (no flicker on tap) ─────── */
@media (hover: none) and (pointer: coarse) {
  .hpc:hover, .apc:hover, .prod-card:hover { transform: none; box-shadow: none; }
  .home-prod-card:hover { transform: none; box-shadow: none; }
}

/* ============================================================
   FORM CONFIRMATION MODAL
   ============================================================ */
.jhg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.jhg-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.jhg-modal__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 460px;
  width: 100%;
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.jhg-modal.is-open .jhg-modal__card {
  transform: translateY(0) scale(1);
}
.jhg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-size: 22px;
  line-height: 1;
}
.jhg-modal__close:hover {
  background: var(--bg);
  color: var(--text-dark);
}
.jhg-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(140, 174, 120, 0.18);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jhg-modal__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}
.jhg-modal__title {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin: 0 0 12px;
}
.jhg-modal__message {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 28px;
}
.jhg-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-family: 'Barlow', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 140px;
}
.jhg-modal__btn:hover {
  background: var(--gold-hover, #A07D10);
}

/* Lock body scroll while modal open */
body.jhg-modal-open {
  overflow: hidden;
}

/* Tighter on small screens */
@media (max-width: 480px) {
  .jhg-modal__card { padding: 32px 20px 24px; }
  .jhg-modal__title { font-size: 1.25rem; }
  .jhg-modal__message { font-size: 0.9rem; }
}
