/* =============================
   Reset and Base Styles
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #2d8659;
  --secondary-color: #f4a259;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 20px rgba(0,0,0,0.2);
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #f0f0f0;
}

img[src=""],
img:not([src]) {
  opacity: 0.5;
  background: url('/images/placeholder.png') center/contain no-repeat;
}

/* =============================
   Header & Navigation
============================= */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: auto;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

/* Navigation takes left column, cart takes right column */
.main-nav {
  justify-self: start;
}

.cart-actions {
  justify-self: end;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: color 0.3s, background-color 0.3s;
  white-space: nowrap;
  font-stretch: condensed;
  letter-spacing: -0.3px;
  font-family: 'Segoe UI', 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
  transform: scaleX(0.9);
  transform-origin: center;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.cta-button {
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
}

.main-nav a.cta-button:hover {
  background-color: #e89449;
  color: var(--white);
}

.main-nav ul li a.active {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 3px solid var(--white);
}

/* =============================
   Main Content
============================= */
main {
  margin-top: 70px;
}

/* =============================
   Hero Section
============================= */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #1e5a3f);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* =============================
   About Section
============================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.about-image {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white);
}

/* =============================
   Products Section
============================= */
.products-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.products-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.tab-button:hover {
  border-color: var(--primary-color);
}

.tab-button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-image .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 0.75rem;
  font-weight: bold;
  color: #DC143C;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 0 15px rgba(220,20,60,0.5);
  border: 2px solid rgba(220,20,60,0.3);
  background: rgba(220,20,60,0.1);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  font-stretch: condensed;
  letter-spacing: -0.5px;
  text-align: center;
}

.product-card h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.price {
  padding: 0 1rem 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.available-icon,
.not-available-icon {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.available-icon {
  background: #4CAF50;
  color: #fff;
}

.not-available-icon {
  background: #e53935;
  color: #fff;
}

/* =============================
   Contact Section
============================= */
.contact-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3,
.payment-info h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-info p,
.payment-info p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gcash-qr {
  margin-top: 1.5rem;
  text-align: center;
  background: transparent;
  padding: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: inline-block;
  overflow: hidden;
}

.gcash-qr img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* =============================
   Floating Contacts (SINGLE DEFINITION)
============================= */
.floating-contacts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 99;
}

.floating-contacts .contact-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

.contact-float:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-float {
  background: #25D366;
}

.messenger-float {
  background: #0084FF;
}

/* =============================
   Footer
============================= */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-content p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

/* =============================
   TABLET RESPONSIVE (max-width: 768px)
============================= */
@media (max-width: 768px) {
  .logo h1 {
    font-size: 1.4rem;
  }

  .main-nav ul {
    gap: 0.5rem;
  }

  .main-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  main {
    margin-top: 65px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .about-image {
    height: 250px;
  }

  .about-text p {
    font-size: 1rem;
  }

  .products-section {
    padding: 2rem 0;
  }

  .products-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .product-card h4 {
    font-size: 1rem;
    padding: 0.8rem 0.5rem 0.3rem;
  }

  .price {
    font-size: 1.2rem;
    padding: 0 0.5rem 0.8rem;
  }

  .contact-section {
    padding: 2rem 0;
  }

  .contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info h3,
  .payment-info h3 {
    font-size: 1.2rem;
  }

  .gcash-qr img {
    max-width: 250px;
  }

  .floating-contacts {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .floating-contacts .contact-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .tabs {
    gap: 0.3rem;
  }

  .tab-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* =============================
   MOBILE RESPONSIVE (max-width: 480px)
============================= */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  .logo h1 {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .main-nav ul {
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
  }

  .main-nav ul li a.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-weight: bold !important;
    text-decoration: none !important;
  }

  main {
    margin-top: 75px;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .about-text p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .products-section h2,
  .contact-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
  }

  .product-card {
    border-radius: 8px;
  }

  .product-card h4 {
    font-size: 0.95rem;
    padding: 0.6rem 0.4rem 0.2rem;
  }

  .price {
    font-size: 1.1rem;
    padding: 0 0.4rem 0.6rem;
  }

  .contact-info p,
  .payment-info p {
    font-size: 0.95rem;
  }

  .contact-info h3,
  .payment-info h3 {
    font-size: 1.1rem;
  }

  .floating-contacts {
    bottom: 12px;
    right: 12px;
    gap: 6px;
  }

  .floating-contacts .contact-float {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .tabs {
    margin-bottom: 0.6rem;
  }

  .tab-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem !important;
  }

  .site-footer {
    padding: 1.5rem 0;
  }

  .footer-content p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
  }
}

/* =============================
   EXTRA SMALL (max-width: 360px)
============================= */
@media (max-width: 360px) {
  .logo h1 {
    font-size: 1rem;
  }

  .main-nav a {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 0.5rem;
  }

  .floating-contacts .contact-float {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .tab-button {
    font-size: 0.85rem;
  }
}

/* =============================
   Cart Actions (from header.html)
============================= */
.cart-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.2s, color 0.2s;
  position: relative;
}

.cart-icon-btn:hover {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e53935;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* =============================
   Product Tabs and Enhanced Styling (from index.html)
============================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  gap: 0.5rem;
  justify-content: center;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 6px;
}

.tab-button.active {
  background: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.tab-content { 
  display: none; 
}

.tab-content.active { 
  display: block; 
}

/* External Link Message Styling */
.external-link-message {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), #1e5a3f);
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.external-link-message p {
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

.external-link-message strong {
  color: var(--secondary-color);
  font-weight: bold;
}

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

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  background: #fff;
  position: relative;
}

.product-card .product-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Enhanced availability and watermark styling */
.available-icon {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: #4CAF50;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.not-available-icon {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: #e53935;
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 6px;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.product-card .product-image .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 0.7rem;
  font-weight: bold;
  color: #DC143C;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 0 15px rgba(220,20,60,0.5);
  border: 2px solid rgba(220,20,60,0.3);
  background: rgba(220,20,60,0.1);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  font-stretch: condensed;
  letter-spacing: -0.5px;
  text-align: center;
}

.product-card h4 {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.price {
  font-weight: bold;
  color: #2c7a2c;
}

.gcash-qr {
  display: inline-block;
  background: white;
  text-align: center;
}

/* Cart Button Styling */
.add-to-cart-btn {
  flex: 1;
  padding: 0.5rem;
  background-color: #2d8659;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

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

/* =============================
   Quantity Counter Styling
============================= */
.quantity-container {
  margin: 0.75rem 0;
  text-align: center;
}

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

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  max-width: 120px;
  margin: 0 auto;
  background: white;
}

.qty-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #1e5a3f;
}

.qty-btn:active {
  background: #164332;
}

.qty-input {
  width: 56px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: white;
  outline: none;
  -moz-appearance: textfield; /* Firefox */
}

/* Hide spinner arrows in Chrome, Safari, Edge */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  background: #f8f9fa;
}

/* =============================
   Map Container Styling
============================= */
.map-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.map-wrapper {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.map-wrapper iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  filter: contrast(1.1) saturate(1.1);
}

/* Mobile Map Styling */
@media (max-width: 768px) {
  .map-wrapper {
    padding: 0.75rem;
    max-width: 100%;
  }
  
  .map-wrapper iframe {
    height: 200px;
  }
}

/* =============================
   WhatsApp Contact Link Styling
============================= */
.whatsapp-contact-link {
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
}

.whatsapp-contact-link:hover {
  color: #128c7e;
  background-color: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.whatsapp-contact-link:active {
  transform: translateY(0);
  background-color: rgba(37, 211, 102, 0.2);
}

.whatsapp-contact-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.whatsapp-contact-link:hover i {
  transform: scale(1.1);
}

/* Mobile WhatsApp Link */
@media (max-width: 768px) {
  .whatsapp-contact-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }
  
  .whatsapp-contact-link i {
    font-size: 1.1rem;
  }
}

/* =============================
   Header Cart Button Styling
============================= */
.cart-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-icon-btn {
  position: relative;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cart-icon-btn:hover {
  background: #f8f9fa;
  border-color: #1e5a3f;
  color: #1e5a3f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 134, 89, 0.3);
}

.cart-icon-btn:active {
  transform: translateY(0);
  background: #e9ecef;
  border-color: #164332;
  color: #164332;
}

.cart-icon-btn i {
  font-size: 1.2rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  min-width: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cart-badge:empty,
.cart-badge[style*="display: none"] {
  display: none !important;
}

/* =============================
   Cart Modal Styling
============================= */
.cart-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cart-modal-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.cart-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cart-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.cart-modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.cart-empty i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.cart-empty p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

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

.cart-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  background: #fafafa;
}

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

.cart-item-price {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.cart-qty-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s;
}

.cart-qty-btn:hover {
  background: #1e5a3f;
}

.cart-qty-display {
  padding: 0 1rem;
  font-weight: bold;
  color: var(--text-dark);
  min-width: 40px;
  text-align: center;
  background: white;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

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

.cart-modal-footer {
  background: #f8f9fa;
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.cart-total {
  text-align: center;
  margin-bottom: 1rem;
}

.cart-total h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.cart-actions-modal {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cart-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

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

.cart-btn-primary:hover {
  background: #1e5a3f;
}

.cart-btn-secondary {
  background: #6c757d;
  color: white;
}

.cart-btn-secondary:hover {
  background: #545b62;
}

/* =============================
   Mobile Responsive Updates for Cart Actions & Quantity
============================= */
@media (max-width: 480px) {
  .cart-actions {
    gap: 0.3rem;
  }
  
  .cart-icon-btn {
    font-size: 1rem;
  }
  
  .cart-badge {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
  
  .quantity-label {
    font-size: 0.8rem;
  }
  
  .quantity-controls {
    max-width: 100px;
  }
  
  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .qty-input {
    width: 44px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  /* Cart Modal Mobile Responsive */
  .cart-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 95vh;
  }
  
  .cart-modal-header h2 {
    font-size: 1.2rem;
  }
  
  .cart-modal-body {
    padding: 1rem;
  }
  
  .cart-modal-footer {
    padding: 1rem;
  }
  
  .cart-item-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .cart-quantity-controls {
    align-self: center;
  }
  
  .cart-actions-modal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cart-btn {
    min-width: auto;
    width: 100%;
  }
  
  /* Mobile Cart Button Improvements */
  .cart-icon-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0.4rem;
  }
  
  .cart-icon-btn i {
    font-size: 1rem;
  }
  
  .cart-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    top: -6px;
    right: -6px;
  }
  
  /* Mobile Header Optimizations */
  .header-content {
    gap: 0.3rem;
    padding: 0.6rem 0;
  }
  
  .logo-styled {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    width: 110px;
    min-height: 30px;
    letter-spacing: 0.1px;
  }
  
  .main-nav ul {
    gap: 0.2rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  .main-nav a {
    padding: 0.25rem 0.3rem;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
    font-stretch: condensed;
    letter-spacing: -0.2px;
    font-family: 'Segoe UI', 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
    transform: scaleX(0.85);
    transform-origin: center;
  }
  
  .main-nav a.cta-button {
    padding: 0.25rem 0.25rem;
    font-size: 0.65rem;
  }
  
  /* Make navigation even more compact */
  .main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

/* =============================
   Contact Links Styling (WhatsApp, Messenger, Facebook)
============================= */
.whatsapp-contact-link,
.messenger-contact-link,
.facebook-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-bottom: 0.5rem;
  width: 100%;
  max-width: 220px;
}

.whatsapp-contact-link {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

/* Messenger Contact Link */
.messenger-contact-link {
  color: #0084FF;
  background: rgba(0, 132, 255, 0.1);
}

/* Facebook Contact Link */
.facebook-contact-link {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.1);
}

/* Hover States */
.whatsapp-contact-link:hover {
  color: #20b358;
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
}

.messenger-contact-link:hover {
  color: #0066CC;
  background: rgba(0, 132, 255, 0.2);
  border-color: rgba(0, 132, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
  text-decoration: none;
}

.facebook-contact-link:hover {
  color: #1565C0;
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(24, 119, 242, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  text-decoration: none;
}

/* Active States */
.whatsapp-contact-link:active,
.messenger-contact-link:active,
.facebook-contact-link:active {
  transform: translateY(0);
}

.whatsapp-contact-link:active {
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.messenger-contact-link:active {
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.2);
}

.facebook-contact-link:active {
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

/* Icon Styling */
.whatsapp-contact-link i,
.messenger-contact-link i,
.facebook-contact-link i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.whatsapp-contact-link i {
  color: #25d366;
}

.messenger-contact-link i {
  color: #0084FF;
}

.facebook-contact-link i {
  color: #1877F2;
}

/* Icon Hover Effects */
.whatsapp-contact-link:hover i {
  color: #20b358;
  transform: scale(1.1);
}

.messenger-contact-link:hover i {
  color: #0066CC;
  transform: scale(1.1);
}

.facebook-contact-link:hover i {
  color: #1565C0;
  transform: scale(1.1);
}

/* Mobile responsive styling for all contact links */
@media (max-width: 768px) {
  .whatsapp-contact-link,
  .messenger-contact-link,
  .facebook-contact-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    min-height: 44px; /* Touch-friendly minimum size */
    min-width: 160px;
    justify-content: center;
    max-width: 100%;
  }
  
  .whatsapp-contact-link i,
  .messenger-contact-link i,
  .facebook-contact-link i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .whatsapp-contact-link,
  .messenger-contact-link,
  .facebook-contact-link {
    font-size: 0.85rem;
    padding: 0.5rem;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 0.3rem auto;
    display: flex;
  }
  
  .contact-details p {
    margin-bottom: 0.3rem;
  }
}
