/* ecommerce.css */
:root {
    --primary-orange: #f25c3a;
    /* Adjust to match the mockup */
    --secondary-blue: #0b0f19;
    --text-dark: #111111;
    --text-muted: #757575;
}

.ecommerce-body {
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
}

.hover-dark:hover {
    color: #000 !important;
}

.hover-primary:hover {
    color: var(--primary-orange) !important;
}

.header-top {
    font-size: 0.85rem;
}

/* Eco Hero Section */
.eco-hero-section {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.eco-hero-section .carousel,
.eco-hero-section .carousel-inner,
.eco-hero-section .carousel-item {
    height: 100%;
}

.eco-hero-section .hero-video-wrapper {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.dropdown-mega .nav-link {
    color: #ffffff !important;
    cursor: pointer;
}

.dropdown-mega .dropdown-menu {
    border-top: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    border: 1px solid #f0f0f0;
}

.dropdown-mega:hover>.dropdown-menu {
    display: block;
}

/* Multi-level Flyout dropdowns */
.dropdown-submenu>.dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    border-radius: 0 8px 8px 8px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.nav-item.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0 !important;
}

/* Footer styling */
.eco-footer {
    background-color: var(--secondary-blue);
    color: #a0a0a0;
    font-size: 0.95rem;
}

.eco-footer h5 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.eco-footer a {
    color: #a0a0a0;
    text-decoration: none;
}

.eco-footer a:hover {
    color: #ffffff;
}

.newsletter-input {
    border-radius: 50px;
    padding-right: 55px;
    /* space for button */
    padding: 15px 20px;
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 44px;
    width: 44px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: var(--primary-orange);
}

.scroll-top-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: absolute;
    right: 15px;
    bottom: -22px;
    z-index: 10;
}

/* Feature grid */
.feature-box {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.feature-icon {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Product Cards */
.eco-product-card {
    border: none;
    border-radius: 0;
    transition: box-shadow 0.3s;
}

.eco-product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* shadow-md */
}

.eco-product-img {
    position: relative;
    background: #f4f4f4;
    padding-top: 100%;
    /* square ratio */
    overflow: hidden;
}

.eco-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    transition: bottom 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.eco-product-card:hover .eco-product-actions {
    bottom: 0;
}

.btn-action-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    transition: all 0.2s;
}

.btn-action-round:hover {
    background: var(--primary-orange);
    color: #fff;
    border-color: var(--primary-orange);
}

.eco-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.eco-price {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 1.1rem;
}