:root {
  /* Enhanced Modern Palette - Logo Inspired */
  --primary-navy: #000000;           /* Logo outline style, sophisticated */
  --accent-red: #E53B3B;             /* Logo red, energy & CTAs */
  --accent-red-dark: #C41E3A;        /* Red hover state */
  --accent-gold: #f4a622;            /* Product can band match, premium */
  --accent-teal: #00a8a8;            /* Secondary modern accent */
  --neutral-off-white: #f8f9fa;      /* Matches product can background */
  --neutral-charcoal: #2c2c2c;       /* Text, high contrast */
  --neutral-light-gray: #e8e8e8;     /* Borders, dividers */
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #000000 0%, #E53B3B 100%);
  --gradient-hover: linear-gradient(135deg, #E53B3B 0%, #C41E3A 100%);
  
  /* Backward compatibility */
  --brand-cream: #f8f9fa;
  --brand-slate: #000000;
  --brand-slate-dark: #000000;
  --brand-slate-muted: #5f6f6f;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--neutral-off-white), 0 0 0 0.25rem rgba(229, 59, 59, 0.4);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--neutral-off-white);
  color: var(--neutral-charcoal);
}

a {
  color: var(--primary-navy);
}

a:hover,
a:focus {
  color: var(--accent-red);
  text-decoration: underline;
}

.bg-brand {
  background-color: var(--neutral-off-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.navbar-brand span {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-navy);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--primary-navy) !important;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--accent-red) !important;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link[aria-current="page"] {
  color: var(--accent-red) !important;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 0.25rem;
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .badge.bg-warning {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.brand-logo {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.btn-primary {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 59, 59, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(229, 59, 59, 0.3);
}

.btn-outline-primary {
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
  color: var(--accent-red);
  border-color: var(--accent-red);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 59, 59, 0.2);
}

.btn-outline-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(229, 59, 59, 0.15);
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
  font-weight: 600;
}

.product-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #F8FAFB;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  object-fit: contain;
  height: 280px;
  width: 100%;
  transition: opacity 0.3s ease;
  background-color: white;
}

.product-card .card-full-summary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background-color: var(--neutral-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover .card-full-summary {
  opacity: 1;
  pointer-events: auto;
}

.product-card:has(.card-full-summary):hover .product-card-image {
  opacity: 0;
}

.product-card:has(.card-full-summary):hover .card-title {
  opacity: 0;
}

.product-card:hover .card-trimmed-summary {
  display: none;
}

.product-card img {
  object-fit: contain;
  height: 280px;
  width: 100%;
  background-color: white;
}

.product-card .card-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-navy);
}

.product-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .card-body p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #5a5a5a;
  flex: 1;
}

/* Mobile: Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .product-card .card-full-summary {
    display: none !important;
  }
  
  .product-card .card-trimmed-summary {
    display: block !important;
  }
  
  .product-card-image {
    opacity: 1 !important;
  }
  
  .product-card .card-title {
    opacity: 1 !important;
  }
}

.product-detail-img {
  max-height: 600px;
  width: 100%;
  object-fit: contain;
  background-color: white;
}

.breadcrumb-container {
  margin-top: 1rem;
}

.breadcrumb {
  background-color: transparent;
}

.summary-card {
  border-left: 4px solid var(--accent-gold);
}

.footer {
  background-color: var(--primary-navy);
  color: white;
}

.footer a {
  color: var(--accent-gold);
}

.form-control:focus, .form-check-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.2rem rgba(229, 59, 59, 0.25);
}

.form-control,
.form-select {
  background-color: var(--neutral-off-white);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--neutral-charcoal);
}

.search-input {
  min-width: 280px;
}

.form-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 0.2rem rgba(229, 59, 59, 0.25);
}

.quantity-input {
  max-width: 260px;
  width: 100%;
}

.quantity-input .text-danger {
  min-height: 1.25rem;
}

.quantity-input .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .quantity-input .btn {
    width: auto;
  }
}

.alert-info {
  background-color: rgba(0, 168, 168, 0.1);
  border-color: rgba(0, 168, 168, 0.2);
  color: var(--primary-navy);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.60) 40%, rgba(0, 0, 0, 0.5) 70%, rgba(229,59,59,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.hero-content .container {
  width: 100%;
  padding: 2rem 1rem;
}

.hero-content .row {
  width: 100%;
  min-height: 300px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-cta .btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.hero-cta .btn-primary {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: white;
}

.hero-cta .btn-primary:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 4px 12px rgba(229, 59, 59, 0.3);
  transform: translateY(-2px);
}

.hero-cta .btn-outline-light {
  color: white;
  border-color: white;
  background-color: transparent;
}

.hero-cta .btn-outline-light:hover {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Hero Section Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 350px;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-cta .btn-outline-light {
    margin-left: 0 !important;
  }
}