/* Himalayan Essence - Fully Responsive Futuristic Style */
:root {
  --bg: #071225;
  --card: #0f1b2b;
  --muted: #9fb7c9;
  --accent1: #00d4ff;
  --accent2: #7b61ff;
  --glow: 0 6px 30px rgba(123,97,255,0.12);
  --glass: rgba(255,255,255,0.03);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #061025 0%, #081a2b 100%);
  color: #e6f2fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(8,18,29,0.55), rgba(8,18,29,0.25));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 44px;
  height: 44px;
}

.logo span {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px;
  border-radius: 8px;
  transition: all 0.25s;
  font-weight: 600;
}
.nav-menu a:hover {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,212,255,0.08);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--muted);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  display: flex;
  gap: 28px;
  align-items: stretch;
  padding: 28px 0;
  position: relative;
  min-height: 100dvh; /* modern browsers */
  min-height: calc(var(--vh, 1vh) * 50); /* fallback with JS */
}

.slider {
  flex: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms cubic-bezier(.2,.9,.2,1), transform 900ms;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.35));
}

.hero-content {
  position: absolute;
  left: 6%;
  bottom: 12%;
  color: #fff;
  z-index: 6;
  max-width: 56%;
}

.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.hero-sub { font-size: 16px; color: var(--foreground); }

/* Aside - Featured */
.aside {
  width: 320px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--glow);
  align-self: start;
  overflow: hidden;
}
.aside h3 { margin: 0 0 10px 0; }

/* Featured auto slide wrapper */
.featured-slider { position: relative; height: 260px; overflow: hidden; }
@media (max-width: 600px) { .featured-slider { height: 200px; } }

.featured-track {
  display: flex;
  flex-direction: column;
  animation: slideUp 20s linear infinite;
}

.featured-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.featured-card img { width: 64px; height: 64px; object-fit: contain; }

@keyframes slideUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Products Grid */
.section { padding: 28px 0; }
.section h2 { font-size: 22px; margin-bottom: 16px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ✅ Fixed Product Card (all sections) */
.product-card {
  background: var(--card);
  border-radius: 6px;
  padding: 10px;
  box-shadow: var(--glow);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.02);
  transition: transform 0.28s, box-shadow 0.28s;

  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.product-card h3 { margin: 8px 0 6px 0; }
#popular .product-card p {
  flex-grow: 1;
  margin-bottom: 12px;
  min-height: 40px; /* ✅ keep buttons aligned even if no description */
}

.product-card .btn {
  margin-top: auto;
  align-self: center;
  width: fit-content;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 80px rgba(124,97,255,0.14);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #062033;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(123,97,255,0.12);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

/* Cart Elements */
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
}
@media (max-width: 600px) {
  .cart-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cart-row > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}
.cart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

/* Footer */
.footer {
  padding: 26px 0;
  margin-top: 36px;
  background: linear-gradient(180deg, #04111a, #06121e);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.02);
}

/* Responsive Design */

/* Large Desktop (1000px and up) */
@media (min-width: 1000px) {
    .container {
        max-width: 1100px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* Desktop (992px to 1000px) */
@media (max-width: 1000px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Tablet (768px to 891px) */
@media (max-width: 891px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero {
    min-height: auto;
    height: auto;
   }

    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    /* Grid Layouts */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    /* Feedback Section */
    .feedback-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 400px;
    }
    
    .newsletter-form button {
        width: 100%;
        max-width: 200px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Sections padding */
    .featured-products,
    .why-choose-us,
    .health-benefits,
    .nutritional-info,
    .contact-section,
    .feedback-section,
    .cart-section,
    .products-section {
        padding: 60px 0;
    }
    
    .newsletter {
        padding: 60px 0;
    }
}

/* Mobile (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Grid Layouts */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nutrition-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Product Cards */
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* Benefit Cards */
    .benefit-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .benefit-icon {
        margin: 0 auto;
    }
    
    /* Contact Items */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Cart Items */
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    /* Forms */
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    .newsletter-content p {
        font-size: 1.1rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    /* Sections padding */
    .featured-products,
    .why-choose-us,
    .health-benefits,
    .nutritional-info,
    .contact-section,
    .feedback-section,
    .cart-section,
    .products-section {
        padding: 40px 0;
    }
    
    .newsletter {
        padding: 40px 0;
    }
}

/* Small Mobile (480px to 575px) */
@media (max-width: 575px) {
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Page Header */
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Product Cards */
    .product-info {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .add-to-cart-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Newsletter */
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    /* Sections padding */
    .featured-products,
    .why-choose-us,
    .health-benefits,
    .nutritional-info,
    .contact-section,
    .feedback-section,
    .cart-section,
    .products-section {
        padding: 30px 0;
    }
    
    .newsletter {
        padding: 30px 0;
    }
}

/* Extra Small Mobile (below 480px) */
@media (max-width: 400px) {
    .container {
        padding: 0 8px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    /* Page Header */
    .page-header {
        margin-top: 60px;
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .product-card,
    .feature-card,
    .benefit-card {
        margin: 0 5px;
    }
    
    /* Forms */
    .contact-form,
    .feedback-form {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        padding: 0 10px;
    }
    
    .newsletter-content h2 {
        font-size: 1.6rem;
    }
    
    /* Footer */
    .footer-content {
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .newsletter,
    .admin-link {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-header {
        margin-top: 0;
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .hero {
        height: auto;
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .section-title::after {
        display: none;
    }
    
    .product-card,
    .feature-card,
    .benefit-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}


/* ================================
   ✅ Auto-Sliding Popular Products
   ================================ */
#popular .products-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}
#popular .products-track {
  display: flex;
  gap: 18px;
  animation: scrollLeft 40s linear infinite;
}
#popular .product-card {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ✅ ensures even spacing */
  height: 100%;
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 12px;
  min-height: 40px; /* ✅ reserve space for description */
}

#popular .product-card .btn {
  margin-top: auto;
  align-self: center;
}

#popular .products-track::-webkit-scrollbar { display: none; }
#popular .products-track { scrollbar-width: none; }

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pop-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #062033;
  font-weight: 800;
  box-shadow: var(--glow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0.9;
}
.pop-slide-btn:hover { opacity: 1; }
.pop-slide-btn.prev { left: -40px; }
.pop-slide-btn.next { right: -40px; }
@media (max-width: 600px) {
  #popular .product-card { flex-basis: 75%; }
  .pop-slide-btn.prev { left: 10px; }
  .pop-slide-btn.next { right: 10px; }
}

/* ... all your existing CSS ... */

/* Portrait phones & tablets (fix stretched slider) */
@media (orientation: portrait) and (max-width: 1200px) {
  .hero {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
  }

  .slider {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9; /* keeps slider from being super tall */
    position: relative;
  }

  .hero-slide,
  .hero-overlay,
  .hero-content {
    inset: 0;
  }

  .aside {
    width: 100% !important;
    margin-top: 16px;
  }

  .hero-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* change to contain if you want full image visible */
  }
}
