html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Belanosima', sans-serif;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

nav{
    background-color: black;
    color: white;
    padding: 20px 50px;
}

.navTop{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search{
    display: flex;
    align-items: center;
    background-color: gray;
    padding: 10px;
    border-radius: 10px;
}

.searchInput{
    border: none;
    background-color: transparent;
    outline: none;
    color: white;
}

.searchInput::placeholder{
    color: lightgray;
}

.searchInput:focus {
    outline: none;
}

.limitedOffer{
    font-size: 20px;
    border-bottom: 2px solid green;
    cursor: pointer;
    animation: pulse 2s ease-in-out infinite;
}

/* Cart Icon */
.cartIcon {
    position: relative;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.cartIcon:hover {
    transform: scale(1.1);
}

.cartIcon:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.cartBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.navBottom{
    display: flex;
    align-items: center;
    justify-content: center;
}

.menuItem{
    margin-right: 50px;
    cursor: pointer;
    color: lightgray;
    font-weight: 400;
    transition: color 0.3s, transform 0.2s;
}

.menuItem:hover,
.menuItem:focus {
    color: white;
    transform: translateY(-2px);
    outline: none;
}

.slider{
    background: url(https://images.unsplash.com/photo-1612538498613-35c5c8d675c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=774&q=80);
}

.sliderWrapper{
    display: flex;
    width: 500vw;
    transition: all 1s ease-in-out;
}

.sliderItem{
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slideBg{
    width: 530px;
    height: 530px;
    border-radius: 50%;
    position: absolute;
}

.sliderImg{
    z-index: 1;
}

.sliderTitle{
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 60px;
    font-weight: 900;
    text-align: center;
    color: white;
    z-index: 1;
}

.sliderPrice{
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 60px;
    font-weight: 900;
    text-align: center;
    color: white;
    border: 1px solid gray;
    z-index: 1;
}

.buyButton{
    position: absolute;
    top: 50%;
    right: 10%;
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    color: white;
    border: 1px solid gray;
    background-color: black;
    z-index: 1;
    cursor: pointer;
}

.buyButton:hover{
    background-color: white;
    color: black;
}

.sliderItem:nth-child(1) .slideBg{
    background-color: ghostwhite;
}

.sliderItem:nth-child(2) .slideBg{
    background-color: greenyellow;
}

.sliderItem:nth-child(3) .slideBg{
    background-color: plum;
}

.sliderItem:nth-child(4) .slideBg{
    background-color: gainsboro;
}

.features{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
}

.feature{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.featureIcon{
    width: 90px;
    height: 90px;
}

.featureTitle{
    font-size: 25px;
    font-weight: 600;
    margin: 25px;
}

.featureDesc{
    color: gray;
    width: 50%;
    height: 100px;
}

.product{
    height: 110vh;
    background-color: whitesmoke;
    position: relative;
}

.payment{
    width: 500px;
    height: 500px;
    background-color: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 10px 50px;
    display: none;
    flex-direction: column;
    -webkit-box-shadow: 0px 0px 27px -3px rgba(0,0,0,0.87); 
    box-shadow: 0px 0px 27px -3px rgba(0,0,0,0.87);
}

.payTitle{
    font-size: 20px;
    color: black;
}

label{
    font-size: 14px;
    font-weight: 300;
}

.payInput{
    padding: 10px;
    margin: 10px 0px;
    border: none;
    border-bottom: 1px solid gray;
}

.payInput::placeholder{
    color: rgb(163, 163, 163);
}

.card icons{
display: flex;
}

.cardIcon{
    margin-right: 10px;
}

.cardInfo{
    display: flex;
    justify-content: space-between;
}

.sm{
    width: 30%;
}

.payButton{
    position: absolute;
    height: 40px;
    bottom: -40;
    width: 100%;
    left: 0;
    -webkit-box-shadow: 0px 0px 27px -3px rgba(0,0,0,0.87); 
    box-shadow: 0px 0px 27px -3px rgba(0,0,0,0.87);
    background-color: plum;
    color: white;
    border: none;
    cursor: pointer;
}

.close{
    width: 20px;
    height: 20px;
    position: absolute;
    background-color: grey;
    color: white;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
}

.productImg{
    width: 50%;
    transition: transform 0.3s;
}

.productImg.changing {
    opacity: 0.7;
    transform: scale(0.95);
}

.productDetails{
    position: absolute;
    top: 10%;
    right: 0;
    width: 40%;
    padding: 50px;
}

.productTitle{
    font-size: 75px;
    font-weight: 900;
}

.productDesc{
    font-style: 24px;
    color: gray;
}

.colors,.sizes{
    display: flex;
    margin-bottom: 20px;
}

.color{
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background-color: pink;
    margin-right: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color:hover {
    transform: scale(1.1);
}

.color.selected {
    border-color: black;
    box-shadow: 0 0 0 2px white, 0 0 0 4px black;
}

.color:last-child{
    background-color: mediumaquamarine;
}

.size{
    padding: 5px 20px;
    border: 1px solid black;
    margin-right: 10px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.size:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.productButton{
    float: right;
    padding: 10px 20px;
    background-color: black;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid black;
    margin-left: 10px;
    transition: all 0.3s;
}

.productButton:hover{
    background-color: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.addToCartButton {
    float: right;
    padding: 10px 20px;
    background-color: white;
    color: black;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid black;
    transition: all 0.3s;
}

.addToCartButton:hover {
    background-color: black;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery{
    padding: 50px;
    display: flex;
}

.galleryItem{
    flex: 1;
    padding: 50px;
}

.galleryImg{
    width: 100%;
}

footer{
    display: flex;
}

.footerLeft{
    flex: 2;
    display: flex;
    justify-content: space-between;
    padding: 50px;
}

.fMenuTitle{
    font-size: 16px;
}

.fList{
    padding: 0;
    list-style: none;
}

.fListItem{
    margin-bottom: 10px;
    color: gray;
    cursor: pointer;
}

.footerRight{
    flex: 1;
    padding: 50px;
}

.fInput{
    padding: 5px;
}

.fButton{
    padding: 5px;
    background-color: black;
    color: white;
}

.fIcon{
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Cart Modal */
.cartModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.cartModal.active {
    display: flex;
}

.cartContent {
    background-color: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.cartHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cartHeader h2 {
    margin: 0;
    font-size: 24px;
}

.closeCart {
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.closeCart:hover {
    color: black;
}

.cartItems {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cartItem {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease-out;
}

.cartItem img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.cartItemDetails {
    flex: 1;
}

.cartItemDetails h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cartItemDetails p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cartItemPrice {
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
}

.removeItem {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.removeItem:hover {
    background-color: #cc0000;
}

.emptyCart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cartFooter {
    padding: 20px;
    border-top: 2px solid #eee;
}

.cartTotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkoutButton {
    width: 100%;
    padding: 15px;
    background-color: black;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.checkoutButton:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

/* Form Validation */
.payInput.error {
    border-bottom: 2px solid #f44336;
}

.payInput.success {
    border-bottom: 2px solid #4CAF50;
}

.errorMessage {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.errorMessage.show {
    display: block;
}

@media screen and (max-width:480px){
    nav{
        padding: 20px;
    }

    .search{
        display: none;
    }

    .navBottom{
        flex: 1;
    }

    .menuItem{
        margin: 20px;
        font-weight: 700;
        font-size: 20px;
    }

    .slider{
        clip-path: none;
    }

    .sliderImg{
        width: 90%;
    }

    .slideBg{
        width: 100%;
        height: 100%;
    }

    .sliderTitle{
        display: none;
    }

    .sliderPrice{
        top: unset;
        bottom: -50;
        left: 0;
        background-color: lightgrey;
    }

    .buyButton{
        right: 0;
        top: 0;
    }

    .features{
        flex-direction: column;
    }

    .product{
        clip-path: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .productImg{
        width: 80%;
    }

    .productDetails{
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        top: 0;
    }

    .productTitle{
        font-size: 50px;
        margin: 0;
    }

    .gallery{
        display: none;
    }

    footer{
        flex-direction: column;
        align-items: center;
    }

    .footerLeft{
        padding: 20px;
        width: 90%;
    }

    .footerRight{
        padding: 20px;
        width: 90%;
        align-items: center;
        background-color: whitesmoke;
    }

    .payment{
        width: 90%;
        padding: 20px;
    }

}