/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #0a192f;
}

.highlight {
  color: #ff6b35;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  border: none;
}

.btn-primary {
  background-color: #ff6b35;
  color: #fff;
}

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ff6b35;
  color: #ff6b35;
}

.btn-outline:hover {
  background-color: #ff6b35;
  color: #fff;
}

/* --- Navbar --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease-in-out;
}

header.scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b35;
}

.nav-links {
  display: flex;
  align-items: center; /* ALIGNMENT FIX */
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  display: flex; /* ALIGNMENT FIX */
  align-items: center; /* ALIGNMENT FIX */
  line-height: 1; /* ALIGNMENT FIX */
}

.nav-links a:hover {
  color: #ff6b35;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
}

.nav-icons button {
  background: none;
  border: none;
  color: #333333;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.nav-icons button:hover {
  color: #ff6b35;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff6b35;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hamburger {
  display: none;
}

/* --- Hero Section --- */
#hero {
  height: 100vh;
  background:
    linear-gradient(to right, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.4)),
    url("https://images.unsplash.com/photo-1522069169874-c58ec4b76be5?w=1600&auto=format&fit=crop")
      center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  color: #fff;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* --- Categories --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.category-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #ffffff;
}

.category-card h3 {
  margin-bottom: 15px;
}

/* --- Top Selling Products --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: none;
  background: #f8f9fa;
  color: #333333;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff6b35;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  position: relative;
  padding-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.price {
  color: #ff6b35;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.stars {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.add-to-cart {
  width: 80%;
}

/* --- Countdown Offer --- */
#countdown-offer {
  background: linear-gradient(135deg, #0a192f, #112240);
  color: #fff;
  text-align: center;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.time-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-box span {
  font-size: 1.8rem;
  font-weight: 700;
}

/* --- Video Section --- */
#video-promo {
  background: url("https://images.unsplash.com/photo-1522069169874-c58ec4b76be5?w=1600")
    center/cover fixed;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  background: rgba(10, 25, 47, 0.7);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.video-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ff6b35;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* --- Gallery --- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 15px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

.gallery-img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-img:nth-child(4) {
  grid-column: span 2;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-content small {
  color: #ff6b35;
  display: block;
  margin-bottom: 10px;
}

.blog-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #0a192f;
  font-weight: 600;
}

/* --- Newsletter --- */
#newsletter {
  background: #f8f9fa;
  text-align: center;
}

.newsletter-container form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin-inline: auto;
  position: relative;
}

.newsletter-container input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #333333;
  outline: none;
}

.newsletter-container button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 20px;
  border-radius: 25px;
}

#form-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.success-msg {
  color: #28a745;
}
.error-msg {
  color: #dc3545;
}

/* --- Footer --- */
footer {
  background: #112240;
  color: #fff;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: #ff6b35;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.social-links a:hover {
  background: #ff6b35;
}

.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a:hover {
  color: #ff6b35;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-bottom {
  background: #0a192f;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* --- Modals & Utilities --- */
.modal,
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* UPDATED MODAL CLOSE BUTTON */
.close-modal,
.close-lightbox {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #333;
  background: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.close-modal:hover,
.close-lightbox:hover {
  background: #ff6b35;
  color: #fff;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #ff6b35;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition:
    opacity 0.5s,
    bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff6b35;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

#back-to-top:hover {
  transform: translateY(-5px);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    width: 100%;
    height: calc(100vh - 70px);
    text-align: center;
    padding-top: 50px;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .gallery-img:nth-child(1),
  .gallery-img:nth-child(4) {
    grid-column: span 1;
  }
  .timer {
    gap: 10px;
  }
  .time-box {
    width: 70px;
    height: 70px;
  }
  .time-box span {
    font-size: 1.2rem;
  }
}

/* login overlay method */
/* --- Auth Button & Overlay Drawer --- */
.btn-auth {
  background-color: #ff6b35;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-left: 0; /* ALIGNMENT FIX */
  display: inline-flex; /* ALIGNMENT FIX */
  align-items: center; /* ALIGNMENT FIX */
  line-height: 1; /* ALIGNMENT FIX */
}

.btn-auth:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 4000;
  display: none;
  justify-content: flex-end; /* Aligns drawer to the right */
}

.auth-panel {
  width: 450px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  padding: 50px 40px;
  position: relative;
  animation: slideInRight 0.3s ease-out forwards;
  overflow-y: auto;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.close-auth {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.close-auth:hover {
  color: #ff6b35;
}

.auth-panel h2 {
  color: #000;
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.auth-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.auth-subtitle a {
  color: #0056b3;
  font-weight: 600;
  text-decoration: none;
}
.auth-subtitle a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #333;
}
.form-group .req {
  color: #ff6b35;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: border 0.3s;
}
.form-group input:focus {
  border-color: #ff6b35;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-submit-auth {
  width: 100%;
  background-color: #ff6b35;
  color: #fff;
  border: none;
  padding: 15px;
  margin-top: 10px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit-auth:hover {
  background-color: #e55a2b;
}

.auth-terms {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  margin-top: 25px;
  line-height: 1.5;
}
.auth-terms a {
  color: #0056b3;
  text-decoration: none;
}
.auth-terms a:hover {
  text-decoration: underline;
}
