/*
    Lunova Shop Custom Stylesheet
    Primary Colors: White (#FFFFFF), Lemon Green (e.g., #A6FF00 or a softer #8BC34A)
*/

:root {
    /* Lunova Custom Colors */
    --lunova-green: #8BC34A;
    --lunova-green-darker: #7CB342;
    
    /* Overriding Bootstrap's Default Theme Colors */
    --bs-primary: var(--lunova-green);
    --bs-primary-rgb: 139, 195, 74; /* RGB equivalent of #8BC34A */
    --bs-info: #AED581; /* A lighter green for 'info' badges */

    --secondary-color: #f1f8e9; /* Light green for backgrounds */
    --light-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* General & Typography */
body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--bs-primary);
    transition: var(--transition);
}

a:hover {
    color: #2eff04;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}
/* Note: Bootstrap's :hover state for .btn-primary will now work automatically, but we can add our custom shadow */
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--lunova-green-darker);
    border-color: var(--lunova-green-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
    color: #fff;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

.section-title span {
    font-weight: 700;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--secondary-color); /* Light green */
    border-top-color: var(--bs-primary); /* Main green */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Header & Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}
.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #333;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link:hover {
    color: #333;
}

.nav-icon {
    font-size: 1.2rem;
    color: #333;
}
.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.6em;
}

.search-form .form-control {
    border-radius: 50px 0 0 50px;
}
.search-form .btn {
    border-radius: 0 50px 50px 0;
}

.admin-link {
    font-weight: 700 !important;
    color: #d32f2f !important; /* A distinct color for admin links */
}

/* Custom button for Create Account */
.btn-create-account {
    background-color: #33691E !important; /* Deep green */
    border-color: #33691E !important;
    color: #fff !important;
}

.btn-create-account:hover {
    background-color: #1B5E20 !important; /* Even deeper green on hover */
    border-color: #1B5E20 !important;
}



/* Hero Section */
#hero-section .carousel-item {
    height: calc(100vh - 70px);
    min-height: 500px;
    background-size: cover;
    background-position: center;
}
#hero-section .carousel-item img {
    object-fit: cover;
    height: 100%;
}
.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}
.hero-text-overlay h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Categories Section */    
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 240px;
    height: 340px;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    color: var(--light-color);
    text-align: center;
}
.category-card-overlay h3 {
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.category-card-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}
.category-card:hover .category-card-overlay h3,
.category-card:hover .category-card-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Featured Products Section */
.bg-light {
    background-color: var(--secondary-color) !important;
}
.product-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}.product-image {
    position: relative;
}
.product-image img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
}
.product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}
.product-card.has-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.product-card.has-hover-effect:hover .product-overlay {
    opacity: 1;
}
.product-overlay .btn {
    margin: 0 5px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}
.product-card.has-hover-effect:hover .product-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}
.product-card.has-hover-effect:hover .product-overlay .btn:nth-child(2) {
    transition-delay: 0.1s;
}
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}
.product-badges .badge {
    margin-right: 5px;
}
.product-info {
    padding: 15px;
}
.product-info .brand {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
}
.product-info .product-name {
    font-size: 1rem;
    font-weight: 500;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-info .rating {
    color: #FFC107;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.product-info .price .current-price {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1.1rem;
}
.product-info .price .old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 0.9rem;
}
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.product-info .add-to-cart-form {
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
    visibility: hidden;
}
.product-card.has-hover-effect:hover .product-info .add-to-cart-form {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.product-actions-shop {
    margin-top: 10px;
}


/* Why Us Section */
.feature-box {
    transition: var(--transition);
    padding: 20px;
}
.feature-box:hover {
    transform: translateY(-5px);
}
.feature-box i {
    color: var(--bs-primary);
    transition: var(--transition);
}
.feature-box:hover i {
    transform: scale(1.2);
}

/* Special Offers */
.offer-banner {
    border-radius: var(--border-radius);
    padding: 40px;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.offer-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.3);
}
.offer-banner-1 { background-image: url('https://via.placeholder.com/800x400/c8e6c9/333?text=Sale'); }
.offer-banner-2 { background-image: url('https://via.placeholder.com/800x400/e8f5e9/333?text=New'); }
.offer-content {
    position: relative;
    z-index: 1;
}

/* Reviews Section */
.review-card {
    max-width: 700px;
    margin: auto;
    text-align: center;
    padding: 20px;
}
.review-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}
.customer-name {
    font-weight: 600;
    margin-top: 10px;
}
#reviews .carousel-control-prev-icon,
#reviews .carousel-control-next-icon {
    background-color: var(--bs-primary);
    border-radius: 50%;
    padding: 20px;
}

/* Newsletter */
#newsletter {
    background-color: var(--bs-primary);
}

/* Footer */
footer a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
}
footer a:hover {
    color: var(--light-color);
}
footer .text-primary {
    color: var(--bs-primary) !important;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 50px;
    text-align: center;
    padding: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 20px;
    }
    .search-form {
        margin-bottom: 15px;
        width: 100%;
    }
    .auth-buttons {
        width: 100%;
        display: flex;
    }
    .auth-buttons .btn {
        flex-grow: 1;
    }
}

/* Modal Customizations */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header.border-0 {
    padding-bottom: 0;
}

.btn-social {
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-google {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
}
.btn-google:hover {
    background-color: #f7f7f7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-facebook {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.btn-facebook:hover {
    background-color: #166fe5;
    color: #fff;
}
.divider-or {
    text-align: center;
    margin: 20px 0;
    color: #aaa;
    position: relative;
    overflow: hidden;
}
.divider-or span {
    display: inline-block;
    position: relative;
    padding: 0 15px;
    background-color: #fff;
    z-index: 1;
}
.divider-or::before, .divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50%;
    height: 1px;
    background-color: #ddd;
}
.divider-or::before {
    left: 0;
    margin-left: -15px;
}
.divider-or::after {
    right: 0;
    margin-right: -15px;
}

/* --- Multi-Step Form / Stepper --- */
.form-step { 
    display: none; 
    animation: slideInRight 0.5s forwards; 
}
.form-step.active { 
    display: block; 
}

/* Ensure non-active steps are hidden inside the modal */
.modal .form-step:not(.active) {
    display: none;
}

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutLeft { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.stepper { 
    display: flex; 
    justify-content: space-between; 
    position: relative;
}
.stepper .step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 25%;
}
.stepper .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
    border: 3px solid #e0e0e0;
}
.stepper .step.active .step-icon {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.stepper .step.completed .step-icon {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.stepper .step-label {
    font-size: 0.8rem;
    margin-top: 8px;
    color: #999;
}
.stepper .step.active .step-label, .stepper .step.completed .step-label {
    color: #333;
    font-weight: 500;
}
#stepper-progress {
    position: absolute;
    top: 20px;
    left: 12.5%;
    height: 4px;
    width: 0%;
    background-color: var(--bs-primary);
    z-index: 0;
    transition: width 0.4s ease;
}