:root {
    --primary-color: #00856B;
    --secondary-color: #ff6b6b;
    --light-bg: #f8f9fa;
    --dark-text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}
main { padding-bottom: 120px; }

/* Header & Navbar */
.navbar {
    background: linear-gradient(90deg, #fff 0%, #fafafa 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark-text);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px;
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.icon-btn.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 180px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 133, 107, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #00856B 0%, #00a884 50%, #00d4a8 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: 12px 35px !important;
    font-weight: 600;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 133, 107, 0.3);
}

.btn-primary:hover {
    background-color: #006c56 !important;
    border-color: #006c56 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 133, 107, 0.4);
}

.btn-light {
    background-color: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 50px !important;
    padding: 12px 35px !important;
}

.btn-light:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Carousel Styles */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-image {
    height: 600px;
    object-fit: cover;
    object-position: center;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption-custom h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-caption-custom .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.carousel-caption-custom .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-caption-custom .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 133, 107, 0.8);
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 133, 107, 1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 40px;
    border-radius: 6px;
}

/* Services Section */
.services-section {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.service-detail-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 133, 107, 0.15);
    border-left-width: 6px;
}

.service-detail-card h5 {
    color: var(--dark-text);
}

.service-detail-card i {
    font-size: 1.5rem;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-image {
        height: 400px;
    }

    .carousel-caption-custom h2 {
        font-size: 2.5rem;
    }

    .carousel-caption-custom .lead {
        font-size: 1.1rem;
    }

    .carousel-caption-custom .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-image {
        height: 300px;
    }

    .carousel-caption-custom h2 {
        font-size: 1.8rem;
    }

    .carousel-caption-custom .lead {
        font-size: 0.95rem;
    }
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(0, 133, 107, 0.05), rgba(0, 212, 168, 0.05));
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 133, 107, 0.15);
}

.category-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(5deg);
}

.category-card h5 {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

/* Product Cards */
.card {
    border: none;
    transition: box-shadow 0.3s ease;
    height: auto;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-img-container {
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-hover-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-hover-actions {
    opacity: 1;
    visibility: visible;
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-add-to-cart.in-cart {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.btn-add-to-cart.in-cart i {
    color: #fff !important;
}
.btn-add-to-cart.in-cart:hover {
    transform: scale(1.1);
    background: #006c56 !important;
}

.btn-wishlist i.fas {
    color: #ff6b6b;
}

.btn-view {
    background: rgba(0, 133, 107, 0.95) !important;
    color: white !important;
}

.btn-view:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-wishlist-icon i.fas {
    color: #ff6b6b;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product-title:hover {
    color: var(--primary-color) !important;
}

.product-description {
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 40px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-group .btn {
    flex: 1;
    padding: 10px !important;
    min-width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-group .btn svg {
    width: 24px;
    height: 24px;
}

.btn-group .btn-primary {
    background-color: var(--primary-color) !important;
    border: none !important;
}

.btn-group .btn-primary:hover {
    background-color: #006c56 !important;
    transform: scale(1.1);
}

.btn-group .btn-outline-primary {
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-group .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

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

/* Service Boxes */
.service-box {
    text-align: center;
    padding: 40px 25px;
    border-radius: 15px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.service-box:hover {
    background: linear-gradient(135deg, rgba(0, 133, 107, 0.05), rgba(0, 212, 168, 0.05));
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 133, 107, 0.15);
}

.service-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-box:hover .service-icon {
    transform: scale(1.15);
}

.service-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-text);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #00d4a8 100%);
    padding: 70px 0;
    margin-top: 70px;
    border-radius: 20px;
    margin: 70px 20px 0 20px;
    color: white;
}

.newsletter-section h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-section .form-control {
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding: 60px 0 20px;
    margin-top: 70px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .header-icons {
        gap: 15px;
        margin-left: 15px;
    }

    .icon-btn {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .card-buttons {
        gap: 8px;
    }

    .card-buttons .btn {
        padding: 12px 8px;
    }

    .newsletter-section {
        margin: 50px 15px 0 15px;
        padding: 50px 20px;
    }

    .newsletter-section form {
        flex-direction: column !important;
    }

    .form-outline {
        min-width: 100% !important;
        margin-bottom: 10px !important;
    }
}
