/* Header Styles - Blueprint Part 5.1.1 */
.site-header {
  height: 80px;
  background: #234640; /* Brand Green */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  color: white; /* Ensure text is white */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Hero Section - Divine Restoration */
.hero-section {
  position: relative;
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #FDFBFA 0%, #F5EFEB 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

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

.hero-tagline {
  display: block;
  font-size: var(--font-body-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: var(--font-h1);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-description {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.text-gold {
  color: var(--color-primary-gold);
}

/* Section Header Harmonization */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--font-h2);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-body);
}

.catalog-section {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-2xl) 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-h2);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Product Grid - Blueprint Part 5.1.4 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* Product Card */
.product-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
}

.product-card:hover {
  border-color: var(--color-primary-gold);
  box-shadow: var(--shadow-hover);
}

.product-image {
  height: 240px;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-body-xxs);
  font-weight: var(--font-weight-bold);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bestseller {
  background: #B71C1C; /* Darker red for contrast */
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
}

/* Variant Selector */
.variant-selector {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.variant-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border-medium);
  border-radius: var(--border-radius-md);
  background: white;
  font-size: var(--font-body-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.variant-btn.active {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  box-shadow: 0 2px 4px rgba(142, 99, 53, 0.2);
}

.variant-btn:hover:not(.active) {
  border-color: var(--color-primary-gold);
  color: var(--color-primary-gold);
}

/* Product Content */
.product-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: var(--font-h5);
  margin-bottom: var(--space-xs);
}

.product-description {
  font-size: var(--font-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  flex: 1;
}

.product-footer {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-gold);
  font-size: var(--font-h5);
}

/* Cart Icon with Count */
.cart-header-icon {
  position: relative;
  font-size: 24px;
  color: white; /* Contrast against #234640 */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cart-active::after {
  content: attr(data-cart-count);
  position: absolute;
  top: -8px;
  right: -10px;
  background: #E63946;
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Responsive */
/* Hamper Card Premium Styling - Blueprint Part 5.1.3 */
.hamper-card {
    background: linear-gradient(145deg, #FFFBF8, #F9F7F3);
    border: 1.5px solid rgba(212, 165, 116, 0.2);
}

.hamper-card .product-name {
    color: var(--color-primary-terracotta);
    font-size: var(--font-h4);
}

.hamper-card .product-image {
    height: 280px; /* More prominent image for hampers */
}

/* Footer Styles - Phase 12 */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    padding: var(--space-3xl) 0 0;
    margin-top: var(--space-3xl);
    color: var(--color-text-primary);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Added column for map */
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-logo img { height: 60px; }
.footer-brand { margin: 0; font-size: var(--font-h4); color: var(--color-primary-gold); }
.footer-motto { margin: 0; font-size: var(--font-body-xs); opacity: 0.7; }
.footer-address { font-size: var(--font-body-sm); line-height: 1.6; margin-bottom: var(--space-md); }

.footer-social { display: flex; gap: var(--space-md); }
.footer-social a { color: var(--color-primary-gold); text-decoration: none; font-size: var(--font-body-sm); font-weight: var(--font-weight-semibold); }

.footer-title { font-size: var(--font-h5); margin-bottom: var(--space-md); color: var(--color-primary-gold); }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: var(--space-xs); }
.footer-nav a { text-decoration: none; color: var(--color-text-secondary); font-size: var(--font-body-sm); transition: color 0.3s; }
.footer-nav a:hover { color: var(--color-primary-gold); }

.footer-hours p { font-size: var(--font-body-sm); margin: 0; }
.google-rating { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rating-val { font-size: var(--font-body-xs); font-weight: var(--font-weight-bold); color: var(--color-primary-gold); }

.map-container { overflow: hidden; border: 1px solid var(--color-border-light); }
.map-container iframe { display: block; filter: grayscale(0.2) contrast(1.1); transition: filter 0.3s; }
.map-container:hover iframe { filter: grayscale(0) contrast(1); }

.footer-bottom { border-top: 1px solid var(--color-border-light); padding: var(--space-md) 0; text-align: center; font-size: var(--font-body-xs); color: var(--color-text-tertiary); }

@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: var(--space-xl); }
}


/* Shopping Cart Styles - Blueprint Part 5.2 */
.cart-main { padding: var(--space-xl) var(--padding-page); }
.cart-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: var(--space-xl); 
}
.back-link { color: var(--color-primary-gold); text-decoration: none; font-size: var(--font-body-sm); }

.cart-layout { 
    display: grid; 
    grid-template-columns: 1fr 350px; 
    gap: var(--space-2xl); 
    align-items: flex-start;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: var(--space-md); border-bottom: 2px solid var(--color-border-light); color: var(--color-text-secondary); font-size: var(--font-body-xs); text-transform: uppercase; }
.cart-table td { padding: var(--space-lg) var(--space-md); border-bottom: 1px solid var(--color-border-light); vertical-align: middle; }

.cart-product-info { display: flex; align-items: center; gap: var(--space-md); }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--border-radius-md); object-fit: cover; }
.cart-item-name { margin: 0; font-size: var(--font-body-lg); }
.cart-item-variant { font-size: var(--font-body-xs); color: var(--color-primary-gold); }

.cart-qty-controls { display: flex; align-items: center; gap: var(--space-md); background: var(--color-bg-tertiary); padding: 4px; border-radius: var(--border-radius-pill); width: fit-content; }
.qty-btn { width: 30px; height: 30px; border: none; background: white; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xs); }
.qty-val { font-weight: var(--font-weight-bold); min-width: 20px; text-align: center; }

.remove-btn { background: none; border: none; font-size: 24px; color: var(--color-text-tertiary); cursor: pointer; }
.remove-btn:hover { color: var(--color-danger); }

.summary-card { background: white; padding: var(--space-xl); border-radius: var(--border-radius-lg); border: 1px solid var(--color-border-medium); position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: var(--space-md); color: var(--color-text-secondary); }
.summary-row.total { border-top: 1px solid var(--color-border-light); padding-top: var(--space-md); color: var(--color-text-primary); font-weight: var(--font-weight-bold); font-size: var(--font-h5); }
.btn-block { width: 100%; justify-content: center; }
.summary-note { font-size: var(--font-body-xxs); color: var(--color-text-tertiary); margin-top: var(--space-md); text-align: center; }

.cart-empty-state { text-align: center; padding: var(--space-3xl) 0; }
.empty-icon { font-size: 64px; margin-bottom: var(--space-md); }

@media (max-width: 992px) {
    .cart-layout { 
        display: flex;
        flex-direction: column; 
    }
    .cart-summary { 
        margin-top: var(--space-xl);
        position: static;
        width: 100%;
    }
    .cart-table th.col-price, .cart-table td.col-price { display: none; }
}

@media (max-width: 600px) {
    .cart-main { padding: var(--space-md) var(--space-sm); }
    .cart-table thead { display: none; }
    .cart-table tr { 
        display: block; 
        background: white;
        border: 1px solid var(--color-border-light);
        border-radius: var(--border-radius-lg);
        padding: var(--space-md);
        margin-bottom: var(--space-md);
        box-shadow: var(--shadow-sm);
    }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border: none; padding: 10px 0; }
    .cart-table td::before { content: attr(data-label); font-weight: bold; color: var(--color-text-secondary); font-size: 0.85rem; }
    
    .cart-table td.col-product { display: block; border-bottom: 1px solid var(--color-border-light); margin-bottom: 10px; padding-bottom: 15px; }
    .cart-table td.col-product::before { display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
    
    .cart-product-info { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
    .cart-item-img { width: 100%; height: 180px; border-radius: var(--border-radius-md); }
    .cart-item-name { font-size: var(--font-h5); max-width: 100%; white-space: normal; line-height: 1.3; color: var(--color-text-primary); }
    
    .cart-qty-controls { width: 100%; justify-content: space-between; padding: 6px 15px; }
}

/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
    animation: pulse-wa 2s infinite;
}
