/* Customer-Facing Site Styles for Lea Agri */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-color: #2c5f2d;
    --header-color: #97bc62;
    --primary-color: #2c5f2d;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible;
}

.navbar {
    padding: 15px 0;
    position: relative;
}

.navbar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/nav-pattern.png');
    background-size: 200px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.dropdown {
    position: relative;
    z-index: 10001;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    display: none;
}

.dropdown:hover::after {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 10002;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Scrolling Banner for Special Offers */
.scrolling-banner {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    color: white;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    z-index: 9999;
    margin: 0;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    font-size: 16px;
    font-weight: 500;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scrolling-text:hover {
    animation-play-state: paused;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 120px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    z-index: 1;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 45, var(--hero-overlay-opacity, 0.1)), rgba(151, 188, 98, var(--hero-overlay-opacity, 0.1)));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 8px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    padding: 0; /* Override default section padding */
    display: block;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 120px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1e4420;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Categories Grid */
.categories-section {
    background: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-placeholder {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--text-muted);
}

.category-card h3 {
    font-size: 16px;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-card.special {
    border: 2px solid #dc3545;
}

.special-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.product-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background: var(--light-bg);
}

.product-placeholder {
    width: 100%;
    height: 180px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-muted);
}

.product-details {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.product-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.special-price {
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
}

.compare-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Social Media Gallery Section */
.social-gallery-section {
    padding: 60px 0;
    background: #fff;
}

.social-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--header-color));
    color: white;
}

.gallery-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

.gallery-placeholder p {
    font-size: 14px;
    opacity: 0.9;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-item {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.about-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
.site-footer {
    background: #212529;
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-img {
        height: 60px;
        width: 60px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .social-links {
        gap: 10px !important;
    }
    
    .social-links a {
        font-size: 18px !important;
    }
    
    .hero {
        padding: 80px 0;
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .slider-container {
        min-height: 400px;
    }
    
    .hero-slide {
        padding: 80px 0;
        min-height: 400px;
    }
    
    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot.active {
        width: 30px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.product-image {
    cursor: zoom-in;
}
