/* ===============================================
   GLOBAL THEME
   =============================================== */

:root {
    --primary: #2C7A52; /* green */
    --primary-dark: #225a3d;
    --bg: #fafafa;
    --text-dark: #222;
    --text-light: #666;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===============================================
   HEADER
   =============================================== */

.site-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Header & Logo (final version) --- */
.site-header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  transition: transform .15s ease;
}
.logo img:hover { transform: scale(1.02); }

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color .15s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    font-weight:700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 3px;
}

/* Cart link specific styling */
.cart-link {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
}

.cart-link:hover {
    background: var(--primary-dark);
    border-bottom: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .logo img {
        height: 45px;
    }

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 15px;
    }
}

/* ===============================================
   HERO SECTION — NEW MODERN LOOK
   =============================================== */

.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f3fef7 0%, #e4f7ec 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.hero-buttons {
    margin-top: 20px;
}

.hero-btn {
    margin-right: 12px;
}

/* Secondary button (outline variant) */
.btn-outline {
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: white;
    transition: 0.2s;
}

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

/* Right side hero image */
.hero-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 420px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------------------------------------
   HERO ANIMATIONS
---------------------------------------- */

.hero-text, .hero-image-box {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-text {
    animation-delay: 0.1s;
}

.hero-image-box {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================
   PRODUCT GRID
   =============================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;

    display: flex;
    flex-direction: column;

    min-height: 380px;  /* NEW */
}

.product-card .btn-primary,
.product-card .btn-outline,
.product-card button {
    width: fit-content;
    align-self: center;
    margin-top: auto;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 220px;          /* slightly taller for proper cropping */
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    display: block;         /* prevents layout collapse */
    background: #f2f2f2;    /* placeholder if image fails */
}

.product-card h3 {
    margin: 15px 0 8px;
    font-size: 18px;
}

.product-card .price {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;

    /* Ensure the whole line stays together */
    white-space: nowrap;
}

.product-card .price .small-text {
    font-size: 12px;
    opacity: 0.7;
}


.btn-primary {
    display: inline-block;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

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

/* ===============================================
   CART PAGE
   =============================================== */

.cart-item {
    background: white;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
    transition: transform 180ms ease, opacity 180ms ease;
}

#cart-items .cart-item:first-child {
        margin-top: 0; !important;
    }

.cart-item.added {
    transform: translateY(-6px);
}

.cart-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.cart-item h3 {
    margin: 0 0 5px;
}

.cart-item button {
    padding: 8px 12px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.cart-item button:hover {
    background: #b23935;
}

.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: right;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background: var(--primary-dark);
}

.cart-page h1 {
    margin-top: 0 !important;
    margin-bottom: 20px;
    color: var(--primary-dark);
    padding-top: 0 !important;
}

.checkout-btn {
    margin-top: 10px;
    display: inline-block;
}

.cart-empty {
    text-align: center;
    margin-top: 40px;
}

.empty-cart-img {
    width: 220px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* ---------------------------
   CART / CHECKOUT ENHANCEMENTS
   --------------------------- */

.cart-item .cart-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 8px;
}

.qty-controls button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.qty-controls button:active { transform: scale(0.98); }

.qty-controls span.qty {
    min-width: 34px;
    text-align: center;
    font-weight: 700;
    display:inline-block;
}

.checkout-summary {
    background: white;
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.checkout-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #f0f0f0;
}

.checkout-row .left {
    display:flex;
    gap:12px;
    align-items:center;
}

.checkout-row img {
    width:56px;
    height:56px;
    object-fit:cover;
    border-radius:8px;
}

.summary-breakdown {
    padding: 12px;
    background:#fcfffb;
    border-radius:8px;
    margin-top:12px;
    font-weight:600;
}

/* sticky summary on desktop */
@media(min-width: 769px) {
    .checkout-right {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* cart count pulse animation */
#cart-count.pulse {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* small remove button */
.btn-remove {
    padding:6px 10px;
    background:#f4f4f4;
    border-radius:8px;
    border:none;
    cursor:pointer;
}

/* CART LAYOUT: LEFT ITEMS + RIGHT SUMMARY */
.cart-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 0 !important;
}

.cart-left {
    flex: 2;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cart-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0px; /* Changed to 0px to align perfectly */
    margin-top: 0 !important;
}

/* Price on the right side */
.cart-item-price {
    min-width: 110px;
    text-align: right;
    font-weight: 600;
    font-size: 16px;
}

/* one-line subtext under product name */
.cart-meta-line {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* order summary lines */
.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 14px;
}

.summary-total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

.shipping-notice {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff3cd;
    color: #856404;
}

/* Suggestions on right side */
.cart-suggestions h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-dark);
}

.cart-suggest-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-suggest-card {
    padding: 12px;
    box-shadow: var(--shadow);
}

/* trash-style minus button when qty = 1 */
.qty-trash {
    background: #f8d7da;
    color: #721c24;
}

/* make sure qty-controls buttons look good */
.qty-controls .qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.qty-controls .qty-btn:active {
    transform: scale(0.97);
}

/* mobile stack */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column;
    }

    .cart-right {
        position: static;
    }
}

/* checkout totals styling */
.checkout-totals {
    margin-top:12px;
    display:block;
    text-align:right;
    font-size:16px;
}
.checkout-totals .line { display:flex; justify-content:space-between; margin:6px 0; color:var(--text-dark); }
.checkout-totals .total { font-weight:800; font-size:20px; color:var(--primary-dark); }

/* small helper */
.hidden { display:none; }

/* ===============================================
   FOOTER
   =============================================== */

.site-footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f7f7f7;
}

/* ---------------------------------------
   CATEGORY ICONS SECTION
---------------------------------------- */

.category-section {
    padding: 50px 0;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.cat-item {
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.cat-item img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.cat-item:hover img {
    transform: scale(1.08);
}

.cat-item p {
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ---------------------------------------
   ANNOUNCEMENT BAR
---------------------------------------- */

/* ---------------------------------------
   ANNOUNCEMENT BAR – SCROLLING TEXT
---------------------------------------- */

.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    overflow: hidden;          /* hides text when it moves out of view */
    white-space: nowrap;
}

/* container that actually moves */
.top-bar-track {
    display: inline-flex;
    gap: 250px;                 /* space between repeated messages */
    animation: mm-marquee 15s linear infinite;
}

/* each message */
.top-bar-track span {
    display: inline-block;
}

/* keyframes for scrolling effect */
@keyframes mm-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---------------------------------------
   TESTIMONIALS SECTION
---------------------------------------- */

.testimonials-section {
    padding: 60px 0;
    background: #f7fdf9;
    margin-top: 40px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-dark);
}

.testimonials-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 300px;
    max-width: 320px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-snap-align: center;
}

.t-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.t-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ---------------------------------------
   WHY CHOOSE US SECTION
---------------------------------------- */

.why-section {
    padding: 60px 0;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.why-item {
    background: #f8fdfb;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.why-item h4 {
    margin: 10px 0 6px;
    color: var(--primary-dark);
}

.why-item p {
    font-size: 15px;
    color: var(--text-light);
}

.product-extra {
    margin-top: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===============================================
   CHECKOUT PAGE
   =============================================== */

.checkout-page {
    margin-top: 40px;
    margin-bottom: 60px;
}

.checkout-page h1 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 30px;
}

.checkout-form,
.checkout-summary {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkout-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
}

.total-line {
    margin-top: 20px;
    font-size: 18px;
}

.checkout-box {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkout-box h3 {
    margin-bottom: 15px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.checkout-total {
    margin-top: 15px;
    font-weight: 700;
    font-size: 18px;
}

/* ------------ CHECKOUT FIXED LAYOUT ---------------- */

.checkout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.checkout-left {
    flex: 1.6;
}

.checkout-right {
    flex: 1;
    position: sticky;
    top: 100px;
}

.checkout-summary-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.checkout-summary-box .line {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 15px;
}

.checkout-summary-box .total {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ------- Checkout Items -------- */
.checkout-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.cp-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-product-row img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
}

.cp-title {
    font-weight: 600;
}

.checkout-page {
    margin-top: 20px !important;
}

/* ===============================================
   SUCCESS PAGE
   =============================================== */

.success-page {
    text-align: center;
    margin-top: 60px;
}

.success-box {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: auto;
}

.success-icon {
    width: 120px;
    margin-bottom: 20px;
}

/* ===============================================
   CONTACT PAGE
   =============================================== */

.contact-page {
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-title {
    font-size: 32px;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2,
.contact-form-card h2 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.contact-info p,
.contact-info a {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-form-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 15px;
}

.form-status {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===============================================
   MISC / GLOBAL
   =============================================== */

html {
    scroll-behavior: smooth;
}

.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* --- Scroll fade-in sections --- */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Search Bar Styling ---------- */
.nav-search {
    position: relative;
    margin: 0 10px;
}

.nav-search input {
    padding: 6px 10px;
    border: 1.5px solid #2C7A52;
    border-radius: 20px;
    width: 170px;
    transition: 0.2s ease;
    font-size: 14px;
}

.nav-search input:focus {
    width: 220px;
    outline: none;
    background: #f7fff9;
}

/* Dropdown results */
.search-results {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 20;
}

.search-results div {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}

.search-results div:hover {
    background: #f2f2f2;
}

/* -----------------------
   CART ICON IN HEADER
------------------------ */
.cart-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.cart-icon {
    width: 26px;
    height: 26px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.cart-icon-link:hover .cart-icon {
    transform: scale(1.08);
    transition: 0.15s;
}

/* Card actions in grid */
.card-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.card-actions .btn-primary,
.card-actions .btn-outline {
    flex: 1;
    text-align: center;
}

.small-text {
    font-size: 12px;
    color: #777;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {

    /* Hero layout fix */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image {
        width: 80%;
        max-width: 300px;
    }

    /* Category grid fix */
    .category-grid {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .cat-item img {
        width: 70px;
        height: 70px;
    }

    /* Fix nav spacing */
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Featured product card fix */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .product-card img {
        height: 160px;
    }

    .product-card {
        padding: 12px;
    }

    .weight-select {
        width: 100%;
        padding: 8px;
        margin: 8px 0;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 15px;
    }

    /* Cart page */
    .cart-item {
        flex-direction: column;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    /* Remove extra top gap so first item aligns with Order Summary box */


    .cart-img {
        width: 100%;
        height: 200px;
        max-width: 320px;
        object-fit: cover;
    }

    .cart-summary {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }

    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-summary,
    .checkout-form {
        padding: 18px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 18px;
    }

    /* Testimonials */
    .testimonial-card {
        min-width: 260px;
        max-width: 260px;
    }

    /* Footer */
    .site-footer {
        padding: 18px 0;
        font-size: 14px;
    }

    /* Mobile nav behaviour */
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 8px;
        display: flex;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        margin: 0 !important;
        padding: 6px 0;
    }

    .nav-search {
        width: 100%;
        margin: 10px 0;
    }

    .nav-search input {
        width: 100%;
    }
}

/* =======================================================
   ANIMATED STICKY ADD TO CART BAR (FINAL VERSION)
   ======================================================= */

.sticky-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    z-index: 999;
    transform: translateY(120%);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.35s ease;
}

.sticky-bar.show {
    transform: translateY(0);
    opacity: 1;
}

.sticky-info {
    display: flex;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    align-items: center;
}

#sticky-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* On small screens, let the button stretch more */
@media (max-width: 768px) {
    .sticky-bar {
        justify-content: center;
    }

    .sticky-info {
        display: none;
    }

    #sticky-add-btn {
        width: 92%;
        max-width: 500px;
        text-align: center;
    }
}

/* =======================================================
   PRODUCT PAGE – ZOFF STYLE IN MEHTA MASALA THEME (FINAL)
   ======================================================= */

#product-page {
    margin-top: 40px;
}

/* MAIN LAYOUT */
.mm-product-layout {
    display: flex;
    gap: 40px;
    margin: 40px 0 60px;
    align-items: flex-start;
}

/* LEFT IMAGE SECTION */
.mm-product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-product-main-img {
    background: #f5faf7;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-prod-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* RIGHT PANEL */
.mm-product-info-panel {
    flex: 1;
    max-width: 480px;
}

.mm-prod-title {
    font-size: 30px;
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.mm-prod-price-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.mm-prod-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.mm-prod-tax-note {
    font-size: 13px;
    color: var(--text-light);
}

.mm-prod-short {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 18px;
}

.mm-prod-section {
    margin-bottom: 18px;
}

.mm-prod-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

/* Weight pills (size selector) */

.mm-weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-weight-pill {
    border-radius: 999px;
    border: 1px solid #d1e8dd;
    background: #fff;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--primary-dark);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mm-weight-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Quantity stepper */

.mm-qty-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d1d1d1;
    overflow: hidden;
    background: #fff;
}

.mm-qty-stepper button {
    width: 34px;
    height: 34px;
    border: none;
    background: #f3f3f3;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-qty-stepper span#qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

/* Buttons */

.mm-prod-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.mm-btn-wide {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 999px;
}

.mm-btn-buy {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.mm-btn-buy:hover {
    background: #eaf7f0;
}

/* Badges */

.mm-prod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mm-badge-pill {
    background: #e4f7ec;
    color: var(--primary-dark);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* Accordion */

.mm-product-accordion {
    margin-bottom: 80px;
}

.mm-acc-item {
    border-bottom: 1px solid #e3e3e3;
}

.mm-acc-header {
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-dark);
}

.mm-acc-icon {
    font-size: 18px;
    color: var(--text-light);
}

.mm-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-right: 10px;
}

.mm-acc-body.open {
    padding-bottom: 10px;
}

.mm-acc-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .mm-product-layout {
        flex-direction: column;
        gap: 24px;
    }

    .mm-product-info-panel {
        max-width: 100%;
    }

    .mm-prod-title {
        font-size: 24px;
    }
}
.hamburger,
.mobile-menu-toggle,
.menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* FIX MOBILE HEADER LAYOUT */
.site-header,
.header-inner,
.main-nav {
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Ensure nav items stay inline */
.main-nav a {
    display: inline-block !important;
    margin: 0 12px !important;
}

/* Keep search and cart inline */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Disable hamburger completely */
.hamburger,
.menu-toggle,
.mobile-menu-toggle {
    display: none !important;
}

/* Prevent mobile CSS from stacking */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: row !important;
    }
    .main-nav {
        flex-direction: row !important;
    }
    .header-right {
        flex-direction: row !important;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-search input {
    width: 130px;
}

.cart-icon-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #d9534f;
    color: #fff;
    padding: 3px 7px;
    border-radius: 12px;
    font-size: 12px;
}
/* SEARCH ICON collapsed mode */
.search-icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    margin-right: 6px;
}

/* collapsed input */
.search-input-collapsed {
    width: 0;
    opacity: 0;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: width 0.3s ease, opacity 0.2s ease;
    font-size: 14px;
}

/* expanded mode */
.search-expanded {
    width: 160px !important;
    opacity: 1 !important;
    padding: 6px 8px !important;
    border: 1px solid #2c7a52 !important;
    border-radius: 20px;
}

/* clean container */
.nav-search {
    display: flex;
    align-items: center;
    position: relative;
}

/* search results dropdown stays same */
.search-results {
    position: absolute;
    top: 40px;
    background: white;
    border-radius: 6px;
    width: 220px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 50;
}
.search-icon-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.nav-search {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon-btn {
    font-size: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.search-input-collapsed {
    width: 0;
    opacity: 0;
    padding: 6px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: width 0.25s ease, opacity 0.2s ease;
}

.search-expanded {
    width: 160px !important;
    opacity: 1 !important;
    padding: 6px 8px !important;
}

.search-icon-hidden {
    opacity: 0;
    pointer-events: none;
}
/* ----------------------- */
/* HEADER RIGHT ALIGNMENT  */
/* ----------------------- */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px; /* space between search & cart */
}

/* ----------------------- */
/* SEARCH ICON + EXPAND    */
/* ----------------------- */

.nav-search {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    padding: 4px;
}

.search-input-collapsed {
    width: 0;
    opacity: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: width 0.25s ease, opacity 0.2s ease;
    padding: 6px 0;
}

.search-expanded {
    width: 160px !important;
    opacity: 1 !important;
    padding: 6px 8px !important;
    border: 1px solid #2c7a52 !important;
    border-radius: 20px;
}

.search-icon-hidden {
    opacity: 0;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 40px;
    background: white;
    width: 220px;
    display: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 999;
}

/* CART BADGE (unchanged) */
.cart-icon-link { position: relative; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e63946;
    color: #fff;
    padding: 3px 6px;
    border-radius: 50px;
    font-size: 11px;
}

/* FORCE HEADER RIGHT (SEARCH + CART) TO ALIGN ON THE RIGHT SIDE */
.header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-shrink: 0 !important;
}

/* NAV SEARCH CONTAINER */
.nav-search {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* SEARCH ICON BUTTON */
.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
}

/* COLLAPSED INPUT */
.search-input-collapsed {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    transition: width 0.25s ease, opacity 0.2s ease;
}

/* EXPANDED INPUT */
.search-expanded {
    width: 160px !important;
    opacity: 1 !important;
    padding: 6px 10px !important;
    border: 1px solid #2c7a52 !important;
    border-radius: 20px;
}

/* HIDE ICON WHEN SEARCH IS EXPANDED */
.search-icon-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* FIX: NAVIGATION SHOULD NOT PUSH SEARCH AWAY */
.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    flex-grow: 1 !important;
    justify-content: center !important;
}

/* ----------------------------------------
   FULL WIDTH SEARCH DROPDOWN (OPTION B)
----------------------------------------- */

.full-search-container {
    display: none;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    position: absolute;
    top: 100%; /* right below header */
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.full-search-container.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.full-search-container input {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Search icon in header */
.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* Ensure header-right aligns icons horizontally */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Fix header height on simple pages */
.simple-page {
    margin-top: 40px; /* reduce header spacing */
}

.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 5px !important;
}
/* FULL SCREEN SEARCH BAR (hidden by default) */
.full-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: none;
    z-index: 9999;
}

.full-search-container.show {
    display: block;
}

.full-search-container input {
    width: 90%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: 10px;
}
.cart-page h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cart-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* FIX FOR CART ALIGNMENT */
.cart-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.cart-page h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.cart-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.cart-right {
    top: 0px !important;
    margin-top: 0 !important;
}

/* ===============================================
   CART ALIGNMENT FIX - FINAL SOLUTION
   =============================================== */

/* Reset all margins and padding for cart page */
.container.cart-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cart-page h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px;
}

.cart-layout {
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: flex-start !important;
}

.cart-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cart-right {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0px !important;
}

/* Remove any default spacing from main container */
main.container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure cart items start at the very top */
#cart-items {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#cart-items .cart-item:first-child {
    margin-top: 0 !important;
}

/* FIX CHECKOUT TOP GAP */
.checkout-page {
    margin-top: 20px !important;
    padding-top: 0 !important;
}

/* ------------------------------
   PREMIUM CHECKOUT FORM (FIXED)
------------------------------ */

.checkout-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.checkout-form h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: #f4fff8;
}

.form-group textarea {
    height: 90px;
    resize: none;
}

.checkout-buttons {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.checkout-buttons .btn-primary {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

.checkout-buttons .btn-outline {
    flex: 1;
    padding: 12px;
    font-size: 15px;
}

/* FIX FORM ALIGNMENT */
.checkout-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.checkout-form .form-group {
    margin-bottom: 16px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    font-size: 15px;
    box-sizing: border-box;
}

.checkout-form textarea {
    height: 85px;
}
/* ------------------------------------------
   Compact Footer – Clean & Professional
------------------------------------------- */
.mm-footer {
    background: #f8fdf9;
    border-top: 1px solid #e5e5e5;
    padding: 30px 0 25px;
    margin-top: 60px;
}

.mm-footer-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

.mm-footer-logo {
    height: 60px;
    margin-bottom: 12px;
}

.mm-footer-tagline {
    color: #333;
    font-size: 14px;
    margin-bottom: 18px;
}

.mm-footer-links {
    margin: 10px 0 18px;
    font-size: 14px;
    color: #2C7A52;
}

.mm-footer-links a {
    color: #2C7A52;
    text-decoration: none;
    margin: 0 6px;
}

.mm-footer-links span {
    color: #777;
}

.mm-footer-address {
    font-size: 13px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.5;
}

.mm-footer-address a {
    color: #2C7A52;
    text-decoration: none;
}

.mm-footer-copy {
    font-size: 12px;
    color: #666;
}

/* ===== FAQ Section ===== */
.mm-faq-section {
    margin-top: 40px;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
}

.faq-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 12px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 12px;
    background: #f7f7f7;
    border-left: 3px solid #2C7A52;
    margin-top: 5px;
    border-radius: 6px;
}

.faq-answer.show {
    display: block;
}

/* Cart Popup */
.cart-popup {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    padding: 15px;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all .35s ease;
}

.cart-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-popup-inner {
    display: flex;
    gap: 12px;
}

.cart-popup-left img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

.cp-title {
    margin: 0;
    font-size: 14px;
    color: #2C7A52;
    font-weight: 600;
}

.cp-name {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 700;
}

.cp-weight {
    font-size: 14px;
    color: #555;
}

.cp-view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    background: #2C7A52;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.cp-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.product-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.product-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-slider .product-card {
  min-width: 180px;
  flex: 0 0 auto;
}

.slider-btn {
  background: #fff;
  border: 1px solid #ccc;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-btn.left {
  margin-right: 8px;
}

.slider-btn.right {
  margin-left: 8px;
}
