@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');


:root {
    --white: #fff;
    --black: #1c2b2d;
    --blue: #31326f;
    --color-primary: #9d0191;
    --color-sec: #db6400;
    --color-grey: #eee;
    --color-dark-grey: #222831;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    padding-top: 3rem;
}

/* UTILITY */
.p-small {
    padding-bottom: 5px;
}
.p-medium {
    padding-bottom: 10px;
}
.p-y {
    padding: 10px 0;
}
.m-y {
    margin: 10px 0;
}

p {
    font-size: 1.6rem;
    line-height: 1.5;
}

img {
    width: 100%; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

h1 {
    font-size: 3rem;
    line-height: 2;
    text-align: center;
    color: var(--color-primary);
}

main {

    background-color: #f4f4f4;
    padding: 4rem 0;
    
}

.slide-container {
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.arrow {
    width: 2rem;
    margin: 0 1rem;
}

section {
    width: 100%;
    /* height: 300px; */
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* border: 1px solid black; */
}

section::-webkit-scrollbar {
    height: 5px;
    width: 2px;
    border: 1px solid #d5d5d5;
    background: #d5d5d5;
}

section::-webkit-scrollbar-track {
    --webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

section::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    outline: 1px solid #eee;
     /* border-radius: 100px; */
  }

section .thumbnail {
    flex: 0 0 auto;
	object-fit: contain;
    width: 200px;
    height: 300px;
    display: block;
    position: relative;
	cursor: pointer;
	margin: 5px;
    border: 2px solid var(--black);
    overflow: hidden;
    transform: scale(.95);
    transition: all .3s;
}
section .thumbnail img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
}

section .thumbnail:hover {
    transform: scale(1);
}

.product-details {
    text-align: center;
    padding-bottom: 1rem;
    background-color: #fff;
}

.product-details h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.product-details p {
    font-size: 1rem;
    padding-bottom: 1rem;
    color: green;
    font-weight: 700;
}

.product-details p span {
    text-decoration: line-through;
    color: red;
    font-weight: normal;
}

.product-details button {
    font-size: 1rem;
    background-color: var(--color-sec);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 3px;
    border: 0;
    cursor: pointer;
}

.product-details button:hover {
    background-color: var(--color-primary);
}
@media (max-width: 768px) {
    section .thumbnail {
        flex-basis: calc((100% - 10px) / 2);
    }
}

@media (max-width: 480px) {
    section .thumbnail {
        flex-basis: 100%;
    }
}
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 4px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}
#autoplay-toggle {
    display: block;
    margin: 12px auto 0;
    padding: 8px 16px;
    cursor: pointer;
    color:#9d0191;
    background-color:#d8d8d8;
}

#autoplay-toggle:focus-visible {
    outline: 3px solid var(--color-sec);
    outline-offset: 3px;
    
}

.wishlist-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: var(--color-dark-grey);
    font-size: 1.3rem;
    cursor: pointer;
}

.wishlist-toggle[aria-pressed="true"] {
    color: #d11a5b;
}

.wishlist-toggle:focus-visible,
.product-details button:focus-visible {
    outline: 3px solid var(--color-sec);
    outline-offset: 3px;
}

.autoplay-progress {
    width: min(300px, 80%);
    height: 6px;
    margin: 10px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: #d8d8d8;
}

#autoplay-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
}

.cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--color-dark-grey);
    color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #autoplay-progress-fill,
    .cart-toast {
        transition: none;
    }
}