.product-gallery-container {
    position: sticky;
    top: 110px;
    z-index: 900;
}

.main-swiper {
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    margin-bottom: 20px;
}

.main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
}

.thumb-swiper {
    height: 80px;
    box-sizing: border-box;
    padding: 10px 0;
}

.thumb-swiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}

.thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumb-swiper .swiper-slide-thumb-active img {
    border-color: var(--primary-orange);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-orange) !important;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.toast-container {
    z-index: 9999;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
}

@media (max-width: 768px) {
    .product-gallery-container {
        position: relative;
        top: 0;
    }
    .main-swiper .swiper-slide img {
        max-height: 350px;
    }
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ccc' class='bi bi-star-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.387.197-.855-.171-.77-.635l.999-4.583L.322 6.51a.5.5 0 0 1 .275-.855l4.606-.668L7.248.653a.5.5 0 0 1 .896 0l2.045 4.334 4.606.669a.5.5 0 0 1 .275.855l-3.326 3.215.999 4.583c.084.464-.383.832-.77.635L8 13.147l-4.388 2.296z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffc107' class='bi bi-star-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3.612 15.443c-.387.197-.855-.171-.77-.635l.999-4.583L.322 6.51a.5.5 0 0 1 .275-.855l4.606-.668L7.248.653a.5.5 0 0 1 .896 0l2.045 4.334 4.606.669a.5.5 0 0 1 .275.855l-3.326 3.215.999 4.583c.084.464-.383.832-.77.635L8 13.147l-4.388 2.296z'/%3E%3C/svg%3E");
}
.star-rating label:hover {
    transform: scale(1.2);
}

.attributes-box {
    background: #f8fbff !important;
    border: 1px solid #e1e9f4 !important;
}

.qty-btn {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

#qty-input::-webkit-inner-spin-button,
#qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-card-modern {
    border-radius: 2rem !important;
    overflow: visible;
    background: white;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 140, 0, 0.15),
        0 0 20px rgba(255, 215, 0, 0.2) !important;
}

.product-card-modern .card-img-top {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-card-modern:hover .card-img-top {
    transform: scale(1.1);
}

.honey-price-tag {
    display: inline-flex;
    align-items: center;
    background: var(--accent-gradient);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px 6px 20px 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.25);
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.product-card-modern:hover .honey-price-tag {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.honey-price-tag .currency {
    font-size: 0.7rem;
    margin-right: 1px;
    opacity: 0.9;
}

.honey-price-tag .amount {
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .container.py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .product-title {
        font-size: 2.5rem !important;
    }

    .product-price {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .product-desc {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    .attributes-box {
        padding: 1.5rem !important;
    }

    .cart-actions-row .col-12 {
        margin-bottom: 0.5rem;
    }

    .quantity-group {
        width: 100% !important;
        max-width: 200px;
    }

    .qty-btn {
        height: 44px;
    }

    .main-action-btn {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        font-size: 1.05rem;
        width: 100% !important;
        max-width: 320px !important;
        display: block !important;
        margin: 0.5rem auto !important;
    }

    .sticky-top {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }

    .review-list .card-body {
        padding: 1.5rem !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    .rel-card-body {
        padding: 0.5rem !important;
    }
    .rel-product-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    .rel-add-btn {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.75rem !important;
        width: auto !important;
        min-width: 80px;
    }
    .rel-img-container {
        margin-bottom: 0 !important;
    }
    .product-card-modern .card-img-top {
        height: 160px !important;
    }
}
