html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow:
        0 0 0 0.1rem white,
        0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.product-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}

.product-gallery-track::-webkit-scrollbar {
    height: 0;
}

.product-gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 100%;
}

.product-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    background-color: #fff;
}

.product-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.product-gallery-dot {
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.product-gallery-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
}

.fav-pop {
    animation: fav-pop 280ms ease-out;
}

@keyframes fav-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fav-pop {
        animation: none;
    }
}

.rating-fill input {
    background-color: #e2e8f0;
}

.rating-fill input:checked,
.rating-fill input:checked ~ input {
    background-color: #f59e0b;
}

.btn-add-to-cart {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.btn-add-to-cart:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #fff;
}
