/* =========================================================
   ISHWAR CRACKERS — PREMIUM LUXURY FESTIVE DESIGN SYSTEM
   Theme: Deep Royal Navy (#14213D) & Premium Burgundy (#781C2D)
          Accents: Elegant Gold (#D4AF37) & Warm Ivory (#FFF9F0)
   ========================================================= */

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

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

:root {
  /* Core Luxury Palette */
  --color-navy: #14213D;
  --color-navy-dark: #0B1323;
  --color-navy-light: #1D2E54;
  --color-burgundy: #781C2D;
  --color-burgundy-hover: #5E1422;
  --color-burgundy-light: #942539;
  --color-gold: #D4AF37;
  --color-gold-hover: #B89628;
  --color-gold-light: #FDF6E2;
  --color-gold-border: #E8D38A;
  --color-ivory: #FFF9F0;
  --color-white: #FFFFFF;
  --color-text: #252525;
  --color-muted: #6B7280;
  --color-border: #E8E3DB;
  --color-border-dark: #D4CDC3;
  --color-green: #15803D;
  --color-green-light: #DCFCE7;
  --color-green-border: #86EFAC;
  --color-red: #B91C1C;
  --color-red-light: #FEE2E2;

  /* Aliases for Existing Selectors */
  --ink: var(--color-text);
  --ink-light: #374151;
  --muted: var(--color-muted);
  --line: var(--color-border);
  --line-strong: var(--color-border-dark);
  --blue: var(--color-navy);
  --blue-hover: var(--color-navy-light);
  --blue-soft: #EFF6FF;
  --gold: var(--color-gold);
  --green: var(--color-green);
  --green-soft: var(--color-green-light);
  --green-border: var(--color-green-border);
  --red: var(--color-red);
  --bg: var(--color-ivory);

  /* Geometry & Elevation */
  --radius-sm: 6px;
  --radius-button: 8px;
  --radius-card: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.05);
  --shadow-card: 0 4px 18px rgba(20, 33, 61, 0.06);
  --shadow-hover: 0 10px 30px rgba(20, 33, 61, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.22);
  --shadow-lg: 0 14px 38px rgba(20, 33, 61, 0.14);

  --transition-ui: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background-color: var(--color-ivory);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-ui);
}
a:hover {
  color: var(--color-burgundy);
}

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

/* =========================================================
   CONTAINERS & COMMON GRID
   ========================================================= */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px;
}

.container.narrow {
  max-width: 860px;
}

.container.medium {
  max-width: 1080px;
}

/* Cards */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-ui), border-color var(--transition-ui);
}
.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

/* =========================================================
   TOP NAVIGATION BAR (PREMIUM RESPONSIVE HEADER)
   ========================================================= */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px max(24px, calc((100vw - 1360px) / 2));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 2px 14px rgba(20, 33, 61, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}

.brand-logo,
.site-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 220px;
  aspect-ratio: 1024 / 944;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid var(--color-border);
  transition: transform var(--transition-ui), box-shadow var(--transition-ui);
}
.brand:hover .brand-logo,
.brand:hover .site-logo {
  transform: scale(1.02);
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  line-height: 1.2;
}
.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-burgundy);
}

/* Nav links */
nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a,
nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: all var(--transition-ui);
}
nav a:hover {
  background: var(--color-gold-light);
  color: var(--color-burgundy);
  text-decoration: none;
}
nav a.active {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.2);
}

/* Nav Cart Link */
.nav-cart-link {
  background: var(--color-burgundy) !important;
  color: var(--color-white) !important;
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(120, 28, 45, 0.25);
}
.nav-cart-link:hover {
  background: var(--color-burgundy-hover) !important;
  color: var(--color-gold-light) !important;
  transform: translateY(-1px);
}

/* Navigation Actions & Mobile Elements (Desktop defaults) */
.nav-actions {
  display: none;
}

.nav-toggle {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08);
  transition: all var(--transition-ui);
}
.nav-toggle:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-cart-badge {
  display: none;
  align-items: center;
  gap: 5px;
  background: var(--color-burgundy);
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(120, 28, 45, 0.25);
  border: 1px solid var(--color-gold);
  line-height: 1;
}
.mobile-cart-badge span,
.mobile-cart-badge .badge {
  background: #ffffff;
  color: var(--color-burgundy);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 800;
}

/* Checkout Page Layout (Desktop Defaults) */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: flex-start;
}
.checkout-main-col {
  min-width: 0;
}
.checkout-summary-col {
  position: sticky;
  top: 90px;
  min-width: 0;
}
.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--color-border);
  padding-bottom: 10px;
}
.same-contact-label {
  font-size: 12.5px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--color-muted);
  user-select: none;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  border-radius: var(--radius-button);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition-ui);
}
.nav-dropdown-btn .dropdown-arrow {
  font-size: 9px;
  margin-left: 3px;
  color: var(--color-gold);
  transition: transform var(--transition-ui), color var(--transition-ui);
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
  background: var(--color-gold) !important;
  color: var(--color-navy) !important;
  border-color: var(--color-gold) !important;
  font-weight: 700;
}
.nav-dropdown-btn:hover .dropdown-arrow,
.nav-dropdown:hover .nav-dropdown-btn .dropdown-arrow {
  color: var(--color-navy) !important;
  transform: rotate(180deg);
}
.nav-dropdown-btn.active {
  background: rgba(212, 175, 55, 0.22) !important;
  color: #ffffff !important;
  border-color: var(--color-gold) !important;
  font-weight: 700;
}

/* Nav Dropdown Popover Menu */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  background: #ffffff !important;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 8px;
  z-index: 1000;
  margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

/* Dropdown Menu Items */
.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  transition: all var(--transition-ui);
}
.nav-dropdown-item span {
  font-size: 15px;
  flex-shrink: 0;
}
.nav-dropdown-item:hover {
  background: #FFF9F0 !important;
  color: var(--color-burgundy) !important;
  transform: translateX(4px);
}

/* Selected / Active Dropdown Item (Fix for invisibility) */
.nav-dropdown-item.active,
nav .nav-dropdown-menu a.nav-dropdown-item.active,
nav a.nav-dropdown-item.active {
  background: var(--color-navy) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.25) !important;
}
.nav-dropdown-item.active span,
nav .nav-dropdown-menu a.nav-dropdown-item.active span {
  color: var(--color-gold) !important;
}
.nav-dropdown-item.active::after,
nav .nav-dropdown-menu a.nav-dropdown-item.active::after {
  content: "✓";
  margin-left: auto;
  color: var(--color-gold);
  font-weight: 800;
  font-size: 14px;
}
.nav-dropdown-item.active:hover,
nav .nav-dropdown-menu a.nav-dropdown-item.active:hover {
  background: #0d1627 !important;
  color: #ffffff !important;
  transform: none !important;
}

/* =========================================================
   BUTTONS (BURGUNDY PRIMARY, GOLD ACCENT, NAVY OUTLINE)
   ========================================================= */
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  background: var(--color-burgundy);
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(120, 28, 45, 0.2);
  transition: all var(--transition-ui);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--color-burgundy-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(120, 28, 45, 0.3);
  text-decoration: none;
}

.button.secondary,
button.secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover,
button.secondary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
  color: var(--color-burgundy);
}

.button.gold,
button.gold {
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold-hover);
  box-shadow: var(--shadow-gold);
}
.button.gold:hover,
button.gold:hover {
  background: var(--color-gold-hover);
  color: var(--color-white);
}

.button.navy,
button.navy {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.2);
}
.button.navy:hover,
button.navy:hover {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.button.danger,
button.danger {
  background: var(--color-red);
  color: var(--color-white);
}
.button.danger:hover,
button.danger:hover {
  background: #991b1b;
}

.button.small-button,
.small-button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* =========================================================
   HOMEPAGE FESTIVE HERO SECTION
   ========================================================= */
.festive-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 33, 61, 0.94) 0%, rgba(29, 46, 84, 0.92) 55%, rgba(120, 28, 45, 0.88) 100%),
              url('images/hero_banner.jpg') center/cover no-repeat;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 32px;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  color: var(--color-white);
}

.hero-inner {
  padding: 56px 48px;
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: #F1F5F9;
  margin: 0 0 28px;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-cta-group .button {
  padding: 13px 28px;
  font-size: 15px;
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}
.trust-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
}
.trust-text span {
  font-size: 11.5px;
  color: #E2E8F0;
}

/* =========================================================
   CATEGORY SHOWCASE SECTION
   ========================================================= */
.category-section-wrap {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
}

.section-subtitle {
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-ui);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover), var(--shadow-gold);
  text-decoration: none;
}

.category-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}
.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-img {
  transform: scale(1.05);
}

.category-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 33, 61, 0.88);
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.category-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
  transition: color var(--transition-ui);
}
.category-card:hover .category-card-name {
  color: var(--color-burgundy);
}
.category-card-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
  margin: 0 0 12px;
  flex: 1;
}
.category-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-burgundy);
}
.category-card:hover .category-card-cta {
  color: var(--color-navy);
}

/* =========================================================
   SEARCH & FILTER BAR + VIEW TOGGLE
   ========================================================= */
.shop-filter-bar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 520px;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  font-size: 16px;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 13.5px;
  background: var(--color-ivory);
  transition: border-color var(--transition-ui), background-color var(--transition-ui);
}
.search-input-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.08);
}

/* View Switcher */
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--color-ivory);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 3px;
  gap: 3px;
}
.view-toggle-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  box-shadow: none;
  transition: all var(--transition-ui);
}
.view-toggle-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.2);
}

/* Quick Jump Category Pills */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 16px;
  scrollbar-width: thin;
}
.category-pill {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  transition: all var(--transition-ui);
}
.category-pill:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
  color: var(--color-burgundy);
  text-decoration: none;
}
.category-pill.active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.category-pill.combo-pill {
  background: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-gold);
}

/* =========================================================
   PRODUCT CARDS GRID (DESKTOP 4-5 COLS, TABLET 2-3, MOBILE 2)
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.product-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-ui), box-shadow var(--transition-ui), border-color var(--transition-ui);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-hover);
}
.product-card.row-selected {
  border-color: var(--color-gold);
  background: #FFFCF7;
  box-shadow: var(--shadow-gold);
}

/* Product Card Image */
.product-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-img {
  transform: scale(1.04);
}

/* Placeholder Artwork */
.product-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #ffffff 0%, #fef3c7 70%, #fde68a 100%);
  color: var(--color-navy);
}
.placeholder-icon {
  font-size: 42px;
}
.placeholder-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-burgundy);
  letter-spacing: 0.04em;
}

/* Card Floating Badges */
.card-sku-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 33, 61, 0.88);
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.card-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  z-index: 2;
}
.stock-in {
  background: var(--color-green-light);
  color: var(--color-green);
  border: 1px solid var(--color-green-border);
}
.stock-low {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}
.stock-out {
  background: var(--color-red-light);
  color: var(--color-red);
  border: 1px solid #FCA5A5;
}

/* Product Card Body */
.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-card-pkg {
  font-size: 11.5px;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-burgundy);
}

.product-card-unit {
  font-size: 11px;
  color: var(--color-muted);
}

/* Card Stepper & Action Controls */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card .stepper {
  flex: 1;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border-dark);
  border-radius: var(--radius-button);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-ui);
}
.product-card:hover .stepper {
  border-color: var(--color-navy);
}

.product-card .stepper-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: #f8fafc;
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: all var(--transition-ui);
}
.product-card .stepper-btn:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: none;
}

.product-card .stepper-input {
  flex: 1;
  width: 100%;
  height: 32px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-navy);
  background: #ffffff;
  -moz-appearance: textfield;
}
.product-card .stepper-input::-webkit-outer-spin-button,
.product-card .stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-card-add-btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(120, 28, 45, 0.2);
}
.product-card-add-btn:hover {
  background: var(--color-burgundy-hover);
}

/* =========================================================
   AUTHENTIC CATALOGUE TABLE (LIST VIEW)
   ========================================================= */
.catalogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.pdf-table-block {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-ui);
}
.pdf-table-block:hover {
  box-shadow: var(--shadow-card);
}
.combo-table-block {
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.pdf-catalogue-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.cat-banner {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-top: 3px solid var(--color-gold);
}
.cat-banner-combo {
  background: var(--color-burgundy);
  color: var(--color-white);
  border-top: 3px solid var(--color-gold);
}

.cat-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: normal;
}

.table-sub-header th {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  background: #F1F5F9;
  border-bottom: 2px solid var(--color-border);
  letter-spacing: 0.05em;
}

.product-row {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-ui);
}
.product-row:nth-child(even) {
  background-color: #FAFBFC;
}
.product-row:hover {
  background-color: #FFFDF5 !important;
}
.product-row.row-selected {
  background-color: #F0FDF4 !important;
}

.col-sno {
  width: 55px;
  text-align: center;
  padding: 7px 4px;
  border-right: 1px solid var(--color-border);
  vertical-align: middle;
}
.sno-chip {
  background: var(--color-ivory);
  border: 1px solid var(--color-border-dark);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  min-width: 26px;
  text-align: center;
}

.col-name {
  padding: 7px 12px;
  vertical-align: middle;
}
.product-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.product-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-navy);
  line-height: 1.35;
}
.pkg-tag {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.combo-desc-details {
  margin-top: 6px;
}
.combo-desc-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  outline: none;
}
.combo-desc-summary::-webkit-details-marker {
  display: none;
}
.summary-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF5F5;
  border: 1px solid rgba(120, 28, 45, 0.25);
  color: var(--color-burgundy);
  font-weight: 700;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition-ui);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.combo-desc-summary:hover .summary-btn-text {
  background: #FEE2E2;
  border-color: var(--color-burgundy);
  transform: translateY(-1px);
}
.combo-desc-details[open] summary .summary-btn-text {
  background: var(--color-burgundy);
  color: #ffffff;
  border-color: var(--color-burgundy);
  box-shadow: 0 2px 6px rgba(120, 28, 45, 0.2);
}

.combo-desc-box {
  margin-top: 8px;
  padding: 0;
}

.combo-breakdown-card {
  background: #FAFBFD;
  border: 1.5px solid #E2E8F0;
  border-top: 3px solid var(--color-gold);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.05);
}

.combo-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}
.combo-breakdown-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.combo-breakdown-icon {
  font-size: 14px;
}
.combo-breakdown-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.combo-breakdown-count {
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.combo-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
}

.combo-item-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  gap: 8px;
  transition: all 0.15s ease;
}
.combo-item-chip:hover {
  background: #FFFDF8;
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.combo-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.combo-item-num {
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  border-radius: 4px;
  padding: 1px 4px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.combo-item-name {
  font-weight: 600;
  color: var(--color-navy);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-item-qty {
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.combo-item-qty.qty-multi {
  color: var(--color-burgundy);
  background: rgba(120, 28, 45, 0.08);
  border: 1px solid rgba(120, 28, 45, 0.2);
}
.combo-item-qty.qty-single {
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.col-rate {
  width: 100px;
  text-align: right;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-burgundy);
  padding: 7px 12px;
  vertical-align: middle;
  white-space: nowrap;
}

.col-preview {
  width: 65px;
  text-align: center;
  padding: 7px 4px;
  vertical-align: middle;
}
.btn-preview-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: #F8FAFC;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all var(--transition-ui);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-preview-eye:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: scale(1.08);
}

.col-qty-stepper {
  width: 185px;
  text-align: right;
  padding: 7px 12px;
  vertical-align: middle;
}

/* Stepper inside table */
.stepper-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid var(--color-border-dark) !important;
  border-radius: var(--radius-button) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm);
  vertical-align: middle;
}
.cart-stepper {
  width: auto !important;
  min-width: 112px !important;
}
.stepper-btn {
  width: 32px !important;
  height: 34px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: #f8fafc !important;
  color: var(--color-navy) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  transition: background var(--transition-ui), color var(--transition-ui) !important;
}
.stepper-btn:hover {
  background: var(--color-navy) !important;
  color: #ffffff !important;
}
.stepper-input,
input[type="number"].stepper-input,
input[type="number"].qty-input,
.stepper input {
  width: 48px !important;
  min-width: 44px !important;
  max-width: 52px !important;
  height: 34px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border: none !important;
  border-left: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: var(--color-navy) !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  display: inline-block !important;
  line-height: 34px !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button,
input[type="number"].stepper-input::-webkit-outer-spin-button,
input[type="number"].stepper-input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

.row-total {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-green);
  min-width: 54px;
  text-align: right;
  display: inline-block;
  background: var(--color-green-light);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-green-border);
}

/* =========================================================
   STICKY LIVE CART SIDEBAR & MOBILE DRAWER
   ========================================================= */
.live-cart-panel {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

.live-cart-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-cart-header {
  padding: 16px 20px;
  background: var(--color-navy);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-gold);
}
.live-cart-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.live-cart-badge {
  font-size: 11px;
  color: var(--color-gold-light);
  font-weight: 700;
}
.clear-cart-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: none;
}
.clear-cart-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.live-cart-items {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.live-cart-item-name {
  font-weight: 700;
  color: var(--color-navy);
}
.live-cart-item-qty {
  font-size: 11.5px;
  color: var(--color-muted);
}
.live-cart-item-total {
  font-weight: 800;
  color: var(--color-burgundy);
}

.live-cart-footer {
  padding: 16px 20px;
  background: var(--color-ivory);
  border-top: 1px solid var(--color-border);
}
.live-cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.live-cart-grand-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 14px;
}
.live-cart-grand-row span:last-child {
  color: var(--color-burgundy);
}

.btn-proceed-checkout {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  background: var(--color-burgundy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-button);
  box-shadow: 0 4px 14px rgba(120, 28, 45, 0.3);
  cursor: pointer;
  text-align: center;
  display: block;
}
.btn-proceed-checkout:hover {
  background: var(--color-burgundy-hover);
  color: #ffffff;
}

/* Mobile Floating Cart Bar */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-navy);
  color: #ffffff;
  padding: 12px 20px;
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   IMAGE PREVIEW MODAL (EYE ICON PREVIEW)
   ========================================================= */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 19, 35, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.preview-modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.preview-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--color-gold);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.preview-modal-backdrop.open .preview-modal-card {
  transform: translateY(0);
}

.preview-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--color-ivory);
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}
.preview-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-burgundy);
  background: rgba(120, 28, 45, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.preview-modal-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
}
.preview-modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: all var(--transition-ui);
}
.preview-modal-close:hover {
  background: #E2E8F0;
  color: var(--color-navy);
}

.preview-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-modal-media {
  background: #F8FAFC;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  min-height: 200px;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.preview-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-large-img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
}
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 8px;
}
.preview-placeholder .placeholder-icon {
  font-size: 46px;
  line-height: 1;
}
.preview-placeholder .placeholder-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
}
.preview-placeholder .placeholder-sub {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
}

.preview-modal-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.preview-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-burgundy);
}
.preview-pkg {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-muted);
}

.preview-desc-wrap {
  background: transparent;
  border: none;
  padding: 0;
}
.modal-breakdown-card {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  background: #FAFBFD;
}
.modal-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.preview-action-box {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.preview-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-line-total {
  font-size: 13.5px;
  padding: 4px 10px;
}

.preview-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #FAFBFD;
  border-top: 1px solid var(--color-border);
}

/* =========================================================
   DIWALI NOTICES, ALERTS & BADGES
   ========================================================= */
.diwali-notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-button);
  padding: 10px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: #92400E;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-button);
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert.alert-success,
.alert.success {
  background: var(--color-green-light);
  border: 1px solid var(--color-green-border);
  color: #14532D;
}
.alert.alert-danger,
.alert.danger {
  background: var(--color-red-light);
  border: 1px solid #FCA5A5;
  color: #7F1D1D;
}

/* =========================================================
   ADMIN DASHBOARD & ORDER MANAGEMENT
   ========================================================= */
.orders-table,
.products-admin-table,
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.orders-table thead tr th,
.products-admin-table thead tr th,
.admin-table thead tr th {
  background: #F1F5F9;
  color: var(--color-navy);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 2px solid var(--color-border-dark);
  white-space: nowrap;
}

.orders-table tbody tr,
.products-admin-table tbody tr,
.admin-table tbody tr {
  transition: background-color var(--transition-ui);
}

.orders-table tbody tr:nth-child(odd),
.products-admin-table tbody tr:nth-child(odd),
.admin-table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.orders-table tbody tr:nth-child(even),
.products-admin-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even) {
  background-color: #F8FAFC;
}

.orders-table tbody tr:hover,
.products-admin-table tbody tr:hover,
.admin-table tbody tr:hover {
  background-color: #EFF6FF !important;
}

.orders-table tbody tr td,
.products-admin-table tbody tr td,
.admin-table tbody tr td {
  padding: 14px 12px;
  border-bottom: 2px solid var(--color-border);
  vertical-align: middle;
}

/* Admin KPI Grid */
.kpi-row,
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-stat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-ui);
}
.kpi-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.kpi-stat-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  display: block;
  margin-bottom: 6px;
}

.kpi-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: 4px;
}

/* =========================================================
   FORMS & INPUTS (CHECKOUT, ADMIN, LOGIN)
   ========================================================= */
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"]:not(.stepper-input):not(.qty-input),
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-button);
  transition: border-color var(--transition-ui), box-shadow var(--transition-ui);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.1);
}

/* =========================================================
   PRINT INVOICE & REPORT STYLES (@media print)
   ========================================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
  }
  .top,
  nav,
  .button,
  button,
  .actions,
  .no-print,
  .status-form,
  .filter-panel,
  .shop-filter-bar,
  .mobile-cart-bar {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .card,
  .invoice-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  th, td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 8px !important;
  }
}

/* =========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================= */
@media (max-width: 1024px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
  .live-cart-panel {
    display: none;
  }
  .mobile-cart-bar {
    display: flex;
  }
  .hero-inner {
    padding: 36px 28px;
  }
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .checkout-summary-col {
    position: static;
    top: auto;
    order: -1; /* Display Order Items Summary above form on mobile */
    margin-bottom: 4px;
  }
}

@media (max-width: 768px) {
  .top {
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .brand {
    gap: 10px;
    max-width: calc(100% - 115px);
  }
  .brand-logo,
  .site-logo {
    height: 38px;
    max-width: 140px;
  }
  .brand-name {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Show nav actions on mobile */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-cart-badge {
    display: inline-flex;
  }

  /* Main Nav Menu Dropdown on Mobile */
  header.top nav,
  #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2.5px solid var(--color-gold);
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.16);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 16px;
    gap: 8px;
    z-index: 9999;
  }

  header.top nav.is-open,
  #mainNav.is-open {
    display: flex;
    animation: navSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  header.top nav a,
  header.top nav .nav-link,
  #mainNav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    border-radius: var(--radius-button);
    background: var(--color-ivory);
    border: 1px solid var(--color-border);
    box-sizing: border-box;
    text-align: left;
    transition: all var(--transition-ui);
  }

  header.top nav a:hover,
  #mainNav a:hover {
    background: var(--color-gold-light);
    color: var(--color-burgundy);
    border-color: var(--color-gold);
  }

  header.top nav a.active,
  #mainNav a.active {
    background: var(--color-navy) !important;
    color: #ffffff !important;
    border-color: var(--color-navy) !important;
    box-shadow: 0 2px 8px rgba(20, 33, 61, 0.2);
  }

  header.top nav a.nav-cart-link,
  #mainNav a.nav-cart-link {
    background: var(--color-burgundy) !important;
    color: #ffffff !important;
    border-color: var(--color-gold) !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-inner {
    padding: 28px 18px;
  }
  .hero-title {
    font-size: 26px;
  }

  /* Compact PDF-Style Table Responsive (Tablet & Mobile) */
  .col-sno {
    width: 38px;
    padding: 6px 2px;
  }
  .sno-chip {
    font-size: 10px;
    padding: 2px 4px;
    min-width: 22px;
  }
  .col-name {
    padding: 6px 8px;
  }
  .product-name {
    font-size: 12.5px;
  }
  .pkg-tag {
    font-size: 10px;
    padding: 1px 4px;
  }
  .col-rate {
    width: 76px;
    font-size: 13px;
    padding: 6px 6px;
  }
  .col-preview {
    width: 44px;
    padding: 6px 2px;
  }
  .btn-preview-eye {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .col-qty-stepper {
    width: 145px;
    padding: 6px 6px;
  }
  .stepper-wrap {
    gap: 6px;
  }
  .stepper-btn {
    width: 26px !important;
    height: 28px !important;
    min-width: 26px !important;
    font-size: 14px !important;
  }
  .stepper-input,
  input[type="number"].stepper-input,
  input[type="number"].qty-input,
  .stepper input {
    width: 36px !important;
    min-width: 32px !important;
    max-width: 40px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 13px !important;
    padding: 0 2px !important;
  }
  .row-total {
    font-size: 11px;
    padding: 2px 4px;
    min-width: 42px;
  }
}

@media (max-width: 640px) {
  .checkout-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .container {
    padding: 16px 12px;
  }
  .card.checkout-card {
    padding: 18px 14px;
  }
  .checkout-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 12px 10px;
  }
  .card.checkout-card {
    padding: 14px 10px;
  }
  .brand-logo,
  .site-logo {
    height: 34px;
  }
  .brand-name {
    font-size: 14.5px;
  }
  .brand-tagline {
    font-size: 8px;
  }
  .checkout-items-scroll {
    max-height: 200px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card-body {
    padding: 10px 12px 12px;
  }
  .product-card-title {
    font-size: 13px;
    min-height: 32px;
  }
  .product-card-price {
    font-size: 15px;
  }

  /* Ultra-compact for small phones */
  .col-sno {
    width: 30px;
    padding: 5px 1px;
  }
  .sno-chip {
    font-size: 9.5px;
    padding: 1px 3px;
    min-width: 18px;
  }
  .product-name {
    font-size: 11.5px;
  }
  .col-rate {
    width: 65px;
    font-size: 12px;
    padding: 5px 4px;
  }
  .col-preview {
    width: 36px;
    padding: 5px 1px;
  }
  .btn-preview-eye {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .col-qty-stepper {
    width: 125px;
    padding: 5px 4px;
  }
  .stepper-btn {
    width: 24px !important;
    height: 26px !important;
    min-width: 24px !important;
    font-size: 13px !important;
  }
  .stepper-input,
  input[type="number"].stepper-input,
  input[type="number"].qty-input,
  .stepper input {
    width: 32px !important;
    min-width: 30px !important;
    max-width: 34px !important;
    height: 26px !important;
    line-height: 26px !important;
    font-size: 12px !important;
  }
  .row-total {
    display: none; /* Hide line total chip on ultra-narrow phones to keep stepper accessible */
  }
}

