/* ==========================================================================
   HASSANTRADERS - Academic Cobalt Blue Monochromatic Stylesheet
   Specialized Institutional & School Furniture Manufacturer
   ========================================================================== */

:root {
  /* Cobalt & Royal Blue Monochromatic Color System */
  --cobalt-950: #071326;
  --cobalt-900: #0e2144;
  --cobalt-850: #142d59;
  --cobalt-800: #1e3a8a; /* Deep Academic Cobalt */
  --cobalt-750: #1e40af;
  --cobalt-700: #1d4ed8; /* Strong Royal Blue */
  --cobalt-600: #2563eb; /* Primary Interactive Cobalt */
  --cobalt-500: #3b82f6; /* Accent Sky Cobalt */
  --cobalt-400: #60a5fa;
  --cobalt-300: #93c5fd;
  --cobalt-200: #bfdbfe;
  --cobalt-100: #dbeafe;
  --cobalt-50: #eff6ff;  /* Ice Blue Tint */
  --cobalt-25: #f8fafc;  /* Clean Surface Tint */
  --white: #ffffff;
  
  /* Text & Structural Contrasts */
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-soft: #64748b;
  --border-light: #e2e8f0;
  --border-cobalt: #bfdbfe;
  --border-focus: #2563eb;

  /* Elevation Shadows with Cobalt Undertones */
  --shadow-sm: 0 1px 2px 0 rgba(30, 58, 138, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(30, 58, 138, 0.08), 0 2px 4px -2px rgba(30, 58, 138, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.1), 0 4px 6px -4px rgba(30, 58, 138, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(30, 58, 138, 0.14), 0 8px 10px -6px rgba(30, 58, 138, 0.08);
  --shadow-card-hover: 0 22px 35px -8px rgba(30, 58, 138, 0.2), 0 0 0 1.5px var(--cobalt-600);

  /* Layout Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background-color: #f8fafc;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--cobalt-600);
  outline-offset: 2px;
}

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

button, input, select, textarea {
  font: inherit;
}

/* ==========================================================================
   Lightweight CSS Keyframe Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes badgeShine {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation (Mobile-First, Strictly NO Email in Header)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cobalt-100);
  box-shadow: 0 2px 8px -2px rgba(30, 58, 138, 0.06);
  transition: all var(--transition-smooth);
}

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

/* Brand Logo */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-graphic {
  height: 44px;
  width: auto;
}

/* Navigation Links */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 840px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--cobalt-900);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cobalt-600);
  transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cobalt-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Cart Trigger Button */
.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: var(--cobalt-50);
  color: var(--cobalt-800);
  border: 1px solid var(--cobalt-200);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-trigger-btn:hover {
  background-color: var(--cobalt-600);
  color: var(--white);
  border-color: var(--cobalt-600);
}

.cart-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  background-color: var(--cobalt-600);
  border-radius: 9999px;
  transition: transform var(--transition-fast);
}

.cart-trigger-btn:hover .cart-count-badge {
  background-color: var(--white);
  color: var(--cobalt-800);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cobalt-50);
  border: 1px solid var(--cobalt-200);
  border-radius: var(--radius-md);
  color: var(--cobalt-800);
  cursor: pointer;
}

@media (min-width: 840px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.hamburger-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Mobile Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.6);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background-color: var(--white);
  z-index: 101;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: -8px 0 24px rgba(30, 58, 138, 0.15);
  display: flex;
  flex-direction: column;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cobalt-100);
  margin-bottom: 1.5rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cobalt-900);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cobalt-50);
}

.mobile-nav-link:hover {
  color: var(--cobalt-600);
}

/* ==========================================================================
   Hero Section / Introduction (Text-Based, Strictly NO Massive Banner)
   ========================================================================== */

.hero-intro-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--cobalt-50) 100%);
  padding: 2.5rem 0 2.2rem;
  border-bottom: 1px solid var(--cobalt-100);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Institutional Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background-color: var(--cobalt-100);
  border: 1px solid var(--cobalt-200);
  border-radius: 9999px;
  color: var(--cobalt-800);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cobalt-600);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Hero Typography */
.hero-heading {
  font-size: 2.15rem;
  line-height: 1.25;
  font-weight: 850;
  color: var(--cobalt-950);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 2.75rem;
  }
}

.hero-heading-highlight {
  color: var(--cobalt-600);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 1.75rem;
}

/* Quick Action Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cobalt-600);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--cobalt-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  color: var(--cobalt-800);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--cobalt-300);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--cobalt-50);
  border-color: var(--cobalt-600);
  color: var(--cobalt-600);
}

/* Institutional Value Props Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: var(--white);
  border: 1px solid var(--cobalt-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 960px;
  margin: 0 auto;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.trust-item-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--cobalt-950);
  line-height: 1.2;
}

.trust-item-desc {
  font-size: 0.725rem;
  color: var(--text-soft);
}

/* ==========================================================================
   Filter, Search & Catalog Header
   ========================================================================== */

.catalog-section {
  padding: 3rem 0;
}

.catalog-header-wrap {
  margin-bottom: 2rem;
}

.catalog-title-area {
  margin-bottom: 1.5rem;
}

.catalog-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cobalt-600);
  background: var(--cobalt-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--cobalt-100);
}

.catalog-main-title {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--cobalt-950);
  letter-spacing: -0.02em;
}

.catalog-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Controls Toolbar */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cobalt-100);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Search Input */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--cobalt-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: var(--cobalt-25);
  transition: all var(--transition-fast);
}

.search-input:focus {
  background-color: var(--white);
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.search-icon-svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--cobalt-400);
  pointer-events: none;
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.filter-pill-btn {
  white-space: nowrap;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--cobalt-200);
  background-color: var(--white);
  color: var(--cobalt-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background-color: var(--cobalt-50);
  border-color: var(--cobalt-600);
  color: var(--cobalt-600);
}

.filter-pill-btn.active {
  background-color: var(--cobalt-600);
  color: var(--white);
  border-color: var(--cobalt-600);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Product Grid (Strictly 6 Items, Uniform Sizing, Hover Lift & Glow)
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* Product Card Component */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cobalt-100);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
}

/* Structural Hover Effects (CRITICAL REQUIREMENT) */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--cobalt-600);
}

/* Product Image Frame (Uniform 4:3 Ratio, No Oversized Scrolling) */
.product-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--cobalt-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Badges on Card Media */
.item-category-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background-color: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.item-sku-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--cobalt-800);
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cobalt-200);
  z-index: 2;
}

/* Card Body Content */
.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--cobalt-950);
  margin-bottom: 0.5rem;
  min-height: 2.8em;
}

.product-excerpt {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Spec Chips */
.spec-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spec-chip {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--cobalt-800);
  background-color: var(--cobalt-50);
  border: 1px solid var(--cobalt-100);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Pricing Section */
.product-foot-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cobalt-100);
  gap: 0.75rem;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-currency {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
}

.price-amount {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--cobalt-800);
  letter-spacing: -0.02em;
}

/* Card Action Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-view-btn {
  background: var(--cobalt-50);
  border: 1px solid var(--cobalt-200);
  color: var(--cobalt-800);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-view-btn:hover {
  background: var(--cobalt-200);
  color: var(--cobalt-900);
}

/* Add to Cart Button with Gentle Pulse Effect (CRITICAL REQUIREMENT) */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--cobalt-600);
  color: var(--white);
  padding: 0.6rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  animation: gentlePulse 3s infinite;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background-color: var(--cobalt-700);
  transform: translateY(-1px);
  animation: none;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

/* ==========================================================================
   Institutional Bulk Inquiry / Quote Section (Working Form)
   ========================================================================== */

.inquiry-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--cobalt-50) 0%, #ffffff 100%);
  border-top: 1px solid var(--cobalt-100);
  border-bottom: 1px solid var(--cobalt-100);
}

.inquiry-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cobalt-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .inquiry-card {
    grid-template-columns: 1fr 1.25fr;
  }
}

.inquiry-info-pane {
  background: linear-gradient(135deg, var(--cobalt-900) 0%, var(--cobalt-800) 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inquiry-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cobalt-200);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.inquiry-pane-title {
  font-size: 1.85rem;
  font-weight: 850;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.inquiry-pane-desc {
  font-size: 0.95rem;
  color: var(--cobalt-100);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.inquiry-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--cobalt-100);
}

.inquiry-perk-icon {
  width: 20px;
  height: 20px;
  color: var(--cobalt-300);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Inquiry Form */
.inquiry-form-pane {
  padding: 2.5rem 2rem;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

@media (min-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--cobalt-950);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cobalt-200);
  border-radius: var(--radius-md);
  background-color: var(--cobalt-25);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--white);
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ==========================================================================
   Slide-Over Cart Drawer & Working Checkout Flow
   ========================================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 19, 38, 0.6);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--white);
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(30, 58, 138, 0.2);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cobalt-100);
  background-color: var(--cobalt-25);
}

.cart-drawer-title {
  font-size: 1.2rem;
  font-weight: 850;
  color: var(--cobalt-950);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.close-btn:hover {
  background-color: var(--cobalt-100);
  color: var(--cobalt-950);
}

/* Cart Items List */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-soft);
}

.cart-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--cobalt-300);
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cobalt-100);
  align-items: center;
}

.cart-item-thumb {
  width: 70px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--cobalt-50);
  border: 1px solid var(--cobalt-100);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--cobalt-950);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cobalt-700);
}

.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cobalt-200);
  background: var(--white);
  color: var(--cobalt-800);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--cobalt-100);
  border-color: var(--cobalt-600);
}

.qty-num {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.item-delete-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.item-delete-btn:hover {
  opacity: 1;
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--cobalt-100);
  background-color: var(--cobalt-25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--cobalt-950);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--cobalt-200);
}

.btn-checkout {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--cobalt-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.975rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all var(--transition-fast);
}

.btn-checkout:hover {
  background-color: var(--cobalt-700);
}

/* ==========================================================================
   Modals: Quick View & Full Checkout Form
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 19, 38, 0.7);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cobalt-200);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--cobalt-100);
  background-color: var(--cobalt-25);
  position: sticky;
  top: 0;
  z-index: 5;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--cobalt-950);
}

.modal-body {
  padding: 1.75rem;
}

/* Quick View Specifics */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .quick-view-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.specs-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--cobalt-100);
}

.specs-table td:first-child {
  font-weight: 750;
  color: var(--cobalt-900);
  width: 40%;
  background-color: var(--cobalt-25);
}

/* Confirmation Receipt Box */
.confirmation-box {
  text-align: center;
  padding: 1rem 0;
}

.success-check-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--cobalt-600);
}

.order-badge-pill {
  display: inline-block;
  background-color: var(--cobalt-50);
  border: 1px solid var(--cobalt-200);
  color: var(--cobalt-800);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0 1.25rem;
}

/* ==========================================================================
   Toast Notification Banner
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--cobalt-950);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.35);
  border-left: 4px solid var(--cobalt-500);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: scaleUp 0.25s ease forwards;
  pointer-events: auto;
}

/* ==========================================================================
   FOOTER (STRICT COMPLIANCE: Email ONLY in Footer, NO Phone, NO Maps,
   NO WhatsApp, NO Address/Location)
   ========================================================================== */

.site-footer {
  background-color: var(--cobalt-950);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
  position: relative;
}

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

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

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

/* Col 1: Brand Info */
.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.footer-brand-title span {
  color: var(--cobalt-400);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.compliance-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(30, 58, 138, 0.4);
  border: 1px solid var(--cobalt-800);
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--cobalt-300);
}

/* Col 2 & 3: Structured Navigation Links */
.footer-col-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--cobalt-400);
}

/* Col 4: Verified Contact Channel (STRICTLY EMAIL ONLY IN FOOTER) */
.footer-contact-box {
  background-color: rgba(15, 39, 74, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.footer-contact-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--cobalt-300);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.footer-contact-notice {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

/* Dedicated Email Link (STRICT PLACEMENT) */
.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  background-color: var(--cobalt-800);
  border: 1px solid var(--cobalt-600);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
  transition: all var(--transition-fast);
}

.footer-email-link:hover {
  background-color: var(--cobalt-600);
  border-color: var(--cobalt-400);
  transform: translateY(-2px);
}

.email-icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Bottom Bar */
.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy strong {
  color: #cbd5e1;
}

.footer-policy-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-policy-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-policy-link:hover {
  color: var(--cobalt-300);
}
