* {
    font-family: "Nunito", sans-serif;
}

body {
    margin: 0;
    background-color: #fff;
    background: #fff;
    padding-top: var(--header-height) !important;
    width: 100%;
    overflow-x: hidden !important;
}

/* section starting */
.header-section {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    margin: 0 1%;
    padding: 6vh 5vw 15vh;
    border-radius: 10px;
    /* flexible spacing */
    height: 65vh;
    /* scales with screen height */
    overflow: hidden;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.container.position-relative {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.mobile-product-box {
    display: none;
}

/* Scrollable container */
.product-scroll {
    position: absolute;
    bottom: 8vh;
    left: 0;
    right: 0;
    overflow-x: auto;
    padding: 1vh 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.scroll-row {
    display: flex;
    gap: 2vw;
    padding: 0 5vw;
    width: max-content;
    user-select: none;
    cursor: grab;
}


/* Inline product card */
.card-inline {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 10px;
    min-width: 24vw;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-inline img {
    width: 7vw;
    /* height: auto; */
    height: 10vh;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    background: white;
    padding: 0.8vw;
}

.card-inline .details {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    text-align: left;
}

.details h6,
.details .color,
.details .price {
    margin: 0;
    padding: 0;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.details .color {
    font-style: italic;
    color: #a8c0ff;
    margin: 0.5vh 0;
}

.details .price {
    margin-bottom: 3vh;
    font-weight: 600;
    color: #e0e0e0;
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
}

.details button {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.25rem 0.75rem;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    background-color: white;
    color: #004080;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 64, 128, 0.3);
    transition: 0.3s 
ease;
}

.details button:hover {
    background-color: #004080;
    color: white;
}

.scroll-row {
    display: flex;
    gap: 2vw;
    padding: 0 5vw 0 20vw;
    width: max-content;
}

.header-nav {
    position: absolute;
    bottom: 2vh;
    right: 3vw;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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


/* ================= MOBILE ================== */
@media (max-width: 768px) {
    .mobile-product-box {
        display: block;
    }

    .header-nav {
        display: none;
    }

    .header-section {
        height: 50vh;
        padding: 4vh 4vw;
    }

    .text-start,
    .product-card,
    .product-scroll {
        display: none !important;
    }

    .mobile-product-box {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        overflow: hidden;
    }

    .mobile-item {
        display: none;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(8px);
        padding: 3vh 4vw;
        color: white;
        animation: fadeIn 0.6s ease-in-out;
        box-sizing: border-box;
    }

    .mobile-item button {
        margin-left: 2vw;
        padding: 1vh 3vw;
        border: none;
        border-radius: 0.5rem;
        background: #111827;
        color: #fff;
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-item button:hover {
        background-color: #004080;
        color: white;
    }

    .mobile-item.active {
        display: flex;
    }

    .mobile-item .details {
        flex: 1;
    }

    .mobile-item h6,
    .mobile-item .color,
    .mobile-item .price {
        margin: 0;
    }

    .mobile-item .color {
        font-size: 0.85rem;
        font-style: italic;
        color: #a8c0ff;
    }

    .mobile-item .price {
        font-weight: bold;
        margin-top: 0.5vh;
        font-size: 0.85rem;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .header-section {
        height: 30vh;
        padding: 4vh 4vw;
    }
}

/* Floating card styles ----------------------------------------- */

.product-thumb {
    width: 6vh;
    height: 6vh;
    object-fit: cover;
    border-radius: 0.5rem;
}

.main-heading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.sf-font {    
    font-size: clamp(3rem, 4vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    margin-bottom: 5px;
}

.product-title {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 500;
    margin-bottom: 1vh;
    color: #333;
}

.book-btn {
    margin-top: 0.5vh;
    background: rgb(65, 133, 228);
    color: rgb(168, 166, 166);
    padding: 0.5vh 1.2vw;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.book-btn:hover {
    background: #ddd;
}

.product-card {
    display: block;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: .725rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: clamp(250px, 22vw, 320px);
    /* responsive width */
    font-family: sans-serif;
}

.product-image {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.flex-content h3 {
    margin-bottom: 0;
    color: #000000;
    margin-top: 0;
    font-weight: 500;
    font-size: 18px;
}
/* 
.flex-content p {
    color: #777;
    margin-top: 0;
} */

.flex-content p {
    color: #b0afbd;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 13px;
    text-transform: capitalize;
}

.product-image img {
    height: 5vh;
    width: auto;
    border-radius: 0.5rem;
}

.product-details {
    margin-left: 6px;
    flex: 1;
}

.product-details h3 {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    margin: 0;
    font-weight: 600;
}

.product-details .subtitle {
    font-size: 0.8rem;
    color: #666;
    margin: 0.3vh 0 0.8vh;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1vh;
    font-size: 0.8rem;
    color: #808690;
}

.features li {
    margin-bottom: 0.3vh;
    display: flex;
    align-items: center;
}
.features i {
    margin-right: 0.4rem;
    color: #606162;
}

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

.price {
    font-size: 1rem;
    color: #000000;
}



.buy-btn {
    background: unset;
    color: #000000;
    padding: clamp(4px, 1vw, 6px) clamp(12px, 2vw, 10px);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid;
    border-top-width: 1px;
    border-bottom-width: 3px;
    font-size: clamp(0.625rem, 1vw, 0.75rem);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.buy-btn.outofstock{
    color: #b72b2b;
}

.buy-btn:hover {
    background: #000000 !important;
    color: #fff !important;
    border-top-width: 1px;
    border-bottom-width: 3px;
}

.buy-btn.outofstock:hover {
    background: transparent !important;
    color: #ab4949 !important;
    cursor: not-allowed;
    border-color: #ab4949;
}

/* 3d section */

.section-3d {
    padding: clamp(7px, 2vw, 20px) clamp(30px, 8vw, 80px);
    text-align: justify;
}

.section-3d h2 {
    /* margin-bottom: clamp(10px, 3vw, 25px); */
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
}

/* Model Viewer Styling */
.section-3d model-viewer {
    width: 100%;
    max-width: 800px;
    height: 500px;
    /* margin: 0 auto; */
    display: block;
    height: auto;
    aspect-ratio: 16 / 10;
    /* keeps proportional height */
}


.product-container-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
    align-items: stretch;
    /* Ensures equal height for both sections */
}


.model-section-3d {
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
    border-radius: 12px;
    /* border: 1px solid #e0e0e0; */
    overflow: hidden;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    /* center vertically */
}

.model-viewer-3d {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(45deg, #f5f5f5, #fafafa);
}

.model-controls-3d {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.model-section-3d model-viewer {
    --progress-bar-color: transparent; 
}

.control-btn-3d {
    padding: 8px 16px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.control-btn-3d:hover {
    background: #333;
}

.product-info-3d {
    display: flex;
    flex-direction: column;
    background: white;
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    overflow: hidden;
}

.product-header-3d {
    padding: 20px;
    /* border-bottom: 1px solid #f0f0f0; */
    background: #fafafa;
}
.product-name-3d {
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 0px;
}

.product-code-3d {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1px;
}

.price-container-3d {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.current-price-3d {
    font-size: clamp(1.2rem, 2.1vw, 1.4rem);
    font-weight: 800;
    color: #000;
}

.original-price-3d {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-3d {
    background: #000;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-details-3d {
    padding: 20px;
    padding-top: 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0px;
}

.condition-info-3d {
    padding: 15px;
    padding-bottom: 0px;
    background: #f8f8f8;
    /* border-radius: 8px; */
    /* border-left: 4px solid #000; */
}

.condition-grade-3d {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.grade-badge-3d {
    background: #000;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.battery-stats-3d {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.specs-list-3d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item-3d {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    font-size: 0.9rem;
}
.spec-label-3d {
    color: #666;
    font-weight: 500;
}

.spec-value-3d {
    color: #000;
    font-weight: 600;
}

.stock-info-3d {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
}

.stock-dot-3d {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
}

.action-section-3d {
    padding: 20px;
    background: #fafafa;
    /* border-top: 1px solid #f0f0f0; */
}

.btn-primary-3d {
    width: 100%;
    padding: 12px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-3d:hover {
    background: #333;
}

.features-3d {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.feature-tag-3d {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .product-container-3d {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .specs-list-3d {
        grid-template-columns: 1fr;
    }

    .model-viewer-3d {
        min-height: 300px;
    }

    .price-container-3d {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading state */
.loading-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #666;
    font-size: 0.9rem;
}

.spinner-3d {
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* section 3 top selling */
.top-selling {
    padding: clamp(7px, 2vw, 20px) clamp(30px, 8vw, 80px);
    text-align: justify;
    /* background: linear-gradient(to bottom, #ececec 20%, #e6e6e6 50%, #ffffff 100%); */
}

.top-selling h2 {
    /* margin-bottom: clamp(20px, 6vw, 60px); */
    margin-bottom: clamp(10px, 3vw, 25px);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 20vw, 280px), 1fr));
    gap: clamp(10px, 3vw, 30px);
    margin: auto;
    max-width: 100%;
}

.top-card {
    background: #fff;
    border-radius: 8px;
    padding: clamp(8px, 1.5vw, 15px);
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    box-shadow: 3px 6px 6px rgb(153 157 179 / 11%), -5px -3px 5px 0px rgb(108 110 122 / 8%), 0px 1px 6px rgb(215 215 215 / 9%);
    display: flex;
    flex-direction: column;
}

.top-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: clamp(5px, 1vw, 10px);
}

.image-container {
    position: relative;
    /* makes heart position absolute inside */
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wishlist-btn i {
    color: #000000;
    font-size: 14px;
}

.wishlist-btn:hover {
    background: #000000;
}

.wishlist-btn:hover i {
    color: white;
}

.title {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    margin: clamp(5px, 1vw, 10px) 0;
    line-height: 1.3;
    flex-grow: 1;
    font-weight: 600;
}

.save-label {
    background: #43ea43;
    color: rgb(59 56 56);
    padding: clamp(3px, 0.5vw, 5px);
    font-size: clamp(0.5rem, 0.8vw, 0.625rem);
    border-radius: 5px;
    width: fit-content;
    margin-bottom: clamp(5px, 1vw, 10px);
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 20px);
    margin-top: auto;
}

@media(max-width:380) {
    .price-section {
        flex-direction: column;
    }

}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: gray;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
}


/* Fine-tuning for very small screens */
@media (max-width: 480px) {

    .top-selling {
        padding: clamp(7px, 2vw, 15px) clamp(15px, 5vw, 20px);
        /* top/bottom | left/right */
        text-align: justify;
    }


    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-info {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
}

/* Fine-tuning for medium screens */
@media (min-width: 481px) and (max-width: 520px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Fine-tuning for large screens */
@media (min-width: 521px) and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fine-tuning for extra large screens */
@media (min-width: 1201px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
}


/* image carousel  */

section.pro-mac-container {
    padding: 5vw;
    /* was 80px */
}

h2.header-text {
    font-size: 1.875rem;
    /* 30px ≈ 1.875rem */
    margin-bottom: 0;
}

.image-carousel-section {
    padding: 2vw 0;
    /* was 30px 0 */
}

.image-card {
    position: relative;
    /* background: #fff; */
    border-radius: 0.625rem;
    /* 10px */
    /* padding: 0.8rem; */
    /* 10px */
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
    /* 0 2px 6px */
    overflow: hidden;
}

.image-card .main-img {
    position: relative;
    display: inline-block;
}

.image-card .main-img img {
    width: 8vw;
    /* was 120px */
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.375rem;
    /* 6px */
}

@media (max-width: 48rem) {

    /* 768px */
    section.pro-mac-container {
        padding: 2vw 0 2vw 2vw;
        /* was 10px 0px 10px 10px */
    }

    .header-text {
        font-size: 1.25rem !important;
        /* 20px */
        margin-bottom: 0.6rem !important;
        /* 10px */
    }

    .image-carousel-section {
        padding: 0;
        /* display: flex; */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 2vw;
        /* was 10px */
    }

    .image-card {
        flex: 0 0 calc(50% - 2vw);
        /* half width minus gap */
        border-radius: 0.625rem;
        padding: 0;
        box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
        scroll-snap-align: start;
    }

    .image-card img {
        width: 100%;
        height: auto;
        display: block;
    }



    .image-carousel-section::after {
        content: "";
        flex: 0 0 25%;
    }

    .pro-mac-section-hr {
        display: none;
    }
}

/* let Owl handle mobile responsiveness */
@media (max-width: 48rem) {
    section.pro-mac-container {
        padding: 2rem 1rem;
    }

    .header-text {
        font-size: 1.25rem !important;
        /* 20px */
        margin-bottom: 0.6rem !important;
    }

    .image-card {
        border-radius: 0.625rem;
        padding: 0.3rem;
        /* was 5px */
        box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
    }

    .image-card .main-img img {
        width: 100%;
        max-width: 12.5rem;
        /* 200px */
        margin: 0 auto;
    }

    .pro-mac-section-hr {
        display: none;
    }
}

/* section 5 */
.macbook-section {
    text-align: center;
    padding: clamp(25px, 4vw, 40px) clamp(10px, 2vw, 20px);
}

.macbook-section h1 {
    font-size: clamp(2rem, 5.6vw, 3.5rem);
    font-weight: bold;
    margin-bottom: clamp(8px, 1vw, 10px);
}

.macbook-section .air {
    display: block;
    font-size: clamp(1rem, 2.8vw, 1.75rem);
    font-weight: bold;
}

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

.macbook-images .main-mac {
    max-width: clamp(600px, 100vw, 1000px);
    z-index: 2;
    position: relative;
}

.sub-title {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    font-weight: 500;
}

.description {
    font-size: clamp(0.8125rem, 1.6vw, 1rem);
    font-weight: bold;
}

.specs {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 40px);
    align-items: flex-end;
}

.specs h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: bold;
}

.specs h1 {
    font-size: clamp(1.125rem, 2.4vw, 1.5rem);
    font-weight: bold;
}

.specs p {
    font-size: clamp(0.75rem, 1.6vw, 1rem);
    color: #555;
}

.storage {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    font-weight: bold;
}

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .macbook-section {
        padding: clamp(30px, 3.5vw, 35px) clamp(12px, 1.5vw, 15px);
    }

    .macbook-section h1 {
        /* font-size: clamp(2.5rem, 4.8vw, 3rem); */
        font-size: clamp(1.3rem, 2vw, 1.25rem);
    }

    .macbook-section .air {
        font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    }

    .macbook-images .main-mac {
        max-width: clamp(450px, 70vw, 700px);
        margin: 0 auto;
    }

    .specs {
        gap: clamp(25px, 3vw, 30px);
    }
}

/* Mobile View (768px and below) */
@media (max-width: 768px) {
    .macbook-section {
        padding: clamp(25px, 3vw, 30px) clamp(10px, 1.5vw, 15px);
    }

    .macbook-section h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: clamp(6px, 0.8vw, 8px);
    }

    .macbook-section .air {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }

    .macbook-images {
        margin: clamp(12px, 1.5vw, 15px) 0;
        overflow-x: hidden;
    }

    .macbook-images .main-mac {
        max-width: clamp(350px, 65vw, 500px);
        margin: 0 auto;
    }

    .sub-title {
        font-size: clamp(0.875rem, 2vw, 1rem);
        margin-top: clamp(6px, 0.8vw, 8px);
    }

    .description {
        font-size: clamp(0.75rem, 1.8vw, 0.875rem);
        margin-top: clamp(3px, 0.4vw, 4px);
    }

    .specs {
        flex-direction: column;
        gap: clamp(15px, 2.5vw, 20px);
        margin: clamp(12px, 1.5vw, 15px) 0;
        align-items: center;
    }

    .specs div {
        text-align: center;
    }

    .specs h3 {
        font-size: clamp(1rem, 2.25vw, 1.125rem);
        margin-bottom: clamp(4px, 0.6vw, 5px);
    }

    .specs h1 {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
        margin-bottom: clamp(4px, 0.6vw, 5px);
    }

    .specs p {
        font-size: clamp(0.75rem, 1.75vw, 0.875rem);
        margin: 0;
    }

    .storage {
        font-size: clamp(0.875rem, 2vw, 1rem);
    }
}

/* Small Mobile View (480px and below) */
@media (max-width: 480px) {
    .macbook-section {
        padding: clamp(20px, 5vw, 25px) clamp(8px, 2vw, 10px);
    }

    .macbook-section h1 {
        font-size: clamp(1.75rem, 6.5vw, 2rem);
    }

    .macbook-section .air {
        font-size: clamp(0.875rem, 3.3vw, 1rem);
    }

    .macbook-images .main-mac {
        max-width: clamp(250px, 80vw, 360px);
        margin: 0 auto;
    }

    .sub-title {
        font-size: clamp(0.75rem, 2.9vw, 0.875rem);
    }

    .description {
        font-size: clamp(0.6875rem, 2.7vw, 0.8125rem);
    }

    .specs {
        gap: clamp(12px, 3.1vw, 15px);
    }

    .specs h3 {
        font-size: clamp(0.875rem, 3.3vw, 1rem);
    }

    .specs h1 {
        font-size: clamp(1rem, 3.75vw, 1.125rem);
    }

    .specs p {
        font-size: clamp(0.625rem, 2.5vw, 0.75rem);
    }

    .storage {
        font-size: clamp(0.75rem, 2.9vw, 0.875rem);
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .macbook-section {
        max-width: 1400px;
        margin: 0 auto;
    }

    .macbook-images .main-mac {
        max-width: clamp(800px, 70vw, 1200px);
    }
}


/***************************** mac pro section *******************************/
.mac-pro-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #dcdcdc;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    padding-bottom: clamp(20px, 3.5vw, 35px);
}

.container-macpro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    position: relative;
    padding-bottom: clamp(50px, 15vw, 150px);
}

.left-content {
    flex: 1;
}

.product-title {
    font-size: clamp(1.6rem, 3.8vw, 3.8rem);
    font-weight: 700;
    color: #000;
    margin-bottom: clamp(3px, 0.5vw, 5px);
}

.product-subtitle {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 500;
    margin-bottom: clamp(3px, 0.5vw, 5px);
}

.product-price {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: #000;
    margin-bottom: clamp(15px, 2vw, 20px);
}

.color-selector {
    display: flex;
    gap: clamp(10px, 2vw, 40px);
    align-items: center;
    position: absolute;
    /* left: 25%; */
    top: 85%;
    z-index: 9999;
    /* new added in 20/09 */
    /* left: 0; */
    width: 100%;
    justify-content: center;
}

.color-option {
    width: clamp(28px, 5vw, 50px);
    height: clamp(28px, 5vw, 50px);
    border-radius: 50%;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    z-index: 1000;
}

.color-option.active {
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.color-champagne {
    background: #d6cfc3;
}

.color-graphite {
    background: #3b4048;
}

.color-silver {
    background: #7a7a7a;
}

.color-space-black {
    background: #000;
}

.right-content {
    flex: 2;
    display: flex;
    gap: clamp(15px, 3vw, 30px);
}

/* -------- WEB VIEW -------- */
.right-content .panel:nth-child(1) {
    flex: 1;
    /* background: linear-gradient(#bfbfbf, #9c9c9c); */
    border-radius: clamp(10px, 1.5vw, 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: clamp(300px, 44vw, 440px);
    max-width: clamp(200px, 29vw, 290px);
    transform: translateY(clamp(-50px, -7vw, -70px));
    /* left: clamp(40px, 6.5vw, 65px); */
}

.right-content .panel:nth-child(2) {
    flex: 1;
    /* background: linear-gradient(#bfbfbf, #9c9c9c); */
    border-radius: clamp(15px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: clamp(400px, 57vw, 570px);
    max-width: clamp(250px, 36vw, 360px);
    transform: translateY(clamp(-50px, -7vw, -70px));
    /* left: clamp(60px, 9vw, 90px); */
}

.panel {
    flex: 1;
    background: linear-gradient(#bfbfbf, #9c9c9c);
    border-radius: clamp(15px, 2vw, 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: clamp(300px, 40vw, 400px);
}

.watermark {
    position: absolute;
    font-size: clamp(1rem, 8vw, 4rem);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watermark-left {
    left: clamp(10px, 2vw, 20px);
    top: 20%;
}

.watermark-right {
    right: clamp(10px, 2vw, 20px);
    top: 28%;
}

.macbook-image {
    /* max-width: 80%; */
    width: clamp(160px, 22vw, 260px);
    height: clamp(110px, 15vw, 180px);
    object-fit: cover;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.5s ease;
    position: absolute;
    bottom: clamp(10px, 2vw, 20px);
}

.macbook-image.active {
    opacity: 1;
    transform: scale(1);
    object-fit: contain;
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(clamp(-5px, -1vw, -10px)) scale(1.02);
    }
}

@media (max-width: 1400px){
     .watermark {
       
        font-size: clamp(1rem, 8vw, 4rem);
    }

    .watermark-left.first-left {
        top: 14%;
    }

    .watermark-right.first-right {
        top: 25%;
    }

    .watermark-left.second-left {
        top: 14%;
    }

    .watermark-right {
        top: 40%;
    }
}

/* -------- TAB VIEW -------- */
@media (max-width: 992px) {
    .container-macpro {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-bottom: clamp(30px, 5vw, 50px);
    }

    .right-content {
        gap: clamp(15px, 2vw, 20px);
    }

    .right-content .panel {
        max-width: clamp(180px, 25vw, 250px);
        height: clamp(500px, 50vw, 800px);
    }

    .right-content .panel:nth-child(1) {
        /* height: clamp(320px, 44vw, 440px); */
        height: clamp(500px, 64vw, 640px);
        /* was 320→440px, now 460→600px */

        max-width: clamp(200px, 29vw, 290px);
        transform: translateY(clamp(-250px, -34.5vw, -345px));
        left: 0;
    }

    .right-content .panel:nth-child(2) {
        /* height: clamp(400px, 57vw, 570px); */
        height: clamp(540px, 70vw, 720px);
        /* was 400→570px, now 540→720px */

        max-width: clamp(250px, 36vw, 360px);
        transform: translateY(clamp(-250px, -34.5vw, -345px));
        left: 0;
    }

    .macbook-image {
        width: clamp(140px, 20vw, 220px);
        /* was 180→260px, now 140→220px */
        height: clamp(100px, 13vw, 160px);
        object-fit: cover;
        height: auto;
        bottom: clamp(5px, 1.5vw, 15px);
    }

    .left-content {
        width: clamp(350px, 50vw, 500px);
    }

    .color-selector {
        top: 80%;
        width: 100%;
    }

    .watermark {
        position: absolute;
        font-size: clamp(1rem, 8vw, 4rem);
        font-weight: bold;
        color: rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        writing-mode: vertical-lr;
        transform: rotate(180deg);
        user-select: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .watermark-left.first-left {
        left: clamp(10px, 2vw, 20px);
        /* top: 42%; */
        top: 50%;
    }

    .watermark-right.first-right {
        right: clamp(10px, 2vw, 20px);
        top: 57%;
    }

    .watermark-left.second-left {
        left: clamp(10px, 2vw, 20px);
        /* top: 42%; */
        top: 50%;
    }

    .watermark-right {
        right: clamp(10px, 2vw, 20px);
        top: 57%;
    }
}

@media (max-width: 700px){
    .watermark-left.first-left {
        top: 50%;
    }
    .watermark-right.first-right{
        top: 58%;
    }
    .watermark-left.second-left {
        top: 50%;
    }
    .watermark-right.second-right {
        top: 58%;
    }
}

/* -------- MOBILE VIEW -------- */
@media (max-width: 576px) {
    .mac-pro-section {
        padding-bottom: clamp(15px, 3.5vw, 20px);
        /* min-height: 70vh; */
    }

    .container-macpro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: clamp(15px, 3.5vw, 20px);
        position: relative;
    }

    .right-content {
        order: 1;
        flex-direction: row;
        justify-content: space-between;
        gap: clamp(8px, 1.75vw, 10px);
        margin-bottom: clamp(8px, 1.75vw, 10px);
        width: 100%;
    }



    .right-content .panel:nth-child(1) {
        height: clamp(180px, 61vw, 261px);
        max-width: clamp(80px, 39vw, 175px);
        border-radius: 0 0 clamp(10px, 2.6vw, 15px) clamp(10px, 2.6vw, 15px);
        transform: translateY(clamp(-45px, -11.3vw, -65px));
        left: 0;
    }

    .right-content .panel:nth-child(2) {
        height: clamp(220px, 63vw, 367px);
        max-width: clamp(120px, 44vw, 251px);
        border-radius: 0 0 clamp(15px, 3.5vw, 20px) clamp(15px, 3.5vw, 20px);
        transform: translateY(clamp(-45px, -11.3vw, -65px));
        left: 0;
    }


    .macbook-image {
        position: absolute;
        height: clamp(80px, 25vw, 120px);
        object-fit: cover;
        max-width: 80%;
        height: auto;
        bottom: clamp(5px, 1.75vw, 10px);
    }

    .left-content {
        order: 2;
        margin-top: clamp(15px, 3.5vw, 20px);
        width: 100%;
    }

    .product-title {
        font-size: clamp(1.4rem, 6vw, 1.6rem);
    }

    .product-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .product-price {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }

    .color-selector {
        order: 3;
        position: static;
        margin-top: clamp(25px, 5.2vw, 30px);
        width: 100%;
    }

    .color-option {
        width: clamp(24px, 4.9vw, 28px);
        height: clamp(24px, 4.9vw, 28px);
    }

    .watermark {
        position: absolute;
        font-size: clamp(1rem, 8vw, 4rem);
        /* font-size: clamp(1.2rem, 6vw, 1.5rem); */
        font-size: 45px;
        font-weight: bold;
        color: rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        writing-mode: vertical-lr;
        transform: rotate(180deg);
        user-select: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .watermark-left.first-left{
        left: clamp(10px, 2vw, 20px);
        top: 18%;
    }

    .watermark-right.first-right{
        right: clamp(10px, 2vw, 20px);
        top: 26%;
    }

    .watermark-left.second-left{
        left: clamp(10px, 2vw, 20px);
        top: 28%;
    }

    .watermark-right.second-right{
        right: clamp(10px, 2vw, 20px);
        top: 40%;
    }

}

@media (max-width: 490px) {
    .right-content .panel:nth-child(1) {
        height: clamp(180px, 52vw, 228px);
    }

    .watermark{
        font-size: 30px;
    }
    .watermark-left.first-left {
        top: 23%;
    }
    .watermark-right.first-right {
        right: clamp(10px, 2vw, 20px);
        top: 30%;
    }

    .watermark-left.second-left {
        left: clamp(10px, 2vw, 20px);
        top: 28%;
    }
    .watermark-right.second-right {
        right: clamp(10px, 2vw, 20px);
        top: 40%;
    }
}

@media (max-width: 400px){
    .watermark{
        font-size: 25px;
    }
    .watermark-left.first-left{
        left: clamp(10px, 2vw, 20px);
        top: 28%;
    }

    .watermark-right.first-right{
        right: clamp(10px, 2vw, 20px);
        top: 30%;
    }

    .watermark-left.second-left{
        left: clamp(10px, 2vw, 20px);
        top: 28%;
    }

    .watermark-right.second-right{
        right: clamp(10px, 2vw, 20px);
        top: 40%;
    }
}
/* Extra large screens */
@media (min-width: 1200px) {
    .container-macpro {
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .container-macpro {
        align-items: flex-start;
        padding-top: 40px;
    }

    .right-content .panel:nth-child(1) {
        transform: translateY(clamp(-200px, -12vw, -80px));
        left: clamp(40px, 6.5vw, 65px);
        margin-top: 100px;
    }

    .right-content .panel:nth-child(2) {
        transform: translateY(clamp(-220px, -14vw, -100px));
        left: clamp(60px, 9vw, 90px);
        margin-top: 100px;
    }

    .watermark-left.first-left{
        top: 14%;
    }

    .watermark-right.first-right{
        top: 28%;
    }

    .watermark-left.second-left{
        top: 26%;
    }

    .watermark-right.second-right{
        top: 38%;
    }

    .color-selector{
        top: 75%;
    }

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

    .mac-pro-section{
        padding-bottom: 5px !important;
    }

    .product-container-3d{
        max-width: 1400px;
    }
}



/* section seven */

/* section seven */

.section-seven {
    padding: clamp(30px, 6vw, 80px) 0;
}

.mac-for-design-container {
    width: min(90%, 1200px);
    margin: auto;
}

.mac-for-design {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(20px, 6vw, 60px);
    gap: clamp(15px, 4vw, 40px);
}

.mac-for-design.reverse {
    flex-direction: row-reverse;
}

.mac-img img {
    width: clamp(220px, 35vw, 380px);
    border-radius: clamp(8px, 1vw, 15px);
}

.for-design-content {
    max-width: clamp(300px, 55vw, 600px);
}

.for-design-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: clamp(10px, 1.5vw, 20px);
    font-weight: bold;
}

.for-design-content p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.6;
}

.for-design-content .mac-btn {
    display: inline-block;
    margin-top: clamp(15px, 2vw, 25px);
    background-color: #333;
    color: #fff;
    padding: clamp(8px, 1.5vw, 12px) clamp(18px, 3vw, 30px);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.mac-btn:hover {
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
}

@media (max-width: 768px) {
    .mac-for-design {
        flex-direction: column;
        text-align: center;
    }

    .mac-for-design.reverse {
        flex-direction: column;
    }

    .mac-img img {
        width: 80%;
        margin-bottom: 10px;
    }

    .mac-for-design:first-child .mac-img img {
        transform: rotate(90deg);
    }

    .mac-for-design.reverse .mac-img img {
        transform: rotate(-90deg);
    }

    .for-design-content {
        margin-top: clamp(-20px, -5vw, -50px);
    }
}


/* eighth section */

.eighth-bg img {
    width: 100%;
}


/* cards sections */
.mac-benefits-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: clamp(25px, 5vw, 60px) 0;
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* Always 12-column grid */
    gap: clamp(10px, 2vw, 25px);
    width: 90%;
    /* max-width: 1000px; */
    max-width: clamp(1000px, 80%, 1400px);
    margin: auto;
}

/* Layout for each card */
.card1 {
    grid-column: span 4;
}

.card2 {
    grid-column: span 4;
}

.card3 {
    grid-column: span 4;
}

.card4 {
    grid-column: span 4;
}

.card5 {
    grid-column: span 8;
}

/* Card styling (shared) */
.benefit-card {
    background: #E6E6E6;
    border-radius: clamp(10px, 1.5vw, 15px);
    padding: clamp(12px, 2vw, 22px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.benefit-card h4 {
    margin-top: clamp(6px, 1vw, 12px);
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 700;
}

.benefit-card p {
    margin-top: clamp(3px, 0.8vw, 8px);
    font-size: clamp(11px, 1.5vw, 14px);
    color: #333;
}

/* Background colors */
.card1 {
    background: linear-gradient(135deg, #526989, #425672);
    color: #fff;
}

.card2 {
    background: #d6cfc3;
}

.card3 {
    background: #e1e1e1;
}

.card4 {
    background: #4c6a83;
    color: #fff;
}

.card5 {
    background: #333333;
    color: #fff;
}

/* Icon style */
.icon i {
    font-size: clamp(20px, 2.2vw, 28px);
}

/* ✅ Responsive scaling (not stacking) */
@media (max-width: 1024px) {
    .benefit-card {
        padding: clamp(10px, 1.5vw, 15px);
    }

    .benefit-card h4 {
        font-size: clamp(14px, 1.7vw, 18px);
    }

    .benefit-card p {
        font-size: clamp(11px, 1.4vw, 13px);
    }

    .icon i {
        font-size: clamp(18px, 2vw, 24px);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        gap: clamp(8px, 1.6vw, 12px);
        /* smaller gap */
    }

    .benefit-card {
        padding: clamp(8px, 1.4vw, 12px);
    }

    .benefit-card h4 {
        font-size: clamp(12px, 1.6vw, 16px);
    }

    .benefit-card p {
        font-size: clamp(10px, 1.2vw, 12px);
    }

    .icon i {
        font-size: clamp(16px, 2vw, 22px);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        gap: clamp(6px, 2vw, 10px);
    }

    .benefit-card {
        padding: clamp(6px, 2vw, 10px);
        border-radius: clamp(6px, 2vw, 10px);
    }

    .benefit-card h4 {
        font-size: clamp(11px, 3vw, 14px);
    }

    .benefit-card p {
        font-size: clamp(10px, 2.5vw, 11px);
    }

    .icon i {
        font-size: clamp(14px, 4vw, 20px);
    }

    .title {
        /* font-size: clamp(10px, 2.5vw, 11px); */
        font-size: clamp(10px, 2.9vw, 15px);
        line-height: 1.2;
    }
}


/* 100000000000000000000000000000000000000000000000000000000000000000000000 */
.mac-iphone-section {
    background: #F2F2F2;
    padding: clamp(30px, 5vw, 80px) clamp(15px, 4vw, 60px);
    border-radius: clamp(15px, 2vw, 30px);
    margin: clamp(20px, 4vw, 60px) auto;
    max-width: clamp(1000px, 80%, 1600px);
    /* ✅ scales on large screens */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0);
}

.mac-iphone-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 5vw, 80px);
    /* spacing adapts */
}

.text-block {
    flex: 1;
    max-width: 45%;
}

.text-block h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: clamp(10px, 1.5vw, 20px);
}

.text-block p {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    line-height: 1.6;
    color: #333;
}

.image-block {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.macbook {
    width: 100%;
    max-width: clamp(280px, 35vw, 600px);
    /* ✅ grows on larger screens */
    height: auto;
}

.iphone {
    position: absolute;
    bottom: clamp(40px, 6vw, 100px);
    left: 40%;
    transform: translateX(-120%);
    width: clamp(100px, 12vw, 220px);
    /* ✅ fluid iPhone size */
}


/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .mac-iphone-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .text-block {
        max-width: 40%;
        margin-right: 20px;
    }

    .macbook {
        max-width: 380px;
        height: auto;
    }

    .iphone {
        bottom: 60px;
        left: 150px;
        width: 120px;
    }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
    .mac-iphone-section {
        background: #e4e2e2;
        padding: 10px clamp(20px, 6vw, 40px) clamp(80px, 15vw, 120px);
        margin: 20px 10px;
    }

    .mac-iphone-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .text-block {
        max-width: 100%;
    }

    .image-block {
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    .macbook {
        max-width: 280px;
        width: 100%;
        height: auto;
    }

    .iphone {
        bottom: 50px;
        left: 20%;
        transform: translateX(-50%);
        width: 100px;
    }
}


/* Fluid Apple-style Footer */

.apple-footer {
    width: 90%;
    max-width: 1400px;
    /* keeps it centered on ultra-wide screens */
    margin: 60px auto;
    font-family: sans-serif;
    color: #000;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.apple-logo {
    width: 35px;
    height: auto;
    margin-bottom: 10px;
}

.top-bar span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 🔥 Fluid Grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
    /* calmer look, not forced center */
}

.footer-links h5 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-links p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}

.bottom-note {
    font-size: 13px;
    color: #555;
    text-align: left;
}

.bottom-note a {
    color: #0071e3;
    text-decoration: none;
}

/* Mobile: tighter spacing */
@media (max-width: 768px) {
    .apple-footer {
        width: 95%;
        margin: 40px auto;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links h5 {
        font-size: 14px;
    }

    .footer-links p {
        font-size: 13px;
    }

    .bottom-note {
        text-align: center;
    }
}


@media (max-width: 390px) {
    .top-selling {
        padding: clamp(4px, 1vw, 15px) clamp(0px, 0vw, 20px);
        text-align: justify;
    }

    .title {
        /* font-size: clamp(8px, 1.5vw, 11px); */
        font-size: clamp(10px, 1.5vw, 11px);
        line-height: 1.2;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(10px, 3vw, 30px);
        margin: auto;
        max-width: 100%;
    }


    .top-card {
        background: #fff;
        border-radius: 10px;
        padding: clamp(8px, 1.5vw, 15px);
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }



    .price-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(8px, 2vw, 20px);
        margin-top: auto;
    }


    .price {
        /* font-size: clamp(0.55rem, 1.5vw, 1.125rem); */
        font-size: clamp(10px, 1.5vw, 11px);
        font-weight: bold;
    }

    .old-price {
        text-decoration: line-through;
        color: gray;
        /* font-size: clamp(0.55rem, 1.2vw, 0.875rem); */
        font-size: clamp(10px, 1.5vw, 11px);
    }

    .buy-btn {
        background: unset;
        padding: clamp(2px, 1vw, 8px) clamp(6px, 1vw, 25px);
        border-radius: 20px;
        cursor: pointer;
        border: 2px solid;
        font-size: clamp(0.625rem, 1vw, 0.875rem);
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    
}


/* For very small devices like 280px - 319px */
@media (max-width: 319px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* force 2 equal columns */
        gap: 5px;
        /* reduce spacing */
    }

    .top-card {
        padding: 5px;
    }

    .top-card img {
        border-radius: 6px;
    }

    .price-section {
        flex-direction: column;
        gap: 4px;
    }

    .buy-btn {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}