/* Main CSS File */
:root {
    --primary-color: #D80621;
    --secondary-color: #da6b04;
    --accent-color: #800000;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --body-color: #f7f7f7;
    --text-color: #555555;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #db720f;
    border-color: #db720f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: #D80621; 
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #777;
}

/* Header Section */

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    text-decoration: none;
}

/* Hero section */

.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.hero-slider {
    position: relative;
}

.hero-slider .swiper-slide {
    padding: 20px 0;
}

.hero-content {
    padding-right: 50px;
    position: relative;
    z-index: 1;
}

.hero-content .subtitle {
    display: inline-block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #212529;
}

.hero-content p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Swiper Navigation Styles */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #dc3545;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 20px;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #dc3545;
    opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    text-decoration: none;
}

.maple-leaf {
    filter: drop-shadow(0 2px 4px rgba(227, 24, 55, 0.2));
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: var(--white);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #FFBE29;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.9rem;
    color: #777;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
}

.category-tabs .nav-pills {
    border-radius: 50px;
    overflow: hidden;
    display: inline-flex;
    background-color: var(--light-color);
    padding: 5px;
}

.category-tabs .nav-pills .nav-link {
    border-radius: 50px;
    padding: 10px 25px;
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 5px;
}

.category-tabs .nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Product Cards */
.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.product-card .badge-organic {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    z-index: 2;
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

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

.product-card .product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.product-card .product-actions a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: var(--transition);
    transform: translateX(50px);
    opacity: 0;
}

.product-card:hover .product-actions a {
    transform: translateX(0);
    opacity: 1;
}

.product-card .product-actions a:nth-child(1) {
    transition-delay: 0.1s;
}

.product-card .product-actions a:nth-child(2) {
    transition-delay: 0.2s;
}

.product-card .product-actions a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-category {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-card .product-title a {
    color: var(--dark-color);
}

.product-card .product-title a:hover {
    color: var(--primary-color);
}

.product-card .product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.product-card .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-card .product-rating {
    margin-bottom: 15px;
}

.product-card .product-rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.product-card .product-rating span {
    color: #777;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-card .add-to-cart {
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.product-card .add-to-cart:hover {
    background-color: var(--secondary-color);
}

/* Banner Section */
.banner-section {
    padding: 40px 0;
}

.banner-box {
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    padding: 30px;
}

.banner-box-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/banner-1.jpg') center/cover no-repeat;
}

.banner-box-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/banner-2.jpg') center/cover no-repeat;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.banner-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Bestseller Section */
.bestseller-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background-color: #f0f7e6;
}

.review-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
}

.review-box:hover {
    transform: translateY(-5px);
}

.review-box .rating {
    margin-bottom: 15px;
}

.review-box .rating i {
    color: #FFD700;
}

.review-box .review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.review-box .reviewer {
    display: flex;
    align-items: center;
}

.review-box .reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.review-box .reviewer h5 {
    margin-bottom: 0;
    font-size: 1rem;
}

.review-box .reviewer span {
    font-size: 0.8rem;
    color: #777;
}

/* Newsletter Section */
.newsletter-section {
    padding: 40px 0 80px;
}

.newsletter-box {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--white);
}

.newsletter-content h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 50px;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.newsletter-form .btn:hover {
    background-color: #e66f00;
    border-color: #e66f00;
}

/* Footer */
.footer {
    background-color: #222;
    color: #999;
    padding-top: 70px;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    margin-bottom: 20px;
}

.footer-widget .social-links {
    display: flex;
}

.footer-widget .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-widget .social-links a:hover {
    background-color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #999;
    transition: var(--transition);
    display: block;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-widget .contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.footer-widget .contact-info li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

.footer-widget .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-widget .gallery img {
    width: 100%;
    border-radius: 5px;
    transition: var(--transition);
}

.footer-widget .gallery img:hover {
    opacity: 0.8;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .hero-image {
        margin-top: 40px;
    }
    
    .banner-box {
        height: 200px;
    }
    
    .banner-content h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-content {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
    
    .category-tabs .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-tabs .nav-pills .nav-link {
        margin-bottom: 10px;
    }
    
    .review-box {
        margin-bottom: 20px;
    }
    
    .newsletter-box {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .banner-content h3 {
        font-size: 1.3rem;
    }
    
    .category-tabs .nav-pills .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Auth Pages */
.auth-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-card .auth-logo h2 span {
    color: var(--secondary-color);
}

.auth-card h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-control {
    height: 50px;
    border-radius: var(--border-radius);
}

.auth-card .btn-auth {
    height: 50px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    width: 100%;
    margin-bottom: 20px;
}

.auth-card .btn-auth:hover {
    background-color: #db720f;
    border-color: #db720f;
}

.auth-card .auth-footer {
    text-align: center;
}

.auth-card .auth-footer a {
    color: var(--primary-color);
}

.auth-card .social-login {
    margin-top: 20px;
    text-align: center;
}

.auth-card .social-login .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-card .social-login .divider::before,
.auth-card .social-login .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.auth-card .social-login .divider span {
    padding: 0 15px;
    color: #777;
}

.auth-card .social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.auth-card .social-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.auth-card .social-button.facebook {
    background-color: #3b5998;
}

.auth-card .social-button.google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    width: 100%;
    height: 48px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    justify-content: center;
    transition: var(--transition);
    gap: 10px;
}
.auth-card .social-button.google:hover {
    background-color: #f7f7f7;
    color: #222;
    border-color: #bbb;
}
.google-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.auth-card .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.auth-card .social-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

/* Shop Page */
.shop-section {
    padding: 80px 0;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-widget .form-check {
    margin-bottom: 10px;
}

.sidebar-widget .price-filter {
    margin-top: 20px;
}

.sidebar-widget .price-filter .slider {
    height: 5px;
    background-color: #ddd;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
}

.sidebar-widget .price-filter .slider .progress {
    height: 100%;
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 5px;
    left: 25%;
    right: 25%;
}

.sidebar-widget .price-filter .range-input {
    position: relative;
}

.sidebar-widget .price-filter .range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.sidebar-widget .price-filter .range-input input::-webkit-slider-thumb {
    height: 17px;
    width: 17px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: auto;
    -webkit-appearance: none;
}

.sidebar-widget .price-filter .price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.sidebar-widget .price-filter .price-inputs .field {
    width: 45%;
}

.sidebar-widget .price-filter .price-inputs input {
    width: 100%;
    height: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0 10px;
    text-align: center;
}

.sidebar-widget .btn-filter {
    width: 100%;
    margin-top: 20px;
}

.shop-topbar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-topbar .showing-result {
    font-size: 0.9rem;
    color: #777;
}

.shop-topbar .sort-by {
    display: flex;
    align-items: center;
}

.shop-topbar .sort-by label {
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.shop-topbar .sort-by select {
    height: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: 0 15px;
    width: 200px;
}

.shop-topbar .view-mode {
    display: flex;
    align-items: center;
}

.shop-topbar .view-mode a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    color: #777;
    margin-left: 10px;
}

.shop-topbar .view-mode a.active,
.shop-topbar .view-mode a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination {
    margin-top: 30px;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Product Detail Page */
.product-detail-section {
    padding: 80px 0;
}

.product-detail-images {
    position: relative;
    margin-bottom: 30px;
}

.product-detail-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.product-detail-badge.organic {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-detail-badge.sale {
    background-color: var(--secondary-color);
    color: var(--white);
}

.product-detail-main-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-detail-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.product-detail-main-image img.fade-out {
    opacity: 0;
}

.product-detail-main-image img.fade-in {
    opacity: 1;
}

.product-detail-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #D80621 #f9f9f9;
}

.product-detail-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-detail-thumbnails::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 3px;
}

.product-detail-thumbnails::-webkit-scrollbar-thumb {
    background-color: #D80621;
    border-radius: 3px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-thumb:hover {
    border-color: #D80621;
    opacity: 1;
}

.product-thumb.active {
    border-color: #D80621;
    opacity: 1;
}

.product-detail-info {
    padding-left: 30px;
}

.product-detail-category {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.product-detail-rating .stars {
    margin-right: 10px;
}

.product-detail-rating .stars i {
    color: #FFD700;
}

.product-detail-rating .reviews-count {
    color: #777;
    font-size: 0.9rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.product-detail-current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 15px;
}

.product-detail-stock {
    margin-bottom: 20px;
}

.product-detail-stock span {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-detail-stock .in-stock {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.product-detail-stock .out-of-stock {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.product-detail-description {
    margin-bottom: 30px;
}

.product-detail-description p {
    color: #666;
    line-height: 1.7;
}

.product-detail-variations {
    margin-bottom: 30px;
}

.product-detail-variations .variation {
    margin-bottom: 15px;
}

.product-detail-variations .variation-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-detail-variations .variation-options {
    display: flex;
    gap: 10px;
}

.product-detail-variations .variation-option {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.product-detail-variations .variation-option.active,
.product-detail-variations .variation-option:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.product-detail-quantity .quantity-input {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.product-detail-quantity .quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.product-detail-quantity .quantity-btn:hover {
    background-color: #e0e0e0;
}

.product-detail-quantity .quantity-input input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.product-detail-quantity .quantity-input input::-webkit-outer-spin-button,
.product-detail-quantity .quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-detail-actions .btn {
    padding: 12px 25px;
}

.product-detail-actions .btn-wishlist,
.product-detail-actions .btn-compare {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.product-detail-actions .btn-wishlist:hover,
.product-detail-actions .btn-compare:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

.product-detail-meta {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-detail-meta p {
    margin-bottom: 10px;
}

.product-detail-meta span {
    font-weight: 600;
    margin-right: 10px;
}

.product-detail-meta a {
    color: var(--primary-color);
}

.product-detail-meta a:hover {
    text-decoration: underline;
}

.product-detail-tabs {
    margin-top: 60px;
}

.product-detail-tabs .nav-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.product-detail-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--dark-color);
}

.product-detail-tabs .nav-link.active,
.product-detail-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.product-detail-tab-content {
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

.product-detail-tab-content h4 {
    margin-bottom: 20px;
}

.product-specs-table {
    width: 100%;
}

.product-specs-table tr {
    border-bottom: 1px solid #eee;
}

.product-specs-table tr:last-child {
    border-bottom: none;
}

.product-specs-table th,
.product-specs-table td {
    padding: 12px 15px;
}

.product-specs-table th {
    font-weight: 600;
    width: 200px;
}

.product-review {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.product-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.product-review-author {
    display: flex;
    align-items: center;
}

.product-review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.product-review-author h5 {
    margin-bottom: 5px;
}

.product-review-date {
    font-size: 0.9rem;
    color: #777;
}

.product-review-rating {
    color: #FFD700;
}

.product-review-content p {
    margin-bottom: 0;
}

.review-form {
    margin-top: 30px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form .star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.review-form .star-rating input {
    display: none;
}

.review-form .star-rating label {
    cursor: pointer;
    font-size: 25px;
    color: #ddd;
    margin: 0 5px;
}

.review-form .star-rating :checked ~ label,
.review-form .star-rating label:hover,
.review-form .star-rating label:hover ~ label {
    color: #FFD700;
}

/* Cart Page */
.cart-section {
    padding: 80px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--dark-color);
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.cart-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-product-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-product-info .remove-product {
    color: var(--danger);
    font-size: 0.9rem;
}

.cart-product-price {
    font-weight: 600;
    color: var(--dark-color);
}

.cart-quantity {
    display: flex;
    align-items: center;
}

.cart-quantity .quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cart-quantity input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
    -moz-appearance: textfield;
}

.cart-quantity input::-webkit-outer-spin-button,
.cart-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-total {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-action {
    text-align: right;
}

.cart-action a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: var(--dark-color);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.cart-action a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cart-summary {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.cart-coupon {
    margin-top: 30px;
}

.cart-coupon h5 {
    margin-bottom: 15px;
}

.cart-coupon .input-group {
    margin-bottom: 20px;
}

.cart-coupon .form-control {
    height: 50px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.cart-coupon .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    height: 50px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 15px;
    font-weight: 600;
}

/* Checkout Page */
.checkout-section {
    padding: 80px 0;
}

.checkout-form h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    font-weight: 500;
    margin-bottom: 8px;
}

.checkout-form .form-control {
    height: 50px;
    border-radius: var(--border-radius);
}

.checkout-form textarea.form-control {
    height: 120px;
}

.checkout-form .form-check {
    margin-bottom: 10px;
}

.checkout-form .shipping-toggle {
    margin: 20px 0;
}

.payment-methods {
    margin-top: 30px;
}

.payment-method {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
}

.payment-method-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.payment-method-header .form-check-input {
    margin-right: 10px;
}

.payment-method-header label {
    margin-bottom: 0;
    font-weight: 600;
}

.payment-method-content {
    padding-left: 25px;
    display: none;
}

.payment-method-content.active {
    display: block;
}

.payment-method-content p {
    margin-bottom: 15px;
    color: #666;
}

.payment-method-content .card-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.order-summary {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
}

.order-summary h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-summary-products {
    margin-bottom: 20px;
}

.order-product {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-product:last-child {
    border-bottom: none;
}

.order-product-name {
    display: flex;
}

.order-product-name span {
    color: #777;
    margin-left: 5px;
}

.order-product-total {
    font-weight: 600;
}

.order-summary-totals {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.order-summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
    color: var(--primary-color);
}

.place-order-btn {
    width: 100%;
    padding: 15px;
    font-weight: 600;
    margin-top: 20px;
}

/* User Dashboard */
.dashboard-section {
    padding: 80px 0;
}

.dashboard-sidebar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dashboard-user {
    padding: 30px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.dashboard-user .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.dashboard-user .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-user h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.dashboard-user p {
    opacity: 0.9;
    margin-bottom: 0;
}

.dashboard-menu {
    padding: 20px 0;
}

.dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 5px;
}

.dashboard-menu li a {
    display: block;
    padding: 10px 30px;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.dashboard-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-menu li a:hover,
.dashboard-menu li a.active {
    background-color: rgba(130, 180, 64, 0.1);
    color: var(--primary-color);
}

.dashboard-menu li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary-color);
}

.dashboard-menu li.logout a {
    color: var(--danger);
}

.dashboard-menu li.logout a:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.dashboard-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
}

.dashboard-content .content-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-content .content-title h3 {
    margin-bottom: 0;
}

.dashboard-card {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.dashboard-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.dashboard-card:hover h4,
.dashboard-card:hover .dashboard-card-icon {
    color: var(--white);
}

.dashboard-card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dashboard-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.dashboard-card p {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.order-table,
.wishlist-table,
.product-table,
.customer-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.wishlist-table th,
.product-table th,
.customer-table th {
    padding: 15px;
    text-align: left;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--dark-color);
}

.order-table td,
.wishlist-table td,
.product-table td,
.customer-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: 600;
    color: var(--primary-color);
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
}

.order-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.order-status.processing {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info);
}

.order-status.shipped {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.order-status.delivered {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.order-status.cancelled {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.action-btn {
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-btn {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.view-btn:hover {
    background-color: #007bff;
    color: var(--white);
}

.edit-btn {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.edit-btn:hover {
    background-color: var(--success);
    color: var(--white);
}

.delete-btn {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.delete-btn:hover {
    background-color: var(--danger);
    color: var(--white);
}

.profile-form .avatar-upload {
    text-align: center;
    margin-bottom: 30px;
}

.profile-form .avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 5px solid rgba(130, 180, 64, 0.2);
    overflow: hidden;
}

.profile-form .avatar-upload .avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form .form-control {
    height: 50px;
    border-radius: var(--border-radius);
}

.profile-form .btn-save {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
}

/* Admin Dashboard */
.admin-dashboard {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background-color: var(--white);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-logo span {
    color: var(--secondary-color);
}

.admin-header-right {
    display: flex;
    align-items: center;
}

.admin-header-right .notification {
    position: relative;
    margin-right: 20px;
}

.admin-header-right .notification i {
    font-size: 1.2rem;
    color: var(--dark-color);
}

.admin-header-right .notification .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: var(--white);
    font-size: 0.6rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header-right .admin-user {
    display: flex;
    align-items: center;
}

.admin-header-right .admin-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.admin-header-right .admin-user span {
    font-weight: 500;
}

.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    transition: var(--transition);
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar.collapsed .menu-title,
.admin-sidebar.collapsed .menu-arrow {
    display: none;
}

.admin-sidebar.collapsed .admin-menu-item {
    text-align: center;
    padding: 15px;
}

.admin-sidebar.collapsed .admin-menu-item i {
    margin-right: 0;
}

.admin-toggle {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-menu {
    padding: 20px 0;
    height: 100%;
    overflow-y: auto;
}

.admin-menu-category {
    padding: 0 20px;
    margin: 20px 0 10px;
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-menu-item {
    display: block;
    padding: 12px 20px;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.admin-menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-menu-item .menu-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background-color: rgba(130, 180, 64, 0.1);
    color: var(--primary-color);
}

.admin-menu-item.active .menu-arrow {
    transform: translateY(-50%) rotate(90deg);
}

.admin-submenu {
    padding-left: 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.admin-submenu.show {
    max-height: 500px;
}

.admin-submenu-item {
    display: block;
    padding: 8px 15px;
    color: #666;
    transition: var(--transition);
}

.admin-submenu-item:hover,
.admin-submenu-item.active {
    color: var(--primary-color);
}

.admin-main {
    margin-left: 250px;
    padding: 90px 30px 30px;
    transition: var(--transition);
}

.admin-main.expanded {
    margin-left: 70px;
}

.admin-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.admin-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-card-header h4 {
    margin-bottom: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.admin-stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.admin-stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    opacity: 0.1;
    color: var(--primary-color);
}

.admin-stat-card h5 {
    font-size: 1rem;
    color: #777;
    margin-bottom: 10px;
}

.admin-stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.admin-stat-card p {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    
    font-size: 0.9rem;
}

.admin-stat-card p i {
    margin-right: 5px;
}

.admin-stat-card p.up {
    color: var(--success);
}

.admin-stat-card p.down {
    color: var(--danger);
}

.admin-chart {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.admin-chart h4 {
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: var(--dark-color);
}

.admin-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.admin-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    font-weight: 500;
    margin-bottom: 8px;
}

.admin-form .form-control {
    height: 45px;
    border-radius: var(--border-radius);
}

.admin-form textarea.form-control {
    height: 120px;
}

.admin-form .input-group-text {
    background-color: #f8f9fa;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.admin-form .image-preview {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.admin-form .image-preview img {
    max-width: 100%;
    max-height: 100%;
}

.admin-form .btn-save {
    padding: 10px 25px;
    margin-top: 20px;
}

.admin-report-filters {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.admin-report-filters .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.admin-report-filters .form-group {
    padding: 0 10px;
    margin-bottom: 0;
    flex: 1;
}

.admin-report-filters .btn {
    height: 45px;
}

.admin-view-order .order-info {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.admin-view-order .order-info-item {
    margin-bottom: 15px;
}

.admin-view-order .order-info-item:last-child {
    margin-bottom: 0;
}

.admin-view-order .order-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.admin-view-order .order-status-update {
    margin-top: 30px;
}

.admin-view-order .order-status-update select {
    margin-right: 10px;
}

/* Responsive styles for admin dashboard */
@media (max-width: 991px) {
    .admin-sidebar {
        width: 70px;
    }
    
    .admin-sidebar .menu-title,
    .admin-sidebar .menu-arrow {
        display: none;
    }
    
    .admin-sidebar .admin-menu-item {
        text-align: center;
        padding: 15px;
    }
    
    .admin-sidebar .admin-menu-item i {
        margin-right: 0;
    }
    
    .admin-main {
        margin-left: 70px;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .admin-header {
        padding: 15px;
    }
    
    .admin-main {
        padding: 85px 15px 15px;
    }
    
    .admin-card {
        padding: 15px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-header-right .admin-user span {
        display: none;
    }
    
    .admin-report-filters .form-row {
        flex-direction: column;
    }
    
    .admin-report-filters .form-group {
        margin-bottom: 15px;
    }
}

/* Account Verification Styles */
.verification-section {
    padding: 100px 0;
    text-align: center;
}

.verification-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
}

.verification-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
}

.verification-icon.error {
    color: var(--danger);
}

.verification-box h2 {
    margin-bottom: 20px;
}

.verification-box p {
    margin-bottom: 30px;
    color: #666;
}

.verification-box .btn {
    padding: 12px 30px;
}

/* 404 Page */
.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-box {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-box p {
    margin-bottom: 30px;
    color: #666;
}

.error-box .btn {
    padding: 12px 30px;
}

/* Bestseller Section */
.bestseller-section {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

.bestseller-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0; /* Reduced padding */
}

.bestseller-container::before,
.bestseller-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.bestseller-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.bestseller-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.bestseller-slider {
    display: flex;
    gap: 10px; /* Reduced gap between slides */
    animation: scroll 30s linear infinite;
    width: max-content;
}

.bestseller-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.product-card {
    flex: 0 0 260px; /* Slightly reduced card width */
    max-width: 260px;
    margin: 0;
    transform: translateZ(0);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/*--------------The Landing page UI update started here----------*/
.hero-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

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

.hero-content .subtitle {
    display: inline-block;
    background-color: rgba(216, 6, 33, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite alternate;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-card {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--white);
}

.category-content span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.promo-section {
    padding: 80px 0;
}

.promo-card {
    height: 300px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: var(--white);
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.why-us-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.why-us-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(216, 6, 33, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.why-us-card h4 {
    margin-bottom: 15px;
}

.why-us-card p {
    color: #666;
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .category-card {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .promo-card {
        height: 250px;
    }
    
    .promo-content h3 {
        font-size: 1.5rem;
    }
}

/*---------Landing page UI updated---------*/

/*----Navbar UI update-----*/
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    text-decoration: none;
}

.nav-link {
    color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

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

.dropdown-menu {
    min-width: 200px;
    margin-top: 10px;
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 8px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--primary-color);
}

.btn-link {
    text-decoration: none;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.badge {
    font-size: 0.65rem;
    padding: 0.35em 0.65em;
}

/* Search Modal */
#searchModal .modal-content {
    border-radius: var(--border-radius);
}

#searchModal .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    padding: 12px 20px;
}

#searchModal .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* User Dropdown */
.dropdown-menu {
    min-width: 220px;
    padding: 8px;
}

.dropdown-header {
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 16px;
}

.dropdown-item {
    border-radius: var(--border-radius);
    margin: 2px 0;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0 1rem;
    }
}

/* Brand sliderS */

.trusted-brands-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.trusted-brands-slider {
    padding: 20px 0;
}

.trusted-brands-slider .swiper-slide {
    text-align: center;
    transition: transform 0.3s ease;
}

.trusted-brands-slider .swiper-slide:hover {
    transform: scale(1.1);
}

.trusted-brands-slider img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

/* Floating whatsapp button */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* FAQ Section */

.faq-section {
    background-color: #f8f9fa;
}

.faq-section .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
}

.faq-section .accordion-button {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: #2c3e50;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #d80621;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(216, 6, 33, 0.2);
}

.faq-section .accordion-button::after {
    background-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    transition: all 0.3s ease;
}

.faq-section .accordion-body {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    padding: 1.25rem;
}

.faq-section .accordion-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.faq-section .accordion-body ul li {
    margin-bottom: 0.5rem;
}

.faq-section .accordion-body ul li:last-child {
    margin-bottom: 0;
}

/* About us section */

.about-hero {
    padding: 80px 0;
}

.about-hero h1 {
    color: #EB7400;
    line-height: 1.2;
}

.about-hero .lead {
    color: #666;
    font-size: 1.2rem;
}

.about-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f6edef !important;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.stats-section {
    background: linear-gradient(45deg, #EB7400, #ff4b5a);
}

.stats-section .display-4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Add these styles to your existing CSS */

.contact-section {
    background-color: #f8f9fa;
}

.contact-section .card {
    transition: transform 0.3s ease;
}

.contact-section .card:hover {
    transform: translateY(-5px);
}

.contact-section .btn-success {
    background-color: #25D366;
    border-color: #25D366;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.contact-section .btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* Center featured products on mobile */
@media (max-width: 767px) {
  .featured-section .row.g-4 {
    justify-content: center !important;
  }
  .featured-section .product-card {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.hero-blob-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  width: 700px;
  height: 700px;
  overflow: visible;
  transition: opacity 0.3s;
}

.hero-blob-bg-1 {
  top: -120px;
  left: -200px;
  animation: blob1move 60s linear infinite alternate;
}

.hero-blob-bg-2 {
  bottom: -180px;
  right: -220px;
  animation: blob2move 80s linear infinite alternate;
}

@keyframes blob1move {
  0%   { top: -120px; left: -200px; }
  50%  { top: 80px; left: 60vw; }
  100% { top: -120px; left: -200px; }
}

@keyframes blob2move {
  0%   { bottom: -180px; right: -220px; }
  50%  { bottom: 100px; right: 60vw; }
  100% { bottom: -180px; right: -220px; }
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 6px 12px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  position: relative;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  flex: 1;
  padding: 12px 16px;
  border-radius: 40px;
  color: #333;
  min-width: 0;
}

.search-input::placeholder {
  color: #888;
  opacity: 1;
}

.search-btn {
  background: var(--primary-color, #D80621);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-left: 8px;
  transition: background 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.search-btn:hover, .search-btn:focus {
  background: #b0051a;
}

@media (max-width: 600px) {
  .search-bar {
    max-width: 95vw;
    padding: 4px 6px;
  }
  .search-input {
    font-size: 1rem;
    padding: 10px 10px;
  }
  .search-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-left: 4px;
  }
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 90px;
    z-index: 999;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    opacity: 0.7;
}
#backToTopBtn:hover {
    background: var(--secondary-color);
    transform: translateY(-4px) scale(1.08);
    opacity: 1;
}

@media (max-width: 600px) {
  .shop-section .row {
    justify-content: center !important;
  }
  .shop-section .product-card {
    margin-left: auto;
    margin-right: auto;
    float: none;
  }
}

/* Featured Products Animation */
.featured-products-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.featured-products-scroll {
    display: flex;
    align-items: stretch;
    animation: scroll 120s linear infinite;
    width: fit-content;
}

.featured-products-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate products for seamless loop */
.featured-products-scroll .product-card {
    flex: 0 0 auto;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    min-height: 410px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.featured-products-scroll .product-title,
.featured-products-scroll .product-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .featured-products-scroll .product-card {
    width: 60vw;
    min-width: 60vw;
    max-width: 60vw;
    min-height: 390px;
  }
}

/* Ensure smooth animation */
.featured-products-scroll {
    will-change: transform;
}

.product-description {
    line-height: 1.6;
    color: #666;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.product-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.admin-table .action-btn:not(:last-child) {
    margin-right: 10px;
}

.admin-table .action-btn {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 767.98px) {
  .related-products-row {
    justify-content: flex-start !important;
  }
  .related-products-row > div {
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    display: block;
  }
}

.related-products-row .product-card {
  width: 260px;
  min-height: 430px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.related-products-row .product-card .product-image {
  height: 200px;
  flex-shrink: 0;
}
.related-products-row .product-card .product-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 767.98px) {
  .related-products-row .product-card {
    width: 100%;
    min-height: 430px;
  }
}

/* Admin Dashboard */
.admin-dashboard {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Search Form Styles */
.search-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-form .input-group {
    max-width: 600px;
}

.search-form .form-control {
    border-right: 0;
}

.search-form .btn {
    padding: 0.375rem 1rem;
}

.search-form .btn-outline-secondary {
    border-color: #ced4da;
}

.search-form .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
}

.toast.success .toast-content i {
    color: #28a745;
}

.toast.error .toast-content i {
    color: #dc3545;
}

.toast-content span {
    color: #333;
    font-size: 14px;
}

/* Modern Price Filter Styles */
.price-filter-modern {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 18px 16px 10px 16px;
}
.min-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #d80621;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  margin-bottom: 2px;
}
.min-label, .max-label {
  font-size: 0.95em;
  color: #444;
  font-weight: 500;
  margin-bottom: 2px;
}
.min-value {
  font-size: 1.1em;
  font-weight: 600;
  color: #222;
}
.max-input-single {
  width: 80px;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid #eee;
  background: #fafbfc;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: none;
  transition: border 0.2s;
}
.max-input-single:focus {
  border: 1.5px solid #d80621;
  outline: none;
}
.max-range-single {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  outline: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
}
.max-range-single::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.max-range-single:focus::-webkit-slider-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.max-range-single::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.max-range-single:focus::-moz-range-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.max-range-single::-ms-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.max-range-single:focus::-ms-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.max-range-single::-webkit-slider-runnable-track {
  height: 6px;
  background: #eee;
  border-radius: 6px;
}
.max-range-single::-ms-fill-lower,
.max-range-single::-ms-fill-upper {
  background: #eee;
}
.max-range-single:focus {
  outline: none;
  box-shadow: none;
}

/* --- Improved alignment: slider handles centered on red progress bar --- */
.slider-modern {
  height: 32px;
  position: relative;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  background: none;
}
/* Remove .progress bar entirely */
.slider-modern .progress { display: none !important; }
.range-input-modern {
  position: relative;
  height: 32px;
}
.range-input-modern input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, #eee 0% var(--min,0%), #d80621 var(--min,0%) var(--max,100%), #eee var(--max,100%) 100%);
  border-radius: 6px;
  outline: none;
  margin: 0;
  padding: 0;
  z-index: 2;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.range-input-modern input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  pointer-events: auto;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 0;
  transform: none;
}
.range-input-modern input[type=range]:focus::-webkit-slider-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.range-input-modern input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 6px;
}
.range-input-modern input[type=range]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  pointer-events: auto;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 0;
  transform: none;
}
.range-input-modern input[type=range]:focus::-moz-range-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.range-input-modern input[type=range]::-ms-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #d80621;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(216,6,33,0.18);
  pointer-events: auto;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  top: 0;
  transform: none;
}
.range-input-modern input[type=range]:focus::-ms-thumb {
  background: #b0051a;
  box-shadow: 0 4px 16px rgba(216,6,33,0.22);
}
.range-input-modern input[type=range]:focus {
  outline: none;
  box-shadow: none;
}
