@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-detail-container {
    display: flex;
    gap: 2rem;
    padding: 3rem 20px;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

.product-image-section.animate-on-load {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-info-section.animate-on-load {
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-image-section {
    flex: 1;
}

.product-image-section img {
    width: 100%;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

#main-product-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #333;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #333;
    cursor: pointer;
    transition: 0.2s ease;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--color-blue);
}

.product-info-section {
    flex: 1;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.product-actions {
    width: 100%;
}

.options-group {
    margin-bottom: 30px;
}

.options-group h3,
.quantity-selector h3 {
    font-size: 2rem;
    margin-bottom: 14px;
    font-family: var(--font-primary);
}

.size-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.size-option {
    width: 58px;
    height: 58px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 1.1rem;
}

.size-option.selected {
    background: white;
    color: black;
}

.quantity-selector {
    margin-bottom: 35px;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
}

.quantity-input button {
    width: 52px;
    height: 52px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.quantity-input input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.2rem;
}

.quantity-input input::-webkit-inner-spin-button,
.quantity-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--color-blue);
    color: white;
    border: none;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background: #005edb;
}

@media(max-width:768px){

.product-detail-container{
flex-direction:column;
padding:2rem 14px;
}

.product-info-section{
padding-left:0;
margin-top:10px;
}

.options-group h3,
.quantity-selector h3{
font-size:1.6rem;
}

.thumbnail{
width:70px;
height:70px;
}

.btn{
width:100%;
}

}
#cart-toast{
position:fixed;
bottom:30px;
left:50%;
transform:translateX(-50%) translateY(120px);
background:#111;
border:1px solid #333;
padding:14px 22px;
color:white;
font-family:'Orbitron',sans-serif;
font-size:.8rem;
letter-spacing:1px;
z-index:9999;
transition:.35s ease;
opacity:0;
}

#cart-toast.show{
transform:translateX(-50%) translateY(0);
opacity:1;
}