:root {
    --primary: #FF6B35;
    --secondary: #2EC4B6;
    --light-bg: #F8F9FA;
    --dark-text: #343A40;
    --body-text: #495057;
    --accent: #FFD166;
    --white: #FFFFFF;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--body-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark-text);
}

.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1020;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.btn--cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Desktop: cart button styling */
@media (min-width: 992px) {
    .btn--cart {
        margin-left: 1rem;
    }
}

#cartCount {
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: var(--fw-extrabold);
}


.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

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

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e05a2b;
    border-color: #e05a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
   
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/images/index/hero.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    padding: 2rem;
    border-radius: 10px;
}

/* Hero Badge - Gelaterie */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.hero-badge__icon {
    font-size: 1.5rem;
    animation: rotate-icon 3s ease-in-out infinite;
}

.hero-badge__text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.hero-badge__text strong {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.125rem;
}

.hero-badge__arrow {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.hero-badge:hover .hero-badge__arrow {
    transform: translateX(5px);
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
    }
}

@keyframes rotate-icon {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-content .btn {
    min-width: 200px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-padding {
    padding: 100px 0;
}

.bg-light-custom {
    background-color: var(--light-bg);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-description {
    color: var(--body-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonial-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: var(--body-text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--dark-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--body-text);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .testimonial-box {
        padding: 1.5rem;
    }
    
    .testimonial-stars {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-author strong {
        font-size: 1rem;
    }
    
    .testimonial-author span {
        font-size: 0.85rem;
    }
}

.delivery-area-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.delivery-area-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-text {
    color: var(--body-text);
}

.footer {
    background-color: var(--dark-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-text {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 3rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e05a2b;
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero badge responsive */
    .hero-badge {
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-badge__icon {
        font-size: 1.25rem;
    }
    
    .hero-badge__text {
        font-size: 0.875rem;
    }
    
    .hero-badge__text strong {
        font-size: 0.9375rem;
    }
    
    /* Hero buttons - stack vertically on mobile */
    .hero-content .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem auto !important;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-content .btn:last-child {
        margin-bottom: 0 !important;
    }
    
    .section-padding {
        padding: 70px 0;
    }
}


@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero badge responsive - smaller screens */
    .hero-badge {
        padding: 0.625rem 1rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-badge__icon {
        font-size: 1.125rem;
    }
    
    .hero-badge__text {
        font-size: 0.8125rem;
    }
    
    .hero-badge__text strong {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .hero-badge__arrow {
        font-size: 0.75rem;
    }
    
    /* Hero buttons - stack vertically on mobile */
    .hero-content .btn {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0 !important;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-content .btn:last-child {
        margin-bottom: 0 !important;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    /* Cart button on mobile - smaller, more compact */
    .btn--cart {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.875rem !important;
        margin-right: 0.5rem !important;
    }
    
    #cartCount {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    
    /* Footer responsive fixes */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-links {
        font-size: 0.875rem;
    }
}

/* ========================================
   Gallery Carousel Section
   ======================================== */

.gallery-carousel {
    padding: var(--spacing-2xl) 0;
    background: var(--color-background);
    overflow: hidden;
}

.gallery-carousel__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.gallery-carousel__title {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.gallery-carousel__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-300px * 21));
    }
}

.slider {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    
    &::before,
    &::after {
        content: "";
        height: 100%;
        position: absolute;
        width: 150px;
        z-index: 2;
        pointer-events: none;
    }
    
    &::after {
        right: 0;
        top: 0;
        background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }

    &::before {
        left: 0;
        top: 0;
        background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }
}

.slide-track {
    animation: scroll 120s linear infinite;
    display: flex;
    width: calc(300px * 42);
}

.slide {
    height: 250px;
    width: 300px;
    padding: 0 8px;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-carousel__title {
        font-size: 2rem;
    }

    .slide {
        height: 200px;
        width: 250px;
    }
    
    .slide-track {
        width: calc(250px * 42);
    }
    
    @keyframes scroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-250px * 21));
        }
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 40px;
    }
    
    /* Cart button on very small screens - even more compact */
    .btn--cart {
        font-size: 0.8125rem !important;
        padding: 0.4rem 0.7rem !important;
        margin-right: 0.4rem !important;
    }
    
    #cartCount {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .slide {
        height: 180px;
        width: 220px;
    }
    
    .slide-track {
        width: calc(220px * 42);
    }
    
    @keyframes scroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-220px * 21));
        }
    }
}

/* ========================================
   CART SIDEBAR - INDEX.HTML SPECIFIC FIX
   ======================================== */
/* Fix pentru cart să apară peste navbar în index.html */
.cart-overlay {
    z-index: 2050 !important;
}

.cart-sidebar {
    z-index: 2051 !important;
}

/* Pe mobil, asigurăm că butonul X de închidere este vizibil */
@media (max-width: 768px) {
    .cart-sidebar__header {
        position: relative;
        z-index: 2052;
    }
    
    .cart-sidebar__close {
        position: relative;
        z-index: 2053;
    }
}


/* ===================================
   REVIEWS SECTION
   ================================== */

   .reviews {
    padding: 6rem 0;
    background: linear-gradient(135deg, #fef5f8 0%, #fff 100%);
    width: 100%;
    overflow: hidden;
}

.reviews__container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.reviews__title-wrapper {
    flex: 1;
}

.reviews__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.reviews__rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews__stars {
    font-size: 1.25rem;
    line-height: 1;
}

.reviews__rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.reviews__rating-text span {
    font-weight: 600;
    color: #111827;
}

.reviews__write-btn {
    background: #ff6f00 !important;
    border: none !important;
    white-space: nowrap;
}

.reviews__write-btn:hover {
    background: #db5f00 !important;
    color: white !important;
}

.reviews__carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 2rem 0;
}

.reviews__carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease-in-out;
    padding: 0 2rem;
}

.review-card {
    min-width: 300px;
    max-width: 300px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #fa710e;
}

.review-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-card__logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card__stars {
    font-size: 1rem;
    line-height: 1;
    color: #fbbf24;
}

.review-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.25rem;
    min-height: 80px;
}

.review-card__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    display: block;
    flex-shrink: 0;
}

.review-card__avatar--fallback {
    background: linear-gradient(135deg, #d7661a 0%, #d9781d 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    border-color: #ea7725;
}

.review-card__author-info {
    flex: 1;
}

.review-card__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
}

.review-card__date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reviews__nav:hover {
    background: #d46d12;
    border-color: #e9700d;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(160, 18, 72, 0.3);
}

.reviews__nav--prev {
    left: 1rem;
}

.reviews__nav--next {
    right: 1rem;
}

@media (max-width: 1024px) {
    .reviews__carousel {
        gap: 1rem;
    }
    
    .review-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .reviews__nav--prev {
        left: 1rem;
    }
    
    .reviews__nav--next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 4rem 0;
    }
    
    .reviews__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }
    
    .reviews__write-btn {
        width: 100%;
        text-align: center;
    }
    
    .reviews__carousel {
        padding: 0 1rem;
    }
    
    .review-card {
        min-width: 260px;
        max-width: 260px;
        padding: 1.25rem;
    }
    
    .reviews__nav {
        width: 44px;
        height: 44px;
    }
    
    .reviews__nav--prev {
        left: 0.5rem;
    }
    
    .reviews__nav--next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .reviews__carousel {
        padding: 0 0.5rem;
    }
    
    .review-card {
        min-width: 240px;
        max-width: 240px;
        padding: 1rem;
    }
    
    .review-card__text {
        min-height: 60px;
        font-size: 0.8125rem;
    }
    
    .reviews__nav {
        width: 40px;
        height: 40px;
    }
}



.footer__credit {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.footer__credit a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer__credit a:hover {
    opacity: 1;
}

.footer__legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal a {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.footer__legal img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .footer__legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer__legal img {
        width: 150px !important;
    }
}
