* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

body {
    padding-top: var(--header-height) !important;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden !important;
}


.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    height: calc(100vh - 60px);
    overflow-y: hidden;
}

.product-image {
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}


.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #007AFF;
}


/* product details main */
.product-details {
    background: white;
    padding: 60px 20px;
    box-shadow: 1px 78px 6px rgb(18 20 22 / 0%), 1px 83px 6px rgb(56 64 73 / 13%), 0px 18px 6px rgb(77 83 91 / 13%);
    height: calc(100vh - 60px);
    overflow-y: scroll;
    -ms-overflow-style: none;
    width: 100%;
    overflow-x: hidden;
}


.product-details::-webkit-scrollbar {
    display: none;
}

.product-details h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #FF9500;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    width: fit-content;
}

.original-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: .825rem;
    margin-right: 10px;
    font-weight: 600;
}

.savings {
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 600;
    background: #dbffba;
    padding: 8px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    line-height: 1;
}





/* Color carousel container */
.slide-color-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 26px;
    position: relative;
    perspective: 1000px;
    height: 170px;
}

.slide-color-card {
    position: absolute;
    top: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s;
    cursor: pointer;
    opacity: 0.6;
    text-align: center;
}

/* Center (active) */
.slide-color-card.slide-center {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
}

/* Left */
.slide-color-card.slide-left {
    transform: translateX(-200px) scale(0.4) rotateY(20deg);
    z-index: 2;
    opacity: 0.8;
}

/* Right */
.slide-color-card.slide-right {
    transform: translateX(200px) scale(0.4) rotateY(-20deg);
    z-index: 2;
    opacity: 0.8;
}

/* Hidden */
.slide-color-card.slide-hidden {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Image thumbnail */
.slide-thumb {
    width: 260px;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    /* display: grid; */
    place-items: center;
}

.slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-tag {
    font-weight: 600;
    /* margin-top: 10px; */
}


.color-options {
    margin: 30px 0;
}

.color-options h3 {
    font-size: 10px;
    color: #1d1d1f;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.color-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.color-option:hover {
    border-color: #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.color-option.selected {
    border-color: #007AFF;
    background: #f0f8ff;
}

.color-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 4px;
}


.color-name {
    font-weight: 600;
    font-size: 9px;
    color: grey;
}

.color-name p {
    margin-bottom: 0;
}

.color-storage {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.color-price {
    font-weight: 700;
    color: #169006;
    line-height: 1;
}

.color-price del {
    font-weight: 300;
    font-size: small;
    color: grey;

}

.features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #34C759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.buy-section {
    margin: 30px 10px;
    width: 80%;

}

.buy-button {
    background: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper {
    display: inline-block;
    width: 30px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.7s ease, opacity 0.5s ease;
}


.buy-button:hover {
    background: #333;
}


/* quality section */
.quality-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.quality-header {
    text-align: center;
    margin-bottom: 40px;
}

.quality-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.grade-view-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #204283;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.grade-view-btn:hover {
    background: #346690;
}


.quality-selector {
    display: flex;
    gap: 40px;
    align-items: start;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;

}

.quality-btn {
    background: #f5f5f5;
    border: none;
    padding: 25px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
    width: 100px;
}

.quality-btn:hover {
    background: #e5e5e5;
}

.quality-btn.active {
    background: #000;
    color: white;
}

.quality-display {
    /* background: #2c2c2c; */
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.macbook-visual {
    margin-bottom: 30px;
    position: relative;
}

.laptop-screen {
    width: 200px;
    height: 130px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.keyboard {
    background: #1c1c1c;
    height: 100%;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

.keyboard img {
    width: 100%;
}

.key {
    background: #555;
    border-radius: 2px;
}

.quality-info {
    color: rgb(0, 0, 0);
}

.body-badge {
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    top: 20px;
    right: 3px;
    display: flex;
    flex-direction: column;
}


.body-badge p {
    text-align: center;
    font-weight: 200;
    font-size: 20px;
    color: #fff;
}

.badging {
    background: #ffff;
    padding: 0px 10px;
    border-radius: 10px;
    margin: 5px 0;
}

.pricing {
    position: absolute;
    bottom: 20px;
    right: 45px;
    color: #34C759;
    display: flex;
    flex-direction: column;
}

span.save-price {
    background: green;
    padding: 5px 10px;
    border-radius: 5px;
}


.pricing span {
    font-size: 15px;
    color: #ccc;
    font-weight: bold;
}

span del {
    color: #ddd;
}

.condition-list {
    list-style: none;
    margin-top: 20px;
}

.condition-list li {
    margin-bottom: 8px;
    color: #2b2929;
}

.condition-list li:before {
    content: "✓";
    color: #34C759;
    font-weight: bold;
    margin-right: 10px;
}


.toolbox:before {
    content: "🔧";
    position: absolute;
    top: -5px;
    left: 20px;
    font-size: 20px;
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.trust-icon {
    width: 24px;
    height: 24px;
    background: #34C759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}



/* promise card */




.promise-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.promise-card.active {
    opacity: 1;
    visibility: visible;
}

.our-promise {
    position: relative;
    margin: 50px auto;
    max-width: 350px;
    min-height: 250px;
    /* reserve height so cards don’t jump */
}

.our-promis-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.promise-card img {
    width: 200px;
    height: auto;
    margin: 0 auto 15px;
}

.promise-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.promise-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}


/* buy together */

/* Buy Together Styles */
.buy-together-section {
    margin-top: 40px;
    padding: 20px;
}

.buy-together-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.buy-together-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    gap: 25px
}

.buy-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.buy-item-img {
    width: 100px;
}

.plus-sign {
    font-size: 2rem;
    color: #555;
}

.buy-info p {
    font-size: 0.95rem;
    margin: 0;
}

.buy-together-btn {
    background: #ff7f32;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.buy-together-btn:hover {
    background-color: #ff5d00;
}


/* banner section */

.banner-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* slide image */


.image-side {
    width: 100%;
    height: 100%;
    /* background: url("images/details img/banner.webp") no-repeat center center/cover; */
    /* padding: 40px; */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bottom-banners-1 .image-side {
    width: 100%;
    height: 100%;
    /* background: url("images/details img/banner 2.webp") no-repeat center center/cover; */
    position: relative;
    display: flex;
    align-items: center;
}

.overlay-content {
    color: #000000;
    width: fit-content;
}

.overlay-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    width: max-content;
}

.view-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid;
    border-radius: 16px;
    padding: 3px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background: #000000;
    color: white;
}


/* product list */

.accessories-section {
    margin-top: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: .5rem;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px 1px rgb(0 0 0 / 11%);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-around;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.product-desc {
    font-size: 10px;
    opacity: 0.7;
    margin-bottom: 0px;
}

.product-bottom {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}

.offer-price-section {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    margin-bottom: 8px;
    line-height: 1;
}

.offer-price-section .price {
    font-size: 16px;
}

.offer-price-section .original-price {
    margin-right: 0;
    font-size: .75rem;
}

.add-btn {
    background: #ff9f43;
    border: none;
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.slide-price {
    font-size: 12px;
}

.slide-price .price {
    font-size: 12px;
}


/* Reviews */
.reviews-section {
    margin-top: 32px;
    padding: 20px;
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: baseline;
}

.review-filters button {
    margin: 4px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    border-radius: 6px;
}

.review-filters button.active {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
}

.review-item {
    border-top: 1px solid #eee;
    padding: 12px 0;
}

.review-item:first-child {
    border-top: none;
}

.review-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.review-text {
    font-size: .9rem;
    color: #555;
}


.positionfix-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    /* position: sticky; */
    flex-direction: column;
    height: -webkit-fill-available;
}



/* carousel */
.page {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.swiper {
    width: 100%;
    height: 260px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    background: #f3f4f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    user-select: none;
    /* prevent text selection while dragging */
    -webkit-user-drag: none;
    /* prevent image drag */
    touch-action: pan-y;
    /* recommended for better touch handling */
}

/* show grab cursor on desktop */
.swiper .swiper-wrapper {
    cursor: grab;
}

.swiper .swiper-wrapper:active {
    cursor: grabbing;
}

/* optionally prevent images inside slides from being dragged */
.swiper-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
    display: none;
}

.hidden {
    display: none;
}

.quality-image {
    width: 100%;
    height: 100%;
    /* take full height */
}

.quality-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* keeps image aspect ratio */
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.image-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 1505px) {
    .product-image {
        position: relative;
        max-height: 425px;
    }
}

@media (max-width: 1425px) {
    .product-image {
        position: relative;
        max-height: 375px;
    }
}

@media (max-width: 1399px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1300px;
    }
}

@media screen and (max-width: 1200px) {
    .offer-price-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width:1100px) {
    .overlay-content h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
}




@media (min-width: 1024px) {
    .quality-info {
        padding-top: 30px;
    }


    .slide-color-card.slide-left {
        transform: translateX(-166px) scale(0.5) rotateY(20deg);
    }

    .slide-color-card.slide-right {
        transform: translateX(174px) scale(0.5) rotateY(-20deg);
    }

    /* .quality-selector {
        align-items: center;
        flex-direction: column-reverse;
        gap: 20px;
        margin-bottom: 25px;
    }

    .quality-options {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    } */

    .quality-btn {
        padding: 10px 20px;
    }

    .buy-item-img {
        width: 40%;
    }

    .buy-info p {
        font-size: 13px;
    }


    .product-desc {
        font-size: 10px;
    }
}


@media (max-width: 999px) {
    .slide-color-card.slide-right {
        transform: translateX(145px) scale(0.5) rotateY(-20deg);
    }

    .slide-color-card.slide-left {
        transform: translateX(-140px) scale(0.5) rotateY(20deg);
    }

    .slide-thumb {
        width: 230px;
        aspect-ratio: 22 / 12;
    }

    .trust-badges {
        justify-content: flex-start;
    }

    .container,
    .container-md,
    .container-sm {
        max-width: 950px;
    }

    .buy-together-btn {
        padding: 5px 20px;
    }
}


@media (max-width: 960px) {
    .slide-color-grid {
        height: 200px;
    }

    .slide-color-card.slide-right {
        transform: translateX(145px) scale(0.5) rotateY(-20deg);
    }

    .slide-color-card.slide-left {
        transform: translateX(-109px) scale(0.5) rotateY(16deg);
    }

    .slide-thumb {
        width: 245px;
        aspect-ratio: 17 / 12;
    }
}


@media (max-width: 940px) {
    .body-badge {
        padding: 8px 10px;
        font-size: 12px;
        right: 10px;
    }

    .product-card {
        margin-bottom: 0px;
        display: flex;
        flex-direction: column;
    }

    .buy-together-btn {
        padding: 5px 20px;
    }

    .quality-btn {
        padding: 10px 10px;
    }

    .buy-together-box {
        flex-wrap: wrap;
    }

}



@media (max-width:900px) {
    .overlay-content h2 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .pricing span {
        font-size: 14px;
    }

    .pricing {
        right: 27px;
    }
}


@media (max-width: 850px) {
    .body-badge {
        padding: 5px 6px;
        font-size: 12px;
        right: 5px;
    }

    .body-badge p {
        margin: 0;
    }
}


@media (max-width: 800px) {
    .body-badge {
        font-size: 10px;
    }

    .pricing {
        right: 30px;
    }

    .pricing span {
        font-size: 10px;
    }
}



@media (max-width: 768px) {
    .product-details {
        background: white;
        padding: 60px 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        height: auto;
        overflow-y: auto;
        -ms-overflow-style: none;
    }



    .product-details h1 {
        font-size: 18px;
        margin-bottom: 0px;
    }


    .our-promise {
        max-width: 100%;
        padding: 0 20px;
    }

    .product-section {
        grid-template-columns: 1fr;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-section::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }

    .body-badge {
        top: 44px;
        right: 5px;
    }

    .badging {
        padding: 5px 65px 5px 10px;
    }

    .pricing {
        bottom: 30px;
        right: 60px;
    }

    /* .image-side {
                height: 50vh;
            } */

    .buy-together-box {
        gap: 0;
        padding: 20px;
        justify-content: center;
        text-align: center;
    }

    .buy-info p {
        font-size: 14px;
    }

    .slide-color-card.slide-left {
        transform: translateX(-228px) scale(0.4) rotateY(20deg);
    }

    .slide-color-card.slide-right {
        transform: translateX(225px) scale(0.4) rotateY(-20deg);
    }


    .buy-section {
        position: fixed;
        bottom: 0;
        z-index: 9999;
        margin: 15px auto;
    }
}

@media screen and (max-width: 625px) {
    .product-details {
        padding: 60px 10px;
    }

    .product-card {
        padding: 10px;
    }
}



@media (max-width: 570px) {
    .slide-color-card.slide-left {
        transform: translateX(-167px) scale(0.4) rotateY(20deg);
    }

    .slide-color-card.slide-right {
        transform: translateX(165px) scale(0.4) rotateY(-20deg);
    }
}



@media (max-width: 475px) {
    main.slide-wrap {
        width: 100%;
        overflow-x: hidden;
    }


    .slide-thumb {
        width: 200px;
        aspect-ratio: 7 / 6;
    }

    .slide-color-grid {
        height: 215px;
    }
}


@media (max-width: 465px) {
    .buy-section {
        width: 100%;
        justify-self: anchor-center;
    }

    .buy-button {
        width: 90%;
        margin: auto;
    }
}



@media (max-width: 425px) {

    .product-section {
        gap: 0px;
        background: unset;
    }

    .slide-color-card.slide-left {
        transform: translateX(-122px) scale(0.4) rotateY(20deg);
    }

    .slide-color-card.slide-right {
        transform: translateX(121px) scale(0.4) rotateY(-20deg);
    }

    .trust-badges {
        justify-content: flex-start;
    }

    .badging {
        padding: 5px 10px 5px 10px;
        font-size: 12px;
    }

    .body-badge p {
        margin: 0;
    }

    .body-badge {
        top: 10px;
    }

    .pricing span {
        font-size: 12px;
    }

    .pricing {
        bottom: 16px;
        right: 25px;
    }

    .product-card {
        margin-bottom: 0px;
        padding: 10px;
    }

    .add-btn {
        padding: 2px 5px;
        font-size: 11px;
    }

    .review-filters button {
        padding: 5px 10px;

    }



    .buy-together-btn {
        padding: 1px 25px;
    }

    .buy-items {
        justify-content: space-evenly;
    }

    .buy-together-box {
        padding: 14px;
        flex-direction: column;
    }

    .buy-info p {
        font-size: 12px;
    }

    .buy-together-btn {
        padding: 1px 15px;
    }
}





@media (max-width: 375px) {
    .thumbnail-container {
        gap: 0px;
        margin-top: 5px;
    }

    span.save-price {
        padding: 5px 5px;
    }

    .pricing {
        right: 15px;
    }

    .badging {
        font-size: 10px;
    }

    .buy-button {
        padding: 15px 10px;
    }

    .body-badge {
        top: 10px;
        right: 0px;
    }

    .pricing {
        right: 40px;
        bottom: 7px;
    }

    .pricing span {
        font-size: 10px;
    }

    .quality-btn {
        padding: 10px 8px;
    }

    .slide-color-card.slide-left {
        transform: translateX(-120px) scale(0.4) rotateY(20deg) !important;
    }

    .slide-color-card.slide-right {
        transform: translateX(120px) scale(0.4) rotateY(-20deg) !important;
    }

    .slide-thumb {
        width: 150px !important;
        aspect-ratio: 14 / 10 !important;
    }

    .container-fluid {
        padding-right: 0px !important;
        padding-left: 0px !important;
    }

    .product-details {
        padding: 60px 15px;
    }

    .slide-color-grid {
        height: 135px;
    }

    .color-option {
        padding: 10px 5px;
    }

    .color-option h3 {
        margin-bottom: 0;
    }

    .color-price {
        font-size: 13px
    }

    .color-price del {
        font-size: 12px;
    }
}





@media (max-width: 320px) {
    .body-badge {
        top: 2px !important;
    }

    .badging {
        font-size: 8px !important;
    }

    .pricing span {
        font-size: 8px !important;
    }

    .pricing span {
        font-size: 8px !important;
    }

    .color-price {
        font-size: 12px !important;
    }

    .color-name {
        font-size: 8px !important;
    }

    .color-options h3 {
        font-size: 8px !important;
    }

    .slide-color-card.slide-left {
        transform: translateX(-100px) scale(0.5) rotateY(20deg) !important;
    }

    .slide-color-card.slide-right {
        transform: translateX(100px) scale(0.5) rotateY(-20deg) !important;
    }

    .slide-thumb {
        width: 200px !important;
        aspect-ratio: 15 / 6 !important;
    }
}


.choosse-your-color {
    padding-top: 20px;
}

.color-section {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    /* smooth scroll for scrollBy() / scrollIntoView() */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.color-section::-webkit-scrollbar {
    display: none;
}

.color-section.dragging {
    cursor: grabbing;
    user-select: none;
}

.color-section::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.color-section::-webkit-scrollbar-track {
    background: transparent;
}


.color-box {
    background-color: white;
    padding: 20px 10px 10px;
    border: 1px solid #47464626;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.color-circle {
    width: 50px;
    height: 50px;

}

.color-box .color-name {
    font-size: 13px;
    color: #33373c;
    border: none;
    font-weight: 400;
    width: 75px;
    text-align: center;
    margin-bottom: 0;
}

.color-box.active{
    /* border: 1px solid black; */
    border: 1px solid #7c7c7c; /* or your brand color */
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}




/* quality section */


.quality-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.quality-header {
    text-align: center;
    margin-bottom: 40px;
}

.quality-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.quality-selector {
    display: flex;
    gap: 40px;
    align-items: start;
    flex-direction: row !important;
    padding-bottom: 15px;
}

.quality-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;

}

.quality-btn {
    background: #f5f5f5;
    border: none;
    padding: 15px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
    width: 100px;
}

.quality-btn:hover {
    background: #e5e5e5;
}

.quality-btn.active {
    background: #000;
    color: white;
}

.quality-display {
    /* background: #2c2c2c; */
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.macbook-visual {
    margin-bottom: 30px;
    position: relative;
}

.laptop-screen {
    width: 200px;
    height: 130px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 3px solid #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}



.keyboard {
    background: #1c1c1c;
    height: 100%;
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

.keyboard img {
    width: 100%;
}

.key {
    background: #555;
    border-radius: 2px;
}

.quality-info {
    color: rgb(0, 0, 0);
}

.body-badge {
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    flex-direction: column;
}


.body-badge p {
    text-align: center;
    font-weight: 200;
    font-size: 20px;
    color: #fff;
}

.badging {
    background: #ffff;
    padding: 0px 10px;
    border-radius: 10px;
    margin: 5px 0;
}

.pricing {
    position: absolute;
    bottom: 20px;
    right: 17px;
    color: #34C759;
    display: flex;
    flex-direction: column;
}

span.save-price {
    background: green;
    padding: 5px 10px;
    border-radius: 5px;
}


.pricing span {
    font-size: 12px;
    color: #ccc;
    font-weight: bold;
}

span del {
    color: #ddd;
}

.condition-list {
    list-style: none;
    margin-top: 20px;
}

.condition-list li {
    margin-bottom: 8px;
    color: #2b2929;
}

.condition-list li:before {
    content: "✓";
    color: #34C759;
    font-weight: bold;
    margin-right: 10px;
}

/* @media (max-width: 1200px){
                         .quality-btn {
                        padding: 15px 20px;
                    }
                    .body-badge{
                        font-size: 12px;
                        right: 1%;
                    }
                    .pricing{
                        right: 20px;
                    }
                    .price span{
                        font-size: 9px;
                    }
                    } */

@media (max-width: 1199px) {
    .quality-btn {
        padding: 8px 20px;
    }

    .body-badge {
        font-size: 9px;
        top: 0;
        right: -8px;
    }

    .pricing {
        right: 10px;
        bottom: 10px;
    }

    .pricing span {
        font-size: 9px;
    }
}

@media (max-width: 991px) {
    .quality-selector {
        display: flex;
        align-items: start;
        flex-direction: column-reverse !important;
    }

    .quality-options {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100px;
    }
}

@media (max-width: 1000px) {
    .quality-btn {
        padding: 8px 5px;
    }
}

@media (max-width: 940px) {
    .body-badge {
        padding: 8px 10px;
        right: 10px;
    }
}

@media (max-width: 900px) {
    .pricing span {
        font-size: 9px;
    }

    .pricing {
        right: 27px;
    }
}

@media (max-width: 850px) {
    .body-badge {
        padding: 5px 6px;
        font-size: 10px;
        right: 5px;
    }

    .body-badge p {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .product-section {
        grid-template-columns: 1fr;
    }

    .body-badge {
        top: 44px;
        right: 23px;
        font-size: 15px;
    }

    .pricing span {
        font-size: 15px;
    }

}


@media (max-width: 425px) {


    .body-badge p {
        margin: 0;
    }

    .body-badge {
        top: 10px;
    }

    .pricing span {
        font-size: 12px;
    }

    .pricing {
        bottom: 16px;
        right: 25px;
    }

    .savings {
        width: 40%;
    }
}

@media (max-width: 375px) {

    .body-badge {
        top: 10px;
        right: 4px;
    }

    .pricing {
        right: 20px;
        bottom: 7px;
    }

    .pricing span {
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .body-badge {
        top: 2px !important;
        right: 31px;
    }

    .badging {
        font-size: 8px !important;
    }

    .pricing {
        right: 43px;
    }

    .pricing span {
        font-size: 8px !important;
    }

    .pricing span {
        font-size: 8px !important;
    }
}