/* ==========================================================
   AARKVEE AGRO EXPORTS — Main Stylesheet
   ========================================================== */

:root {
  --primary: #1a47c8;
  --primary-dark: #0d2a7a;
  --primary-light: #e8eeff;
  --green: #2e8b3a;
  --green-dark: #1f6b2a;
  --green-light: #eaf7e4;
  --accent: #6cc24a;
  --accent-hover: #86d566;
  --bg: #f5f8ff;
  --white: #ffffff;
  --text: #1f2a44;
  --muted: #5b6785;
  --border: #dfe6f5;
  --whatsapp: #25d366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(13, 42, 122, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 42, 122, 0.16);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --container: 1200px;
  --header-h: 116px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary-dark); line-height: 1.25; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-alt { background: var(--bg); }
.text-center { text-align: center; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-green { background: var(--whatsapp); color: var(--white); }
.btn-green:hover { background: #1ebe5a; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-gold { background: var(--accent); color: var(--white); }
.btn-gold:hover { background: var(--green); color: var(--white); transform: translateY(-3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #cfd9ff; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 15px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); }
.topbar-tag { font-style: italic; opacity: 0.9; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px); transition: box-shadow 0.3s var(--ease);
}
.header.scrolled { box-shadow: 0 6px 25px rgba(13, 42, 122, 0.12); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 62px; height: 62px; object-fit: contain; border-radius: 50%; }
.header .brand img {
  width: auto; height: 104px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center;
  border-radius: 50%; transform: scale(1.12); image-rendering: -webkit-optimize-contrast;
}
.nav-head, .nav-info { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--primary); letter-spacing: 1px; }
.brand-text span { font-size: 0.72rem; letter-spacing: 3px; color: var(--primary-dark); font-weight: 600; }

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 10px 16px; font-weight: 500; color: var(--text); border-radius: 30px;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px;
  background: var(--accent); transition: all 0.3s var(--ease); transform: translateX(-50%);
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 22px; }
.nav .nav-cta { background: var(--green); color: var(--white); margin-left: 10px; padding: 10px 22px; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--green-dark); color: var(--white); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: none; background: var(--primary-light);
  border-radius: 10px; cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 50%; width: 22px; height: 2px; background: var(--primary-dark);
  transform: translateX(-50%); transition: all 0.3s var(--ease); content: "";
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--primary-dark); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.03); transition: transform 7s linear; image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; filter: saturate(1.1) contrast(1.05); }
.slide.active img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 24, 70, 0.88) 0%, rgba(8, 24, 70, 0.7) 40%, rgba(8, 24, 70, 0.25) 70%, rgba(8, 24, 70, 0) 90%);
}
.slide-content h1, .slide-content p, .slide-content .eyebrow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.5); }
.slide-content {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
}
.slide-content .inner { max-width: 780px; color: var(--white); }
.slide-content .eyebrow {
  color: var(--accent); font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 700;
  letter-spacing: clamp(2px, 0.3vw, 4px); margin-bottom: clamp(14px, 2vw, 24px);
}
.slide-content .eyebrow::before, .slide-content .eyebrow::after { display: none; }
.slide-content h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 18px; }
.slide-content h1 em { color: var(--accent); font-style: normal; }
.slide-content p { font-size: 1.12rem; font-weight: 500; color: #ffffff; margin-bottom: 32px; max-width: 560px; }
.slide-content .btns { display: flex; gap: 15px; flex-wrap: wrap; }
.slide.active .slide-content .inner > * { animation: fadeUp 0.9s var(--ease) both; }
.slide.active .slide-content .inner > *:nth-child(2) { animation-delay: 0.15s; }
.slide.active .slide-content .inner > *:nth-child(3) { animation-delay: 0.3s; }
.slide.active .slide-content .inner > *:nth-child(4) { animation-delay: 0.45s; }

.slider-arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08); color: var(--white); cursor: pointer; font-size: 1.1rem;
  transition: all 0.3s var(--ease);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }
.slider-dots { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 20px; border: none; background: rgba(255, 255, 255, 0.5);
  cursor: pointer; transition: all 0.3s var(--ease);
}
.slider-dots button.active { width: 36px; background: var(--accent); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; padding: 120px 0 100px; color: var(--white); text-align: center; overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(13, 42, 122, 0.92), rgba(26, 71, 200, 0.75) 55%, rgba(46, 139, 58, 0.75));
}
.page-banner h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-banner p { color: #dbe4ff; max-width: 640px; margin: 0 auto 18px; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.12); padding: 8px 22px; border-radius: 30px; font-size: 0.9rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--white); padding: 38px 28px; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow); border-bottom: 4px solid transparent; transition: all 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.icon-circle {
  width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.9rem; color: var(--primary);
  background: var(--primary-light); transition: all 0.4s var(--ease);
}
.feature-card:nth-child(even) .icon-circle { background: var(--green-light); color: var(--green); }
.feature-card:hover .icon-circle { background: var(--primary); color: var(--white); transform: rotateY(180deg); }
.feature-card:nth-child(even):hover .icon-circle { background: var(--green); color: var(--white); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Category cards ---------- */
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 320px;
  box-shadow: var(--shadow); display: block;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 42, 122, 0.95) 0%, rgba(13, 42, 122, 0.2) 55%, transparent 100%);
}
.category-card:hover img { transform: scale(1.12); }
.category-card .cat-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 2; color: var(--white); }
.category-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 6px; }
.category-card p { font-size: 0.9rem; color: #dbe4ff; margin-bottom: 10px; }
.category-card .link { color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; }
.category-card:hover .link i { transform: translateX(5px); }
.category-card .link i { transition: transform 0.3s var(--ease); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.split-img .badge {
  position: absolute; right: -20px; bottom: 30px; background: var(--accent); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center;
}
.split-img .badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.split-img .badge span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.split-img::before {
  content: ""; position: absolute; top: -20px; left: -20px; width: 140px; height: 140px;
  border: 4px solid var(--primary-light); border-radius: var(--radius); z-index: -1;
}
.split-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.split-text p { color: var(--muted); margin-bottom: 16px; }
.check-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list i { color: var(--green); margin-top: 5px; }

/* ---------- Counters ---------- */
.counters {
  position: relative; padding: 80px 0; color: var(--white); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--green));
}
.counters img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.counters .grid { position: relative; }
.counter { text-align: center; }
.counter i { font-size: 2.2rem; color: var(--accent); margin-bottom: 12px; }
.counter .num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.1; }
.counter p { color: #cfd9ff; font-weight: 500; }

/* ---------- Testimonials ---------- */
.testimonial-wrap { position: relative; max-width: 820px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s var(--ease); }
.testimonial {
  min-width: 100%; padding: 45px 50px; text-align: center; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.testimonial .quote-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 15px; }
.testimonial p { font-size: 1.08rem; font-style: italic; color: var(--text); margin-bottom: 22px; }
.testimonial .stars { color: var(--accent); margin-bottom: 10px; }
.testimonial h4 { font-size: 1.15rem; }
.testimonial span { color: var(--muted); font-size: 0.9rem; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.t-dots button { width: 12px; height: 12px; border-radius: 20px; border: none; background: var(--border); cursor: pointer; transition: all 0.3s var(--ease); }
.t-dots button.active { width: 34px; background: var(--primary); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 90px 0; text-align: center; color: var(--white); overflow: hidden; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13, 42, 122, 0.9), rgba(31, 107, 42, 0.85)); z-index: -1; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta p { color: #dbe4ff; max-width: 620px; margin: 0 auto 32px; }
.cta .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-strip { background: linear-gradient(90deg, var(--primary-dark), var(--primary) 60%, var(--green)); padding: 50px 0; color: var(--white); }
.cta-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 25px; flex-wrap: wrap; }
.cta-strip h3 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-strip p { color: #cfd9ff; }
.cta-strip .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- About page ---------- */
.mv-card {
  background: var(--white); border-radius: var(--radius); padding: 42px 36px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: all 0.4s var(--ease);
}
.mv-card::before { content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--primary); }
.mv-card.green::before { background: var(--green); }
.mv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mv-card .icon-circle { margin: 0 0 20px; }
.mv-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.mv-card p { color: var(--muted); }

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--primary-light); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 45px 45px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before {
  content: ""; position: absolute; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--primary);
}
.tl-item:nth-child(odd)::before { right: -10px; }
.tl-item:nth-child(even)::before { left: -10px; }
.tl-year { display: inline-block; background: var(--primary); color: var(--white); padding: 4px 16px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; }
.tl-item h4 { font-size: 1.25rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Products page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 45px; }
.filter-btn {
  padding: 10px 24px; border-radius: 30px; border: 2px solid var(--border); background: var(--white);
  font-weight: 500; cursor: pointer; transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(26, 71, 200, 0.3); }

.product-toolbar {
  display: flex; gap: 16px; max-width: 820px; margin: 0 auto 14px;
  padding: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 40px; box-shadow: var(--shadow);
}
.search-box, .select-box { position: relative; display: flex; align-items: center; }
.search-box { flex: 1; }
.select-box { flex: 0 0 230px; }
.search-box > i, .select-box > i:first-child {
  position: absolute; left: 18px; color: var(--primary); pointer-events: none;
}
.search-box input, .select-box select {
  width: 100%; height: 50px; padding: 0 20px 0 48px; border: 2px solid var(--border);
  border-radius: 30px; background: var(--bg); font: inherit; font-size: 0.95rem; color: var(--text);
  outline: none; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.select-box select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; font-weight: 500; }
.select-arrow { position: absolute; right: 18px; font-size: 0.8rem; color: var(--muted); pointer-events: none; }
.search-box input:focus, .select-box select:focus {
  border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-light);
}
.search-box input::placeholder { color: var(--muted); opacity: 0.8; }
.product-toolbar { position: relative; z-index: 30; }
.cat-dropdown { position: relative; flex: 0 0 240px; }
.cat-toggle {
  width: 100%; height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  border: 2px solid var(--border); border-radius: 30px; background: var(--bg); font: inherit;
  font-size: 0.95rem; font-weight: 500; color: var(--text); cursor: pointer; text-align: left;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.cat-toggle > i:first-child { color: var(--primary); }
.cat-toggle span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-caret { font-size: 0.8rem; color: var(--muted); transition: transform 0.3s var(--ease); }
.cat-dropdown.open .cat-toggle, .cat-toggle:focus-visible {
  border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px var(--primary-light); outline: none;
}
.cat-dropdown.open .cat-caret { transform: rotate(180deg); }
.cat-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s var(--ease);
}
.cat-dropdown.open .cat-menu { opacity: 1; visibility: visible; transform: none; }
.cat-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; color: var(--text); transition: background 0.2s, color 0.2s;
}
.cat-menu a small {
  min-width: 26px; padding: 2px 8px; border-radius: 20px; background: var(--primary-light);
  color: var(--primary); font-size: 0.75rem; font-weight: 600; text-align: center;
}
.cat-menu a:hover { background: var(--primary-light); color: var(--primary); }
.cat-menu a.active { background: var(--primary); color: var(--white); }
.cat-menu a.active small { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.product-count { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 35px; }
.product-empty {
  text-align: center; padding: 50px 20px; background: var(--white);
  border: 2px dashed var(--border); border-radius: var(--radius); max-width: 560px; margin: 0 auto;
}
.product-empty > i { font-size: 2.6rem; color: var(--primary); margin-bottom: 14px; }
.product-empty h3 { margin-bottom: 8px; }
.product-empty p { color: var(--muted); margin-bottom: 20px; }
@media (max-width: 640px) {
  .product-toolbar { flex-direction: column; gap: 10px; border-radius: var(--radius); }
  .select-box { flex: 1 1 auto; }
  .cat-dropdown { flex: 1 1 auto; width: 100%; }
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card.hide { display: none; }
.product-card.fade-in { animation: fadeUp 0.5s var(--ease) both; }
.product-img { position: relative; height: 210px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.product-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.product-body .btn { padding: 11px 20px; font-size: 0.88rem; width: 100%; }

/* ---------- Services page ---------- */
.service-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card .s-img { height: 200px; overflow: hidden; }
.service-card .s-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .s-img img { transform: scale(1.1); }
.service-card .s-icon {
  position: absolute; right: 20px; top: 171px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: var(--white); display: grid; place-items: center; font-size: 1.4rem;
  border: 4px solid var(--white); z-index: 2;
}
.service-card .s-body { padding: 32px 26px 28px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

.process { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; position: relative; }
.process::before { content: ""; position: absolute; top: 38px; left: 7%; right: 7%; height: 3px; background: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 18px); }
.step { text-align: center; position: relative; }
.step-num {
  width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--primary); display: grid; place-items: center; font-size: 1.6rem; color: var(--primary);
  position: relative; transition: all 0.4s var(--ease);
}
.step-num small {
  position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center;
}
.step:hover .step-num { background: var(--primary); color: var(--white); transform: scale(1.08); }
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.82rem; }

.pack-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.pack-list li { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 500; font-size: 0.92rem; }
.pack-list i { color: var(--primary); font-size: 1.2rem; }

.cert-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert {
  background: var(--white); border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px 18px;
  text-align: center; transition: all 0.3s var(--ease);
}
.cert:hover { border-color: var(--accent); transform: translateY(-5px); }
.cert i { font-size: 2.2rem; color: var(--green); margin-bottom: 10px; }
.cert h4 { font-size: 1.2rem; }
.cert p { font-size: 0.82rem; color: var(--muted); }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: left;
  padding: 20px 24px; background: none; border: none; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--primary-dark);
}
.faq-q i { transition: transform 0.3s var(--ease); color: var(--primary); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-item.open .faq-q { color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: -70px; position: relative; z-index: 3; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 26px; text-align: center; box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease); display: block;
}
.contact-card:hover { transform: translateY(-8px); }
.contact-card .icon-circle { margin-bottom: 18px; }
.contact-card.wa .icon-circle { background: #e3f9ec; color: var(--whatsapp); }
.contact-card.mail .icon-circle { background: var(--green-light); color: var(--green); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 0.92rem; }
.contact-card strong { display: block; margin-top: 8px; color: var(--primary); word-break: break-word; }

.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.form-card { background: var(--white); padding: 42px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { font-size: 2rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group label .req { color: #d93025; }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  transition: all 0.3s var(--ease); outline: none; width: 100%;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(26, 71, 200, 0.1); }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #d93025; }
.form-group .err-msg { color: #d93025; font-size: 0.8rem; min-height: 1em; }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.info-card { background: linear-gradient(160deg, var(--primary-dark), var(--primary) 60%, var(--green)); color: var(--white); padding: 38px; border-radius: var(--radius); margin-bottom: 26px; }
.info-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 18px; }
.info-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.93rem; }
.info-card li:last-child { border-bottom: none; }
.info-card li span:last-child { color: var(--accent); font-weight: 500; }
.people-card li { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 14px 0; }
.people-card li strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--white); }
.people-card li small { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 300px; }
.map-card iframe { width: 100%; height: 100%; border: 0; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 150%); z-index: 4000;
  background: var(--green); color: var(--white); padding: 16px 28px; border-radius: 50px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-weight: 500; transition: transform 0.4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(160deg, #08184a 60%, #0d3320); color: #aab8e6; padding-top: 80px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .brand-text strong { color: var(--white); }
.footer .brand-text span { color: var(--accent); }
.footer .brand img { width: auto; height: 90px; max-width: 100%; padding: 8px 14px; border-radius: 10px; background: var(--white); }
.footer-about p { margin: 20px 0; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; color: var(--white); transition: all 0.3s var(--ease);
}
.socials a:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 3px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 5px; width: 16px; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: inherit; transition: color 0.3s; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 900px; margin: 0 auto; background: var(--white); padding: 50px 55px;
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); line-height: 1.85;
}
.legal-content h2 {
  font-size: 1.35rem; margin: 34px 0 12px; padding-left: 14px; border-left: 4px solid var(--primary);
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal-content ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.legal-content ul li::before {
  content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--primary); font-size: 0.9rem;
}
.legal-content strong { color: var(--text); }
.legal-updated {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 30px;
  background: var(--primary-light); color: var(--primary); font-size: 0.85rem; font-weight: 600;
}
.legal-contact { background: var(--primary-light); padding: 22px 26px; border-radius: var(--radius-sm); }
.legal-contact ul { margin: 0; }
.legal-contact ul li::before { display: none; }
.legal-contact ul li { padding-left: 0; }
.legal-contact i { color: var(--primary); width: 22px; }
.legal-contact a { color: var(--primary); font-weight: 500; }
@media (max-width: 640px) {
  .legal-content { padding: 30px 22px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ---------- Floating buttons ---------- */
.float-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 2000; width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); display: grid; place-items: center; font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}
.float-wa::before, .float-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); z-index: -1;
  animation: pulse 2s infinite;
}
.float-wa::after { animation-delay: 1s; }
.float-wa .tip {
  position: absolute; right: 74px; background: var(--white); color: var(--text); font-size: 0.85rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px);
  transition: all 0.3s var(--ease); pointer-events: none;
}
.float-wa:hover .tip { opacity: 1; transform: translateX(0); }
.float-call {
  display: inline-flex; position: fixed; left: 24px; bottom: 24px; z-index: 2000; width: 54px; height: 54px; border-radius: 50%;
  background: var(--primary); color: var(--white); box-shadow: var(--shadow-lg); align-items: center; justify-content: center;
  font-size: 0; transition: all 0.3s var(--ease);
}
.float-call i { font-size: 1.3rem; }
.float-call:hover { background: var(--accent); color: var(--white); transform: translateY(-3px); }
.back-top {
  position: fixed; right: 32px; bottom: 100px; z-index: 1999; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--primary); color: var(--white); cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); color: var(--white); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(0.9); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 11px; font-size: 0.93rem; }
  .process { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .process::before { display: none; }
}

@media (max-width: 992px) {
  :root { --header-h: 96px; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .menu-toggle { display: block; }
  .header .brand img { height: 86px; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); height: 100vh; height: 100dvh;
    background: var(--white); overflow-y: auto; visibility: hidden;
    box-shadow: -10px 0 40px rgba(13, 42, 122, 0.15); padding: 0 20px 30px; transform: translateX(100%);
    transition: transform 0.4s var(--ease), visibility 0.4s; z-index: 1001;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); margin: 0 -20px 16px; padding: 0 20px; background: var(--white); border-bottom: 1px solid var(--border);
  }
  .nav .nav-logo { padding: 0; border-radius: 0; }
  .nav .nav-logo img { height: 60px; width: auto; }
  .nav-close {
    width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: none; border-radius: 10px;
    background: var(--primary-light); color: var(--primary-dark); font-size: 1.3rem; cursor: pointer; transition: all 0.3s var(--ease);
  }
  .nav-close:hover { background: var(--primary); color: var(--white); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 13px 18px; font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a.active { background: var(--primary-light); }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; }
  .nav-info { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
  .nav-info h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary-dark); margin-bottom: 10px; }
  .nav .nav-info a, .nav-info p {
    display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.92rem; font-weight: 500; color: var(--text); word-break: break-word;
  }
  .nav .nav-info a:hover { background: none; color: var(--primary); }
  .nav-info i {
    width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
    background: var(--primary-light); color: var(--primary); font-size: 0.9rem;
  }
  .nav-overlay { position: fixed; inset: 0; background: rgba(5, 15, 45, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .nav-open .float-wa, .nav-open .float-call, .nav-open .back-top { opacity: 0; visibility: hidden; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .split-img img { height: 380px; }
  .split-img .badge { right: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .cert-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; margin-top: -50px; }
  .topbar-tag { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .topbar .container { justify-content: center; }
  .topbar-info { justify-content: center; gap: 14px; font-size: 0.8rem; }
  .hero { min-height: 600px; }
  .slider-arrow { display: none; }
  .slide::after { background: linear-gradient(180deg, rgba(8, 24, 70, 0.6), rgba(8, 24, 70, 0.85)); }
  .timeline::before { left: 10px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 35px 40px; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .testimonial { padding: 35px 24px; }
  .cta-strip .container { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 52px; height: 52px; }
  .header .brand img { width: auto; height: 80px; }
  .footer .brand img { height: 76px; }
  .brand-text strong { font-size: 1.2rem; }
  .brand-text span { font-size: 0.62rem; letter-spacing: 2px; }
  .topbar-info a:nth-child(2) span { display: none; }
  .pack-list { grid-template-columns: 1fr; }
  .cert-strip { grid-template-columns: 1fr 1fr; gap: 14px; }
  .split-img::before { display: none; }
  .slide-content .btns .btn { width: 100%; }
  .page-banner { padding: 90px 0 80px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: 540px; }
  .slide-content h1 { font-size: 1.85rem; }
  .slide-content p { font-size: 0.95rem; margin-bottom: 24px; }
  .float-wa { width: 54px; height: 54px; font-size: 1.7rem; right: 16px; bottom: 16px; }
  .float-wa .tip { display: none; }
  .float-call { left: 16px; bottom: 18px; width: 48px; height: 48px; }
  .back-top { right: 20px; bottom: 84px; width: 42px; height: 42px; }
}

/* ==========================================================
   Dynamic (Laravel) additions
   ========================================================== */

/* ---------- Products dropdown ---------- */
.nav .has-sub { position: relative; }
.nav .sub-caret { font-size: 0.65rem; margin-left: 4px; }
.nav .sub-toggle { display: none; }
.nav .submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; display: block;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px;
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s var(--ease); z-index: 20;
}
.nav .has-sub:hover > .submenu, .nav .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.nav .submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; white-space: nowrap; color: var(--text);
}
.nav .submenu a::after { display: none; }
.nav .submenu a small {
  min-width: 26px; padding: 2px 8px; border-radius: 20px; background: var(--primary-light);
  color: var(--primary); font-size: 0.75rem; font-weight: 600; text-align: center;
}
.nav .submenu a:hover { background: var(--primary-light); color: var(--primary); }
.nav .submenu a.active { background: var(--primary); color: var(--white); }
.nav .submenu a.active small { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.nav .submenu::-webkit-scrollbar, .cat-menu::-webkit-scrollbar { width: 6px; }
.nav .submenu::-webkit-scrollbar-button, .cat-menu::-webkit-scrollbar-button { display: none; height: 0; }
.nav .submenu::-webkit-scrollbar-thumb, .cat-menu::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.nav .submenu::-webkit-scrollbar-track, .cat-menu::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
@supports not selector(::-webkit-scrollbar) {
  .nav .submenu, .cat-menu { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
}

/* ---------- Product listing ---------- */
.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.category-tabs .filter-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.category-tabs .filter-btn small { opacity: 0.7; font-size: 0.78rem; }
.toolbar-btn { border-radius: 30px; padding: 0 28px; height: 50px; }
.product-count a { color: var(--primary); text-decoration: underline; }
.product-img { display: block; }
.product-body h3 a:hover { color: var(--primary); }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-actions .btn { padding: 10px 12px; font-size: 0.85rem; }
.center-btn { text-align: center; margin-top: 45px; }
.pager { margin-top: 45px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-link {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px;
  background: var(--white); border: 1px solid var(--border); font-weight: 500; transition: all 0.25s var(--ease);
}
.pagination a.page-link:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-link.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pagination .page-link.disabled { opacity: 0.45; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 55px; align-items: start; }
.pd-info { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.pd-overview { margin: 50px 0 0; overflow-wrap: anywhere; line-height: 1.8; }
.pd-media { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.pd-media img { width: 100%; height: 480px; object-fit: cover; }
.pd-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.pd-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; vertical-align: top; }
.spec-table th { width: 42%; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pd-description { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; color: var(--muted); }
.pd-description h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--text); }
.pd-description h3 i { color: var(--primary); margin-right: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-group input[readonly] { background: var(--primary-light); font-weight: 500; }

@media (max-width: 992px) {
  .nav .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .nav .has-sub > a { flex: 1; }
  .nav .sub-caret { display: none; }
  .nav .sub-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; border: none; border-radius: 10px;
    background: var(--primary-light); color: var(--primary-dark); cursor: pointer; transition: transform 0.3s var(--ease);
  }
  .nav .has-sub.sub-open .sub-toggle { transform: rotate(180deg); }
  .nav .submenu {
    position: static; width: 100%; min-width: 0; box-shadow: none; padding: 0 0 0 14px; margin: 4px 0;
    opacity: 1; visibility: visible; transform: none; display: none; border-left: 2px solid var(--primary-light); border-radius: 0;
  }
  .nav .has-sub.sub-open > .submenu { display: block; }
  .nav .submenu a { padding: 10px 14px; white-space: normal; }
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .pd-media { position: relative; top: auto; }
  .pd-media img { height: 380px; }
}

@media (max-width: 640px) {
  .toolbar-btn { width: 100%; }
  .category-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tabs .filter-btn { flex-shrink: 0; padding: 8px 18px; }
}

@media (max-width: 560px) {
  .pd-media img { height: 280px; }
  .pd-actions .btn { width: 100%; }
  .pd-description { padding: 24px 20px; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 0.88rem; }
}
/* ===== Product details popup ===== */
.pmodal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.pmodal.open { display: flex; }
.pmodal-overlay { position: absolute; inset: 0; background: rgba(13, 42, 122, 0.55); backdrop-filter: blur(3px); }
.pmodal-box { position: relative; background: #fff; border-radius: 18px; max-width: 900px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); animation: pmodalIn 0.3s ease; }
.pmodal-media { position: relative; background: var(--primary-light); }
.pmodal-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.pmodal-media .product-tag { position: absolute; top: 16px; left: 16px; }
.pmodal-info { padding: 32px 28px; min-width: 0; overflow-wrap: anywhere; }
.pmodal-title { font-size: 1.7rem; margin: 6px 0 12px; }
.pmodal-desc { white-space: pre-line; margin-bottom: 16px; }
.pmodal-info .spec-table { margin-bottom: 16px; }
.pmodal-info .check-list { margin-bottom: 20px; }
.pmodal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pmodal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: #fff; color: var(--primary-dark); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); transition: transform 0.2s; }
.pmodal-close:hover { transform: rotate(90deg); }
@keyframes pmodalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .pmodal { padding: 12px; }
  .pmodal-box { grid-template-columns: 1fr; }
  .pmodal-media img { min-height: 220px; max-height: 260px; }
  .pmodal-info { padding: 24px 20px; }
}
