/* style.css */
.card-img-top {
    width: 100%;
    height: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bg-card {
    background-color: rgb(255, 250, 200);
}

.numb {
    width:48px;
    height:48px;
    border-radius:50%;
    background-color:#dc3545;
    color:#fff;
    font-size:2rem;
}

#cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    #cart-icon {
        position: static; /* Повертаємо іконку в потік на мобільних */
    }
}

/* Pagination Styles */
.pagination .page-link {
    color: #dc3545;
}

.pagination .page-link:hover {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.header-image-container {
    width: 100%;
    height: 30vh;
    overflow: hidden;
}

.header-image-container img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .header-image-container {
        height: auto;
    }
}

/* Стилі для категорій */
.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.category-title {
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
    word-wrap: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* На мобільних пристроях - 2 колони */
@media (max-width: 767px) {
    #categories-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .category-title {
        font-size: 0.85rem;
    }
}

/* Стилі для відгуків */
.review-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.review-name {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.review-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#reviewsCarousel {
    margin: 0 auto;
}

/* Стилі для каруселі відгуків */
.carousel-item-3 {
    min-height: 300px;
}

/* На мобільних */
@media (max-width: 767px) {
    #reviewsCarousel .carousel-control-prev,
    #reviewsCarousel .carousel-control-next {
        display: block !important;
        width: auto;
        opacity: 1;
    }

    .review-card {
        padding: 1rem;
    }

    .review-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 0.9rem;
    }
}

/* На ПК */
@media (min-width: 768px) {
    #reviewsCarousel .carousel-control-prev,
    #reviewsCarousel .carousel-control-next {
        display: block !important;
        width: auto;
        opacity: 1;
    }
}


