/* Custom Variables */
:root {
    --bs-primary: #0aad0a;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-family-base: 'Inter', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--bs-font-family-base);
    line-height: 1.6;
}

/* Utilities */
.mt-8 {
    margin-top: 4rem !important;
}

.py-14 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

.py-16 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.ps-lg-12 {
    padding-left: 6rem !important;
}

.px-8 {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
}

/* Hero Slider Styles */
.hero-slider {
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero-slider .slide-item {
    position: relative;
    min-height: 400px;
    display: flex !important;
    align-items: center;
}

.hero-slider .slick-dots {
    bottom: 20px;
}

.hero-slider .slick-dots li button:before {
    color: white;
    font-size: 12px;
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    color: #333;
    font-size: 16px;
}

/* Category Slider */
.category-slider .category-item {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.category-slider .category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-slider .category-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card .product-img {
    position: relative;
    overflow: hidden;
}

.product-card .product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-card .product-info {
    padding: 1rem;
}

.product-card .product-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-card .product-price {
    font-weight: 600;
    color: var(--bs-primary);
}

.product-card .product-price .original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #089808;
    border-color: #089808;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 32px;
}

/* Footer */
footer {
    background-color: #f8f9fa !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider .slide-item {
        min-height: 300px;
    }

    .ps-lg-12 {
        padding-left: 1rem !important;
    }

    .py-lg-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


/* Mega Menu Styles */
.dropdown-menu.w-100 {
    border-radius: 0;
    border-top: 3px solid #0aad0a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dropdown-header {
    color: #0aad0a;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-static {
    position: static !important;
}

@media (max-width: 991.98px) {
    .dropdown-menu.w-100 {
        width: auto !important;
        position: relative !important;
    }
}


/* Enhanced Search Input Styling */
.navbar .input-group {
    position: relative;
}

.navbar .input-group .form-control {
    border: 1px solid #e0e6ed;
    border-right: 0;
    padding-right: 0;
    box-shadow: none;
}

.navbar .input-group .form-control:focus {
    border-color: #198754;
    box-shadow: none;
}

.navbar .input-group-text {
    border: 1px solid #e0e6ed;
    border-left: 0;
    background-color: white;
    padding-left: 0;
    z-index: 4;
}

.navbar .input-group .ms-n1 {
    margin-left: -0.25rem !important;
}

/* Icon Styling */
.navbar .bi {
    color: #495057;
}

.navbar .bi:hover {
    color: #198754;
}

/* Badge Positioning */
.navbar .badge {
    min-width: 18px;
    height: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Icon sizes */
.icon-xs {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

/* List inline items spacing */
.list-inline-item {
    display: inline-block;
}

/* Navbar link hover effects */
.navbar-nav .nav-link:hover {
    color: #198754 !important;
}

.navbar .text-reset:hover {
    color: #198754 !important;
}


/* Wishlist Button States */
.wishlist-btn {
    transition: all 0.3s ease;
}

.wishlist-btn.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

.wishlist-btn.active i {
    color: white !important;
}

.wishlist-btn:not(.active) {
    background-color: white;
    border-color: #dee2e6;
    color: #6c757d;
}

.wishlist-btn:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Heart icon animation */
.wishlist-btn i {
    transition: all 0.2s ease;
    font-size: 14px;
}

.wishlist-btn.active i.bi-heart-fill {
    color: white;
    animation: heartBeat 0.3s ease-in-out;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Quick add button animation */
.product-card .quick-add {
    transition: opacity 0.3s ease;
}

.product-card:hover .quick-add {
    opacity: 1 !important;
}