/* index.css - SurgiMedix B2B Design System & Style Library */

/* -----------------------------------------
   1. DESIGN SYSTEM VARIABLES
----------------------------------------- */
:root {
  --color-primary: #0a2540;        /* Deep Navy */
  --color-primary-light: #1e3a5f;  /* Navy Light */
  --color-accent: #0ea5e9;         /* Sky Blue */
  --color-accent-hover: #0284c7;   /* Accent Hover */
  --color-accent-light: #e0f2fe;   /* Accent Tint */
  --color-bg-main: #f8fafc;        /* Clinical Light Background */
  --color-bg-card: #ffffff;        /* Card White */
  --color-bg-dark: #071727;        /* Footer Dark */
  --color-text-main: #1e293b;      /* Dark Charcoal Text */
  --color-text-secondary: #475569; /* Slate Gray Text */
  --color-text-muted: #94a3b8;     /* Light Gray Text */
  --color-border: #e2e8f0;         /* Border Light */
  --color-border-dark: #1e293b;    /* Border Dark */
  --color-success: #10b981;       /* Clinical Green */
  --color-warning: #f59e0b;       /* Warning Gold */
  --color-danger: #ef4444;        /* Alert Red */

  --font-sans: 'Poppins', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------
   2. UNIVERSAL RESET & BASE STYLES
----------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* -----------------------------------------
   3. TYPOGRAPHY & LAYOUT UTILITIES
----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--color-text-secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 12px auto 0 auto;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px auto;
  font-size: 1rem;
}

/* -----------------------------------------
   4. NAVIGATION HEADER
----------------------------------------- */
/* Show mobile only utilities */
.show-mobile-only {
  display: none !important;
}

.header-top {
  background-color: var(--color-primary);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 40px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG Logo Style */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo svg {
  height: 38px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo.inversed {
  color: #ffffff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 12px;
  max-height: 100px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  background-color: #f1f5f9;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background-color: var(--color-accent-light);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn-account {
  background-color: var(--color-primary);
  color: white;
}

.nav-btn-account:hover {
  background-color: var(--color-primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-btn-cart {
  background-color: var(--color-accent);
  color: white;
}

.nav-btn-cart:hover {
  background-color: var(--color-accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.relative {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* -----------------------------------------
   5. BUTTONS
----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border: 1px solid var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

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

.btn-outline:hover {
  background-color: var(--color-bg-main);
  color: var(--color-primary);
  border-color: var(--color-text-muted);
}

.btn:disabled {
  background-color: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* -----------------------------------------
   6. HERO SECTION
----------------------------------------- */
.hero-slider {
  position: relative;
  background-color: var(--color-primary);
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: white;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  width: 100%;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-subtitle {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 16px;
}

.hero-title {
  color: white;
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-description {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-ctas .btn-secondary {
  color: white;
  border-color: white;
}

.hero-ctas .btn-secondary:hover {
  background-color: white;
  color: var(--color-primary);
}

/* -----------------------------------------
   7. TRUST BANNER
----------------------------------------- */
.trust-banner {
  background-color: white;
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* -----------------------------------------
   8. PRODUCT CARDS & GRID
----------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(14, 165, 233, 0.3);
}

.product-card-img-wrapper {
  position: relative;
  padding-bottom: 100%; /* Square aspect ratio */
  background-color: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.product-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.product-badge.low-stock {
  background-color: var(--color-warning);
  color: var(--color-primary);
}

.product-badge.out-of-stock {
  background-color: var(--color-danger);
  color: white;
}

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

.product-card-category {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.stars {
  display: flex;
}

.product-card-price {
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-active {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-strikethrough {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.negotiable-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  background-color: var(--color-accent-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* -----------------------------------------
   9. BRAND STORY STYLING
----------------------------------------- */
.brand-story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-story-img-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.brand-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-story-content h3 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  color: white;
}

.brand-story-content p {
  color: #94a3b8;
  margin-bottom: 16px;
}

/* -----------------------------------------
   10. DETAILS / SINGLE PRODUCT TEMPLATE
----------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.product-gallery-main {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.product-gallery-main img {
  max-height: 480px;
  object-fit: contain;
  width: 100%;
}

.product-info-panel h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-tag {
  background-color: var(--color-bg-main);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.product-description-full {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.product-features-box {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.product-features-box h4 {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.product-features-list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

.purchase-card {
  background-color: #f1f5f9;
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.purchase-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.purchase-price-row .price-active {
  font-size: 1.75rem;
}

.purchase-price-row .price-strikethrough {
  font-size: 1.1rem;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.qty-btn:hover {
  background-color: var(--color-bg-main);
  border-color: var(--color-text-muted);
}

.qty-input {
  width: 60px;
  height: 36px;
  border: 1px solid var(--color-border);
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* -----------------------------------------
   11. QUOTE CART & CHECKOUT PAGE
----------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
}

.cart-items-panel {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.cart-item-remove {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-danger);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: white;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* -----------------------------------------
   12. ADMIN DASHBOARD
----------------------------------------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.admin-sidebar {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-menu-item {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.admin-menu-item.active,
.admin-menu-item:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
}

.admin-content-panel {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.data-table th {
  background-color: var(--color-bg-main);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
  background-color: var(--color-bg-main);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background-color: #fef3c7;
  color: #d97706;
}

.status-sent {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-approved {
  background-color: #d1fae5;
  color: #047857;
}

.status-declined {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* -----------------------------------------
   13. FOOTER SECTION
----------------------------------------- */
.footer-top-bar {
  height: 4px;
  background-color: var(--color-accent);
}

footer {
  background-color: var(--color-bg-dark);
  color: #94a3b8;
  padding: 80px 0 30px 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.9rem;
}

footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #64748b;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 20px;
}

/* -----------------------------------------
   14. TOAST NOTIFICATIONS
----------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--color-primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid var(--color-success);
}

.toast.error {
  border-left: 4px solid var(--color-danger);
}

.toast.info {
  border-left: 4px solid var(--color-accent);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(14, 165, 233, 0.1);
  border-left-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------
   15. TOOLBARS & PAGINATION
----------------------------------------- */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: white;
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.cat-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-sort-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* -----------------------------------------
   16. MEDIA QUERIES (RESPONSIVENESS)
----------------------------------------- */
/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Brand Story Row */
.brand-story-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* Contact Row */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

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

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

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .section-spacing { padding: 50px 0; }
  .container { padding: 0 20px !important; }
  .hero-slider {
    min-height: 480px;
    background-position: right center;
  }
  .hero-slide {
    padding: 60px 0;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .brand-story-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .brand-story-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Mobile responsive navbar - No horizontal scroll! Fits everything on one screen */
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
    align-items: center;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    padding: 4px 0;
    gap: 8px;
    font-size: 0.8rem;
  }
  .nav-links a {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 16px;
  }
  .nav-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  .hide-mobile {
    display: none !important;
  }
  .show-mobile-only {
    display: inline !important;
  }
}

@media (max-width: 600px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

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

/* Shrinking Header Scrolled States */
header.scrolled {
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.1);
}

header.scrolled .header-top {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

header.scrolled .navbar {
  height: 60px;
}

header.scrolled .logo svg {
  transform: scale(0.9);
}

header.scrolled .nav-links a {
  font-size: 0.85rem;
}

header.scrolled .nav-btn {
  width: 38px;
  height: 38px;
  border-width: 1px;
}

header.scrolled .nav-btn-text {
  padding: 8px 16px;
  font-size: 0.8rem;
}

header.scrolled .avatar-circle {
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  /* Scroll down on mobile collapses header into a ultra-compact single row bar */
  header.scrolled .navbar {
    flex-direction: row;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
    gap: 8px;
  }
  
  header.scrolled .logo {
    transform: scale(0.85);
    margin-right: auto;
  }
  
  header.scrolled .nav-links {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    pointer-events: none;
  }
  
  header.scrolled .nav-actions {
    width: auto;
    margin-left: auto;
    gap: 8px;
  }
  
  header.scrolled .nav-btn {
    width: 38px;
    height: 38px;
  }

  header.scrolled .nav-btn-label {
    display: none !important;
  }

  header.scrolled .nav-btn-text {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border-radius: 50% !important;
    gap: 0;
  }

  header.scrolled .avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-center-logo {
  position: absolute;
  left: 60%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  animation: floatCenterLogo 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatCenterLogo {
  0% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
  100% { transform: translate(-50%, -50%) translateY(0px); }
}

@media (max-width: 992px) {
  .hero-center-logo {
    left: 55%;
    transform: translate(-50%, -50%) scale(0.85);
  }
}

@media (max-width: 768px) {
  .hero-center-logo {
    display: none !important;
  }
}

