* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color:white;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow added */
}



.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: black;
    width: 0;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:hover .underline {
    width: 100%;
}

.nav-item:hover .nav-link {
    color: peru;
}

.nav-item:hover ~ .underline {
    width: 0;
    left: 0;
}




/*  */

  


.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

.logo {
    font-weight: 900;
    letter-spacing: 0.1rem;
}

.nav {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 2rem;
}

.nav a {
    color: #000;
    text-decoration: none;
    opacity: 0.6;
}

.nav a:hover {
    opacity: 1;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto 0 auto;
    transition: transform 400ms linear;
}


.product-top {
    display: flex;
    flex-wrap: wrap;
}

.product__gallery {
    flex: 1;
    min-width: 300px;
}

.product__info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    position: relative;
}

.product__desc {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.product__sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.product__sizes span {
    padding: 10px;
    border: 1px solid #000;
    cursor: pointer;
}

.product__btn {
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product__btn:hover {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.product-bottom {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.product-bottom h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-bottom p {
    margin-bottom: 20px;
    line-height: 1.6;
}


.nav-open .wrapper {
    transform: translateX(-5%);
}

.nav-open .cart {
    transform: translateX(0);
}

.nav-open .overlay {
    opacity: 1;
    visibility: visible;
}

/*  */


.product-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
}

.price-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.discounted-price {
    font-size: 1.5rem;
    color: #d9534f;
}

.shipping-info, .offer, .sku {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #777;
}

.offer {
    font-weight: bold;
    color: #333;
}

.shipping-icon {
    margin-left: 5px;
}

.product-options {
    margin-top: 20px;
}

.option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.option-label {
    font-weight: bold;
    margin-right: 10px;
    width: 60px;
}

.option-value {
    display: flex;
    align-items: center;
}

.color {
    margin-right: 10px;
}

.size {
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* purchase */
.gallery-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensures both sections stretch to the same height */
}

.main-image {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.main-image img {
    max-height: 100vh; /* Ensures the image scales with the container */
    width: 100%;
    object-fit: contain; /* Ensures the image maintains its aspect ratio */
}

.thumbnail-container {
    display: flex;
    flex-direction: column;
    flex: 0.3;
    min-width: 100px;
    padding: 10px;
}

.thumbnail-container img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-container img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .main-image {
        order: 2;
        margin-top: 20px;
    }

    .thumbnail-container {
        flex-direction: row;
        justify-content: center;
        order: 1;
    }

    .thumbnail-container img {
        margin: 0 5px;
        width: 20%;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector button {
    background-color: white;
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
    font-size: 18px;
}

.add-to-cart, .buy-it-now {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.add-to-cart {
    border: 1px solid #ff4081;
    background-color: white;
    color: #ff4081;
}

.buy-it-now {
    background-color: #e91e63;
    color: white;
}

.buy-it-now:hover, .add-to-cart:hover {
    opacity: 0.9;
}

/* faq */


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.faq {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.faq-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.faq-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    padding: 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
}

.toggle-icon {
    font-size: 20px;
}

.faq-answer {
    display: none;
    padding: 15px;
    background-color: #fff;
}

.faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .faq-title {
        font-size: 20px;
    }
    .faq-question h3 {
        font-size: 16px;
    }
    .toggle-icon {
        font-size: 18px;
    }
}
/* footer */


.footer {
    margin-top: 4%;
    background-color: #282828;
    color: #ddd;
    padding: 40px 0;
    font-size: 14px;
    transition: background-color 0.5s ease;
}

.footer:hover {
    background-color: #333;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 20%;
    /* Responsive Flexbox */
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-heading:hover::after {
    width: 100%;
}

.footer-section address {
    font-style: normal;
    line-height: 1.8;
    color: #ccc;
}

.footer-section address a {
    text-decoration: none;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 10px;
}

.social-media {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social-media a {
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2);
}

.social-media img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-section {
        flex: 1 1 100%;
        min-width: 100%;
        margin-bottom: 20px;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }
}