@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
  --clr-primary: #006600; /* Deep Green */
  --clr-primary-light: #00cc66; /* Bright Green */
  --clr-primary-dark: #004d00; /* Darker Green */

  --clr-secondary: #ffffff; /* White */
  --clr-secondary-light: #f5f5f5; /* Soft White */
  --clr-secondary-dark: #e0e0e0; /* Light Grey for subtle areas */

  --clr-bg-header: rgba(0, 51, 0, 0.9); /* Dark Green transparent */
  --clr-bg-hero: url('https://images.unsplash.com/photo-1527030280862-64139fba04ca?auto=format&fit=crop&w=1470&q=80'); /* Pakistan flag-inspired background */

  --clr-text-light: #ffffff;
  --clr-text-muted: #cfcfcf;
  --clr-shadow: rgba(0, 0, 0, 0.3);

  --font-primary: 'Poppins', sans-serif;
  --transition-speed: 0.3s;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: #121212;
  color: var(--clr-text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}
.sticky-header {
  background-color: var(--clr-bg-header);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
}

.nav-link {
  color: var(--clr-text-light);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-link:hover {
  color: var(--clr-primary-light);
}

.btn-login {
  background-color: transparent;
  color: var(--clr-text-light);
  border: 2px solid var(--clr-primary-light);
  padding: 5px 15px;
  border-radius: 5px;
  transition: all var(--transition-speed);
}

.btn-login:hover {
  background-color: var(--clr-primary-light);
  color: var(--clr-secondary);
}

.btn-signup {
  background-color: var(--clr-primary-light);
  color: var(--clr-secondary);
  padding: 5px 15px;
  border-radius: 5px;
  transition: all var(--transition-speed);
}

.btn-signup:hover {
  background-color: var(--clr-primary-dark);
}

.custom-toggler {
  border: none;
  background: none;
  outline: none;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--clr-secondary);
  border-radius: 2px;
}

/* Floating Cart */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--clr-primary);
  color: var(--clr-secondary);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 8px var(--clr-shadow);
  transition: background var(--transition-speed), transform var(--transition-speed);
}

.floating-cart:hover {
  background: var(--clr-primary-light);
  transform: scale(1.05);
}

.cart-count {
  background: var(--clr-secondary);
  color: var(--clr-primary-dark);
  border-radius: 50%;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
  font-weight: bold;
  margin-left: 5px;
}
/* Hero Section */
.hero-section {
  background: var(--clr-bg-hero) no-repeat center center / cover;
  height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 0 0 15px #000;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 1rem;
  animation: fadeInDown 1.5s ease forwards;
  opacity: 0;
}

.highlight {
  color: var(--clr-primary);
  animation: pulse 2s infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1.5s ease 1s forwards;
}

.hero-btn {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.7rem 3rem;
  box-shadow: 0 0 15px var(--clr-primary-light);
  opacity: 0;
  animation: fadeInUp 1.5s ease 1.5s forwards;
  background: var(--clr-primary);
  color: #121212;
}

.hero-btn:hover {
  box-shadow: 0 0 30px var(--clr-primary);
  transform: scale(1.1);
  background: var(--clr-primary-light);
  color: #121212;
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 12px var(--clr-primary);
  }
  50% {
    text-shadow: 0 0 25px var(--clr-primary-light);
  }
}

#products {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

#products h2 {
  text-align: center;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-light);
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.product-list .card {
  background: var(--card-bg);
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: transform 0.3s ease;
  cursor: pointer;
  color: var(--main-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-list .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--hover-shadow);
}

.product-list img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: var(--main-bg);
  padding: 1rem;
}

.card-body {
  padding: 1rem;
  text-align: center;
}

.card-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.card-text {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.add-cart-btn {
  background: var(--accent-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  color: var(--main-bg);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px var(--accent-light);
  transition: background 0.3s ease, transform 0.3s ease;
}

.add-cart-btn:hover {
  background: var(--accent-light);
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--accent-light);
}

#testimonials {
  background: var(--card-bg);
  padding: 3rem 1rem;
  max-width: 700px;
  margin: 3rem auto 4rem;
  border-radius: 12px;
  box-shadow: 0 0 30px var(--shadow-color);
  color: var(--main-text);
  overflow: hidden;
  position: relative;
}

#testimonials h2 {
  text-align: center;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-light);
}

.testimonial-carousel {
  position: relative;
  height: 160px; /* fix height */
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  opacity: 0;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-style: italic;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px var(--hover-shadow);
  transition: all 0.7s ease;
  color: var(--main-text);
  background: #121212;
  cursor: pointer;
}

.testimonial-card.active {
  left: 0;
  opacity: 1;
  position: relative;
}

.testimonial-card::before {
  content: "“";
  font-size: 3rem;
  color: var(--accent-color);
  position: absolute;
  top: 10px;
  left: 15px;
  opacity: 0.3;
}

.testimonial-card p {
  margin: 0 0 1rem 0;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.testimonial-card h5 {
  text-align: right;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Footer */
.footer {
  background: #111;
  font-size: 0.9rem;
  user-select: none;
}
.footer p {
  margin: 0.3rem 0;
}
.social-icons a {
  color: var(--clr-primary);
  margin: 0 10px;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: var(--clr-primary-light);
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--clr-primary);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-btn {
    padding: 0.6rem 2rem;
    font-size: 1rem;
  }
  #product-list .card {
    flex: 0 0 100%;
  }
}

@media (max-width: 575px) {
  .navbar-nav {
    gap: 0.5rem;
  }
  .btn-login, .btn-signup, .btn-cart {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
  }
}


.contact-section {
  padding: 50px 20px;
  /* --clr-primary: #ff6f61; */
  background:var(--clr-primary);
  color: white;
  text-align: center;
}

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

.contact-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-section .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.contact-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.btn-submit {
  background: white;
  color: var(--clr-primary);
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #ffebf0;
  transform: translateY(-2px);
}

.button-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#scrollToTopBtn, #scrollToBottomBtn {
  background: var(--clr-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.special-offers {
  background: var(--clr-primary-dark);
  color: var(--clr-secondary);
  padding: 3rem 1rem;
  text-align: center;
}

.special-offers h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--clr-secondary);
}

.special-offers .subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.countdown div {
  background: var(--clr-primary);
  padding: 1rem;
  border-radius: 8px;
  min-width: 70px;
  box-shadow: 0 4px 6px var(--clr-shadow);
}

.countdown span {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

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

.offer-card {
  background: var(--clr-secondary);
  color: var(--clr-text-light);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--clr-shadow);
  transition: transform var(--transition-speed);
}

.offer-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.offer-card h3 {
  color: var(--clr-primary-dark);
}

.offer-card p {
  color: var(--clr-primary);
  font-weight: bold;
}

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

.offer-card .btn {
  margin-top: 0.5rem;
  background: var(--clr-primary);
  color: var(--clr-secondary);
}
