/* ==========================================================================
   ToolZone - Modern E-Commerce Stylesheet
   Mobile-first, high-performance, clean vanilla CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Palette (Clean Minimal Modern with Electric Orange) */
  --color-canvas: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-accent-light: #ffedd5;
  --color-accent-text: #9a3412;
  
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

  /* Layout */
  --max-width: 1200px;
  --min-tap-target: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-canvas);
  color: var(--color-text-main);
  line-height: 1.5;
  font-size: var(--text-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --- Utility Classes --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-orange {
  background-color: var(--color-accent-light);
  color: var(--color-accent-text);
}

.badge-dark {
  background-color: var(--color-text-main);
  color: #ffffff;
}

.badge-green {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* --- Buttons (Minimum 44px tap targets) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--min-tap-target);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}

.btn-dark {
  background-color: var(--color-text-main);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1e293b;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
}

.btn-full {
  width: 100%;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--color-text-main);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.55rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.announcement-bar strong {
  color: var(--color-accent);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
}

.brand-logo img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 840px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    position: relative;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--min-tap-target);
  height: var(--min-tap-target);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all 0.2s ease;
}

.header-action-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
}

.cart-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--min-tap-target);
  height: var(--min-tap-target);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 840px) {
  .hamburger-btn {
    display: none;
  }
}

/* --- Mobile Navigation Drawer --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--color-surface);
  z-index: 160;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
}

body.mobile-nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background-color: var(--color-accent-light);
  color: var(--color-accent-text);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* --- Hero Banner Section --- */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-section {
    padding: 4.5rem 0;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  color: #fb923c;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: #cbd5e1;
  margin-bottom: 1.75rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .hero-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #94a3b8;
}

.hero-feature-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-image-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-image-card img {
  max-height: 250px;
  width: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  margin-bottom: 1rem;
}

.hero-deal-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* --- Trust / Value Bar --- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.15rem;
}

.trust-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Section Layouts --- */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.section-tag {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  max-width: 600px;
}

/* --- Category Pills & Filter Bar --- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
  height: 4px;
}

.filter-tabs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.filter-tab-btn {
  min-height: var(--min-tap-target);
  padding: 0.5rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-tab-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text-main);
}

.filter-tab-btn.active {
  background: var(--color-text-main);
  color: #ffffff;
  border-color: var(--color-text-main);
}

/* --- Product Grid & Card Architecture --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 840px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

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

.product-card-media {
  background: var(--color-canvas);
  position: relative;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.05);
}

.product-badge-group {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-discount-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ef4444;
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-label {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.product-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.product-card-title a:hover {
  color: var(--color-accent);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.rating-stars {
  color: #f59e0b;
  display: inline-flex;
}

.rating-count {
  color: var(--color-text-muted);
  font-weight: 500;
}

.product-spec-chip {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.current-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text-main);
}

.mrp-price {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  text-decoration: line-through;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* --- Product Detail Page --- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 840px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
  }
}

.product-gallery {
  position: sticky;
  top: 90px;
}

.product-main-image-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.product-main-image-box img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-info h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .product-info h1 {
    font-size: var(--text-3xl);
  }
}

.product-detail-price-box {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.detail-current-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text-main);
}

.detail-mrp {
  font-size: var(--text-base);
  color: var(--color-text-subtle);
  text-decoration: line-through;
}

.detail-savings-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.detail-tax-note {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Pincode Estimator Widget */
.pincode-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.pincode-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.pincode-input-group {
  display: flex;
  gap: 0.5rem;
}

.pincode-input {
  flex: 1;
  min-height: var(--min-tap-target);
  padding: 0.5rem 1rem;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.pincode-input:focus {
  outline: 2px solid var(--color-accent);
  background: #ffffff;
}

.pincode-result {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  display: none;
}

.pincode-result.success {
  display: block;
  color: var(--color-success);
}

.pincode-result.error {
  display: block;
  color: #dc2626;
}

/* Detail Actions */
.product-quantity-and-buy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

@media (min-width: 480px) {
  .product-quantity-and-buy {
    flex-direction: row;
    align-items: center;
  }
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: var(--min-tap-target);
  padding: 0.25rem;
}

.quantity-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.quantity-btn:hover {
  background: var(--color-surface-hover);
}

.quantity-input {
  width: 48px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 700;
}

/* Specs Table */
.specs-table-container {
  margin-top: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specs-table-title {
  padding: 1rem 1.25rem;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text-main);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 0.85rem 1.25rem;
  font-size: var(--text-sm);
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--color-text-muted);
  width: 38%;
  background: #fbfcfe;
}

.specs-table td:last-child {
  color: var(--color-text-main);
  font-weight: 600;
}

/* --- Cart & Checkout Page --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (min-width: 860px) {
  .cart-layout {
    grid-template-columns: 1.3fr 0.85fr;
  }
}

/* Free Shipping Meter */
.free-shipping-meter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
}

.meter-progress-track {
  width: 100%;
  height: 8px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.meter-progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Cart Item Row */
.cart-item-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

@media (min-width: 480px) {
  .cart-item-card {
    grid-template-columns: 90px 1fr auto;
    padding: 1.25rem;
  }
}

.cart-item-thumb {
  width: 80px;
  height: 80px;
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.cart-item-price {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cart-remove-btn {
  color: #ef4444;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-remove-btn:hover {
  text-decoration: underline;
}

/* Order Summary Box */
.summary-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.summary-title {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.summary-row.total {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text-main);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.75rem;
}

/* Checkout Form */
.checkout-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: uppercase;
}

.form-control {
  min-height: var(--min-tap-target);
  padding: 0.65rem 1rem;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #ffffff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Payment Method Radios */
.payment-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.payment-option input[type="radio"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.payment-option-text {
  display: flex;
  flex-direction: column;
}

.payment-option-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-main);
}

.payment-option-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* UPI QR Section */
.upi-section {
  background: #ffffff;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-top: 0.75rem;
  display: none;
}

.upi-section.visible {
  display: block;
}

.upi-qr-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 0.75rem auto;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.upi-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  min-height: 48px;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.pulse-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--color-text-main);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer Architecture --- */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  margin-top: auto;
  border-top: 1px solid #1e293b;
  padding: 3.5rem 0 1.5rem 0;
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: var(--text-xs);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
