:root {
    --primary-color: #E31937;
    --primary-dark: #c1122f;
    --secondary-color: #000000;
    --accent-color: #FFFFFF;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #212529;
    --text-light: #6c757d;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Modern Navigation */
.navbar {
    padding: 20px 0;
    background: var(--accent-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-brand:hover {
    transform: scale(1.03);
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    outline: none !important;
    box-shadow: none !important;
}

/* Hero Carousel - Modernized */
.hero-carousel .carousel-item {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Makes the image fill without stretching */
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-md);
}

.hero-carousel .carousel-caption {
    position: absolute;
    bottom: 20%;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.carousel-caption {
    bottom: 30%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 8px;
    border: 2px solid var(--accent-color);
    transition: var(--transition);
}

.carousel-indicators .active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Modern Product Cards */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 2.2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title:hover:after {
    width: 100px;
}

.product-card {
    background: var(--accent-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
    border: none;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card-img-container {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.product-card-img-container:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover .product-card-img-container:before {
    height: 8px;
}

.product-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-card-img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
    font-weight: 700;
    transition: var(--transition);
}

.product-card:hover .product-card-title {
    color: var(--primary-color);
}

.product-card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-card-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: block;
}

.product-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
    z-index: 3;
}

/* Modern Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:before {
    width: 100%;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.features-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.03;
}

.feature-box {
    text-align: center;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}

.feature-box:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-box:hover:after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(227, 25, 55, 0.2);
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.feature-box p {
    color: var(--text-light);
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.05;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
}

.footer-links a:before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 30px;
}

.footer-links a:hover:before {
    opacity: 1;
    left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 50px;
    text-align: center;
    color: #8f8f8f;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-primary);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(227, 25, 55, 0.35);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.floating-cta:hover {
    transform: scale(1.1) translateY(-5px);
    animation: none;
    box-shadow: 0 10px 30px rgba(227, 25, 55, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-carousel {
        height: 500px;
    }
    .carousel-caption {
        padding: 20px;
    }
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 450px;
    }
    .carousel-caption {
        bottom: 20%;
        padding: 15px;
    }
    .carousel-caption h1 {
        font-size: 2rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 400px;
    }
    .carousel-caption {
        bottom: 15%;
    }
    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .carousel-caption .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
.cofe-pagination .page-link {
    border: none;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0 4px;
    border-radius: 0.75rem;
    padding: 10px 16px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cofe-pagination .page-link:hover {
    background: var(--gradient-primary);
    color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.cofe-pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.cofe-pagination .page-item.disabled .page-link {
    background-color: var(--medium-gray);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}
/* Equal height cards */
.row-cards {
    display: flex;
    flex-wrap: wrap;
}

.row-cards > .col-lg-3,
.row-cards > .col-md-4,
.row-cards > .col-sm-6 {
    display: flex;
}

.product-card {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure full width */
    height: 100%; /* Take full height of column */
}

.product-card-body {
    flex: 1; /* Make body take remaining space */
    display: flex;
    flex-direction: column;
}

.product-card-desc {
    flex-grow: 1; /* Make description expand */
}

.price-button-container {
    margin-top: auto; /* Push to bottom */
}
.product-card-img-container {
    min-height: 240px; /* Consistent height */
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.product-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.thumbnail:hover {
    border-color: #0d6efd;
}

.rating-input .fa-star {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-selector .btn {
    width: 40px;
}

.review-item {
    transition: background-color 0.2s;
}

.review-item:hover {
    background-color: #f8f9fa;
}

.cofe-pagination .page-item .page-link {
    color: #0d6efd;
    border-radius: 4px;
    margin: 0 3px;
}

.cofe-pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}