html {
    scroll-behavior: smooth;
}

#hero {
    position: relative;
    overflow: hidden;
    height: 90vh;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-controls button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
    transition: background .3s;
}

.hero-controls button:hover {
    background: rgba(255, 255, 255, 0.9);
}

#quality-banner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    width: 95vw;
    align-items: center;
}

.quality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120px;
    text-align: center;
}

.quality-item img {
    width: 100%;
    height: auto;
    display: block;
}

.quality-item .label {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #444;
    font-weight: 100;
}

#quality-banner img:hover {
    transform: scale(1.1);
}

/* find your choce  */

.find-choice-section {
    text-align: center;
    padding: 1rem;
}

.find-choice-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem;
    justify-content: center;
}

/* Hide scrollbar */
.find-choice-gallery::-webkit-scrollbar {
    display: none;
}

.find-choice-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.find-choice-item {
    flex: 0 0 auto;
    width: 12rem;
    margin-right: .5rem;
    text-decoration: none;
    overflow: hidden;
    border-radius: .5rem;
    transition: transform .3s, box-shadow .3s;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.find-choice-item img {
    width: 100%;
    height: auto;
    display: block;
}

.choice-label {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #444;
    text-align: center;
}

.find-choice-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .find-choice-gallery {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 1rem 0;
    }

    .find-choice-item {
        flex: 0 0 auto;
        width: 12rem;
        margin-right: 0;
    }

    .find-choice-gallery::-webkit-scrollbar {
        display: none;
    }

    .find-choice-gallery {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

h2 {
    position: relative;
    text-align: center;
    font-weight: bold;
    color: #034c86;
    margin: .5rem;
}

h2 span {
    font-family: 'Cinzel', sans-serif;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* ----- Carousel: Centered 5-item viewport + scrollbar ----- */
.carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.5rem;

    max-width: calc((13rem * 5) + (20px * 4) + (0.5rem * 2));
    margin: 0 auto;
    scroll-behavior: smooth;
      
}

/*.carousel::-webkit-scrollbar {*/
/*    display: block;*/
/*    height: 8px;*/
/*}*/

/*.carousel::-webkit-scrollbar-track {*/
/*    background: #f1f1f1;*/
/*    border-radius: 4px;*/
/*}*/

/*.carousel::-webkit-scrollbar-thumb {*/
/*    background: #c4a484;*/
/*    border-radius: 4px;*/
/*}*/

/*.carousel::-webkit-scrollbar-thumb:hover {*/
/*    background: #a5856b;*/
/*}*/

/* Firefox scrollbar tweaks */
/*@-moz-document url-prefix() {*/
/*    .carousel {*/
/*        scrollbar-width: thin;*/
/*        scrollbar-color: #c4a484 #f1f1f1;*/
/*    }*/
/*}*/

.carousel {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
      justify-content: center;
}

.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    width: 200px;
    height: 250px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img.single-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 25%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(-25deg);
    transition: none;
}

@keyframes shine {
    from {
        left: -80%;
    }

    to {
        left: 130%;
    }
}

.product-card:hover::before {
    animation: shine 0.7s ease-in-out forwards;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

/* ----- Product Card & Flip ----- */
.product-card {
    flex: 0 0 13rem;
    scroll-snap-align: start;
    height: 18rem;
    margin-right: 20px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.product-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.card-front img {
    height: 100%;
}

.card-back {
    transform: rotateY(180deg);
    padding: 15px;
    justify-content: space-between;
}

/* ----- Text & Buttons ----- */

.card-back p {
    font-size: .9rem;
    color: #555;
    flex: 1;
    margin-bottom: 12px;
    align-items: center;
    display: flex;
    justify-content: space-evenly;
}

#testimonials {
    background: #f9f7f2;
    padding: 40px;
}

#testimonials h2 {
    color: #b8860b;
    margin-bottom: 20px;
    font-size: 1.75rem;
}

#testimonials .quote {
    font-style: italic;
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

#testimonials .quote::before {
    content: '“';
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -4px;
    color: #b8860b;
}

#reviews {
    padding: 1rem;
    background: #fff;
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.review-card {
    background: #fdf8f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.review-card h4 {
    margin-bottom: 8px;
    color: #333;
}

.stars {
    color: #ffd700;
    margin-bottom: 12px;
}

.review-card p {
    font-size: .9rem;
    color: #555;
    flex: 1;
}

.date {
    font-size: .8rem;
    color: #888;
    margin-top: 12px;
    text-align: right;
}

@media(max-width:1024px) {
    .carousel-section {
        padding: .5rem;
    }

    .product-card {
        flex: 0 0 13rem;
        height: 18rem;
        margin-right: 16px;
    }

}

@media(max-width:768px) {
    header {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        padding: .8rem;
    }

    #hero {
        height: 50vh;
    }

    .hero-controls {
        display: none;
    }

    h2 span {
        font-size: 1.5rem;
    }

    .carousel {
        justify-content: flex-start;
    }

    .product-card {
        flex: 0 0 13rem;
        height: 18rem;
    }

    #reviews .review-cards {
        grid-template-columns: 1fr;
    }

    #subscribe input {
        width: 100%;
        margin-bottom: 12px;
    }
}

@media(max-width:480px) {
    #hero {
        height: 30vh;
    }

    .carousel-section h2,
    #testimonials h2,
    #reviews h2 {
        font-size: 1.5rem;
    }

    .product-card {
        flex: 0 0 13rem;
        height: 18rem;
    }
}

@media(max-width:768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
    }

    .dropdown .dropbtn::after {
        content: ' ▼';
    }

    .burger {
        display: flex;
    }
}