/* ===== Cool Color Palette ===== */
:root {
  /* Primary Colors */
  --primary-dark: #2c3e50;       /* Navy Blue (Main Brand) */
  --primary-cool: #3a506b;       /* Deep Ocean Blue */
  --secondary-cool: #5bc0be;     /* Teal Accent */
  --accent-cool: #6fffe9;        /* Light Cyan (For Highlights) */
  
  /* Backgrounds */
  --bg-ice: #f0f4f8;            /* Ice White */
  --bg-frost: #e1e7ec;          /* Frosted Glass */
  --bg-snow: #ffffff;           /* Pure White */
  
  /* Text */
  --text-glacial: #334e68;      /* Dark Blue-Gray */
  --text-artic: #486581;        /* Medium Blue-Gray */
  --text-frost: #829ab1;        /* Light Blue-Gray */

  /* Functional Colors (Keep your existing) */
  --navbar-height: 72px;
  --accent-red: #e74c3c;        /* Coral red (for alerts/CTAs) */
}

/* ===== Base Styles ===== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-glacial);
  background-color: var(--bg-ice);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
}

/* ===== Header ===== */
.navbar.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-cool) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-logo {
  height: 45px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

.navbar-nav-spaced .nav-item {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--secondary-cool);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
}

.carousel-image-container {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.carousel-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  text-align: left;
  color: white;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1.25rem;
}

/* ===== Section Styles ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin: 0;
}

.view-all-link {
  color: var(--secondary-cool);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.view-all-link:hover {
  color: var(--primary-cool);
}

/* ===== Cards ===== */
.product-grid,
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card,
.promotion-card {
  background: var(--bg-snow);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--bg-frost);
}

.product-card:hover,
.promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(58, 80, 107, 0.1);
}

.card-image-container {
  aspect-ratio: 1/1;
  background: var(--bg-frost);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-glacial);
}

.card-body p {
  color: var(--text-artic);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.card-footer {
  padding: 1rem 1.25rem;
  background: transparent;
  border-top: 1px solid var(--bg-frost);
}

/* ===== Buttons ===== */
.product-cta-btn,
.promotion-cta-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

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

.product-cta-btn:hover {
  background-color: var(--primary-dark);
}

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

.promotion-cta-btn:hover {
  background-color: #c0392b;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2a3a 100%);
  color: white;
  padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-cool);
}

.footer-section i {
  margin-right: 0.5rem;
  color: var(--secondary-cool);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ===== Hero Carousel ===== */
.hero-carousel-container {
  height: calc(100vh - var(--navbar-height));
  max-height: 800px;
  position: relative;
  overflow: hidden;
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Section Backgrounds ===== */
.products-section {
  background-color: var(--bg-snow);
}

.promotions-section {
  background-color: var(--bg-snow);
  border-top: 1px solid var(--bg-frost);
  border-bottom: 1px solid var(--bg-frost);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
  .hero-carousel-container { height: 75vh; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header h2 { margin-bottom: 0.5rem; }
}

@media (max-width: 768px) {
  .hero-carousel-container { height: 60vh; }
  .product-grid,
  .promotion-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.wave-divider {
  color: var(--bg-frost); /* Matches section backgrounds */
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* ===== Product Pricing Styles ===== */
.product-pricing {
  font-family: 'Poppins', sans-serif;
  margin-top: auto; /* Pushes pricing to bottom of card body */
}

.original-price {
  text-decoration: line-through;
  color: var(--text-frost);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.current-price {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.discount-badge {
  display: inline-block;
  background-color: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Make sure card body has proper spacing */
.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .current-price {
    font-size: 1rem;
  }
  .original-price {
    font-size: 0.8rem;
  }
}