/* ============================================
   Bootstrap 5 Compatibility Layer
   ============================================
   This file prevents Bootstrap from breaking
   existing layouts during the migration process.
   ============================================ */

/* ============================================
   MODERNIZED BRAND COLORS - Refined Industrial Elegance
   ============================================ */
:root {
  /* Primary Palette - Sophisticated Maroon */
  --brand-primary: #8B1538;           /* Vibrant Maroon - Hero */
  --brand-primary-dark: #6B0F2A;      /* Deep Maroon - Depth */
  --brand-primary-light: #A7294C;     /* Bright Maroon - Highlights */

  /* Secondary Palette - Warm Gold */
  --brand-secondary: #C89B3C;         /* Warm Gold - Premium Accent */
  --brand-secondary-dark: #A67B2A;    /* Rich Gold - Hover States */
  --brand-secondary-light: #E0B968;   /* Light Gold - Subtle Accents */

  /* Accent Palette - Forest Green */
  --brand-accent: #2F5233;            /* Deep Forest - Trust Signals */
  --brand-accent-light: #4A7350;      /* Sage Green - Secondary Actions */

  /* Neutral Palette - Warm & Modern */
  --neutral-cream: #F5E6D3;           /* Warm Cream - Backgrounds */
  --neutral-warm-white: #F8F5F1;      /* Elegant White - Cards */
  --neutral-charcoal: #2C2C2C;        /* Modern Charcoal - Text */
  --neutral-mid-gray: #5A5A5A;        /* Mid Gray - Secondary Text */
  --neutral-light-gray: #D4C5B3;      /* Warm Gray - Borders */

  /* Functional Colors - Enhanced */
  --success-green: #2F5233;           /* Forest Green for Success */
  --warning-gold: #C89B3C;            /* Gold for Warnings */
  --danger-red: #B91C3B;              /* Deep Red for Errors */
  --info-teal: #5A8A8C;               /* Muted Teal for Info */

  /* Shadows & Depth */
  --shadow-sm: 0 2px 4px rgba(43, 21, 27, 0.08);
  --shadow-md: 0 4px 12px rgba(43, 21, 27, 0.12);
  --shadow-lg: 0 8px 24px rgba(43, 21, 27, 0.16);
  --shadow-xl: 0 16px 48px rgba(43, 21, 27, 0.20);

  /* Overlays & Gradients */
  --gradient-primary: linear-gradient(135deg, #8B1538 0%, #A7294C 100%);
  --gradient-gold: linear-gradient(135deg, #C89B3C 0%, #E0B968 100%);
  --gradient-warm: linear-gradient(180deg, #F8F5F1 0%, #F5E6D3 100%);
  --overlay-dark: rgba(43, 21, 27, 0.85);
  --overlay-light: rgba(248, 245, 241, 0.95);

  /* Font size scale - match legacy design (0.8em = ~13px) */
  --bs-body-font-size: 0.8rem;

  /* Refined Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.25s ease-in-out;
  --transition-slow: 0.4s ease-in-out;
}

/* ============================================
   Typography Overrides - Crisp & Readable (Inter + Source Serif Pro)
   ============================================ */

/* Force Bootstrap to respect the legacy smaller font sizes */
html {
  font-size: 100%; /* Keep 16px as 1rem baseline */
}

body {
  font-size: 0.9rem !important; /* Increased from 0.8rem for better readability (~14.4px) */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 400;
  color: var(--neutral-charcoal) !important;
  background: var(--gradient-warm) !important;
  -webkit-font-smoothing: subpixel-antialiased; /* Crisp rendering instead of antialiased */
  -moz-osx-font-smoothing: auto; /* Browser default for sharpness */
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.6; /* Better readability */
}

/* Reset Bootstrap's default font sizes */
p, div, span, li, td, th {
  font-size: inherit;
}

/* Headings - Inter for consistency and readability */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em; /* Tighter spacing for large text */
  line-height: 1.3;
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

/* ============================================
   Bootstrap Button Overrides
   ============================================ */

/* Button font sizes - Inter for crisp, readable buttons */
.btn {
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-sm {
  font-size: 0.8rem;
}

.btn-lg {
  font-size: 1.1rem;
}

/* ===== PRIMARY BUTTON - Vibrant Maroon with Gold Shine ===== */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--brand-secondary-light);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gradient-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--neutral-charcoal);
}

.btn-primary:active {
  background: var(--brand-primary-dark) !important;
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(0) !important;
}

/* ===== SECONDARY BUTTON - Forest Green Trust Signal ===== */
.btn-outline-secondary {
  color: var(--brand-accent);
  border: 2px solid var(--brand-accent);
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-base);
}

.btn-outline-secondary:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== SUCCESS BUTTON - Gold Premium Action ===== */
.btn-success {
  background: var(--gradient-gold);
  border: none;
  color: var(--neutral-charcoal);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.btn-success:hover {
  background: var(--brand-secondary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: #fff;
}

/* ============================================
   Navigation & Header Overrides
   ============================================ */

/* ===== TOP HEADER NAVBAR - Clean White with Subtle Shadow ===== */
.navbar-light {
  background: var(--neutral-warm-white);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--neutral-light-gray);
}

.navbar-brand img {
  max-width: 600px;
  width: auto;
  height: auto;
}

.navbar-toggler {
  border-color: var(--brand-primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

/* Navigation links in header */
.navbar-light .nav-link {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--neutral-mid-gray);
  padding: 0.5rem 1rem;
  transition: color var(--transition-base);
  position: relative;
  letter-spacing: 0;
}

.navbar-light .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.navbar-light .nav-link:hover {
  color: var(--brand-primary);
}

.navbar-light .nav-link:hover::after {
  width: 80%;
}

/* Cart badge styling */
.navbar-light .nav-link .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Dropdown menu styling */
.navbar-light .dropdown-menu {
  border: 1px solid var(--brand-border);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar-light .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.navbar-light .dropdown-item:hover {
  background-color: var(--brand-accent);
  color: var(--brand-primary);
}

/* ===== MAIN NAVIGATION BAR - Maroon with Gold Shimmer ===== */
.navbar-dark,
.main-nav-maroon {
  font-family: 'Inter', sans-serif;
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 1rem;
}

.navbar-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.navbar-dark .nav-link {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1rem;
  transition: all var(--transition-base);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 3px solid transparent;
}

.navbar-dark .nav-link::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-gold);
  transition: width var(--transition-base);
}

.navbar-dark .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.navbar-dark .nav-link:hover::before {
  width: 100%;
}

.navbar-dark .nav-link.active {
  background: var(--brand-accent);
  color: #fff !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-dark .nav-link.active::before {
  width: 100%;
}

/* Ensure nav items distribute evenly */
.navbar-dark .navbar-nav {
  width: 100%;
}

.navbar-dark .nav-item {
  flex: 1;
  text-align: center;
}

/* Search form in header */
.navbar .form-control {
  border-color: var(--brand-border);
  font-size: 0.9rem;
}

.navbar .form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.25rem rgba(100, 160, 164, 0.25);
}

/* Mobile responsiveness */
@media (max-width: 991px) {
  .navbar-brand img {
    max-width: 300px;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
  }

  .navbar-dark .nav-item {
    flex: none;
    width: 100%;
  }

  .navbar-dark .nav-link {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-width: 200px;
  }
}

/* ============================================
   Table Overrides (for GridView)
   ============================================ */

/* Table font sizes - match legacy design */
.table {
  font-size: 0.85rem;
}

.table th {
  font-size: 0.9rem;
}

/* Ensure ASP.NET GridView tables work with Bootstrap */
table[id*="gridList"],
table[id*="GridView"],
table[id*="DataList"] {
  width: 100% !important;
  font-size: 0.85rem;
}

/* Preserve existing table spacing */
.table > :not(:first-child) {
  border-top-width: 1px;
}

/* ============================================
   Form Control Overrides
   ============================================ */

/* Form control font sizes - match legacy design */
.form-control,
.form-select,
.form-check-label,
.form-label {
  font-size: 0.9rem;
}

.form-text {
  font-size: 0.8rem;
}

/* ===== FORM CONTROLS - Modern with Maroon Focus States ===== */
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="number"].form-control,
textarea.form-control,
select.form-select {
  border: 2px solid var(--neutral-light-gray);
  background: var(--neutral-warm-white);
  color: var(--neutral-charcoal);
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

input[type="text"].form-control:focus,
input[type="email"].form-control:focus,
input[type="password"].form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(139, 21, 56, 0.15), var(--shadow-sm);
  background: #fff;
  outline: none;
}

/* Gold shimmer on focus */
input[type="text"].form-control:focus::placeholder,
input[type="email"].form-control:focus::placeholder,
input[type="password"].form-control:focus::placeholder {
  color: var(--brand-secondary-light);
  transition: color var(--transition-base);
}

/* ============================================
   Card Component Overrides
   ============================================ */

/* ===== CARD COMPONENT - Cream with Layered Shadows ===== */
.card {
  border: 1px solid var(--neutral-light-gray);
  font-size: 0.9rem;
  background: var(--neutral-warm-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 700;
}

.card-text {
  font-size: 0.85rem;
  color: var(--neutral-mid-gray);
  line-height: 1.6;
}

.card-header {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  border-bottom: 2px solid var(--neutral-light-gray);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-charcoal);
  padding: 1rem 1.25rem;
}

.card-header.bg-primary {
  background: var(--gradient-primary) !important;
  color: #fff;
  border-bottom: 2px solid var(--brand-secondary);
}

/* ============================================
   DataList Grid Layout (Table-based)
   ============================================ */

/* DataList renders as table with RepeatColumns="4" */
/* Target the table generated by DataList */
table[id*="gridList"],
table[id*="gridBestsellers"] {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 10px !important; /* Match CellSpacing="10" */
  table-layout: fixed !important; /* Force equal column widths */
}

/* Responsive table cells - default to 4 columns on desktop */
table[id*="gridList"] td,
table[id*="gridBestsellers"] td {
  width: 25% !important; /* 4 columns on desktop (≥992px) */
  vertical-align: top !important;
  padding: 0 !important;
}

/* Tablet: 2 columns (768px - 991px) */
@media (max-width: 991px) {
  table[id*="gridList"] td,
  table[id*="gridBestsellers"] td {
    width: 50% !important; /* 2 columns */
  }
}

/* Mobile: 1 column (<768px) */
@media (max-width: 767px) {
  table[id*="gridList"] td,
  table[id*="gridBestsellers"] td {
    width: 100% !important; /* 1 column - full width stacking */
    display: block !important;
  }

  table[id*="gridList"],
  table[id*="gridBestsellers"] {
    display: block !important;
  }

  table[id*="gridList"] tbody,
  table[id*="gridBestsellers"] tbody,
  table[id*="gridList"] tr,
  table[id*="gridBestsellers"] tr {
    display: block !important;
    width: 100% !important;
  }
}

/* Ensure product cards fill the table cells */
table[id*="gridList"] td > *,
table[id*="gridBestsellers"] td > * {
  width: 100% !important;
  height: 100% !important;
}

/* ===== PRODUCT CARD - Cream with Gold Shimmer Hover ===== */
.product-card {
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  background: var(--neutral-warm-white);
  border: 1px solid var(--neutral-light-gray);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 60, 0.15), transparent);
  transition: left var(--transition-slow);
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--brand-secondary-light);
}

.product-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid var(--neutral-cream);
  transition: all var(--transition-base);
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.product-card:hover .card-img-top {
  opacity: 0.95;
  transform: scale(1.05);
}

.product-card .card-title a {
  color: var(--neutral-charcoal);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  transition: color var(--transition-base);
  letter-spacing: 0;
  line-height: 1.4;
}

.product-card .card-title a:hover {
  color: var(--brand-primary);
}

.product-price {
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Product badges positioning */
.product-card .position-relative .badge {
  z-index: 10;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

/* Ensure card body fills height for proper alignment */
.product-card .card-body {
  padding: 1rem;
}

/* View Details button styling */
.product-card .btn-primary {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.product-card .btn-primary:hover {
  transform: scale(1.02);
}

/* ============================================
   ASP.NET Validation Control Overrides
   ============================================ */

/* RequiredFieldValidator, RangeValidator, etc. */
span[id*="Validator"],
span[id*="rfv"],
span[id*="cv"] {
  color: #dc3545 !important; /* Bootstrap danger color */
  font-size: 0.875rem;
  display: block;
  margin-top: 0.25rem;
}

/* ============================================
   UpdatePanel Compatibility
   ============================================ */

/* Ensure UpdatePanel doesn't break Bootstrap grid */
div[id*="UpdatePanel"] {
  display: contents;
}

/* ============================================
   Accordion Overrides
   ============================================ */

.accordion-button {
  background-color: var(--brand-accent);
  color: #333;
}

.accordion-button:not(.collapsed) {
  background-color: var(--brand-secondary);
  color: #fff;
}

.accordion-button:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.25rem rgba(100, 160, 164, 0.25);
}

/* ============================================
   Legacy Layout Compatibility
   ============================================ */

/* CRITICAL FIX: Reset legacy .col-* classes that conflict with Bootstrap */
/* Legacy CSS has .col-12, .col-6, .col-4 with fixed widths */
/* These override Bootstrap's responsive .col-lg-3, .col-md-4, etc. */

/* Target ONLY the specific legacy column classes (not Bootstrap's) */
.col-12:not([class*="col-lg-"]):not([class*="col-md-"]):not([class*="col-sm-"]):not([class*="col-xs-"]),
.col-6:not([class*="col-lg-"]):not([class*="col-md-"]):not([class*="col-sm-"]):not([class*="col-xs-"]),
.col-4:not([class*="col-lg-"]):not([class*="col-md-"]):not([class*="col-sm-"]):not([class*="col-xs-"]),
.col-r {
  /* Reset legacy styles to not interfere */
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* Preserve clearfix behavior where needed */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   Responsive Layout - Desktop & Mobile
   ============================================ */

/* Desktop: 2-column layout with sidebar */
@media (min-width: 992px) {
  article.main {
    float: right !important;
    width: calc(100% - 270px) !important;
    max-width: calc(100% - 270px) !important;
  }

  aside {
    float: left !important;
    width: 260px !important;
  }
}

/* Mobile/Tablet: Full-width layout, sidebar hidden (offcanvas) */
@media (max-width: 991px) {
  article.main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  aside {
    display: none !important; /* Hidden on mobile, shown via offcanvas */
  }
}

/* ============================================
   Offcanvas Sidebar Styling
   ============================================ */

.offcanvas {
  max-width: 300px;
}

.offcanvas-body {
  padding: 1rem;
}

/* Mobile Categories Styling - Mirror desktop aside styles */
.offcanvas .sidebar-content a {
  font-family: 'Muli', sans-serif;
  color: #343434;
  text-decoration: none;
}

.offcanvas .sidebar-content li {
  list-style: none;
  padding: 3px;
}

.offcanvas .sidebar-content .category {
  font-weight: normal;
  margin: 0;
  padding: 5px;
  position: relative;
}

.offcanvas .sidebar-content .lev1 a {
  display: inline-block;
  width: 95%;
}

.offcanvas .sidebar-content .lev1 a.btn-cate {
  float: right;
  width: 5%;
}

.offcanvas .sidebar-content .first {
  padding-top: 0;
}

.offcanvas .sidebar-content .lev1 {
  padding: 12px;
}

.offcanvas .sidebar-content .lev1 li {
  border-bottom: 1px dotted #000;
}

.offcanvas .sidebar-content .lev1 .active {
  color: #800000;
}

.offcanvas .sidebar-content .lev1 li.active {
  background: #EBD6B5;
}

.offcanvas .sidebar-content .lev2 {
  display: none;
  padding: 10px 0 20px 0;
}

.offcanvas .sidebar-content .lev2 a {
  display: inline-block;
  width: 100%;
}

.offcanvas .sidebar-content .lev2 li {
  padding: 2px 0 2px 12px;
  border: none;
}

.offcanvas .sidebar-content .lev2 li.active a {
  color: #800000;
}

.offcanvas .sidebar-content .lev2 li.active {
  background: #EBD6B5;
}

/* Offcanvas category headings */
.offcanvas .sidebar-content .hd {
  background: #800000;
  padding: 6px 10px;
  margin: 0 0 8px 0;
  color: #fff;
  font-family: 'Muli', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* Browse Categories Button (mobile only) */
.btn-outline-primary {
  border: 2px solid var(--brand-primary) !important;
  color: var(--brand-primary) !important;
  background-color: #ffffff !important;
  font-weight: 600 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}

/* Maintain existing spacing for legacy components */
.legacy-layout {
  /* Opt-out of Bootstrap grid for specific sections */
  all: initial;
  all: unset;
}

/* ============================================
   Responsive Utilities
   ============================================ */

/* Ensure images are responsive by default */
img {
  max-width: 100%;
  height: auto;
}

/* Product images in cart */
.cart-product-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* ============================================
   Pagination Overrides
   ============================================ */

.pagination {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ===== PAGINATION - Maroon with Gold Active State ===== */
.page-link {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--neutral-light-gray);
  transition: all var(--transition-base);
  background: var(--neutral-warm-white);
}

.page-link:hover {
  color: #fff;
  background: var(--gradient-primary);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: var(--gradient-gold);
  border-color: var(--brand-secondary);
  color: var(--neutral-charcoal);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Badge Overrides
   ============================================ */

/* Badge font sizes */
.badge {
  font-size: 0.75rem;
}

.badge.bg-primary {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Gold badge for special highlights */
.badge.bg-warning {
  background: var(--gradient-gold) !important;
  color: var(--neutral-charcoal) !important;
  font-weight: 700;
}

/* Forest green badge for trust signals */
.badge.bg-success {
  background-color: var(--brand-accent) !important;
  font-weight: 700;
}

/* Cart badge in header */
.cart-badge {
  position: relative;
  top: -2px;
  margin-left: 0.25rem;
}

/* ============================================
   Breadcrumb Overrides
   ============================================ */

/* ===== BREADCRUMB - Cream with Gold Path ===== */
.breadcrumb,
ul.breadcrumb {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%) !important;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--neutral-charcoal) !important;
  font-style: normal !important;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border: 1px solid var(--neutral-light-gray);
  box-shadow: var(--shadow-sm);
}

.breadcrumb li,
ul.breadcrumb li {
  display: inline;
  color: var(--neutral-charcoal);
}

.breadcrumb li a,
ul.breadcrumb li a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.breadcrumb li a:hover,
ul.breadcrumb li a:hover {
  color: var(--brand-secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--brand-secondary);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--brand-primary);
  font-weight: 700;
}

/* ============================================
   Alert Overrides
   ============================================ */

/* ===== ALERTS - Modern with Subtle Gradients ===== */
.alert {
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border-width: 2px;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: linear-gradient(135deg, rgba(47, 82, 51, 0.1) 0%, rgba(74, 115, 80, 0.05) 100%);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  font-weight: 600;
}

.alert-info {
  background: linear-gradient(135deg, rgba(90, 138, 140, 0.1) 0%, rgba(90, 138, 140, 0.05) 100%);
  border-color: var(--info-teal);
  color: var(--info-teal);
  font-weight: 600;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.15) 0%, rgba(224, 185, 104, 0.08) 100%);
  border-color: var(--brand-secondary);
  color: var(--brand-secondary-dark);
  font-weight: 600;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(185, 28, 59, 0.1) 0%, rgba(185, 28, 59, 0.05) 100%);
  border-color: var(--danger-red);
  color: var(--danger-red);
  font-weight: 600;
}

/* ============================================
   Dropdown Overrides
   ============================================ */

.dropdown-menu {
  font-size: 0.9rem;
}

.dropdown-item {
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--brand-accent);
}

.dropdown-item.active {
  background-color: var(--brand-secondary);
}

/* ============================================
   List Group Overrides (for category menus)
   ============================================ */

.list-group {
  font-size: 0.9rem;
}

.list-group-item {
  font-size: 0.9rem;
}

.list-group-item.active {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

.list-group-item:hover {
  background-color: var(--brand-accent);
}

/* ============================================
   Utility Classes
   ============================================ */

/* ===== UTILITY CLASSES - Modernized ===== */

/* Text color utilities */
.text-primary {
  color: var(--brand-primary) !important;
}

.text-secondary {
  color: var(--brand-secondary) !important;
}

.text-muted {
  color: var(--neutral-mid-gray) !important;
}

/* Background color utilities */
.bg-primary {
  background: var(--gradient-primary) !important;
  color: #fff !important;
}

.bg-secondary {
  background: var(--gradient-gold) !important;
  color: var(--neutral-charcoal) !important;
}

.bg-light {
  background-color: var(--neutral-warm-white) !important;
}

/* Border color utilities */
.border-primary {
  border-color: var(--brand-primary) !important;
}

.border-secondary {
  border-color: var(--brand-secondary) !important;
}

/* Hover lift effect utility */
.hover-lift {
  transition: all var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Gold shimmer effect utility */
.gold-shimmer {
  position: relative;
  overflow: hidden;
}

.gold-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 60, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ============================================
   Footer Styling - Charcoal with Maroon & Gold Accents
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, var(--neutral-charcoal) 0%, #1F1F1F 100%);
  border-top: 4px solid var(--brand-primary);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  position: relative;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

/* Footer headings */
.footer-heading {
  color: var(--brand-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
}

/* Footer text */
.footer-text {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-text small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Footer links list */
.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #ffffff !important;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
  position: relative;
  padding-left: 0;
  opacity: 0.9;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all var(--transition-base);
  color: var(--brand-secondary);
}

.footer-links a:hover {
  color: #ffffff !important;
  padding-left: 20px;
  text-decoration: none;
  opacity: 1;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
  color: var(--brand-secondary);
}

/* Footer contact information */
.footer-contact {
  margin: 0;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--brand-secondary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

/* Responsive footer layout */
@media (max-width: 991px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* Tablet: 2 columns, contact info full width */
  .site-footer .col-lg-4:last-child {
    margin-top: 2rem;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 2rem 0 1rem;
    font-size: 0.85rem;
  }

  .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  /* Mobile: Stack all columns vertically */
  .site-footer .col-lg-4,
  .site-footer .col-md-6,
  .site-footer .col-md-12 {
    margin-bottom: 2rem !important;
  }

  .site-footer .col-lg-4:last-child,
  .site-footer .col-md-12:last-child {
    margin-bottom: 0 !important;
  }

  /* Larger touch targets for mobile */
  .footer-links a {
    padding: 0.5rem 0;
    display: block;
  }

  .footer-contact li {
    margin-bottom: 1rem;
  }
}

/* ============================================
   Contact Form Styling (Phase 7)
   ============================================ */

/* ===== PAGE TITLE - Sophisticated with Gradient Underline ===== */
.page-title {
  color: var(--brand-primary);
  font-size: 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  letter-spacing: -0.01em;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Contact form container */
.contact-form-container {
  max-width: 700px; /* Comfortable reading/filling width */
  margin: 0 auto 2rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Form labels */
.contact-form-container .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Form controls */
.contact-form-container .form-control {
  font-size: 1rem; /* 16px - prevents iOS zoom */
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-container .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
}

/* Textarea specific styling */
.contact-form-container textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Validation error messages */
.contact-form-container .invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.contact-form-container .invalid-feedback.d-block {
  display: block !important;
}

/* Submit button */
.contact-form-container .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-form-container .btn-primary:hover {
  background-color: #600000;
  border-color: #600000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

.contact-form-container .btn-primary:active {
  transform: translateY(0);
}

/* Success message styling */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.alert-success .alert-heading {
  color: #155724;
  margin-bottom: 0.75rem;
}

.alert-success .alert-link {
  color: #155724;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.alert-success .alert-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* reCAPTCHA container */
.contact-form-container .g-recaptcha {
  display: inline-block;
}

/* Contact Information Section */
.contact-info-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--brand-accent);
}

.contact-info-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--brand-primary);
  height: 100%;
  overflow-wrap: break-word; /* Allow long text to wrap */
  word-break: break-word; /* Break long words if needed */
}

.contact-info-title {
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Muli', sans-serif;
}

.contact-info-card p {
  margin-bottom: 0.5rem;
  color: #5F573F;
  line-height: 1.6;
  overflow-wrap: break-word; /* Ensure text wraps */
  word-break: break-word; /* Break long words */
}

.contact-info-card a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: break-word; /* Allow email to wrap */
  word-break: break-all; /* Break email at any point if needed */
  display: inline-block;
  max-width: 100%;
}

.contact-info-card a:hover {
  color: #600000;
  text-decoration: underline;
}

/* Google Maps responsive container */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.375rem;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive adjustments for tablet */
@media (max-width: 991px) {
  .contact-form-container {
    max-width: 100%;
    padding: 1.5rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .contact-info-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .contact-form-container {
    padding: 1rem;
    box-shadow: none;
    border-radius: 0;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .contact-form-container .form-label {
    font-size: 0.9rem;
  }

  .contact-form-container .btn-primary {
    width: 100%;
    font-size: 1rem;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .contact-info-title {
    font-size: 1.1rem;
  }

  /* Adjust map aspect ratio for mobile */
  .map-responsive {
    padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
  }
}

/* ============================================
   Phase 8: Sort & Pagination Controls
   ============================================ */

/* Sort & Pagination container */
.sort-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Center pagination only (bottom pagination) */
.sort-pagination-container.justify-content-center {
  justify-content: center;
}

/* Sort section */
.sort-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-label {
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
  color: #333;
  font-size: 0.9rem;
}

/* Sort dropdown styling */
.sort-section .form-select {
  min-width: 180px;
  font-size: 1rem; /* 16px - prevents iOS zoom */
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sort-section .form-select:hover {
  border-color: #adb5bd;
}

.sort-section .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
  outline: 0;
}

/* Pagination section */
.pagination-section {
  display: flex;
  align-items: center;
}

/* Bootstrap pagination customization */
.pagination-section .pagination {
  margin-bottom: 0;
}

.pagination-section .page-link {
  color: var(--brand-primary);
  border: 1px solid #dee2e6;
  padding: 0.375rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-section .page-link:hover {
  background-color: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  text-decoration: none;
}

.pagination-section .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
  z-index: 3;
}

/* Page indicator (middle item) */
.pagination-section .page-indicator {
  background-color: transparent;
  border: 1px solid transparent;
  color: #333;
  font-weight: 600;
  padding: 0.375rem 1rem;
  cursor: default;
}

/* Disabled pagination links */
.pagination-section .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
  opacity: 0.6;
}

/* Bootstrap Icons in pagination */
.pagination-section .bi {
  font-size: 0.875rem;
}

/* Tablet responsiveness (768px - 991px) */
@media (max-width: 991px) {
  .sort-pagination-container {
    gap: 0.75rem;
  }

  .sort-section .form-select {
    min-width: 160px;
  }

  .pagination-section .page-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Mobile responsiveness (<768px) */
@media (max-width: 767px) {
  .sort-pagination-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .sort-section {
    justify-content: center;
    width: 100%;
  }

  .sort-label {
    font-size: 0.85rem;
  }

  .sort-section .form-select {
    min-width: auto;
    flex: 1;
    max-width: 250px;
  }

  .pagination-section {
    justify-content: center;
    width: 100%;
  }

  /* Smaller pagination buttons on mobile */
  .pagination-section .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-height: 44px; /* Touch target size */
    display: flex;
    align-items: center;
  }

  .pagination-section .page-indicator {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Hide "Previous"/"Next" text on very small screens, keep icons */
  @media (max-width: 360px) {
    .pagination-section .d-none.d-sm-inline {
      display: none !important;
    }

    .pagination-section .page-link {
      padding: 0.5rem;
    }
  }
}

/* Ensure pagination icons are vertically centered */
.pagination-section .page-link i {
  line-height: 1;
}

/* Override legacy .pagination styles from global.css */
.pagination-section .pagination {
  float: none; /* Override global.css float: right */
}

/* Override legacy .sortpaging styles */
.sort-pagination-container {
  clear: both; /* Clear any floats from above */
}

/* ============================================
   Phase 9: Static Content Pages (About, Privacy, Terms)
   ============================================ */

/* Static content container */
.static-content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--neutral-warm-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Page title */
.static-content-container .page-title {
  color: var(--brand-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  padding-bottom: 0.5rem;
  letter-spacing: 0.5px;
  position: relative;
}

.static-content-container .page-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Last updated date */
.static-content-container .last-updated {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 2rem;
}

/* Content sections */
.static-content-container .content-section {
  margin-bottom: 2.5rem;
}

.static-content-container .content-section:last-child {
  margin-bottom: 0;
}

/* Section headings */
.static-content-container h2 {
  color: var(--brand-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

.static-content-container h3 {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

/* Paragraphs */
.static-content-container p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1rem;
}

.static-content-container p:last-child {
  margin-bottom: 0;
}

/* Lists */
.static-content-container ul,
.static-content-container ol {
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #333;
}

.static-content-container li {
  margin-bottom: 0.5rem;
}

.static-content-container li:last-child {
  margin-bottom: 0;
}

/* Links */
.static-content-container a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.static-content-container a:hover {
  color: #600000;
  text-decoration: underline;
}

/* Contact info box */
.contact-info-box {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  border-left: 4px solid var(--brand-secondary);
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-light-gray);
  border-left: 4px solid var(--brand-secondary);
}

.contact-info-box p {
  margin-bottom: 0.5rem;
  color: var(--neutral-charcoal);
}

.contact-info-box p:last-child {
  margin-bottom: 0;
}

.contact-info-box strong {
  color: var(--brand-primary);
  font-weight: 700;
}

/* Responsive adjustments for tablet */
@media (max-width: 991px) {
  .static-content-container {
    padding: 1.5rem 1rem;
  }

  .static-content-container .page-title {
    font-size: 1.75rem;
  }

  .static-content-container h2 {
    font-size: 1.35rem;
  }
}

/* Responsive adjustments for mobile */
@media (max-width: 767px) {
  .static-content-container {
    padding: 1rem 0.75rem;
  }

  .static-content-container .page-title {
    font-size: 1.5rem;
  }

  .static-content-container h2 {
    font-size: 1.25rem;
  }

  .static-content-container h3 {
    font-size: 1.1rem;
  }

  .static-content-container p,
  .static-content-container li {
    font-size: 0.95rem;
  }

  .contact-info-box {
    padding: 1rem;
  }
}

/* ========================================
   PHASE 10A: PRODUCT DETAIL PAGE STYLES
   ======================================== */

/* ===== PRODUCT DETAIL CONTAINER - Premium White Card ===== */
.product-detail-container {
  background: var(--neutral-warm-white);
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-light-gray);
  position: relative;
  overflow: hidden;
}

.product-detail-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

/* === PRODUCT IMAGE SECTION === */

.product-image-section {
  position: relative;
}

/* Main Product Image */
.product-main-image {
  background: linear-gradient(135deg, #fafafa 0%, var(--neutral-cream) 100%);
  border: 2px solid var(--neutral-light-gray);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.product-main-image:hover {
  border-color: var(--brand-secondary-light);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05), var(--shadow-sm);
}

.product-main-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 0.25rem;
}

/* Thumbnail Gallery (DataList) */
.product-thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.product-thumbnail-grid table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.5rem;
}

.thumbnail-wrapper {
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  padding: 0.25rem;
}

.thumbnail-wrapper:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
}

.thumbnail-image {
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 0.25rem;
}

/* === PRODUCT INFO SECTION === */

.product-info-section {
  padding: 0 1rem;
}

/* Product Name */
.product-name {
  font-size: 1.75rem;
  font-family: 'Source Serif Pro', Georgia, serif;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  line-height: 1.3;
  letter-spacing: 0;
  position: relative;
}

.product-name::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
}

/* Quantity Input */
.quantity-input {
  max-width: 200px;
  font-size: 1rem !important; /* Prevents iOS zoom */
  font-weight: 500;
}

/* Remove number input spinners on Firefox */
.quantity-input[type="number"] {
  -moz-appearance: textfield;
}

/* Remove number input spinners on Webkit (Chrome, Safari, Edge) */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action Buttons */
.product-actions {
  margin-top: 1.5rem;
}

.product-actions .btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.product-actions .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.product-actions .btn-primary:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-actions .btn-outline-secondary {
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  background-color: #ffffff;
}

.product-actions .btn-outline-secondary:hover {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Product Messages */
.product-messages .alert {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* === PRODUCT DESCRIPTION SECTION - Cream with Texture === */

.product-description-section {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
  border: 1px solid var(--neutral-light-gray);
  box-shadow: var(--shadow-sm);
}

.description-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-secondary);
  position: relative;
}

.description-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--gradient-primary);
}

.description-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.description-content p {
  margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.description-content li {
  margin-bottom: 0.5rem;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .product-detail-container {
    padding: 1.5rem 1rem;
  }

  .product-name {
    font-size: 1.5rem;
  }

  .product-info-section {
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .description-heading {
    font-size: 1.35rem;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .product-detail-container {
    padding: 1rem 0.5rem;
  }

  .product-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .product-main-image {
    padding: 0.5rem;
  }

  /* Thumbnail grid - reduce to 3 columns on mobile */
  .product-thumbnail-grid table {
    border-spacing: 0.25rem;
  }

  .quantity-input {
    max-width: 100%;
    font-size: 1rem !important; /* iOS zoom prevention */
  }

  .product-actions .btn {
    font-size: 1rem;
  }

  .product-description-section {
    padding: 1.5rem 1rem;
  }

  .description-heading {
    font-size: 1.2rem;
  }

  .description-content {
    font-size: 0.95rem;
  }
}

/* Very small screens (≤360px) */
@media (max-width: 360px) {
  .product-name {
    font-size: 1.1rem;
  }

  /* Thumbnail grid - reduce to 2 columns on very small screens */
  .product-thumbnail-grid table td {
    width: 50%;
  }
}

/* ========================================
   PHASE 10B: SHOPPING CART PAGE STYLES
   ======================================== */

/* ===== CART PAGE HEADING - Maroon with Gold Accent ===== */
.cart-page-heading {
  color: var(--brand-primary);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  position: relative;
  letter-spacing: 0.5px;
}

.cart-page-heading::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
}

/* === CART TABLE === */

.cart-table-wrapper {
  margin-bottom: 1.5rem;
}

.cart-table {
  background-color: var(--neutral-warm-white) !important;
  border: 1px solid var(--neutral-light-gray) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-md) !important;
  border-collapse: separate !important;
  text-align: left !important;
}

.cart-table thead th {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  vertical-align: middle !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase;
}

.cart-table tbody tr {
  border-bottom: 1px solid #f0f0f0 !important;
  transition: all 0.2s ease !important;
}

.cart-table tbody tr:last-child {
  border-bottom: none !important;
}

.cart-table tbody tr:hover {
  background-color: #f8f9fa !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-table td {
  padding: 1.5rem 1.5rem !important;
  vertical-align: middle !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/* === CART TABLE CELLS === */

/* Checkbox Cell */
.cart-checkbox-cell {
  width: 60px;
  padding: 1rem !important;
}

.cart-checkbox-cell input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

/* Image Cell (Desktop Only) */
.cart-image-cell {
  width: 110px;
  padding: 1rem !important;
}

.cart-product-image {
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.cart-product-image:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Mobile Image (shown only on mobile) */
.cart-product-image-mobile {
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
  margin-top: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Product Info Cell */
.cart-product-info {
  min-width: 250px;
  padding-left: 1.25rem !important;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cart-item-name a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item-name a:hover {
  color: var(--brand-primary);
}

.cart-item-color {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Quantity Cell */
.cart-qty-cell {
  width: 120px;
}

.cart-qty-input {
  width: 80px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem !important; /* iOS zoom prevention */
  margin: 0 auto;
}

/* Remove number input spinners */
.cart-qty-input[type="number"] {
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* === EMPTY CART STATE === */

.empty-cart-message {
  padding: 3rem 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

.empty-cart-message .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* === CART TOTALS SECTION === */

.cart-totals-section {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.cart-totals-box {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  border: 2px solid var(--brand-secondary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.cart-totals-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cart-totals-label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--neutral-charcoal);
  letter-spacing: 0.3px;
}

.cart-totals-value {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* Quote Success Box - styled similar to empty cart/cart-totals-box */
.quote-success-box {
  background: linear-gradient(135deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  border: 2px solid var(--brand-secondary-light);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quote-success-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #198754, #20c997);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.quote-success-box h3 {
  color: var(--neutral-charcoal);
  font-weight: 700;
}

/* === CART ACTIONS/BUTTONS === */

.cart-actions-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #dee2e6;
}

.cart-actions-wrapper .btn {
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.cart-actions-wrapper .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.cart-actions-wrapper .btn-primary:hover {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart-actions-wrapper .btn-success {
  font-size: 1.125rem;
  padding: 1rem 1.5rem;
  letter-spacing: 0.5px;
}

.cart-actions-wrapper .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.cart-actions-wrapper .btn-outline-secondary {
  color: var(--brand-primary);
  border-color: #6c757d;
}

.cart-actions-wrapper .btn-outline-secondary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.cart-actions-wrapper .btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet (≤991px) */
@media (max-width: 991px) {
  .cart-page-heading {
    font-size: 1.5rem;
  }

  .cart-table thead th {
    font-size: 0.9rem !important;
    padding: 0.75rem 0.5rem !important;
  }

  .cart-table td {
    padding: 0.75rem 0.5rem !important;
  }

  .cart-qty-input {
    width: 70px;
  }

  .cart-totals-box {
    padding: 1rem;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .cart-page-heading {
    font-size: 1.25rem;
  }

  /* Stack cart items as cards on mobile */
  .cart-table thead {
    display: none !important; /* Hide table headers */
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block !important;
    width: 100% !important;
  }

  .cart-table tr {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }

  .cart-table tr:hover {
    background-color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: none !important;
  }

  .cart-table td {
    border: none !important;
    padding: 0.5rem 0 !important;
    text-align: left !important;
  }

  /* Checkbox - Float right */
  .cart-checkbox-cell {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: auto;
  }

  /* Image hidden on mobile (shown in product info) */
  .cart-image-cell {
    display: none !important;
  }

  /* Product info full width */
  .cart-product-info {
    width: 100%;
    padding-right: 3rem; /* Space for checkbox */
  }

  .cart-item-name {
    font-size: 1.125rem;
  }

  /* Quantity cell styling */
  .cart-qty-cell {
    width: 100%;
    text-align: left !important;
    margin-top: 0.75rem;
  }

  .cart-qty-cell::before {
    content: "Quantity: ";
    font-weight: 600;
    margin-right: 0.5rem;
  }

  .cart-qty-input {
    width: 100px;
    display: inline-block;
    margin: 0;
  }

  /* Cart totals - full width */
  .cart-totals-section .col-md-6 {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .cart-totals-box {
    margin-bottom: 1rem;
  }

  /* Cart actions - stack buttons */
  .cart-actions-wrapper .btn {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }

  .cart-actions-wrapper .btn-success {
    font-size: 1rem;
  }
}

/* Very small screens (≤360px) */
@media (max-width: 360px) {
  .cart-page-heading {
    font-size: 1.1rem;
  }

  .cart-item-name {
    font-size: 1rem;
  }

  .cart-qty-input {
    width: 80px;
  }
}


/* ============================================
   REFINED INDUSTRIAL ELEGANCE - ENHANCEMENTS
   Final Polish & Micro-Interactions
   ============================================ */

/* === SMOOTH SCROLL BEHAVIOR === */
html {
  scroll-behavior: smooth;
}

/* === CRISP FONT RENDERING FOR MAXIMUM READABILITY === */
* {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

/* NO text shadows - crisp, sharp text for all ages */

/* === SELECTION COLORS === */
::selection {
  background: var(--brand-secondary);
  color: var(--neutral-charcoal);
}

::-moz-selection {
  background: var(--brand-secondary);
  color: var(--neutral-charcoal);
}

/* === IMPROVED FOCUS STATES === */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* === ENHANCED LINK HOVER STATES === */
a:not(.btn):not(.nav-link):not(.page-link) {
  color: var(--brand-primary);
  transition: color var(--transition-base);
  text-decoration: none;
}

a:not(.btn):not(.nav-link):not(.page-link):hover {
  color: var(--brand-secondary);
}

/* === LOADING STATE ANIMATION === */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* === SMOOTH FADE-IN FOR PAGE CONTENT === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* === ENHANCED CARD DEPTH ON HOVER === */
.card, .product-card {
  will-change: transform, box-shadow;
}

/* === GOLD ACCENT LINE UTILITY === */
.gold-accent-line {
  position: relative;
}

.gold-accent-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
}

/* === MAROON ACCENT LINE UTILITY === */
.maroon-accent-line {
  position: relative;
  padding-left: 1rem;
}

.maroon-accent-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
}

/* === ENHANCED THUMBNAIL HOVER === */
.thumbnail-wrapper {
  will-change: border-color, box-shadow;
}

/* === IMPROVED BUTTON ACTIVE STATES === */
.btn:active {
  transform: scale(0.98) !important;
}

/* === SMOOTH TRANSITIONS FOR ALL INTERACTIVE ELEMENTS === */
button,
input,
select,
textarea,
.btn,
.card,
.product-card,
.nav-link,
.page-link,
a {
  -webkit-tap-highlight-color: rgba(139, 21, 56, 0.1);
}

/* === PREMIUM SCROLLBAR (Webkit only) === */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--neutral-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-gold);
}

/* === ENHANCED TABLE STYLING === */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* === OFFCANVAS ENHANCEMENTS === */
.offcanvas {
  background: var(--neutral-warm-white);
  box-shadow: var(--shadow-xl);
}

.offcanvas-header {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1.5rem;
}

.offcanvas-title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* === PREMIUM DROPDOWN STYLING === */
.dropdown-menu {
  border: 1px solid var(--neutral-light-gray);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  background: var(--neutral-warm-white);
}

.dropdown-item {
  transition: all var(--transition-fast);
  font-weight: 500;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, var(--neutral-cream) 0%, var(--neutral-warm-white) 100%);
  color: var(--brand-primary);
  padding-left: 1.5rem;
}

.dropdown-divider {
  border-top-color: var(--neutral-light-gray);
}

/* === MODAL ENHANCEMENTS === */
.modal-content {
  border: none;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
}

.modal-header {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-body {
  padding: 2rem;
  background: var(--neutral-warm-white);
}

.modal-footer {
  background: var(--neutral-cream);
  border-top: 2px solid var(--neutral-light-gray);
  padding: 1rem 2rem;
}

/* === TOAST/ALERT ANIMATIONS === */
.alert {
  animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ACCESSIBILITY: FOCUS VISIBLE === */
*:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === DARK MODE PREPARATION (Future Enhancement) === */
@media (prefers-color-scheme: dark) {
  /* Currently respecting light mode, but structure ready for dark mode toggle */
}

/* === END REFINED INDUSTRIAL ELEGANCE === */

/* ============================================
   LEGACY FONT OVERRIDES - Make Cohesive with Inter
   ============================================ */

/* Section headings (.hd class) - "Featured Products", "Bestsellers" */
.hd {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important; /* Reduced from 700 for subtlety */
  font-style: normal !important; /* Remove italic */
  font-size: 1.1rem !important; /* Reduced from 1.25rem - smaller than h2 (1.5rem) */
  letter-spacing: -0.01em;
  text-transform: uppercase;
  padding: 0.75rem 1rem !important;
}

/* Legacy buttons (.btn class from global.css) - override Muli + italic */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important; /* Remove italic */
  font-size: 0.95rem !important; /* Override 1.3em */
  letter-spacing: 0.02em;
}

/* Legacy small buttons - update to Inter */
.btn-small {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0.03em;
}

/* Sidebar/aside category links - update to Inter */
aside a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-size: 0.9rem;
}

aside .category {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
}

/* Legacy tabs - update to Inter */
.tab a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
}

/* Sort dropdown title - update to Inter */
.sort .title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
}

/* Product names in lists - use Source Serif Pro for warmth */
.p-name,
.p-name a {
  font-family: 'Source Serif Pro', Georgia, serif !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.4;
}

/* Product item wrapper - neutral font */
.product-item-wrapper {
  font-family: 'Inter', sans-serif !important;
}

/* Column box subheadings - update to Inter */
.col-box .subhd {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important; /* Remove italic */
  font-weight: 500;
  font-size: 0.85rem;
}

/* ============================================
   HOMEPAGE CAROUSEL STYLING
   ============================================ */

/* Carousel container */
.carousel {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--neutral-light-gray);
  background: var(--neutral-warm-white);
}

/* Carousel images */
.carousel-image {
  max-height: 450px;
  object-fit: cover;
  width: 100%;
}

/* Carousel indicators (dots) */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--neutral-warm-white);
  border: 2px solid var(--brand-primary);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.carousel-indicators .active {
  background-color: var(--brand-secondary);
  opacity: 1;
  transform: scale(1.2);
}

/* Carousel controls (arrows) */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--brand-primary);
  border-radius: 50%;
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--brand-secondary);
  transform: scale(1.1);
}

/* Responsive carousel sizing */
@media (max-width: 991px) {
  .carousel-image {
    max-height: 350px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 767px) {
  .carousel {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .carousel-image {
    max-height: 250px;
  }

  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}
