/* /////////////////==========home=========================///////////////////////// */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #292626;
}

/* /////////////////==========product=========================///////////////////////// */

/* --------------------------------------header */

.modal {
    display: none;
    position: fixed;
    z-index: 32000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.close:hover {
    color: red;
}


.head {
    display: flex;
    justify-content: space-between;
    background-color: #292626;
    align-items: center;
    width: 85%;
    min-height: 100vh; 
    margin: 0 auto;
    padding: 20px; 
}

.leftHead {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding-left: 50px;
    color: white;
}

.headLineh1 h1 {
    font-size: 50px;
    margin-bottom: 10px;
    line-height: 1.2; 
}

.paraHead {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5; 
}

.analysis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.btn-shop {
    background-color: #a855f7;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#GetStartedAnchor:hover {
    background-color: #9333ea;
}

.rightHead {
    width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    height: 0;
    width: 80%;
    padding-bottom: 80%; 
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%; 
}

.wrapper .img {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    border-radius: 50%; 
}

.wrapper .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 50%; 
    transition: all 0.7s;
}

#one:checked ~ .img-1,
#two:checked ~ .img-2,
#three:checked ~ .img-3,
#four:checked ~ .img-4,
#five:checked ~ .img-5 {
    opacity: 1;
}

.wrapper .slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    gap: 10px;
}

.wrapper .slider label {
    height: 13px;
    width: 13px;
    border: 2px solid #a855f7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrapper .slider label:hover {
    background-color: #9333ea;
}

.wrapper input[type="radio"] {
    display: none;
}

#one:checked ~ .slider label.one,
#two:checked ~ .slider label.two,
#three:checked ~ .slider label.three,
#four:checked ~ .slider label.four,
#five:checked ~ .slider label.five {
    width: 35px;
    border-radius: 20px;
    background-color: #9333ea;
}


@media screen and (max-width: 768px) {
    .head {
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }

    .leftHead {
        width: 100%;
        padding-left: 20px;
    }

    .rightHead {
        width: 100%;
        display: block;
        padding: 20px 0;
    }

    .wrapper {
        height: 0;
        width: 80%;
        padding-bottom: 80%;
    }

    .slider {
        display: block;
        margin-top: 20px;
    }
}


@media screen and (max-width: 480px) {
    .headLineh1 h1 {
        font-size: 22px;
    }

    .paraHead {
        font-size: 15px;
    }

    .rightHead {
        display: block;
        width: 100%;
    }

    .wrapper {
        height: 0;
        width: 60%;
        padding-bottom: 60%;
    }

    #GetStartedAnchor {
        padding: 8px 16px;
        font-size: 14px;
    }

   
    .slider {
        display: block;
        margin-top: 20px;
    }
}

/* -------------------------------------- */

#welcomeMessage {
    background-color: #333;
}

/* /////////////////==========product=========================///////////////////////// */
.feature-product {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #333;
    align-items: center;
}

.searchDiv {
    display: flex;
    gap: .25rem;
    width: 70%;
    margin-top: 20px;
    justify-content: center;
}

.searchDiv div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #a855f7;
}

#searchInput {
    font-size: 1rem;
    outline: none;
    border: none;
    background: none;
    color: white;
    width: 90%;
    padding-right: 10px;
}

#searchInput::placeholder {
    color: #a855f7;
}

.search:hover {
    color: #e74c3c;
    cursor: pointer;
}

.hide {
    display: none;
}

/* ----------------------------------------------------card */

#productContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background: #2B2B2B;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
    /* White shadow */
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Image Section */
.cardImage {
    margin: 0;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px #a855f7 dotted;
}

/* Product Info */

.product-info div {
    padding: 10px 20px;
    margin-top: 10px;
    text-align: start;
    flex-direction: column;
    display: flex;
    height: 40%;
}

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

.product-info div h3 {
    color: white;
    font-size: 1.3rem;
}

.product-info2 div p {
    padding: 0px 20px;
    height: 20%;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.product-price {
    font-size: 18px;
    color: #858584;
    font-weight: bold;
    height: 30%;
}

.product-ratingsAverage {
    font-size: 18px;
    color: #858584;
    font-weight: bold;
    height: 30%;
}

.star-rating {
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Buttons */
.cardButton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: space-between;
    padding: 10px;
}

svg {
    color: white;
}

svg:hover {
    color: #a855f7;
    cursor: pointer;
}

.allInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-between;
    height: 55%;
}

.btn-add-cart {
    background-color: #a855f7;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    width: 85%;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

.elsakka {
    background-color: #2B2B2B;
    border: none;
}

.btn-add-cart:hover {
    background-color: #9333ea;
}

/* Wishlist Icon */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: gray;
    cursor: pointer;
    transition: color 0.3s;
}

.wishlist-icon:hover {
    color: red;
}