/* =============================================
   BESION CHEMICAL — GLOBAL STYLES
   ============================================= */

:root {
  --primary: #2a6edb;
  --primary-rgb: 42, 110, 219;
  --primary-dark: #1a4f9e;
  --primary-light: #e7f1ff;
  --accent: #6bc8ff;
  --accent-hover: #2eaef5;
  --text-dark: #0b1c33;
  --text-body: #2f3a4a;
  --text-muted: #637082;
  --bg-light: #f4f8ff;
  --bg-white: #ffffff;
  --border: #e2e9f5;
  --border-dark: #d5deec;
  --sky-1: #f7fbff;
  --sky-2: #e6f1ff;
  --sky-3: #d8ecff;
  --ink-strong: #0b2b4b;
  --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
  --shadow-lg: 0 6px 14px rgba(15, 46, 86, 0.18);
  --radius: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --whatsapp: #25d366;
  --red: #d93025;
  --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--bg-white) 35%, var(--sky-2) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =============================================
   UTILITY
   ============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3a8cff 70%, var(--accent) 100%);
  color: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #5fb6ff 100%);
  color: #fff;
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-1px);
}

.btn-green {
  background: linear-gradient(135deg, var(--primary) 0%, #3a8cff 100%);
  color: #fff;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.22);
}

.btn-green:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3);
}

.btn-outline-green {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(var(--primary-rgb), 0.6);
}

.btn-outline-green:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}


section {
  padding: 60px 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-icon-btn:focus-visible,
.drawer-menu a:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(14, 44, 84, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo .logo-icon {
  width: auto;
  height: clamp(44px, 4.5vw, 58px);
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* Center nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 18px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
  background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.12), rgba(107, 200, 255, 0.18));
}

.nav-links a.active {
  color: var(--primary);
  background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.18), rgba(107, 200, 255, 0.22));
  font-weight: 600;
}

/* Right icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-icon-btn:hover {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(107, 200, 255, 0.18));
  color: var(--primary);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Search bar */
.search-bar {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1400px;
  box-sizing: border-box;
  background: #fff;
  padding: 16px 24px;
  box-shadow: 0 16px 30px rgba(14, 44, 84, 0.12);
  display: none;
  z-index: 999;
}

.search-bar.open {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  padding: 16px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  line-height: 1.6;
  min-height: 52px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.search-bar button {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #3a8cff 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--primary-light);
}

.search-result-item.selected {
  background: var(--primary-light);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.35);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.search-result-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.search-result-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   SIDE DRAWER (mobile)
   ============================================= */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.25s;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  right: -300px;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 1101;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--primary);
  color: #fff;
}

.drawer-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.drawer-close {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
  transition: var(--transition);
}

.drawer-close:hover {
  opacity: 1;
}

.drawer-menu {
  padding: 12px 0;
}

.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.drawer-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

.drawer-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

.drawer-menu a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.drawer-menu a img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: #0b1c33;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(42, 110, 219, 0.45), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(107, 200, 255, 0.3), transparent 55%),
    linear-gradient(180deg, rgba(7, 20, 40, 0.55) 0%, rgba(9, 28, 58, 0.35) 55%, rgba(12, 40, 78, 0.25) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: hero-float 12s ease-in-out infinite;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 90px;
  max-width: 800px;
  margin: 0 auto;
  animation: rise-in 0.9s ease both;
}

.hero-content h1 {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
  text-shadow: 0 12px 34px rgba(8, 18, 36, 0.45);
}

.hero-content p {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise-in 0.9s ease both;
  animation-delay: 0.08s;
}

.hero .btn {
  position: relative;
  overflow: hidden;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #2a6edb 0%, #4aa3ff 70%, #6bc8ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(15, 56, 120, 0.35);
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #1a4f9e 0%, #2a6edb 70%, #5fb6ff 100%);
  box-shadow: 0 18px 36px rgba(15, 56, 120, 0.4);
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 24px rgba(10, 24, 48, 0.25);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -130%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.hero .btn:hover::after {
  left: 140%;
}

/* =============================================
   CATEGORY STRIP
   ============================================= */
.category-strip {
  background: transparent;
  padding: 28px 0 10px;
}

.category-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.14);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
}

.category-item {
  text-align: center;
  flex: 1;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 6px;
  transition: var(--transition);
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #dfe6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transition: all 0.3s ease;
  background: #fff;
}

.icon-circle img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

/* Hover */
.category-item:hover .icon-circle {
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.16);
}

.category-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Active state */
.category-item.active .icon-circle {
  background: var(--primary);
  border: none;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.category-item.active img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.category-item p {
  margin-top: 8px;
  font-weight: 500;
  color: #333;
}

.category-item.active p {
  color: var(--primary);
  font-weight: 600;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-choose {
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%);
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 36px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(12, 40, 78, 0.1);
  transition: var(--transition);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  animation: rise-in 0.8s ease both;
}

.features-grid .feature-card:nth-child(1) {
  animation-delay: 0.05s;
}

.features-grid .feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3) {
  animation-delay: 0.15s;
}

.features-grid .feature-card:nth-child(4) {
  animation-delay: 0.2s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.22);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(107, 200, 255, 0.2));
  border-radius: 50%;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 18px 40px rgba(15, 46, 86, 0.12);
}

.about-text h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-text .btn {
  margin-top: 10px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 340px;
  box-shadow: 0 12px 30px rgba(15, 46, 86, 0.18);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: linear-gradient(180deg, #eaf4ff 0%, #dbeaff 100%);
  color: var(--ink-strong);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(42, 110, 219, 0.2);
}

.footer-brand .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--primary-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(11, 43, 75, 0.72);
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.35);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(11, 43, 75, 0.75);
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  font-size: 16px;
  color: var(--primary);
}

.footer-links a:hover {
  color: var(--primary-dark);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.footer-contact span {
  font-size: 14px;
  color: rgba(11, 43, 75, 0.72);
}

.footer-contact a {
  font-size: 14px;
  color: rgba(11, 43, 75, 0.72);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  padding: 18px 20px;
  font-size: 13px;
  color: rgba(11, 43, 75, 0.65);
  background: transparent;
}

.footer-bottom span {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
}

.footer-divider {
  height: 1px;
  width: min(920px, 92%);
  margin: 0 auto 12px;
  background: rgba(26, 79, 158, 0.25);
}

.footer-note {
  margin: 10px auto 0;
  max-width: 920px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--primary-dark);
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 940;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-text {
  line-height: 1.2;
}

.wa-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
}

@keyframes pulse-wa {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* =============================================
   MOBILE BOTTOM NAV
   ============================================= */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  border-radius: 50px;
  z-index: 950;
  padding: 8px 10px;
  box-shadow: var(--shadow-lg);
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  width: 16px;
  height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   PRODUCTS PAGE
   ============================================= */
.products-header {
  padding: 30px 0 0;
}

.products-layout {
  display: flex;
  gap: 30px;
  padding: 24px 0 60px;
}

/* Domestic/Global toggle */
.toggle-group {
  display: flex;
  gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 24px;
  box-shadow: 0 10px 24px rgba(14, 44, 84, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toggle-btn {
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.2px;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.toggle-btn:hover:not(.active),
.toggle-btn:focus-visible:not(.active) {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.05);
}

/* =========================
   CATEGORY ICONS — MODERN CIRCULAR SELECTOR
========================= */

/* Per-category color tokens via data-cat attribute */
[data-cat="insecticides"] {
  --cat-color: #e53935;
  --cat-glow: rgba(229, 57, 53, 0.35);
}

[data-cat="herbicides"] {
  --cat-color: #2e7d32;
  --cat-glow: rgba(46, 125, 50, 0.35);
}

[data-cat="fungicides"] {
  --cat-color: #1565c0;
  --cat-glow: rgba(21, 101, 192, 0.35);
}

[data-cat="pgr"] {
  --cat-color: #e91e8c;
  --cat-glow: rgba(233, 30, 140, 0.35);
}

[data-cat="biofertilizers"] {
  --cat-color: #e65c00;
  --cat-glow: rgba(230, 92, 0, 0.35);
}

.category-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0 36px;
  border-bottom: 1px solid #e6e6e6;
  margin-bottom: 30px;
}

/* ITEM */
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cat-item:focus-visible .cat-icon-wrap {
  outline: 3px solid var(--cat-color, var(--primary));
  outline-offset: 3px;
}

/* ICON CIRCLE */
.cat-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2.5px solid #d4d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Inline SVG icons — default grey */
.cat-icon-wrap svg.cat-icon {
  width: 38px;
  height: 38px;
  stroke: #a0a0a0;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

/* Image icons (fallback) — default grey */
.cat-icon-wrap img.cat-icon-img {
  width: 38px;
  height: 38px;
  opacity: 0.45;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
  object-fit: contain;
}

/* LABEL */
.cat-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
  transition: color 0.25s ease;
  max-width: 90px;
}

/* -------------------------
   HOVER STATE
------------------------- */
.cat-item:hover {
  transform: translateY(-3px);
}

.cat-item:hover .cat-icon-wrap {
  background: var(--cat-color, var(--primary));
  border-color: var(--cat-color, var(--primary));
  box-shadow: 0 6px 20px var(--cat-glow, rgba(0, 0, 0, 0.2));
  transform: scale(1.08);
}

.cat-item:hover .cat-icon-wrap svg.cat-icon {
  stroke: #fff;
  transform: scale(1.1);
}

.cat-item:hover .cat-icon-wrap img.cat-icon-img {
  opacity: 1;
  filter: brightness(0) invert(1);
  transform: scale(1.1);
}

.cat-item:hover .cat-label {
  color: var(--cat-color, var(--primary));
}

/* -------------------------
   ACTIVE / SELECTED STATE — persists with filled color
------------------------- */
.cat-item.active {
  transform: translateY(-3px);
}

.cat-item.active .cat-icon-wrap {
  background: var(--cat-color, var(--primary));
  border-color: var(--cat-color, var(--primary));
  box-shadow: 0 6px 22px var(--cat-glow, rgba(0, 0, 0, 0.22));
  transform: scale(1.08);
}

.cat-item.active .cat-icon-wrap svg.cat-icon {
  stroke: #fff;
}

.cat-item.active .cat-icon-wrap img.cat-icon-img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.cat-item.active .cat-label {
  color: var(--cat-color, var(--primary));
  font-weight: 700;
}

/* Product Grid */
.products-main {
  flex: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.products-grid.products-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.18), var(--shadow-lg);
}
.product-img-wrap {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfdfd;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-quick {
  position: absolute;
  inset: auto 14px 14px 14px;
  background: rgba(var(--primary-rgb), 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-quick {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .product-quick {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.product-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.product-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}

.product-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

/* Highlight badge on first product */
.product-highlight {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff6b5b 0%, #ff9a6b 100%);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  box-shadow: 0 10px 18px rgba(229, 57, 53, 0.35);
  max-width: 150px;
}

.product-highlight .hl-name {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.product-highlight .hl-comp {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.product-highlight .hl-more {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}

/* Technicals & Formulations */
.technicals-section,
.formulations-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.technicals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.technical-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: default;
  transition: var(--transition);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.technical-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.technical-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.25);
}
.technical-item::before {
  content: '›';
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.global-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.global-item-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.global-item-row .btn {
  margin-left: auto;
}

.global-item-row .btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.formulations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.formulation-item {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: default;
  transition: var(--transition);
}

.formulation-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.formulation-item.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.25);
}

/* Global products list */
.global-products-list {
  padding: 20px 0;
}

.global-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fafafa;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.global-product-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.global-product-item span {
  font-weight: 500;
  font-size: 15px;
}

/* =============================================
   PRODUCT DETAILS PAGE
   ============================================= */
.product-details-page {
  padding: 40px 0 80px;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.product-img-gallery {
  position: sticky;
  top: 100px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border: 1px solid var(--border);
}

.product-img-gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

/* EMPTY */

.product-info-col .product-name {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 6px;
}

.product-info-col .technical-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.product-info-col .technical-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-info-col .product-technical {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.product-info-col .product-desc {
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.75;
}

.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card h5 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-actions .btn {
  font-size: 15px;
  padding: 14px 24px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mobile-back {
  display: flex;
  align-items: center;
  padding: 14px 0 4px;
}

.back-to-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.back-to-category svg {
  color: var(--primary);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page {
  padding: 70px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-grid-split {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.contact-card-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #3a8cff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.contact-channel-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.contact-channel-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.contact-channel-text span {
  font-size: 14px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.contact-form .form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  min-height: 52px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  background: #fff;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  border-radius: 8px;
  padding: 14px 20px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.word-counter {
  text-align: right;
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 6px;
}

.word-counter.over {
  color: var(--red);
}

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, #1a4f9e 100%);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.admin-logo {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.admin-logo-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.admin-logo span {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.admin-logo small {
  display: block;
  font-size: 11px;
  opacity: 0.6;
}

.admin-nav {
  padding: 16px 0;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-left-color: #fff;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-nav-section {
  padding: 14px 22px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
  background: linear-gradient(180deg, #f4f8ff 0%, #ecf3ff 100%);
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar h1 {
  font-size: 22px;
  color: var(--text-dark);
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f3f6fb;
  color: var(--text-dark);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.admin-menu-btn:hover {
  background: #e9f0fb;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 52, 0.35);
  z-index: 90;
}

.admin-sidebar-overlay.open {
  display: block;
}

.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.admin-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.stat-card .stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: #fafafa;
}

.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: #f3f8ff;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.badge-active {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-inactive {
  background: #fff0f0;
  color: #e53935;
}

/* Form styles for admin */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.admin-layout .form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: #fff;
  font-family: 'Inter', sans-serif;
  outline: none;
  min-height: 52px;
  transition: var(--transition);
}

.admin-layout .form-control::placeholder {
  color: var(--text-muted);
}

.admin-layout .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.admin-layout select.form-control {
  cursor: pointer;
}

.admin-layout textarea.form-control {
  min-height: 140px;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admin-form-actions .btn {
  font-size: 16px;
  padding: 14px 26px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-danger {
  background: #e53935;
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #c62828;
}

.btn-edit {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-edit:hover {
  background: var(--primary-dark);
}

/* Modal form readability */
.modal-box {
  font-size: 16px;
}

.modal-box .form-group label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.modal-box .form-control {
  font-size: 16px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  cursor: pointer;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 16px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary);
  min-width: 260px;
  animation: slideIn 0.3s ease;
  font-size: 14px;
}

.toast.success {
  border-left-color: var(--primary);
}

.toast.error {
  border-left-color: var(--red);
}

@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.action-hint {
  position: fixed;
  z-index: 10000;
  background: #f23b3b;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(242, 59, 59, 0.35);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: min(320px, 92vw);
  text-align: center;
  white-space: nowrap;
}

.action-hint.show {
  opacity: 1;
  transform: translate(-50%, -12px);
}

.action-hint.align-right {
  transform: translate(-100%, -6px);
  text-align: right;
}

.action-hint.align-right.show {
  transform: translate(-100%, -12px);
}

.action-hint.align-center {
  transform: translate(-50%, -6px);
}

.action-hint.align-center.show {
  transform: translate(-50%, -12px);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-12px, -6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    order: -1;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-details-grid {
    grid-template-columns: 1fr;
  }

  .product-img-gallery {
    position: static;
    max-width: 440px;
    margin: 0 auto;
  }

  .technicals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-logo .logo-text {
    font-size: 17px;
  }

  .nav-logo .logo-icon {
    height: 42px;
    max-width: 180px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .search-toggle {
    order: 1;
  }

  .nav-actions .hamburger {
    order: 2;
  }
  
  /* Search Bar Mobile Refinements */
  .search-bar {
    top: 72px; /* Align exactly below navbar height */
    width: 100%;
    left: 0;
    transform: none;
    padding: 10px 16px;
    box-shadow: 0 8px 20px rgba(14, 44, 84, 0.08);
  }

  .search-bar.open {
    gap: 8px;
  }

  .search-bar input {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 14px;
  }

  .search-bar .search-close {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 18px;
    border: 1px solid var(--border);
    transition: var(--transition);
  }

  .search-bar .search-close:hover {
    background: var(--primary-light);
    color: var(--primary);
  }

  .search-results {
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: 0 10px 20px rgba(14, 44, 84, 0.1);
  }

  section {
    padding: 40px 0;
  }

  .bottom-nav {
    display: block;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 6px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    display: flex;
    bottom: calc(120px + env(safe-area-inset-bottom));
    right: 14px;
    left: auto;
    padding: 10px 14px;
    max-width: 200px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    position: fixed;
  }

  .footer {
    padding-bottom: 80px;
  }

  .bottom-nav-inner {
    justify-content: space-between;
    gap: 6px;
  }

  .bottom-nav-item {
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 12px;
  }

  .bottom-nav-item.active {
    background: transparent;
    color: var(--primary);
  }

  .bottom-nav-item.active::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--primary);
  }

  .hero-content {
    padding: 50px 20px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .category-container {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .category-item {
    flex: 0 1 120px;
  }

  .icon-circle {
    width: 56px;
    height: 56px;
  }

  .category-item p {
    font-size: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .about-image {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 10px;
  }

  #domesticSection,
  #globalSection {
    padding-bottom: 20px;
  }

  #globalSection {
    padding-bottom: 20px !important;
  }

  .products-layout {
    padding-bottom: 24px;
  }

  #relatedGrid.products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #relatedGrid.products-grid .product-card {
    flex: 0 0 78%;
    max-width: 280px;
    scroll-snap-align: start;
  }

  .category-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cat-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .cat-icon-wrap img {
    width: 28px;
    height: 28px;
  }

  .cat-label {
    font-size: 12px;
  }

  .technicals-grid {
    grid-template-columns: 1fr;
  }

  .formulations-grid {
    grid-template-columns: 1fr;
  }

  .global-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .global-item-row .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    left: -260px;
    transition: left 0.28s;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .admin-main {
    margin-left: 0;
    padding: 16px;
  }

  .admin-menu-btn {
    display: inline-flex;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .admin-topbar h1 {
    font-size: 18px;
  }

  .admin-topbar-actions,
  .admin-topbar-actions .btn {
    width: 100%;
  }

  .admin-topbar-actions .btn {
    justify-content: center;
  }

  .admin-card {
    padding: 18px;
  }

  .admin-form-actions {
    flex-direction: column;
  }

  .admin-form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .summary-stats {
    gap: 8px;
  }

  .summary-pill {
    font-size: 12px;
  }

  .modal-overlay {
    padding: 20px 12px;
  }

  .modal-box {
    padding: 22px;
  }

  .admin-card .form-control {
    max-width: 100% !important;
  }

  .summary-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-pill {
    width: 100%;
    text-align: center;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
  }

  .product-img-gallery {
    max-width: 100%;
    padding: 16px;
    min-height: auto;
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .mobile-back {
    display: flex;
  }
}

/* Desktop spacing between products and footer */
@media (min-width: 1025px) {

  #domesticSection,
  #globalSection {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    gap: 8px;
    padding: 9px 12px;
    bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .wa-text {
    font-size: 12px;
  }

  .wa-text small {
    font-size: 9px;
  }

  .category-item {
    flex: 0 1 45%;
  }

  .icon-circle {
    width: 52px;
    height: 52px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 10px;
  }

  .product-img-wrap {
    padding: 12px;
  }

  .product-quick {
    inset: auto 10px 10px 10px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .product-card-info {
    padding: 12px;
    gap: 6px;
  }

  .product-card-info h3 {
    font-size: 14px;
  }

  .product-card-info p {
    font-size: 11px;
  }

  .product-chip {
    font-size: 10px;
    padding: 3px 8px;
  }

  .product-arrow {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .category-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cat-icon-wrap {
    width: 54px;
    height: 54px;
  }

  .cat-label {
    font-size: 11px;
  }

  .admin-topbar h1 {
    font-size: 17px;
  }

  .admin-layout .form-control {
    font-size: 15px;
    padding: 14px 16px;
  }

  .admin-card {
    padding: 16px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  /* Compact Search Bar for Small Screens */
  .search-bar {
    padding: 8px 12px;
  }

  .search-bar.open {
    gap: 6px;
  }

  .search-bar input {
    padding: 8px 14px;
    min-height: 40px;
    font-size: 13px;
  }

  .search-bar .search-close {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .data-table {
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--border);
    padding: 10px 12px;
    font-size: 13px;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    flex: 0 0 120px;
  }

  .data-table td:last-child {
    border-bottom: none;
  }

  .data-table td[colspan] {
    display: block;
    text-align: center;
  }

  .data-table td[data-label="Image"] {
    justify-content: flex-start;
    gap: 16px;
  }

  .data-table td[data-label="Image"]::before {
    flex: 0 0 auto;
  }

  .data-table td[data-label="Actions"] > div {
    flex-direction: column;
    width: 100%;
  }

  .data-table td[data-label="Actions"] .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Added for product-details loading --- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
