/* 
=============================================================================
SFU DOCUMENT SOLUTIONS - BRAND COLORS
=============================================================================

Official SFU Brand Colors:
- SFU Light Red: #CC0633 (PMS 199C, RGB: 204, 6, 51)
- SFU Dark Red: #A6192E (PMS 187C, RGB: 166, 25, 46)

These colors should be used consistently across:
- Login page gradients
- Primary/secondary button colors  
- Text accent colors
- Brand elements

Updated: 2025-07-24
=============================================================================
*/

/* SFU Custom Fonts */
@font-face {
  font-family: 'November Condensed';
  src: url('../fonts/NovemberCondensedFNI-Heavy.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lava';
  src: url('../fonts/LavaFNI-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bootstrap CSS Variable Overrides */
:root {
  /* Override Bootstrap theme colors with SFU Brand Colors */
  --bs-primary: #CC0633;
  --bs-primary-rgb: 204, 6, 51;
  --bs-secondary: #A6192E;
  --bs-secondary-rgb: 166, 25, 46;
  --bs-success: #A6192E;
  --bs-info: #CC0633;
  --bs-body-color: #333333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-secondary-color: #666666;
  --bs-secondary-color-rgb: 102, 102, 102;
  --bs-body-bg: #f5f5f5;
  --bs-body-bg-rgb: 245, 245, 245;
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 12px;
  
  /* Custom variables updated with SFU Brand Colors */
  --primary-color: #CC0633;
  --secondary-color: #A6192E;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  /* Tiered Border Radius System */
  --radius-sm: 4px;    /* small elements: badges, tags */
  --radius-md: 8px;    /* interactive: buttons, inputs */
  --radius-lg: 12px;   /* containers: cards, panels */
  --radius-xl: 16px;   /* large: modals, hero sections */
  --border-radius: 8px; /* legacy support */
  --border-radius-lg: var(--radius-lg); /* backward compatibility */
  --spacing-unit: 1rem;
}

/* Bootstrap Component Overrides */
.btn-primary {
  --bs-btn-bg: #CC0633;
  --bs-btn-border-color: #CC0633;
  --bs-btn-hover-bg: #A6192E;
  --bs-btn-hover-border-color: #A6192E;
  --bs-btn-active-bg: #8B1426;
  --bs-btn-active-border-color: #8B1426;
}

.btn-secondary {
  --bs-btn-bg: #A6192E;
  --bs-btn-border-color: #A6192E;
  --bs-btn-hover-bg: #8B1426;
  --bs-btn-hover-border-color: #8B1426;
  --bs-btn-active-bg: #70101E;
  --bs-btn-active-border-color: #70101E;
}

.btn-outline-primary {
  --bs-btn-color: #CC0633;
  --bs-btn-border-color: #CC0633;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #CC0633;
  --bs-btn-hover-border-color: #CC0633;
  --bs-btn-focus-shadow-rgb: 204, 6, 51;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #A6192E;
  --bs-btn-active-border-color: #A6192E;
  --bs-btn-disabled-color: #CC0633;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #CC0633;
}

.text-primary {
  color: #CC0633 !important;
}

.text-secondary {
  color: #A6192E !important;
}

.bg-primary {
  background-color: #CC0633 !important;
}

.bg-secondary {
  background-color: #A6192E !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lava', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* Space for top header - desktop first */
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding-top: 70px; /* Smaller header on mobile */
    padding-bottom: 0; /* Remove bottom navigation space */
  }
}

/* SFU Typography System */
h1, h2, h3, h4, h5, h6,
.product-card h3,
.selection-card h2,
.selection-card h3,
.results-section h3,
.quote-card h4,
.home-grid h3,
.nav-text,
.btn,
.calculate-btn,
.product-name,
.product-title,
.form-label,
.modal-title,
.section-title {
  font-family: 'November Condensed', 'Arial Narrow', 'Arial', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Body text uses Lava */
p, .product-card p, 
.selection-card p,
.description,
.help-text,
.quote-customer,
.quote-company,
.form-text,
.modal-body,
.alert,
input, select, textarea {
  font-family: 'Lava', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* =============================================================================
DESKTOP HEADER NAVIGATION SYSTEM
============================================================================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 80px;
}

@media (max-width: 768px) {
  .main-header {
    height: 70px;
  }
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-dark);
}

.header-brand:hover {
  text-decoration: none;
  color: var(--primary-color);
}

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

.brand-text {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 1.2rem;
  }
}


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

.header-search {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  min-width: 250px;
}

@media (max-width: 768px) {
  .header-search {
    display: none; /* Hide on mobile, can be toggled */
  }
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
}

.header-search button {
  border: none;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
}

.header-user-menu {
  position: relative;
}

.user-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.user-menu-toggle:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.header-cart {
  position: relative;
}

.cart-icon {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  position: relative;
}

.cart-icon:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  min-width: 1.5rem;
  text-align: center;
  transform: translate(25%, -25%);
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Dropdown styles removed - using individual navigation links now */

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1025;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #eee;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'November Condensed', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.mobile-nav-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
}

/* =============================================================================
HOMEPAGE SECTIONS - HERO AND SERVICES
============================================================================= */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0 3rem;
    min-height: 70vh;
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    text-align: center;
  }
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .hero-image {
    order: -1;
  }
  
  .hero-graphic {
    max-width: 300px;
  }
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

@media (max-width: 768px) {
  .services-section {
    padding: 4rem 0;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--bg-white);
  border: 2px solid #e9ecef;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(204, 6, 51, 0.15);
}

.service-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.service-icon svg {
  color: var(--primary-color);
}

.service-card h3 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Service Card Rounded Buttons */
.service-card .btn-rounded {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  margin-top: 1rem;
}

.service-card .btn-rounded:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 6, 51, 0.3);
}

/* Company Credentials Section */
.credentials-section {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

@media (max-width: 768px) {
  .credentials-section {
    padding: 3rem 0;
  }
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

.credential-item {
  text-align: center;
  padding: 1.5rem;
}

.credential-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.credential-icon svg {
  color: var(--primary-color);
}

.credential-item h4 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.credential-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 0;
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.testimonial-card {
  background: var(--bg-white);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(204, 6, 51, 0.1);
}

.testimonial-stars {
  color: #ffd700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 1.5rem 0;
  padding: 0;
  border: none;
}

.testimonial-author {
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.testimonial-author strong {
  display: block;
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* =============================================================================
PRODUCT CATEGORY & CATALOG PAGES
============================================================================= */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background-color: var(--bg-light);
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  position: static;
  top: auto;
  bottom: auto;
  order: -1; /* Ensure it appears first in flexbox layouts */
  z-index: 1;
}

.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-light);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Category Hero Section */
.category-hero {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  padding: 4rem 0;
  border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 768px) {
  .category-hero {
    padding: 3rem 0;
  }
}

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

.category-hero h1 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .category-hero h1 {
    font-size: 2.5rem;
  }
}

.category-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .category-stats {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .category-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Filters */
.product-filters {
  background-color: var(--bg-white);
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 80px;
  z-index: 100;
}

@media (max-width: 768px) {
  .product-filters {
    position: static;
    padding: 1.5rem 0;
  }
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .filter-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

.filter-header h3 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  margin: 0;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  background: none;
  border: 2px solid #e9ecef;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.view-btn.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
}

.filter-controls {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.reset-filters {
  align-self: end;
}

@media (max-width: 768px) {
  .reset-filters {
    align-self: stretch;
  }
}

/* Product Catalog */
.product-catalog {
  padding: 3rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* List view */
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.list-view .product-card-enhanced {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: none;
}

@media (max-width: 768px) {
  .products-grid.list-view .product-card-enhanced {
    flex-direction: column;
    gap: 1rem;
  }
}

.products-grid.list-view .product-image {
  flex-shrink: 0;
  width: 120px;
}

.products-grid.list-view .product-info {
  flex: 1;
}

.products-grid.list-view .product-actions {
  flex-shrink: 0;
  width: auto;
}

/* Enhanced Product Cards */
.product-card-enhanced {
  background: var(--bg-white);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-enhanced:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(204, 6, 51, 0.15);
}

.product-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-image svg {
  color: var(--primary-color);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.product-info {
  flex: 1;
  margin-bottom: 2rem;
}

.product-info h4 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spec-item {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  color: var(--text-dark);
}

.spec-item strong {
  color: var(--primary-color);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
}

.price-from {
  font-size: 0.85rem;
  color: var(--text-light);
}

.price-amount {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-unit {
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

@media (max-width: 480px) {
  .product-actions {
    flex-direction: column;
  }
}

.product-actions .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-results h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Category Features */
.category-features {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .category-features {
    padding: 3rem 0;
  }
}

.category-features h3 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  color: var(--primary-color);
}

.feature-item h4 {
  font-family: 'November Condensed', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.6;
}


/* Legacy nav styles (deprecated) */
nav {
  background-color: var(--bg-white);
  border-top: 1px solid #e0e0e0;
  padding: 0.5rem 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

@media (max-width: 480px) {
  .nav-item {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .nav-icon {
    width: 24px;
    height: 24px;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  text-align: center;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-unit);
}

.calculator-container {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  position: relative;
}

/* Auth header */
.auth-header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.auth-header .dropdown-menu {
  min-width: 200px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.button:hover {
  background-color: #007ab8;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button-secondary {
  background-color: var(--secondary-color);
}

.button-secondary:hover {
  background-color: #009087;
}

.results-container {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin: 1rem 0;
}

.price-breakdown {
  margin-top: 1rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.breakdown-item:last-child {
  border-bottom: none;
  font-weight: 600;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .calculator-container {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  main {
    padding: 2rem;
  }
  
  .product-card {
    padding: 2.5rem;
  }
}

.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
}

.install-prompt.show {
  display: flex;
}

footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* Page Description */
.page-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 1rem 0 2rem 0;
  text-align: left;
}

/* Selection Sections */
.selection-section {
  margin-bottom: 2rem;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.selection-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.help-link {
  color: var(--text-light);
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
}

.help-link:hover {
  color: var(--primary-color);
}

/* Selection Grids */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.size-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fold-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stock-grid {
  grid-template-columns: repeat(2, 1fr);
}

.paper-grid {
  grid-template-columns: repeat(2, 1fr);
}

.turnaround-grid {
  grid-template-columns: repeat(2, 1fr);
}

.button-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Selection Cards */
.selection-card {
  background-color: var(--bg-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.selection-card:hover {
  border-color: #c0c0c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selection-card.selected {
  border-color: #A6192E;
  background-color: #c7c8ca;
}

.selection-card.selected span {
  color: white;
}

.selection-card.selected small {
  color: white;
}

.selection-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #e0e0e0;
  background-color: #f5f5f5;
}

.selection-card.disabled:hover {
  border-color: #e0e0e0;
  transform: none;
  box-shadow: none;
}

.selection-card.disabled span {
  color: #999;
}

.selection-card span {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.selection-card small {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Popular Badge */
.popular-badge {
  background-color: #CC0633;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
  display: inline-block;
}

/* Rush Note */
.rush-note {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

/* Bootstrap Button Overrides for Grid Layout */
.button-grid .btn {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.button-grid .btn-lg {
  padding: 1.25rem 1rem;
}

@media (max-width: 480px) {
  .button-grid .btn {
    min-height: 60px;
    font-size: 0.85rem;
  }
  
  .button-grid .btn-lg {
    padding: 0.875rem 0.5rem;
  }
}

/* Button Cards (deprecated - replaced with Bootstrap buttons) */
.button-card {
  background-color: var(--bg-white);
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.button-card:hover {
  border-color: #c0c0c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button-card.button-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.button-card.button-primary:hover {
  background-color: #007ab8;
  border-color: #007ab8;
}

.button-card.button-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.button-card.button-secondary:hover {
  background-color: #009087;
  border-color: #009087;
}

.button-card.button-tertiary {
  background-color: #f8f9fa;
  color: var(--text-dark);
  border-color: #dee2e6;
}

.button-card.button-tertiary:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* Responsive Design for Cards */
@media (max-width: 768px) {
  .selection-grid {
    gap: 0.75rem;
  }
  
  .size-grid,
  .fold-grid,
  .stock-grid,
  .paper-grid,
  .turnaround-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .button-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .selection-card {
    padding: 1rem 0.75rem;
    min-height: 70px;
  }
  
  .button-card {
    padding: 1rem 0.75rem;
    min-height: 70px;
    font-size: 0.9rem;
  }
  
  .selection-card span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-description {
    font-size: 1rem;
  }
  
  .selection-header h3 {
    font-size: 1.1rem;
  }
  
  .selection-card {
    padding: 0.875rem 0.5rem;
    min-height: 60px;
  }
  
  .button-card {
    padding: 0.875rem 0.5rem;
    min-height: 60px;
    font-size: 0.85rem;
  }
  
  .selection-card span {
    font-size: 0.85rem;
  }
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 20px;
}

.nav-item {
  position: relative;
}

/* Cart Page Styles - Two Column Layout */
.cart-items-section {
  padding-right: 1rem;
  padding-top: 2rem;
}

.order-summary-section {
  padding-left: 1rem;
  padding-top: 6.5rem;
}

.order-summary-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 2rem;
}

.order-summary-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.summary-items {
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-product {
  font-weight: 500;
  color: var(--text-dark);
}

.summary-price {
  font-weight: 600;
  color: var(--primary-color);
}

.summary-total {
  margin: 1rem 0;
}

.summary-actions .btn {
  font-weight: 500;
}

/* Cart Item Cards - Product Configuration Style */
.cart-item-config-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.config-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.config-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-item-btn,
.remove-item-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-item-btn:hover {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

.remove-item-btn:hover {
  color: #dc3545;
  background-color: #f8f9fa;
}

/* Red Pricing Box */
.pricing-display {
  background: linear-gradient(135deg, #CC0633 0%, #A6192E 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-left,
.pricing-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pricing-label {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.unit-price,
.total-price {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Gray Configuration Section */
.config-section {
  /* Background removed for cleaner appearance on product pages */
}

.config-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.config-toggle:hover {
  background: rgba(0,0,0,0.02);
}

.config-toggle-icon {
  transition: transform 0.2s ease;
}

.config-toggle[aria-expanded="false"] .config-toggle-icon {
  transform: rotate(-90deg);
}

.config-details {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.config-row:last-child {
  border-bottom: none;
}

.config-label {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.9rem;
}

.config-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  font-size: 0.9rem;
}

/* Legacy Cart Item Cards - Keep for compatibility */
.cart-item-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.detail-label {
  font-weight: 500;
  color: var(--text-light);
  min-width: 100px;
}

.detail-value {
  font-weight: 500;
  color: var(--text-dark);
  text-align: right;
}

/* Legacy Cart Styles - Keep for compatibility */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-summary h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.cart-summary .cart-info {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.cart-actions {
  display: flex;
  gap: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background-color: var(--bg-white);
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.cart-item-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.cart-item-summary {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.remove-item-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
  background-color: #c82333;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-cart h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.empty-cart p {
  margin-bottom: 2rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: 1rem;
}

.add-to-cart-btn:hover {
  background-color: #009688;
}

.add-to-cart-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Success Message */
.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  display: none;
}

.success-message.show {
  display: block;
}

/* Responsive Cart */
@media (max-width: 768px) {
  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cart-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cart-item-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cart-item-details {
    grid-template-columns: 1fr;
  }
}

/* Size Breakdown Styles */
.size-tier {
  margin-bottom: 1.5rem;
}

.size-tier h4 {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.size-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.size-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.size-input label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.size-quantity {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  text-align: center;
  background-color: var(--card-bg);
}

.size-quantity:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 150, 214, 0.1);
}

.total-quantity {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 1rem;
}

.total-quantity span {
  color: var(--primary-color);
  font-size: 1.125rem;
}

/* Single option grid for DTF decoration */
.selection-grid.single-option {
  display: flex;
  justify-content: center;
}

.selection-grid.single-option .selection-card {
  max-width: 300px;
  width: 100%;
}

/* Quote Expiration and Recalculation Styles */
.quote-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quote-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .quote-actions {
    flex-direction: column;
  }
  
  .quote-actions .btn {
    width: 100%;
  }
}

/* Enhanced Quote Actions Layout */
.quote-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.25rem;
}

@media (max-width: 576px) {
  .quote-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quote-actions .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Success Alert Enhancements */
.alert.position-fixed {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Cart Merge Modal Enhancements */
#cartMergeModal .modal-body p {
  margin-bottom: 0.75rem;
}

#cartMergeModal .modal-footer .btn {
  min-width: 110px;
}

/* Quote Source Badge in Cart */
.quote-source-badge {
  margin-top: 0.5rem;
}

.quote-source-badge .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Recalculation Modal Enhancements */
#recalculationModal .table-warning {
  background-color: rgba(255, 193, 7, 0.1);
}

#recalculationModal .alert {
  border-radius: var(--radius-md);
}

#recalculationModal .text-danger {
  font-weight: 600;
}

#recalculationModal .text-success {
  font-weight: 600;
}

/* Expiration Badge Animations */
.badge.bg-danger {
  animation: pulse-red 2s infinite;
}

.badge.bg-warning {
  animation: pulse-yellow 3s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes pulse-yellow {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Login Page Styles */
.login-body {
  background: linear-gradient(135deg, #CC0633 0%, #A6192E 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

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

.login-header {
  background: linear-gradient(135deg, #CC0633 0%, #A6192E 100%);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
}

.login-header h1 {
  font-family: 'November Condensed', 'Arial Narrow', 'Arial', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-header p {
  font-family: 'Lava', sans-serif;
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.login-form-container {
  padding: 2rem 1.5rem;
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .form-label {
  font-family: 'November Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-form .form-control {
  font-family: 'Lava', sans-serif;
  border: 2px solid #e9ecef;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(204, 6, 51, 0.15);
}

.login-form .form-check {
  margin-bottom: 1.5rem;
}

.login-form .form-check-label {
  font-family: 'Lava', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
}

.login-form .btn-primary {
  background: linear-gradient(135deg, #CC0633 0%, #A6192E 100%);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.5rem;
  font-family: 'November Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204, 6, 51, 0.3);
}

.login-form .btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.login-footer p {
  font-family: 'Lava', sans-serif;
  font-size: 0.85rem;
  margin: 0;
}

/* User Info Dropdown */
.user-info .dropdown-toggle {
  font-family: 'November Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-info .dropdown-menu {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

.user-info .dropdown-item-text {
  font-family: 'Lava', sans-serif;
  color: var(--text-light);
}

.user-info .dropdown-item {
  font-family: 'Lava', sans-serif;
  padding: 0.5rem 1rem;
}

.user-info .dropdown-item:hover {
  background-color: rgba(0, 150, 214, 0.1);
  color: var(--primary-color);
}

/* Mobile Responsiveness for Login */
@media (max-width: 480px) {
  .login-container {
    max-width: 100%;
    margin: 0;
  }
  
  .login-card {
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .login-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
  }
  
  .login-form-container {
    padding: 1.5rem 1rem;
  }
}

/* =============================================================================
   PRODUCT CONFIGURATOR STYLES
   ============================================================================= */

/* Configurator Layout */
.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

@media (max-width: 992px) {
  .configurator-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem auto;
  }
}

/* Product Preview Section */
.product-preview-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.preview-container {
  text-align: center;
}

.product-visual {
  margin-bottom: 1.5rem;
}

.product-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Live Pricing Display */
.live-pricing {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.current-price {
  text-align: left;
}

.price-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.price-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.unit-price {
  text-align: right;
}

.unit-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.unit-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.price-status {
  text-align: center;
}

.status-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.status-text.loading {
  opacity: 0.7;
}

.status-text.success {
  opacity: 1;
}

.status-text.error {
  color: #ffcccb;
}

/* Price Breakdown Toggle in Red Cell */
.price-breakdown-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
}

.price-breakdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.price-breakdown-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.price-breakdown-toggle svg {
  transition: transform 0.2s ease;
}

.price-breakdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Red Cell Breakdown Styles */
.red-cell-breakdown {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.9rem;
}

.red-cell-breakdown .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.red-cell-breakdown .breakdown-row:last-child {
  border-bottom: none;
}

.red-cell-breakdown .breakdown-row.subtotal {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Add to Cart Button - Red Cell Styling */
.btn-add-to-cart {
  background: linear-gradient(135deg, #CC0633, #A6192E) !important;
  border: none !important;
  color: white !important;
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-top: 1rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(204, 6, 51, 0.3) !important;
}

.btn-add-to-cart:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(204, 6, 51, 0.4) !important;
  background: linear-gradient(135deg, #A6192E, #8B1426) !important;
}

.btn-add-to-cart:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(204, 6, 51, 0.3) !important;
  background: linear-gradient(135deg, #8B1426, #7A1122) !important;
}

.btn-add-to-cart:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: 0 1px 4px rgba(204, 6, 51, 0.2) !important;
}

.btn-add-to-cart.success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.quick-actions .btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quick-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quick-actions .btn.success {
  background-color: #28a745;
  border-color: #28a745;
}

/* Configuration Panel */
.configuration-panel {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.panel-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.panel-description {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* Configuration Sections */
.config-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.config-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.help-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-toggle:hover {
  color: var(--primary-color);
  background-color: rgba(204, 6, 51, 0.1);
}

/* Option Grid */
.option-grid {
  display: grid;
  gap: 1rem;
}

.option-grid.paper-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.option-grid:not(.paper-grid) {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

/* Option Cards */
.option-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.option-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 6, 51, 0.15);
  text-decoration: none;
  color: inherit;
}

.option-card.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(204, 6, 51, 0.05), rgba(166, 25, 46, 0.05));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(204, 6, 51, 0.2);
}

.option-content {
  text-align: center;
}

.option-visual {
  margin-bottom: 0.75rem;
}

.option-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.option-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.option-price {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.option-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-badge.recommended {
  background-color: var(--primary-color);
  color: white;
}

.option-badge.premium {
  background-color: var(--secondary-color);
  color: white;
}

/* Quantity Controls */
.quantity-input-group {
  max-width: 400px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.quantity-btn {
  background: #f8f9fa;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-input {
  border: none;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  background: white;
}

.quantity-input:focus {
  outline: none;
  background-color: #f8f9fa;
}

.quantity-suggestions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.qty-suggestion {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.qty-suggestion:hover,
.qty-suggestion.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.quantity-limits {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Configuration Summary */
.config-summary {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-summary h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.summary-grid {
  display: grid;
  gap: 0.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  color: var(--text-light);
  font-weight: 500;
}

.summary-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Price Breakdown Section */
.price-breakdown-section {
  margin-top: 2rem;
  background: #f8f9fa;
  padding: 1.5rem 0;
}

.breakdown-toggle {
  text-align: center;
  margin-bottom: 1rem;
}

.breakdown-toggle .btn {
  border-color: #ccc;
  color: var(--text-light);
}

.breakdown-toggle .btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.breakdown-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.breakdown-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.breakdown-grid {
  display: grid;
  gap: 0.75rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.breakdown-item.subtotal,
.breakdown-item.total {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.breakdown-item.total {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.breakdown-label {
  color: var(--text-light);
}

.breakdown-value {
  color: var(--text-dark);
  font-weight: 500;
}

.rush-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--radius-sm);
  color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-preview-section {
    position: static;
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  .configuration-panel {
    padding: 1rem;
  }
  
  .panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .panel-header h1 {
    font-size: 1.25rem;
  }
  
  .panel-description {
    font-size: 0.9rem;
  }
  
  .config-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
  
  .section-header h3 {
    font-size: 1rem;
  }
  
  .option-card {
    padding: 0.75rem;
  }
  
  .price-summary {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .price-value {
    font-size: 1.5rem;
  }
  
  .unit-price {
    text-align: center;
  }
  
  .quantity-suggestions {
    justify-content: center;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .config-summary {
    padding: 1rem;
    margin-top: 1rem;
  }
}

/* =============================================================================
   FORCE REMOVE BOTTOM NAVIGATION - DEFENSIVE CSS OVERRIDE
   ============================================================================= */
/* Force remove bottom navigation */
.navbar-bottom, 
[class*="bottom-nav"],
nav.fixed-bottom {
    display: none !important;
}

body {
    padding-bottom: 0 !important;
}

/* Remove any potential bottom spacing that might have been added for bottom nav */
main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* Ensure breadcrumb appears at the very top of main content */
main .breadcrumb-nav {
    order: -1;
    flex-shrink: 0;
}

/* Custom Size Inputs for Posters */
.custom-size-inputs {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    border: 1px solid #dee2e6;
}

.custom-size-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-dimension {
    flex: 1;
}

.custom-dimension label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.custom-dimension .input-group {
    margin-bottom: 0.25rem;
}

.custom-dimension .text-muted {
    font-size: 0.875rem;
}

.custom-size-preview {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: var(--radius-sm);
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.size-calculation,
.sqft-calculation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.calc-value {
    font-weight: 700;
    color: #CC0633;
    font-size: 1rem;
}

.validation-message {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.validation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

@media (max-width: 768px) {
    .custom-size-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .custom-size-preview {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Cart Page Responsive Design */
@media (max-width: 992px) {
    .cart-items-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 1.5rem;
    }
    
    .order-summary-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }
    
    .order-summary-card {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .cart-item-config-card {
        margin-bottom: 1rem;
    }
    
    .config-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .config-title {
        font-size: 1.25rem;
    }
    
    .pricing-display {
        padding: 0.875rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pricing-left,
    .pricing-right {
        width: 100%;
        align-items: center;
    }
    
    .config-toggle {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }
    
    .config-details {
        padding: 0 1rem 1rem 1rem;
    }
    
    .config-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.375rem 0;
    }
    
    .config-label,
    .config-value {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .order-summary-card {
        padding: 1rem;
    }
    
    /* Legacy styles */
    .cart-item-card {
        padding: 1rem;
    }
    
    .item-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .detail-value {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .cart-item-header h4 {
        font-size: 1rem;
    }
}

/* ===========================
   UNIVERSAL CONFIGURATOR STYLES
   =========================== */

/* Dimension inputs layout */
.dimensions-input-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.dimension-input {
    flex: 1;
}

.dimension-multiply {
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.375rem;
    color: #6c757d;
    user-select: none;
}

.dimension-info {
    margin-top: 0.75rem;
    text-align: center;
}

/* Paper dropdowns */
.paper-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paper-dropdowns .form-group {
    margin-bottom: 0;
}

/* Imposition display */
.imposition-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-lg, 12px);
    padding: 1rem;
    margin: 1rem 0;
}

.imposition-display {
    text-align: center;
}

.efficiency-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rating-icon {
    font-size: 1.3rem;
}

.rating-text {
    flex: 1;
}

.rating-percentage {
    font-weight: 700;
}

.imposition-details {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Quantity input styling */
.quantity-limits {
    margin-top: 0.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Form styling improvements for universal configurator */
.config-section .form-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid #dee2e6;
    background-color: #ffffff;
}

.config-section .form-control {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid #dee2e6;
}

.config-section .form-control:focus,
.config-section .form-select:focus {
    border-color: #CC0633;
    box-shadow: 0 0 0 0.2rem rgba(204, 6, 51, 0.25);
}

/* Product type dropdown styling */
.config-section select[id="productType"] {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 0.75rem;
}

/* Make form labels more prominent */
.config-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for universal configurator */
@media (max-width: 768px) {
    .dimensions-input-group {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dimension-multiply {
        text-align: center;
        padding-bottom: 0;
        font-size: 1.2rem;
    }
    
    .efficiency-rating {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .rating-text {
        flex: none;
    }
}

/* Alert styling for promotional product notices */
.config-section .alert {
    margin-top: 1rem;
    border-radius: var(--radius-md, 8px);
}

.config-section .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.config-section .alert-link {
    color: #0c5460;
    font-weight: 600;
    text-decoration: underline;
}

.config-section .alert-link:hover {
    color: #062c33;
}

