/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-primary: #f59e0b;
  --clr-primary-dark: #d97706;
  --clr-primary-light: #fcd34d;
  --clr-accent: #1e293b;
  --clr-accent-light: #334155;
  --clr-bg: #f1f5f9;
  --clr-white: #ffffff;
  --clr-text: #1e293b;
  --clr-text-muted: #64748b;
  --clr-border: #e2e8f0;
  --clr-success: #10b981;
  --clr-danger: #ef4444;
  --clr-info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1320px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Prevent font size adjustment on iOS */
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2); /* Custom tap highlight color */
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent text selection on touch devices for UI elements */
  -webkit-touch-callout: none;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, select {
  font-family: var(--font);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
}
.section-header h2 span {
  color: var(--clr-primary-dark);
}
.section-header p {
  color: var(--clr-text-muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clr-primary);
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 2px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dark);
  background: rgba(245,158,11,0.04);
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   ANNOUNCEMENT BAR — SCROLLING TICKER
   ============================================================ */
.announcement-bar {
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.85rem;
  position: relative;
  z-index: 1000;
  border-bottom: 2px solid var(--clr-primary);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  font-weight: 500;
  color: #f1f5f9;
}

.ticker-item i {
  color: var(--clr-primary);
  font-size: 0.9rem;
}

.ticker-item strong {
  color: #f97316;
}

.ticker-sep {
  color: #475569;
  padding: 0 4px;
  font-size: 1rem;
  user-select: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.header-top {
  padding: 4px 0;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 140px;
  width: auto;
  display: block;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--clr-primary), #e67e00);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
  white-space: nowrap;
}
.logo-text strong { 
  color: #1e293b;
}
.logo-subtitle { 
  font-size: 0.75rem; 
  color: #64748b; 
  font-weight: 500;
  line-height: 1;
}

.logo-subtitle { 
  font-size: 0.75rem; 
  color: #64748b; 
  font-weight: 500;
  line-height: 1;
}

/* Header Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-nav .nav-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-nav .nav-item {
  position: relative;
}
.header-nav .nav-link {
  display: block;
  padding: 10px 20px;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.header-nav .nav-link:hover,
.header-nav .nav-link.active {
  color: var(--clr-primary);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.lang-selector:hover {
  background: #f8f9fa;
  border-color: var(--clr-primary);
}
.lang-selector i {
  font-size: 0.9rem;
}

/* Social Icons */
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
  transition: var(--transition);
  border-radius: 6px;
}
.social-icon:hover {
  background: #f8f9fa;
}

/* Social Media Brand Colors */
.social-icon-linkedin {
  color: #0077B5;
}
.social-icon-linkedin:hover {
  background: #0077B5;
  color: #fff;
}
.social-icon-facebook {
  color: #1877F2;
}
.social-icon-facebook:hover {
  background: #1877F2;
  color: #fff;
}
.social-icon-whatsapp {
  color: #25D366;
}
.social-icon-whatsapp:hover {
  background: #25D366;
  color: #fff;
}
.social-icon-phone {
  color: var(--clr-primary);
}
.social-icon-phone:hover {
  background: var(--clr-primary);
  color: #1e293b;
}

/* Divider */
.divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.header-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #1e293b;
  font-size: 1.05rem;
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}
.header-action-btn:hover {
  background: #f8f9fa;
  color: var(--clr-primary);
}
.header-action-btn .badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: var(--clr-danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge.zero { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: #1e293b;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: #fff;
  padding: 60px 0 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open .mobile-menu-content {
  transform: translateX(0);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-nav-link {
  display: block;
  padding: 16px 24px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #f8f9fa;
  color: var(--clr-primary);
}
.mobile-menu-actions {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid #e2e8f0;
  margin-top: 10px;
}
.mobile-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.mobile-action-btn:hover {
  background: #e2e8f0;
}
.mobile-action-btn i {
  font-size: 1.1rem;
  color: var(--clr-primary);
}
.mobile-action-btn .badge {
  margin-left: auto;
  background: var(--clr-danger);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Main Nav */
.main-nav {
  background: var(--clr-accent);
}
.nav-inner {
  display: flex;
}
.nav-list {
  display: flex;
  gap: 0;
}
.nav-item a {
  display: block;
  color: #cbd5e1;
  padding: 13px 22px;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-item a:hover,
.nav-item.active a {
  color: var(--clr-primary);
  background: rgba(245,158,11,0.08);
}
.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-primary);
}
.nav-item a i { font-size: 0.6rem; margin-left: 3px; }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  color: var(--clr-text);
  padding: 11px 20px;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  border-bottom: 1px solid var(--clr-border);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--clr-primary-dark); background: #fef3c7; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.55) 50%, rgba(15,23,42,0.15) 100%);
}

.hero-slide .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  color: #fff;
  max-width: 620px;
  text-align: left;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-primary);
  color: #1e293b;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.hero-content h1 span { color: var(--clr-primary); }
.hero-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-primary);
}
.stat-label { font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hero-nav:hover {
  background: var(--clr-primary);
  color: #1e293b;
  border-color: var(--clr-primary);
}
.hero-dots { display: flex; gap: 8px; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--clr-primary);
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
  transform: scale(1.2);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
}
.trust-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.6rem 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item > i {
  font-size: 1.4rem;
  color: var(--clr-primary-dark);
  width: 22px;
  text-align: center;
}
.trust-item div strong {
  display: block;
  font-size: 0.88rem;
  color: var(--clr-accent);
}
.trust-item div span {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   BULK CALCULATOR PROMO
   ============================================================ */
.calculator-promo {
  background: linear-gradient(135deg, #2d1810 0%, #1a0f08 100%);
  padding: 3rem 0;
  margin: 3rem 0;
}
.calculator-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.calculator-promo-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}
.calculator-promo-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}
.calculator-promo-icon i {
  font-size: 2rem;
  color: #fff;
}
.calculator-promo-content > div h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}
.calculator-promo-content > div p {
  font-size: 0.95rem;
  color: #d4c5b9;
  margin: 0;
  line-height: 1.5;
}
.calculator-promo .btn-primary {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: all 0.3s ease;
}
.calculator-promo .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* ============================================================
   FEATURED CATEGORIES
   ============================================================ */
.featured-categories {
  padding: 4rem 0 3rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  display: block;
}
.cat-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.6rem;
}
.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 4px;
}
.cat-card p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}
.cat-count {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: var(--clr-primary-dark);
  background: rgba(245,158,11,0.1);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  padding: 2.5rem 0 4rem;
}
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: stretch;
  width: 100%;
}

/* Sidebar */
.sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-border);
}
.sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-accent);
}
.sidebar-header h3 i { color: var(--clr-primary-dark); margin-right: 6px; }
.sidebar-close { display: none; color: var(--clr-text-muted); font-size: 1.1rem; }
.sidebar-close:hover { color: var(--clr-danger); }

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}
.active-filters:empty { display: none; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.1);
  color: var(--clr-primary-dark);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-tag .remove {
  cursor: pointer;
  color: var(--clr-danger);
  font-size: 0.7rem;
}
.filter-tag .remove:hover { opacity: 0.7; }

/* Filter Groups */
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
}
.filter-list li {
  margin-bottom: 0.55rem;
}
.filter-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--clr-text);
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.45;
}
.filter-list label:hover { background: #f8fafc; color: var(--clr-primary-dark); }
.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--clr-primary-dark);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
}
.rating-filter .stars { color: #f59e0b; font-size: 0.82rem; letter-spacing: 1px; }

/* Price Range */
.price-range { margin-top: 0.5rem; }
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
}
.price-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
}
.price-input-wrap span {
  background: #f1f5f9;
  padding: 7px 8px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-weight: 600;
}
.price-input-wrap input {
  border: none;
  outline: none;
  padding: 7px 8px;
  width: 60px;
  font-size: 0.82rem;
}
.price-dash { color: var(--clr-text-muted); font-weight: 600; }
#priceSlider {
  width: 100%;
  accent-color: var(--clr-primary-dark);
  margin-bottom: 0.6rem;
}

/* Products Main */
.products-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.filter-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--clr-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.filter-toggle-btn:hover { background: var(--clr-accent-light); }
.results-count { font-size: 0.82rem; color: var(--clr-text-muted); }

.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--clr-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.sort-select:focus { border-color: var(--clr-primary); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.view-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary-dark); }
.view-btn.active {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.product-grid.list-view {
  grid-template-columns: 1fr;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid transparent;
}
.product-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Card Badges */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-sale { background: var(--clr-danger); color: #fff; }
.badge-new { background: var(--clr-success); color: #fff; }
.badge-best { background: var(--clr-primary); color: #1e293b; }
.badge-bulk { background: var(--clr-info); color: #fff; }

/* Card Image */
.card-img-wrap {
  position: relative;
  padding: 1.2rem;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, #f8fafc, transparent);
  pointer-events: none;
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform var(--transition);
  border-radius: var(--radius-sm);
}
.product-card:hover .card-img {
  transform: scale(1.05);
}
/* Inline SVG product illustrations */
.card-img-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.card-img-placeholder svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.product-card:hover .card-img-placeholder { transform: scale(1.04); }

/* Wishlist Button on Card */
.card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  z-index: 3;
  transition: var(--transition);
  border: 1px solid var(--clr-border);
}
.card-wishlist:hover, .card-wishlist.active {
  color: var(--clr-danger);
  background: #fff;
  border-color: var(--clr-danger);
}
.card-wishlist.active { color: var(--clr-danger); }

/* Card Body */
.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary-dark);
  margin-bottom: 4px;
}
.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 1.4;
  margin-bottom: 6px;
  flex-grow: 1;
}
.card-meta {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.5rem;
}
.card-meta i { margin-right: 3px; }

/* Rating */
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.6rem;
}
.stars-display { color: #f59e0b; font-size: 0.78rem; letter-spacing: 1px; }
.rating-count { font-size: 0.72rem; color: var(--clr-text-muted); }

/* Price */
.card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--clr-accent);
}
.price-original {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}
.price-per-bag {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}
.price-save {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-danger);
  background: rgba(239,68,68,0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

/* Add to Cart */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.btn-add-cart {
  flex: 1;
  padding: 10px 16px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
  border: none;
  min-height: 40px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
}
.btn-add-cart:hover {
  background: var(--clr-primary);
  color: #1e293b;
}
.btn-add-cart:active {
  transform: scale(0.98);
}
.btn-quick-view {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  background: #fff;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  touch-action: manipulation;
}
.btn-quick-view:hover { border-color: var(--clr-primary); color: var(--clr-primary-dark); }
.btn-quick-view:active { transform: scale(0.95); }

/* List View Styles */
.product-grid.list-view .product-card {
  flex-direction: row;
}
.product-grid.list-view .card-img-wrap {
  width: 220px;
  min-height: 200px;
  flex-shrink: 0;
}
.product-grid.list-view .card-img-placeholder {
  height: 100%;
  min-height: 200px;
}
.product-grid.list-view .card-body {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.product-grid.list-view .card-info { flex: 1; min-width: 200px; }
.product-grid.list-view .card-actions { flex-direction: column; min-width: 140px; }

/* Load More */
.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   BRAND STRIP
   ============================================================ */
.brand-strip {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.brand-strip h3 {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.brand-logo {
  padding: 14px 28px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.brand-logo:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 2px 12px rgba(245,158,11,0.15);
  transform: translateY(-2px);
}
.brand-logo span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--clr-accent);
  letter-spacing: -0.02em;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: 4rem 0;
}
.why-us-flex {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.why-us-image-wrap {
  flex: 1 1 400px;
  max-width: 600px;
}
.why-us-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.why-us-content-wrap {
  flex: 1 1 400px;
  max-width: 600px;
}
.why-us-overview-card {
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-radius: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.why-us-overview-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.why-us-overview-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}
.why-us-overview-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}
.why-us-overview-card > .why-us-overview-header > p {
  color: #64748b;
  max-width: 420px;
  margin: 0 auto;
}
.why-us-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  grid-auto-rows: 1fr;
}
.why-us-pillar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  height: 100%;
  box-sizing: border-box;
}
.why-us-pillar:hover {
  border-color: var(--clr-primary);
  background: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1rem;
}
.why-us-pillar div {
  display: flex;
  flex-direction: column;
}
.why-us-pillar strong {
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.why-us-pillar span:not(.pillar-icon) {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.3;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.why-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--clr-primary-dark);
  font-size: 1.5rem;
  transition: background var(--transition), transform var(--transition);
}
.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-accent);
}
.why-card p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #334155 100%);
  padding: 2.8rem 0;
  margin: 0 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-content {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.newsletter-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,158,11,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.newsletter-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 3px; }
.newsletter-content p { font-size: 0.82rem; color: #94a3b8; }

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 300px;
  max-width: 440px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
}
.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form input:focus { background: rgba(255,255,255,0.12); border-color: var(--clr-primary); }
.newsletter-form .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-accent);
  color: #cbd5e1;
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: var(--transition);
}
.footer-col ul a i { font-size: 0.6rem; margin-right: 6px; color: var(--clr-primary); }
.footer-col ul a:hover { color: var(--clr-primary); padding-left: 4px; }

/* Footer About */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.footer-logo i {
  width: 34px;
  height: 34px;
  background: var(--clr-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-logo-img { height: 120px; width: auto; display: block; }
.footer-about p { font-size: 0.82rem; color: #64748b; line-height: 1.7; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--clr-primary);
  color: #1e293b;
}

/* Payment / Delivery badges */
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-badge {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Contact List */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}
.contact-list i {
  color: var(--clr-primary);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: #475569; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.78rem; color: #475569; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--clr-primary); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(3px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.visible { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transition: right var(--transition);
}
.cart-drawer.open { right: 0; }

.cart-header {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-accent);
  color: #fff;
}
.cart-header h3 { font-size: 1.05rem; font-weight: 700; }
.cart-header h3 i { margin-right: 8px; color: var(--clr-primary); }
.cart-close { color: #94a3b8; font-size: 1.2rem; transition: var(--transition); }
.cart-close:hover { color: #fff; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.6rem;
}

/* Cart Empty */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.cart-empty i {
  font-size: 3rem;
  color: var(--clr-border);
  margin-bottom: 1rem;
}
.cart-empty p { color: var(--clr-text-muted); margin-bottom: 1.2rem; }

/* Cart Item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px;
  height: 72px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}
.cart-item-img svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cart-item-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; color: var(--clr-accent); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-variant { font-size: 0.72rem; color: var(--clr-text-muted); margin-bottom: 0.5rem; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--clr-primary-dark); }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--clr-border);
  background: #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--clr-text);
  transition: var(--transition);
}
.qty-btn:first-child { border-radius: 6px 0 0 6px; }
.qty-btn:last-child { border-radius: 0 6px 6px 0; }
.qty-btn:hover { background: var(--clr-primary); border-color: var(--clr-primary); color: #1e293b; }
.qty-display {
  width: 34px;
  height: 26px;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  transition: var(--transition);
  padding: 4px;
}
.cart-item-remove:hover { color: var(--clr-danger); }

/* Cart Footer */
.cart-footer {
  border-top: 2px solid var(--clr-border);
  padding: 1.2rem 1.6rem;
  background: #f8fafc;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.cart-note {
  font-size: 0.75rem;
  color: var(--clr-success);
  margin-bottom: 1rem;
}
.cart-note i { margin-right: 5px; }
.cart-footer .btn { margin-bottom: 8px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: 90vw;
}
.toast {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--clr-success);
  animation: slideInToast 0.3s ease forwards;
  position: relative;
}
.toast.error { border-left-color: var(--clr-danger); }
.toast.info { border-left-color: var(--clr-info); }
.toast-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.toast.error .toast-icon { color: var(--clr-danger); }
.toast .toast-icon { color: var(--clr-success); }
.toast.info .toast-icon { color: var(--clr-info); }
.toast-text { font-size: 0.85rem; color: var(--clr-text); flex: 1; }
.toast-text strong { color: var(--clr-accent); }
.toast-close {
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.toast-close:hover { color: var(--clr-danger); }

@keyframes slideInToast {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.hide {
  animation: slideOutToast 0.3s ease forwards;
}
@keyframes slideOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--clr-primary); color: #1e293b; }

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col.footer-about { grid-column: 1 / -1; }
  .hero { height: 480px; }
  .hero-content h1 { font-size: 2.6rem; }
  
  /* Hero controls */
  .hero-controls { bottom: 24px; }
  
  /* Categories */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  
  /* Improved touch targets for mobile */
  a, button { 
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Announcement bar - stack items on mobile */
  /* Ticker slightly smaller on mobile */
  .ticker-item { font-size: 0.8rem; padding: 0 18px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Logo */
  .logo-text { font-size: 1.1rem; }
  .logo-subtitle { font-size: 0.65rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 1rem; }
  .logo-img { height: 60px; }

  /* Hide desktop navigation, social icons, language selector on mobile */
  .header-nav { display: none; }
  .lang-selector { display: none; }
  .social-icon { display: none; }
  .divider { display: none; }
  
  /* Only show cart button and hamburger on mobile */
  .header-action-btn:not(.cart-btn) { 
    display: none !important;
  }
  .header-actions { gap: 6px; }

  /* Hero */
  .hero { height: 400px; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 2rem; line-height: 1.2; }
  .hero-content p { font-size: 0.9rem; margin-bottom: 1.4rem; }
  .hero-btns { gap: 10px; margin-bottom: 1.8rem; }
  .hero-btns .btn { font-size: 0.85rem; padding: 11px 20px; }
  .hero-btns .btn-ghost { display: none; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  
  /* Hide hero-stats on first slide only on mobile */
  .hero-slide:first-child .hero-stats { display: none; }
  
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.72rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-controls { bottom: 20px; gap: 12px; }
  .hero-nav { width: 38px; height: 38px; font-size: 0.9rem; }

  /* Trust strip - icons only on mobile */
  .trust-inner { gap: 1rem; padding: 1.2rem 14px; justify-content: space-around; }
  .trust-item { 
    flex: 0 0 auto;
    min-width: auto;
  }
  .trust-item > i { font-size: 1.5rem; }
  .trust-item div { display: none; }

  /* Calculator promo */
  .calculator-promo { padding: 2rem 0; margin: 2rem 0; }
  .calculator-promo-inner { flex-direction: column; text-align: center; }
  .calculator-promo-content { flex-direction: column; text-align: center; }
  .calculator-promo-content > div h3 { font-size: 1.3rem; }
  .calculator-promo-content > div p { font-size: 0.88rem; }
  .calculator-promo .btn-primary { width: 100%; max-width: 300px; }

  /* Sections */
  .featured-categories { padding: 3rem 0 2rem; }
  .products-section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .section-header p { font-size: 0.88rem; }

  /* Products layout: sidebar overlay */
  .products-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .products-main {
    width: 100%;
    max-width: 100%;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -110%;
    width: min(320px, 90vw);
    height: 100vh;
    max-height: none;
    border-radius: 0;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1rem 1.5rem;
  }
  .sidebar.open { left: 0; }
  .sidebar-close { display: block; }
  .filter-toggle-btn {
    display: flex;
    width: 100%;
  }
  
  /* Toolbar - optimized for mobile */
  .products-toolbar { 
    flex-direction: column; 
    gap: 12px; 
    align-items: stretch;
    padding: 14px 12px;
    margin-bottom: 1rem;
  }
  .toolbar-left { 
    width: 100%; 
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-right { 
    width: 100%; 
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .results-count { 
    font-size: 0.82rem;
    flex: 1 1 auto;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .sort-select { 
    font-size: 0.85rem; 
    padding: 11px 36px 11px 12px; 
    min-height: 44px;
    width: 100%;
    max-width: 100%;
  }
  
  /* Hide view toggle on mobile - grid view is better */
  .view-toggle { display: none !important; }

  .filter-group h4 { font-size: 0.76rem; }
  .filter-list li { margin-bottom: 0.45rem; }
  .filter-list label {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  /* Product grid - optimized for mobile */
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    margin-bottom: 1.5rem;
  }
  
  /* Force grid view on mobile */
  .product-grid.list-view {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .card-img, .card-img-placeholder { height: 165px; }
  .card-body { padding: 12px; }
  .card-title { 
    font-size: 0.87rem; 
    line-height: 1.4; 
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .card-brand { font-size: 0.7rem; margin-bottom: 3px; }
  .card-meta { font-size: 0.72rem; margin-bottom: 6px; }
  .card-rating { font-size: 0.7rem; margin-bottom: 8px; gap: 5px; }
  .stars-display { font-size: 0.74rem; }
  .rating-count { font-size: 0.7rem; }
  .card-price { margin-bottom: 10px; gap: 6px; }
  .price-current { font-size: 1.1rem; }
  .price-original { font-size: 0.74rem; }
  .price-save { font-size: 0.67rem; padding: 3px 6px; }
  
  /* Card actions */
  .card-actions { gap: 6px; }
  .btn-add-cart { 
    font-size: 0.78rem; 
    padding: 10px 10px; 
    min-height: 40px;
    gap: 5px;
  }
  .btn-quick-view {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
  }
  
  /* Card badges */
  .card-badge { font-size: 0.67rem; padding: 4px 8px; }
  .card-badges { top: 8px; left: 8px; gap: 4px; }
  .card-wishlist { width: 36px; height: 36px; font-size: 0.82rem; top: 8px; right: 8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col.footer-about { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
  .footer-bottom { padding: 1.2rem 0; }
  .footer-logo-img { height: 70px; }

  /* Why Us */
  .why-us { padding: 2.5rem 0; }
  .why-us-flex { flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
  .why-us-image-wrap,
  .why-us-content-wrap { flex: none; width: 100%; max-width: 100%; }
  .why-us-overview-card { padding: 1.5rem; }
  .why-us-overview-card h4 { font-size: 1.2rem; }
  .why-us-overview-icon { font-size: 2rem; margin-bottom: 0.75rem; }
  .why-us-pillars { grid-template-columns: 1fr; }

  /* Newsletter */
  .newsletter { margin: 0 0 1rem; border-radius: 0; padding: 2rem 14px; }
  .newsletter-inner { flex-direction: column; text-align: center; gap: 1.2rem; }
  .newsletter-form { max-width: 100%; }
  .newsletter-content { flex-direction: column; gap: 0.4rem; }
  .newsletter h3 { font-size: 1.4rem; }
  .newsletter p { font-size: 0.85rem; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 1.4rem 1rem; }
  .cat-icon-wrap { width: 56px; height: 56px; font-size: 1.6rem; }
  .cat-card h3 { font-size: 0.95rem; }
  .cat-card p { font-size: 0.75rem; }
  .cat-count { font-size: 0.7rem; }
  
  /* Hide waterproofing category on mobile */
  .categories-grid .cat-card:last-child { display: none; }
  
  /* Buttons */
  .btn-lg { font-size: 0.9rem; padding: 12px 24px; }
  .btn { white-space: nowrap; }
  
  /* Calculator modal */
  .calc-modal { 
    width: calc(100vw - 24px);
    max-height: 85vh;
  }
  .calc-header { padding: 1.1rem 1.2rem; }
  .calc-header h3 { font-size: 1rem; }
  .calc-body { padding: 1.2rem; }
  .calc-tabs { gap: 4px; }
  .calc-tab { 
    min-width: auto; 
    padding: 8px 6px; 
    font-size: 0.72rem;
    flex: 1;
  }
  .calc-stat { padding: 0.7rem 0.4rem; }
  .calc-stat-val { font-size: 1.1rem; }
  .calc-stat-highlight { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }

  .sidebar {
    width: 100vw;
    padding: 1rem 0.9rem 1.25rem;
  }
  
  /* Logo even smaller */
  .logo-text { font-size: 1rem; }
  .logo-domain { display: none; }
  
  /* Why Us small mobile */
  .why-us-overview-card { padding: 1.25rem; }
  .why-us-overview-card h4 { font-size: 1.1rem; }
  .why-us-pillar { padding: 0.7rem 0.85rem; }
  .pillar-icon { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
  .why-us-pillar strong { font-size: 0.85rem; }
  .why-us-pillar span:not(.pillar-icon) { font-size: 0.75rem; }

  /* Calculator promo adjustments for very small screens */
  .calculator-promo { padding: 1.5rem 0; }
  .calculator-promo-icon { width: 60px; height: 60px; }
  .calculator-promo-icon i { font-size: 1.7rem; }
  .calculator-promo-content > div h3 { font-size: 1.2rem; }
  .calculator-promo-content > div p { font-size: 0.85rem; }
  
  /* Header */
  .header-inner { gap: 10px; }
  .header-action-btn { width: 44px; height: 44px; font-size: 1rem; }
  .cart-btn { min-width: 44px; min-height: 44px; }
  
  /* Product grid - single column for better mobile viewing */
  .product-grid { 
    grid-template-columns: 1fr; 
    gap: 14px;
    margin-bottom: 1.5rem;
  }
  
  /* Force single column on small mobile */
  .product-grid.list-view {
    grid-template-columns: 1fr !important;
  }
  
  .card-img, .card-img-placeholder { height: 220px; }
  .product-card { 
    touch-action: manipulation;
    max-width: 100%;
  }
  
  /* Better single-column card layout */
  .card-body { padding: 14px; }
  .card-title { 
    font-size: 0.92rem; 
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .card-brand { font-size: 0.74rem; }
  .card-rating { margin-bottom: 10px; }
  .stars-display { font-size: 0.78rem; }
  .rating-count { font-size: 0.72rem; }
  .price-current { font-size: 1.25rem; }
  .price-original { font-size: 0.8rem; }
  .card-price { gap: 8px; }
  
  .card-actions { 
    display: flex;
    gap: 8px;
  }
  .btn-add-cart {
    flex: 1;
    font-size: 0.85rem;
    padding: 12px 14px;
    min-height: 44px;
  }
  .btn-quick-view {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }
  
  /* Larger badges for single column */
  .card-badge { font-size: 0.71rem; padding: 5px 10px; }
  .card-wishlist { width: 40px; height: 40px; font-size: 0.9rem; top: 10px; right: 10px; }
  
  /* Hero */
  .hero { height: 340px; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.85rem; }
  .hero-stats { gap: 1rem; }
  .stat { align-items: center; }
  
  /* Categories - 2 column grid */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 1.2rem 0.8rem; }
  .cat-icon-wrap { width: 48px; height: 48px; font-size: 1.4rem; }
  .cat-card h3 { font-size: 0.88rem; }
  .cat-card p { font-size: 0.7rem; }
  
  /* Announcement bar */
  /* Trust strip - keep icons only */
  .trust-inner { flex-direction: row; gap: 0.8rem; padding: 1rem 12px; justify-content: space-around; }
  .trust-item { flex: 0 0 auto; min-width: auto; }
  .trust-item > i { font-size: 1.6rem; }
  .trust-item div { display: none; }
  
  /* Buttons - improved touch targets */
  .btn-lg { font-size: 0.85rem; padding: 13px 24px; min-height: 44px; }
  .btn { font-size: 0.8rem; padding: 11px 18px; min-height: 44px; }
  
  /* Sections padding */
  .featured-categories { padding: 2.5rem 0 1.5rem; }
  .products-section { padding: 2.5rem 0; }
  
  /* Section headers */
  .section-header h2 { font-size: 1.4rem; }
  .section-header p { font-size: 0.82rem; }
  
  /* Calculator adjustments */
  .calc-modal { 
    width: calc(100vw - 16px);
    max-height: 88vh;
  }
  .calc-result-stats { flex-direction: column; gap: 8px; }
  .calc-header-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .calc-tabs { flex-direction: column; }
  .calc-tab { width: 100%; }
}

/* ============================================================
   CEMENT CALCULATOR MODAL
   ============================================================ */
.calc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(3px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.calc-overlay.visible { opacity: 1; visibility: visible; }

.calc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  width: 560px;
  max-width: 94vw;
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2501;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition);
  overflow: hidden;
}
.calc-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Header */
.calc-header {
  background: var(--clr-accent);
  color: #fff;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.calc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.calc-header-icon {
  width: 46px;
  height: 46px;
  background: var(--clr-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.calc-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.calc-header p { font-size: 0.78rem; color: #94a3b8; }
.calc-close { color: #94a3b8; font-size: 1.2rem; transition: var(--transition); }
.calc-close:hover { color: #fff; }

/* Body – scrollable */
.calc-body {
  padding: 1.4rem 1.6rem 1.6rem;
  overflow-y: auto;
  flex: 1;
}

/* Tabs */
.calc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.calc-tab {
  flex: 1;
  min-width: 90px;
  padding: 9px 10px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.calc-tab:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dark);
}
.calc-tab.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #1e293b;
}
.calc-tab i { font-size: 0.75rem; }

/* Inputs */
.calc-inputs { margin-bottom: 1.2rem; }
.calc-input-group { display: flex; flex-direction: column; gap: 10px; }
.calc-input-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.calc-input-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-input-row input {
  padding: 10px 14px;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-accent);
  outline: none;
  transition: var(--transition);
  background: #fafbfc;
}
.calc-input-row input:focus {
  border-color: var(--clr-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.calc-input-row input::placeholder { color: #cbd5e1; font-weight: 400; }

/* Thickness presets */
.calc-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.calc-preset-label {
  font-size: 0.73rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  margin-right: 2px;
}
.calc-preset {
  padding: 4px 10px;
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: #f8fafc;
  transition: var(--transition);
  cursor: pointer;
}
.calc-preset:hover,
.calc-preset.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #1e293b;
}

/* Results */
.calc-results {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 1.3rem;
  border: 1px solid var(--clr-border);
}

/* Empty state */
.calc-result-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.calc-result-empty i {
  font-size: 2rem;
  color: var(--clr-border);
  margin-bottom: 0.6rem;
}
.calc-result-empty p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

/* Result stats row */
.calc-result-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}
.calc-stat {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.6rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--clr-border);
}
.calc-stat-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1.2;
}
.calc-stat-highlight { color: var(--clr-primary-dark); font-size: 1.6rem; }
.calc-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  font-weight: 600;
}

/* Result detail text */
.calc-result-detail {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  padding: 0.7rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1rem;
}
.calc-result-detail strong { color: var(--clr-accent); }

/* Actions */
.calc-result-actions { text-align: center; }
.calc-disclaimer {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Why-card calculator trigger – make clickable */
.why-card[data-action="calculator"] {
  cursor: pointer;
}
.why-card[data-action="calculator"]:hover .why-icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(217,119,6,0.15));
  transform: scale(1.06);
}

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.visible { opacity: 1; visibility: visible; }

/* ============================================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================================ */
/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  .site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* Smooth scrolling for touch devices */
@media (hover: none) and (pointer: coarse) {
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better tap response */
  a, button, .card, .cat-card, .nav-item {
    -webkit-tap-highlight-color: rgba(245, 158, 11, 0.15);
    touch-action: manipulation;
  }
}

/* Disable list view on mobile for better experience */
@media (max-width: 768px) {
  .product-grid.list-view {
    grid-template-columns: 1fr !important;
  }
  
  .product-grid.list-view .product-card {
    flex-direction: column;
  }
  
  .product-grid.list-view .card-img-wrap {
    width: 100%;
    min-width: 100%;
  }
  
  .product-grid.list-view .card-body {
    flex-direction: column;
  }
}

/* Landscape mode optimizations for mobile */
@media screen and (max-width: 896px) and (orientation: landscape) {
  .hero {
    height: 380px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .site-header {
    position: relative; /* Allow scrolling past header in landscape */
  }
}

/* Very small devices (e.g., iPhone SE) */
@media (max-width: 375px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  /* Product section optimizations */
  .products-toolbar {
    padding: 10px;
    gap: 10px;
  }
  
  .filter-toggle-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  
  .sort-select {
    font-size: 0.8rem;
    padding: 10px 32px 10px 10px;
  }
  
  .results-count {
    font-size: 0.78rem;
  }
  
  .product-grid {
    gap: 12px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .card-title {
    font-size: 0.88rem;
  }
  
  .btn-add-cart {
    font-size: 0.82rem;
    padding: 11px 12px;
    min-height: 44px;
  }
  
  .price-current {
    font-size: 1.15rem;
  }
  
  .card-img, .card-img-placeholder {
    height: 200px;
  }
}

/* ============================================================
   ABOUT PAGE STYLES (Light Mode)
   ============================================================ */

/* Page Hero */
.page-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.page-hero-content .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.page-hero-content .breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero-content .breadcrumb a:hover { color: #fff; }
.page-hero-content .breadcrumb i { font-size: 0.65rem; }
.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}
.page-hero-content h1 span { color: #f59e0b; }
.page-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0;
}

/* About Overview */
.about-overview-section {
  padding: 5rem 0;
  background: #fff;
}
.about-overview-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.about-overview-text {
  flex: 1;
}
.about-overview-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
}
.about-overview-text h2 span { color: #f59e0b; }
.about-overview-text .lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-overview-text p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-overview-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
.overview-stat {
  text-align: center;
}
.overview-stat .stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
}
.overview-stat .stat-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.about-overview-image {
  flex: 0 0 550px;
  max-width: 550px;
}
.about-overview-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Why Choose Section */
.why-choose-section {
  padding: 5rem 0;
  background: #f8fafc;
}
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-choose-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.why-choose-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.why-choose-icon i {
  font-size: 1.4rem;
  color: #fff;
}
.why-choose-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.8rem 0;
}
.why-choose-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background: #fff;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.value-icon i {
  font-size: 1.4rem;
  color: #d97706;
}
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.8rem 0;
}
.value-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Certifications */
.certifications-section {
  padding: 5rem 0;
  background: #f8fafc;
}
.certifications-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.certification-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.certification-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.certification-icon i {
  font-size: 1.2rem;
  color: #fff;
}
.certification-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}
.certification-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Experience Stats */
.experience-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.experience-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.experience-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.experience-icon i {
  font-size: 1.2rem;
  color: #fff;
}
.experience-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #f59e0b;
}
.experience-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}
.experience-content p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: #fff;
}
.team-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}
.team-text {
  flex: 1;
}
.team-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
}
.team-text h2 span { color: #f59e0b; }
.team-text .lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.team-text p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.team-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.team-highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.team-highlight > i {
  font-size: 1.2rem;
  color: #f59e0b;
  margin-top: 4px;
}
.team-highlight h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}
.team-highlight p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}
.team-image {
  flex: 0 0 400px;
}
.team-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem 0;
}
.cta-content p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cta-section .btn-primary {
  background: #1e293b;
  color: #fff;
  border: none;
}
.cta-section .btn-primary:hover {
  background: #0f172a;
}
.cta-section .btn-ghost {
  border-color: #fff;
  color: #fff;
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Section Header (shared) */
.about-overview-section .section-header,
.why-choose-section .section-header,
.values-section .section-header,
.certifications-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.why-choose-section .section-header h2,
.values-section .section-header h2,
.certifications-section .section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.8rem 0;
}
.why-choose-section .section-header h2 span,
.values-section .section-header h2 span,
.certifications-section .section-header h2 span {
  color: #f59e0b;
}
.why-choose-section .section-header p,
.values-section .section-header p,
.certifications-section .section-header p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   CONTACT PAGE STYLES (Light Mode)
   ============================================================ */

.contact-page-section {
  padding: 4rem 0 5rem;
  background: #f8fafc;
}
.contact-page-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-page-header .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.contact-page-header .breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-page-header .breadcrumb a:hover { color: #f59e0b; }
.contact-page-header .breadcrumb i { font-size: 0.65rem; color: #94a3b8; }
.contact-page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.8rem 0;
}
.contact-page-header h1 span { color: #f59e0b; }
.contact-page-header p {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}

.contact-page-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.contact-form-main {
  flex: 1;
  min-width: 0;
}
.contact-sidebar {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Quote Form */
.quote-form {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.form-section {
  margin-bottom: 2rem;
}
.form-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section h3 i {
  color: #f59e0b;
}
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  flex: 1;
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}
.form-group textarea {
  resize: vertical;
}
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}
.form-actions .btn-block {
  width: 100%;
}
.form-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 1rem;
}
.form-note i {
  color: #059669;
  margin-right: 4px;
}

/* Contact Sidebar Info Boxes */
.contact-info-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.contact-info-box.highlight {
  border: 2px solid #f59e0b;
}
.contact-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.contact-info-header i {
  font-size: 1.1rem;
  color: #f59e0b;
}
.contact-info-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.contact-info-content {
  padding: 1.2rem;
}
.contact-info-content p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.3rem 0;
}
.contact-highlight {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 0.5rem !important;
}
.contact-hours p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 4px 0;
}
.delivery-provinces {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.delivery-provinces li {
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.delivery-provinces li i {
  color: #059669;
  font-size: 0.7rem;
}
.contact-info-action-btn {
  margin-top: 1rem;
}

/* ============================================================
   ABOUT & CONTACT PAGE RESPONSIVE
   ============================================================ */

/* About page – tablet (960px) */
@media (max-width: 960px) {
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .why-choose-section,
  .values-section,
  .certifications-section { padding: 3.5rem 0; }
}

@media (max-width: 768px) {
  .page-hero { height: 280px; }
  .page-hero-content h1 { font-size: 1.8rem; }
  .page-hero-content p { font-size: 0.9rem; }

  .about-overview-content { flex-direction: column; gap: 2rem; }
  .about-overview-image { flex: none; width: 100%; }
  .about-overview-stats { flex-wrap: wrap; gap: 1.5rem; }

  .why-choose-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .certifications-content { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }

  /* About section padding */
  .why-choose-section,
  .values-section,
  .certifications-section { padding: 3rem 0; }

  /* Section header adjustments */
  .why-choose-section .section-header,
  .values-section .section-header,
  .certifications-section .section-header { margin-bottom: 1.8rem; }

  .why-choose-section .section-header h2,
  .values-section .section-header h2,
  .certifications-section .section-header h2 { font-size: 1.6rem; }

  /* Tighter card padding on mobile */
  .why-choose-card { padding: 1.5rem; }
  .value-card { padding: 1.5rem 1.2rem; }
  .certification-card { padding: 1.5rem; gap: 1rem; }

  .team-content { flex-direction: column; gap: 2rem; }
  .team-image { flex: none; width: 100%; }

  .cta-section { padding: 2.5rem 0; }
  .cta-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-content h2 { font-size: 1.6rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .contact-page-layout { flex-direction: column; }
  .contact-sidebar { flex: none; width: 100%; }
  .contact-page-header h1 { font-size: 1.8rem; }

  .form-row { flex-direction: column; gap: 0; }

  /* Bulk Calculator responsive */
  .bulk-calc-wrapper { flex-direction: column; }
  .bulk-calc-inputs, .bulk-calc-results { flex: none; width: 100%; }
  .bulk-calc-tabs { flex-wrap: wrap; }
  .bulk-calc-dims { grid-template-columns: 1fr; }
  .bulk-result-grid { grid-template-columns: 1fr 1fr; }
}

/* About page – small mobile (480px) */
@media (max-width: 480px) {
  .page-hero { height: 200px; }

  .why-choose-section,
  .values-section,
  .certifications-section,
  .cta-section { padding: 2.5rem 0; }

  .why-choose-section .section-header,
  .values-section .section-header,
  .certifications-section .section-header { margin-bottom: 1.5rem; }

  .why-choose-section .section-header h2,
  .values-section .section-header h2,
  .certifications-section .section-header h2 { font-size: 1.4rem; }

  .why-choose-card { padding: 1.25rem; }
  .why-choose-card h3 { font-size: 1rem; }

  .value-card { padding: 1.25rem 1rem; }
  .value-card h3 { font-size: 1rem; }

  .certification-card {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.25rem;
  }

  .cta-content h2 { font-size: 1.4rem; }
  .cta-content p { font-size: 0.9rem; }
}

/* ============================================================
   BULK CEMENT CALCULATOR (inline on About page)
   ============================================================ */
.bulk-calculator-section {
  padding: 5rem 0;
  background: #f8f9fa;
}
.bulk-calculator-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.bulk-calculator-section .section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
}
.bulk-calculator-section .section-header h2 span {
  color: var(--clr-primary);
}
.bulk-calculator-section .section-header p {
  color: #64748b;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.bulk-calc-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Left inputs panel */
.bulk-calc-inputs {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.bulk-calc-field {
  margin-bottom: 1.25rem;
}
.bulk-calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.bulk-calc-field label i {
  color: var(--clr-primary);
  margin-right: 6px;
  width: 16px;
}
.bulk-calc-field input,
.bulk-calc-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  outline: none;
}
.bulk-calc-field input:focus,
.bulk-calc-field select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.bulk-calc-field input::placeholder {
  color: #94a3b8;
}

/* Tabs */
.bulk-calc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bulk-tab {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bulk-tab:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.bulk-tab.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #1e293b;
  font-weight: 700;
}
.bulk-tab i {
  font-size: 0.85rem;
}

/* Dimension grid */
.bulk-calc-dims {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Presets */
.bulk-calc-presets {
  margin-bottom: 1.5rem;
}
.preset-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.preset-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-btn {
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.preset-btn:hover,
.preset-btn.active {
  background: #fef3c7;
  border-color: var(--clr-primary);
  color: #b45309;
}

/* Right results panel */
.bulk-calc-results {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-calc-empty {
  text-align: center;
  padding: 3rem 2rem;
}
.bulk-calc-empty-icon {
  width: 80px;
  height: 80px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.bulk-calc-empty-icon i {
  font-size: 2rem;
  color: var(--clr-primary);
}
.bulk-calc-empty h4 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.bulk-calc-empty p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Output */
.bulk-calc-output {
  width: 100%;
}
.bulk-calc-output h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bulk-calc-output h4 i {
  color: var(--clr-primary);
}

.bulk-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bulk-result-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
}
.bulk-result-card.highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--clr-primary);
}
.bulk-result-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bulk-result-card.highlight .bulk-result-icon {
  background: var(--clr-primary);
  color: #1e293b;
}
.bulk-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
}
.bulk-result-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bulk-result-breakdown {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.bulk-result-breakdown strong {
  color: #1e293b;
}

.bulk-result-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bulk-result-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.bulk-disclaimer {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
}
.bulk-disclaimer i {
  margin-right: 4px;
}

/* ============================================================
   CALCULATOR PAGE RESPONSIVE
   ============================================================ */

/* Tablet (960px) */
@media (max-width: 960px) {
  .bulk-result-grid { grid-template-columns: repeat(2, 1fr); }
  .bulk-calculator-section { padding: 3.5rem 0; }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .bulk-calculator-section { padding: 3rem 0; }
  .bulk-calculator-section .section-header { margin-bottom: 1.8rem; }
  .bulk-calculator-section .section-header h2 { font-size: 1.6rem; }

  .bulk-calc-inputs { padding: 1.5rem; }
  .bulk-calc-results {
    padding: 1.5rem;
    min-height: auto;
    align-items: flex-start;
  }

  .bulk-calc-empty { padding: 2rem 1rem; }

  .bulk-result-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .bulk-result-value { font-size: 1.3rem; }

  .bulk-result-actions { flex-direction: column; }
  .bulk-result-actions .btn { width: 100%; }

  /* Override global 44px min-height for small pill buttons */
  .preset-btn { min-height: unset; min-width: unset; padding: 6px 12px; }
  .bulk-tab { min-height: 40px; min-width: unset; }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  .bulk-calculator-section { padding: 2.5rem 0; }
  .bulk-calc-inputs { padding: 1.25rem; }
  .bulk-calc-results { padding: 1.25rem; }

  .bulk-calc-tabs { gap: 6px; }
  .bulk-tab { padding: 8px 10px; font-size: 0.75rem; }
  .bulk-tab i { display: none; }

  .bulk-result-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .bulk-result-card { padding: 1rem 0.75rem; }
  .bulk-result-value { font-size: 1.2rem; }
  .bulk-result-label { font-size: 0.7rem; }

  .preset-btns { gap: 5px; }
  .preset-btn { padding: 5px 10px; font-size: 0.75rem; }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

/* Header */
.checkout-header {
  background: var(--clr-accent);
  border-bottom: 3px solid var(--clr-primary);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-header-secure {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-header-back {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.checkout-header-back:hover { color: #fff; }

/* Steps bar */
.checkout-steps-bar {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 0;
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.checkout-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-border);
  color: var(--clr-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkout-step.active .checkout-step-num {
  background: var(--clr-primary);
  color: var(--clr-accent);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
}

.checkout-step.done .checkout-step-num {
  background: var(--clr-success);
  color: #fff;
}

.checkout-step.done .checkout-step-num::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
}
.checkout-step.done .checkout-step-num { font-size: 0; }

.checkout-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.checkout-step.active .checkout-step-label,
.checkout-step.done .checkout-step-label {
  color: var(--clr-accent);
}

.checkout-step-connector {
  flex: 1;
  height: 2px;
  background: var(--clr-border);
  margin: 0 8px;
  margin-bottom: 20px;
  min-width: 40px;
}

/* Main layout */
.checkout-main {
  padding: 2.5rem 0 5rem;
  background: var(--clr-bg);
  min-height: calc(100vh - 130px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Form steps */
.checkout-form-step {
  display: none;
}

.checkout-form-step.active {
  display: block;
}

/* Cards */
.checkout-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.checkout-card--confirm {
  text-align: center;
  padding: 3rem 2rem;
}

.checkout-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-card-title i {
  color: var(--clr-primary-dark);
}

.checkout-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

/* Saved address block */
.checkout-saved-address {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.checkout-saved-addr-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  white-space: nowrap;
}

.checkout-saved-addr-content {
  flex: 1;
  font-size: 0.85rem;
  color: var(--clr-text);
}

.checkout-divider-text {
  text-align: center;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  position: relative;
  margin: 1.25rem 0;
}

.checkout-divider-text::before,
.checkout-divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--clr-border);
}

.checkout-divider-text::before { left: 0; }
.checkout-divider-text::after  { right: 0; }

/* Form fields */
.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-accent);
}

.checkout-field .req {
  color: var(--clr-danger);
}

.checkout-field .optional {
  font-weight: 400;
  color: var(--clr-text-muted);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  outline: none;
  transition: border-color var(--transition);
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  border-color: var(--clr-primary);
  background: #fff;
}

.checkout-field input.input-error,
.checkout-field select.input-error {
  border-color: var(--clr-danger);
  background: rgba(239,68,68,0.04);
}

.checkout-field textarea { resize: vertical; }

/* Delivery options */
.checkout-delivery-options {
  margin-top: 1.5rem;
}

.checkout-sub-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.delivery-option.active {
  border-color: var(--clr-primary);
  background: rgba(245,158,11,0.05);
}

.delivery-option input[type="radio"] {
  accent-color: var(--clr-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.delivery-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-dark);
  flex-shrink: 0;
}

.delivery-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.delivery-option-info strong { font-size: 0.88rem; color: var(--clr-accent); }
.delivery-option-info small  { font-size: 0.76rem; color: var(--clr-text-muted); }

.delivery-option-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-accent);
  white-space: nowrap;
}

.delivery-option-price.co-price { color: var(--clr-success); }

/* Payment tabs */
.checkout-payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.checkout-pay-tab {
  flex: 1;
  padding: 0.7rem 0.5rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--clr-text-muted);
  background: var(--clr-bg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.checkout-pay-tab.active {
  border-color: var(--clr-primary);
  background: rgba(245,158,11,0.08);
  color: var(--clr-primary-dark);
}

.checkout-pay-panel { display: none; }
.checkout-pay-panel.active { display: block; }

.checkout-card-input-wrap {
  position: relative;
}

.checkout-card-input-wrap input {
  width: 100%;
  padding-right: 40px;
}

.card-network-icon,
.cvv-tooltip {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  pointer-events: none;
}

.cvv-tooltip { pointer-events: auto; cursor: help; font-size: 0.9rem; }

.checkout-card-secure-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.checkout-card-secure-badges .fab {
  font-size: 1.75rem;
}

.checkout-card-secure-badges .fas.fa-lock {
  font-size: 0.82rem;
}

/* EFT */
.eft-info p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.eft-bank-details {
  background: var(--clr-bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--clr-border);
  margin-bottom: 1rem;
}

.eft-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.875rem;
}

.eft-row:last-child { border-bottom: none; }
.eft-row span { color: var(--clr-text-muted); }

.eft-upload-note {
  font-size: 0.82rem;
  color: var(--clr-primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PayFlex */
.payflex-info p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.payflex-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payflex-logo i { color: var(--clr-primary-dark); }

.payflex-schedule {
  background: var(--clr-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border: 1px solid var(--clr-border);
}

.payflex-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.875rem;
}

.payflex-row:last-child { border-bottom: none; }
.payflex-row span { color: var(--clr-text-muted); }
.payflex-row strong { color: var(--clr-accent); font-weight: 700; }

/* Checkbox */
.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  margin-top: 1rem;
}

.checkout-checkbox input { width: 16px; height: 16px; accent-color: var(--clr-primary); }
.checkout-terms { margin-top: 1.5rem; }
.checkout-terms a { color: var(--clr-primary-dark); text-decoration: underline; }

/* Review blocks */
.review-block {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.review-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

.review-block-body {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.review-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--clr-border);
}

.review-item:last-child { border-bottom: none; }
.review-item-name { color: var(--clr-text); }
.review-item-qty { color: var(--clr-text-muted); font-size: 0.82rem; margin-left: 4px; }
.review-item-price { font-weight: 600; color: var(--clr-accent); }

/* Confirmation */
.confirm-icon {
  font-size: 4rem;
  color: var(--clr-success);
  margin-bottom: 1rem;
}

.checkout-card--confirm h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.confirm-sub {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.confirm-details {
  background: var(--clr-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--clr-border);
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--clr-border);
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row span { color: var(--clr-text-muted); }
.confirm-row strong { color: var(--clr-accent); }

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.confirm-actions .btn-outline {
  color: var(--clr-accent);
  border-color: var(--clr-border);
}

/* Summary sidebar */
.checkout-summary {
  position: sticky;
  top: 90px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  max-height: 280px;
  overflow-y: auto;
}

.summary-empty {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  text-align: center;
  padding: 1rem 0;
}

.summary-empty a { color: var(--clr-primary-dark); text-decoration: underline; }

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.summary-item-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--clr-primary);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.summary-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.summary-item-name {
  font-weight: 600;
  color: var(--clr-accent);
  font-size: 0.82rem;
  line-height: 1.3;
}

.summary-item-qty { font-size: 0.76rem; color: var(--clr-text-muted); }
.summary-item-price { font-weight: 700; color: var(--clr-accent); white-space: nowrap; }

/* Coupon */
.summary-coupon {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.summary-coupon input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

.summary-coupon input:focus { border-color: var(--clr-primary); }

.coupon-msg {
  font-size: 0.78rem;
  margin-bottom: 1rem;
  min-height: 1em;
}

.coupon-msg--success { color: var(--clr-success); }
.coupon-msg--error   { color: var(--clr-danger); }

/* Totals */
.summary-totals {
  border-top: 1px solid var(--clr-border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
}

.summary-row span:last-child { font-weight: 600; color: var(--clr-accent); }

.summary-row--total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--clr-accent);
  padding-top: 0.5rem;
  border-top: 2px solid var(--clr-accent);
  margin-top: 0.25rem;
}

.summary-row--total span:last-child { color: var(--clr-primary-dark); }

.summary-free-delivery {
  font-size: 0.78rem;
  color: var(--clr-success);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Trust badges */
.checkout-trust-badges {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  text-align: center;
}

.trust-badge i {
  font-size: 1.1rem;
  color: var(--clr-primary-dark);
}

/* Footer */
.checkout-footer {
  background: var(--clr-accent);
  color: #64748b;
  padding: 1.25rem 0;
}

.checkout-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkout-footer-links {
  display: flex;
  gap: 1.25rem;
}

.checkout-footer-links a {
  color: #64748b;
  transition: color var(--transition);
}

.checkout-footer-links a:hover { color: var(--clr-primary); }

/* Checkout responsive */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 600px) {
  .checkout-card { padding: 1.25rem; }

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

  .checkout-card-footer {
    flex-direction: column-reverse;
  }

  .checkout-card-footer .btn { width: 100%; justify-content: center; }

  .confirm-actions { flex-direction: column; }
  .confirm-actions .btn { width: 100%; justify-content: center; }

  .checkout-header-secure { display: none; }
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-section {
  padding: 3rem 0 5rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  position: sticky;
  top: 100px;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-profile-card {
  background: var(--clr-accent);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clr-accent);
}

.account-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.account-email {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
  word-break: break-all;
}

.account-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: rgba(245,158,11,0.12);
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 6px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-family: var(--font);
  width: 100%;
}

.account-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.account-nav-link:hover {
  color: var(--clr-primary-dark);
  background: rgba(245,158,11,0.06);
  border-left-color: var(--clr-primary-dark);
}

.account-nav-link.active {
  color: var(--clr-primary-dark);
  background: rgba(245,158,11,0.08);
  border-left-color: var(--clr-primary);
  font-weight: 600;
}

.account-nav-link--danger {
  color: var(--clr-danger);
  margin-top: 4px;
  border-top: 1px solid var(--clr-border);
}

.account-nav-link--danger:hover {
  color: var(--clr-danger);
  background: rgba(239,68,68,0.06);
  border-left-color: var(--clr-danger);
}

.account-nav-badge {
  margin-left: auto;
  background: var(--clr-primary);
  color: var(--clr-accent);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* Content area */
.account-content {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.5rem;
  min-height: 500px;
}

.account-tab {
  display: none;
}

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

.account-tab-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clr-border);
}

/* Overview grid */
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.account-overview-card {
  background: var(--clr-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--clr-border);
}

.account-overview-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}

.account-overview-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--clr-accent);
}

.account-overview-card div strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1.1;
}

.account-overview-card div span {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Recent orders heading */
.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.account-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-accent);
}

/* Orders table */
.account-orders-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.account-orders-table thead tr {
  background: var(--clr-bg);
}

.account-orders-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--clr-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.account-orders-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--clr-border);
  color: var(--clr-text);
  vertical-align: middle;
}

.account-orders-table tbody tr:hover {
  background: rgba(245,158,11,0.04);
}

.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.order-status--delivered {
  background: rgba(16,185,129,0.12);
  color: #059669;
}

.order-status--transit {
  background: rgba(59,130,246,0.12);
  color: #2563eb;
}

.order-status--processing {
  background: rgba(245,158,11,0.15);
  color: #d97706;
}

/* Orders filter */
.account-orders-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.orders-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.orders-filter-btn:hover,
.orders-filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-accent);
}

/* Address cards */
.account-addresses-grid,
.account-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.address-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.address-card--default {
  border-color: var(--clr-primary);
  background: rgba(245,158,11,0.04);
}

.address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.address-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

.address-default-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  background: rgba(245,158,11,0.15);
  border-radius: 20px;
  padding: 2px 8px;
}

.address-name {
  font-weight: 600;
  color: var(--clr-accent);
}

.address-phone {
  margin-top: 4px;
  font-size: 0.82rem;
}

.address-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.address-btn-delete {
  color: var(--clr-danger) !important;
  border-color: rgba(239,68,68,0.3) !important;
}

.address-btn-delete:hover {
  background: rgba(239,68,68,0.06) !important;
  border-color: var(--clr-danger) !important;
}

.address-card--add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-style: dashed;
  background: transparent;
}

.address-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.address-add-btn:hover {
  color: var(--clr-primary-dark);
}

.address-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.address-add-btn:hover .address-add-icon {
  background: var(--clr-primary);
  color: var(--clr-accent);
}

/* Payment cards */
.payment-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.payment-card--default {
  border-color: var(--clr-primary);
  background: rgba(245,158,11,0.04);
}

.payment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.payment-card-type {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a56db;
}

.payment-card-number {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.payment-card-expiry {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.payment-card-holder {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.payment-secure-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.payment-secure-notice i {
  color: #2563eb;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Wishlist */
.account-wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.wishlist-item:hover {
  border-color: var(--clr-primary);
}

.wishlist-item-img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clr-accent);
}

.wishlist-item-info {
  flex: 1;
}

.wishlist-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 2px;
}

.wishlist-item-sku {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

.wishlist-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-top: 4px;
}

.wishlist-item-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--clr-text-muted);
}

.wishlist-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wishlist-remove-btn {
  color: var(--clr-danger) !important;
  border-color: rgba(239,68,68,0.3) !important;
}

/* Account form */
.account-form {
  max-width: 680px;
}

.account-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.account-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.account-form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-accent);
}

.account-form-field .optional {
  font-weight: 400;
  color: var(--clr-text-muted);
}

.account-form-field input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  font-size: 0.9rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition);
  outline: none;
}

.account-form-field input:focus {
  border-color: var(--clr-primary);
  background: #fff;
}

.account-form-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 1.75rem 0;
}

.account-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-form-section-title i {
  color: var(--clr-primary-dark);
}

.account-form-section-title--danger i {
  color: var(--clr-danger);
}

.account-form-actions {
  margin-top: 1.75rem;
}

/* Settings toggles */
.account-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
  gap: 1rem;
}

.account-toggle-item div strong {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-accent);
}

.account-toggle-item div p {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.account-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.account-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.account-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--clr-border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.account-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.account-toggle input:checked + .account-toggle-slider {
  background: var(--clr-primary);
}

.account-toggle input:checked + .account-toggle-slider::before {
  transform: translateX(20px);
}

.account-danger-text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.btn-danger-outline {
  color: var(--clr-danger) !important;
  border-color: rgba(239,68,68,0.4) !important;
}

.btn-danger-outline:hover {
  background: rgba(239,68,68,0.06) !important;
  border-color: var(--clr-danger) !important;
}

/* Account responsive */
@media (max-width: 1024px) {
  .account-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-profile-card {
    padding: 1.25rem;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .account-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-sm);
    width: auto;
  }

  .account-nav-link.active {
    border-left: none;
    border-bottom-color: var(--clr-primary);
  }

  .account-nav-link--danger {
    border-top: none;
    margin-top: 0;
  }

  .account-content {
    padding: 1.25rem;
  }

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

  .account-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wishlist-item {
    flex-wrap: wrap;
  }

  .wishlist-item-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .account-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .account-orders-table th:nth-child(3),
  .account-orders-table td:nth-child(3) {
    display: none;
  }
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
