
/* ===== GLOBAL STYLES ===== */
:root {
  --primary: #006d77;
  --secondary: #83c5be;
  --accent: #ff9e00;
  --dark: #1d3557;
  --light: #edf6f9;
  --whatsapp: #25d366;
  --alert: #e63946;
  --success: #2a9d8f;
  --warning: #f4a261;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;

  line-height: 1.6;
  color: #333;
  background-color: var(--light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== PAGE FLIP SYSTEM ===== */
.page-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow-y: auto;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease;
  background-color: var(--light);
}

.page:not(.active) {
  transform: rotateY(180deg);
  pointer-events: none;
  opacity: 0;
}

#products:target,

#status:target,
#contact:target {
  transform: rotateY(0deg);
  pointer-events: all;
  opacity: 1;
}

#products:target ~ #home,
#status:target ~ #home,
#contact:target ~ #home {
  transform: rotateY(-180deg);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;

  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;

  letter-spacing: 0.5px;
}

nav a:hover {
  background-color: rgba(255,255,255,0.2);
}

nav a.highlight {
  background-color: var(--whatsapp);
  font-weight: 600;
  animation: pulse 2s infinite;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--light));
  min-height: 60vh;

  display: flex;
  align-items: center;
}

.hero .container {
  max-width: 800px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.cta-buttons {

  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.primary-btn {
  background-color: var(--primary);
  color: white;
}

.primary-btn:hover {
  background-color: #025b63;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.whatsapp-btn {
  background-color: var(--whatsapp);
  color: white;
  display: inline-flex;

  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.whatsapp-btn:hover {
  background-color: #1da851;
}

.big-btn {
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
}

.emergency-btn {
  background-color: var(--alert);
  color: white;
  width: 100%;
  margin-top: 1rem;
}

.emergency-btn:hover {
  background-color: #c1121f;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  background-color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0;

  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PRODUCTS SECTION ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;

}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;

  border-bottom: 2px solid var(--secondary);
}

.product-details {
  padding: 1.5rem;
}

.product-details h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0.5rem 0;
}

.old-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: #999;
  margin-left: 0.5rem;
}

.features {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.features li {
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.features li::before {
  content: "✓";
  color: var(--success);

  position: absolute;
  left: 0;
}

/* Product Tags */
.best-seller-tag,
.bulk-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.best-seller-tag {
  background-color: var(--accent);
  color: white;
}


.bulk-tag {
  background-color: var(--success);
  color: white;
}

/* Combo Deal */
.combo-deal {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem auto;
  max-width: 500px;
  border: 2px dashed var(--primary);
}

.combo-deal h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}


/* ===== LOADSHEDDING STATUS ===== */
.status-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.status-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.status-header h2 {
  color: var(--primary);
}

.update-time {
  color: #666;
  font-size: 0.9rem;
}

.loadshedding-widget {
  margin-top: 1.5rem;
}

.stage-display {
  text-align: center;
  margin-bottom: 1.5rem;
}

.stage-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;

}

.stage-0 { background-color: var(--success); color: white; }
.stage-1 { background-color: var(--warning); color: #333; }
.stage-2 { background-color: #f4a261; color: white; }
.stage-3 { background-color: var(--alert); color: white; }
.stage-4 { background-color: #720026; color: white; }

.status-message {
  font-size: 1.1rem;
  color: #333;
}

.outage-schedule {
  background-color: var(--light);
  padding: 1.5rem;

  border-radius: 8px;
  margin: 1.5rem 0;
}

.outage-schedule h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.outage-schedule ul {
  list-style: none;
}

.outage-schedule li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.ice-guarantee {
  margin-top: 1.5rem;

}

.ice-guarantee h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.ice-guarantee p {
  padding: 0.3rem 0;
}

/* ===== ORDER SECTION ===== */
.order-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.order-method {

  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.whatsapp-order {
  text-align: center;
}

.order-instructions {
  margin-top: 1.5rem;
}

.sample-message {
  background-color: var(--light);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: left;
  font-family: monospace;

}

.vendor-form {
  display: flex;
  flex-direction: column;
}

.vendor-form h2 {
  margin-bottom: 1rem;
}

.vendor-form input,
.vendor-form select {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-note {

  font-size: 0.9rem;
  margin-top: 1rem;
  color: #666;
}

/* Delivery Map */
.delivery-map {
  margin-top: 3rem;
  text-align: center;
}

.delivery-map img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ===== WHATSAPP FLOAT BUTTON ===== */

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--whatsapp);
  color: white;
  padding: 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 100;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  width: 24px;
  height: 24px;

}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary);
  color: white;
  margin-top: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
  .hero h2 {

    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .order-options {
    grid-template-columns: 1fr;
  }

  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }
}
