/* Frontend Premium Styles */
:root {
    --primary-color: #2D5A27;
    --secondary-color: #8BC34A;
    --accent-color: #FFC107;
    --text-dark: #1A1A1A;
    --text-light: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    color: var(--text-dark);
    background-color: #fdfdfd;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1592982537447-7440770cbfc9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Product Cards */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.product-img-container {
    padding: 0;
    /* Reduced padding for cover style */
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card img {
    height: 250px;
    /* Slightly taller for better cover effect */
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.08);
    /* Sophisticated scale */
}

.product-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes footer to bottom */
}

.card-action-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: bottom 0.3s ease;
    z-index: 10;
}

.product-card:hover .card-action-overlay {
    bottom: 0;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 5;
}

/* Buttons */
.btn-premium {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-premium-success {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-premium-success:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
    color: white;
}

/* Category Item */
.category-item {
    display: block;
    transition: transform 0.3s ease;
}

.category-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: var(--primary-color);
}

.category-item:hover .category-circle {
    border-color: var(--secondary-color);
    transform: scale(1.1);
    color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Feature & Testimonial Cards */
.feature-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Section Headings */
.section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Utility */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.cursor-pointer {
    cursor: pointer;
}

.x-small {
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .offcanvas {
        max-width: 300px;
    }

    .offcanvas .nav-link {
        padding: 12px 25px !important;
        font-size: 1.1rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .offcanvas .nav-link.active {
        background: #f8fcf8;
        border-left: 4px solid var(--secondary-color);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-section {
        height: 60vh;
    }

    .expertise-card-overlay {
        position: relative !important;
        margin: 20px 0 0 0 !important;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }
}

/* Expertise Section & Glass Badge */
.expertise-image-container {
    position: relative;
    padding-bottom: 40px;
}

.expertise-image-container img {
    transition: transform 0.5s ease;
}

.expertise-image-container:hover img {
    transform: scale(1.02);
}

.expertise-card-overlay {
    position: absolute;
    bottom: -15px;
    left: 20px;
    width: 280px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expertise-card-overlay:hover {
    transform: translateY(-10px) scale(1.02);
    background: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.expertise-card-overlay h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* Enhanced Feature Cards */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: #f8fcf8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: white !important;
    transform: rotate(10deg);
}

.feature-card:hover .icon-box i {
    color: white !important;
}

/* Dynamic Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 12px;
    padding: 4px;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}

.btn-dynamic-add {
    background: var(--primary-color);
    /* Matching user's red example */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-dynamic-add:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.btn-dynamic-add i {
    font-size: 0.9rem;
}

/* Variant Items */
.variant-item {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.variant-item.active {
    border-color: var(--primary-color) !important;
    background: #f8fcf8 !important;
}

.variant-item:not(.active):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}