/* 
    Lemonive — Organic Lemon Store CSS
    Inspired by Naturix HTML Template
*/

:root {
    --color-primary: #2D7A2D; /* Deep Green */
    --color-primary-dark: #1E561E;
    --color-accent: #F5C518;  /* Lemon Yellow */
    --color-accent-light: #FFEB3B;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-light: #FAFAF5;    /* Warm off-white */
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========== Topbar ========== */
.topbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
    background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
    background-size: 100px;
}

.topbar-text i {
    color: var(--color-primary);
    margin-right: 5px;
}

.topbar-social a {
    margin-left: 15px;
    color: var(--text-muted);
}

.topbar-social a:hover {
    color: var(--color-primary);
}

/* ========== Header ========== */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 10px 0;
}

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

.logo-icon {
    font-size: 24px;
    color: var(--color-primary);
    margin-right: 8px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-ive {
    color: var(--color-primary);
}

.logo-sub {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: -5px;
    color: var(--text-muted);
}

.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-item.has-mega {
    position: static;
}

.nav-item a {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 0;
}

.nav-item.active a, .nav-item:hover > a {
    color: var(--color-primary);
}

/* Mega Menu */
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
    border-radius: 0 0 12px 12px;
}

.mega-heading {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.mega-links li {
    margin-bottom: 10px;
}

.mega-links li a {
    text-transform: none;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-muted);
}

.mega-promo {
    background: #fdfae6;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.mega-promo-badge {
    background: var(--color-accent);
    color: var(--text-dark);
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mega-view-all {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
}

.header-icon-btn {
    font-size: 18px;
    margin-left: 20px;
    color: var(--text-dark);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-primary);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Cart */
.header-cart-wrap {
    position: relative;
}

.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.header-cart-wrap:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.mini-cart-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.product-img-placeholder {
    background: #f5f5f5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
    border-radius: 4px;
}

.mini-cart-info h6 {
    font-size: 14px;
    margin-bottom: 5px;
}

.mini-cart-price {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
}

.mini-cart-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Buttons */
.btn-primary-green {
    background: var(--color-primary);
    color: var(--white);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 4px;
}

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

.btn-outline-green {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
}

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

/* Section Common */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

/* Product Card */
.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 4px;
    z-index: 5;
}

.badge-new { background: #2D7A2D; color: #fff; }
.badge-sale { background: #f44336; color: #fff; }

.product-card-img-wrap {
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-leaf-deco {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    z-index: 1;
}

.product-card-hover-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover .product-card-hover-actions {
    bottom: 0;
}

.btn-add-to-cart {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: #ccc;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
    color: #f44336;
    border-color: #f44336;
    background: #fff;
}

.product-wishlist-btn.active i {
    color: #f44336 !important;
}

.product-category-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-organic-label {
    display: block;
    font-size: 12px;
    color: #999;
    font-weight: 400;
    text-transform: lowercase;
    font-style: italic;
    margin-bottom: 2px;
}

.product-name {
    margin-bottom: 5px;
}

.product-name a {
    font-size: 18px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
    font-weight: 700;
}

.product-rating {
    color: #FFC107;
    font-size: 12px;
    margin-bottom: 10px;
}

.rating-count {
    color: #ccc;
    margin-left: 5px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    font-size: 14px;
    color: #ccc;
    text-decoration: line-through;
    margin-left: 10px;
}

/* Newsletter */
.newsletter-section {
    background: var(--color-primary);
    color: var(--white);
    position: relative;
    padding: 60px 0;
}

.newsletter-pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/leaf.png');
    opacity: 0.1;
}

.newsletter-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.newsletter-input-group {
    display: flex;
    margin-top: 30px;
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.newsletter-btn {
    background: var(--color-accent);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background: #1A1A1A;
    color: #B0B0B0;
    padding: 80px 0 0;
}

.footer-top {
    padding-bottom: 50px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 30px;
    position: relative;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover {
    padding-left: 5px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* General Layouts */
.breadcrumb-wrap {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.lemonive-breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.lemon-bg {
    background-color: #FAFAF5;
}

/* Owl Carousel Custom */
.owl-theme .owl-nav [class*='owl-'] {
    background: var(--white) !important;
    color: var(--color-primary) !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    line-height: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    margin: 0 !important;
}

.owl-nav .owl-prev { left: -20px; }
.owl-nav .owl-next { right: -20px; }

/* ========== Mobile Nav Toggle Button ========== */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    padding: 5px;
    gap: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Header Search Bar ========== */
.header-search-bar {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
    display: none;
}

.header-search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-submit,
.search-close {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
}

.search-close:hover {
    background: #f44336;
    color: var(--white);
    border-color: #f44336;
}

/* ========== Mobile Nav Overlay ========== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Mobile Nav Drawer ========== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mobile-nav-header .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.mobile-nav-header .logo-text i {
    color: var(--color-primary);
    margin-right: 6px;
}

.mobile-nav-close {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background: #f44336;
    border-color: #f44336;
    color: var(--white);
}

.mobile-nav {
    padding: 15px 0;
    flex: 1;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav > ul > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.mobile-nav > ul > li > a:hover,
.mobile-nav > ul > li > a:focus {
    color: var(--color-primary);
    background: var(--bg-light);
    padding-left: 26px;
}

.mobile-sub {
    display: none;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.mobile-sub li a {
    display: block;
    padding: 10px 20px 10px 35px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-sub li a:hover {
    color: var(--color-primary);
    padding-left: 42px;
}

/* ========== Back To Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 122, 45, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(45, 122, 45, 0.5);
}

/* ========== Hero Slider ========== */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-label {
    display: inline-block;
    padding: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-img-wrap {
    position: relative;
    z-index: 1;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide:hover .hero-main-img {
    transform: scale(1.05) rotate(2deg);
}

/* min-vh helper */
.min-vh-75 {
    min-height: 75vh;
}

@media (max-width: 1199px) {
    .hero-title { font-size: 52px; }
}

@media (max-width: 991px) {
    .hero-slider-section { text-align: center; }
    .hero-title { font-size: 42px; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-img-wrap { margin-top: 50px; }
    .min-vh-75 { min-height: 60vh; padding: 60px 0; }
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .main-nav { display: none !important; }
    .mega-menu { display: none !important; }
}

@media (max-width: 767px) {
    .topbar .col-md-6:last-child {
        display: none;
    }
    section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 24px;
    }
}
