/* =====================================================
   SHOP PAGE
===================================================== */

:root {

    --shop-primary: #10b981;
    --shop-primary-dark: #059669;

    --shop-dark: #111827;
    --shop-text: #374151;
    --shop-muted: #6b7280;

    --shop-border: #e5e7eb;

    --shop-bg: #f8fafc;
    --shop-white: #ffffff;

    --shop-radius: 18px;

}

/* =====================================================
   PREMIUM FREE DOWNLOAD BADGE
===================================================== */

.free-ribbon {

    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 10;

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-width: 92px;

    padding: 7px 14px 8px;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8fafc 100%
    );

    color: #1f2937;

    border: 1px solid #dbe3ea;

    border-radius: 8px;

    box-shadow:
        0 5px 15px rgba(15, 23, 42, 0.12);

    line-height: 1;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


/* FREE */

.free-ribbon-main {

    display: block;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.4px;

    color: #047857;

    text-transform: uppercase;

}


/* DOWNLOAD */

.free-ribbon-sub {

    display: block;

    margin-top: 4px;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.2px;

    color: #6b7280;

    text-transform: uppercase;

}


/* Hover */

.shop-product:hover .free-ribbon {

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(15, 23, 42, 0.17);

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .free-ribbon {

        top: 10px;

        left: 10px;

        min-width: 78px;

        padding: 6px 10px 7px;

        border-radius: 7px;

    }

    .free-ribbon-main {

        font-size: 9px;

        letter-spacing: 1px;

    }

    .free-ribbon-sub {

        margin-top: 3px;

        font-size: 7px;

        letter-spacing: .8px;

    }

}
/* =====================================================
   HERO
===================================================== */

.shop-hero {

    position: relative;

    padding: 100px 20px 90px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(16,185,129,.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(59,130,246,.10),
            transparent 30%
        ),
        #f8fafc;

    border-bottom: 1px solid var(--shop-border);

}


.shop-hero-content {

    max-width: 1920px;

    margin: auto;

    text-align: center;

}


.section-tag {

    display: inline-flex;

    padding: 8px 15px;

    border-radius: 50px;

    background: rgba(16,185,129,.10);

    color: var(--shop-primary-dark);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 18px;

}


.shop-hero .section-title {

    margin: 0 auto 20px;

    max-width: 1920px;

    color: var(--shop-dark);

}


.shop-hero p {

    max-width: 720px;

    margin: auto;

    color: var(--shop-muted);

    line-height: 1.8;

    font-size: 16px;

}


.shop-file-tags {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;

}


.shop-file-tags span {

    padding: 8px 15px;

    border: 1px solid var(--shop-border);

    border-radius: 50px;

    background: var(--primary);
            
    color: #fff;

    font-size: 13px;

    font-weight: 600;

}



/* =====================================================
   SHOP SECTION
===================================================== */

.shop-section {

    padding: 80px 20px;

    background: var(--shop-bg);

}


.shop-container {

    max-width: 1300px;

    margin: auto;

}


.shop-category {

    margin-bottom: 85px;

}


.shop-category:last-child {

    margin-bottom: 0;

}


.shop-category-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;

}


.shop-category-header h2 {

    margin: 8px 0 0;

    color: var(--shop-dark);

    font-size: 30px;

}


.shop-category-header p {

    max-width: 480px;

    margin: 0;

    color: var(--shop-muted);

    line-height: 1.7;

}


.category-small-title {

    color: var(--shop-primary-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}



/* =====================================================
   PRODUCT GRID
===================================================== */

.shop-grid {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;

}



/* =====================================================
   PRODUCT CARD
===================================================== */

.shop-product {

    background: white;

    border: 1px solid var(--shop-border);

    border-radius: var(--shop-radius);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.shop-product:hover {

    transform: translateY(-7px);

    border-color: rgba(16,185,129,.35);

    box-shadow:
        0 18px 45px rgba(15,23,42,.10);

}


.product-preview {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f1f5f9;

}


.product-preview img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    

}


.shop-product:hover
.product-preview img {

    transform: none;

}


.product-preview::after {

    content: "VIEW";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(15,23,42,.45);

    color: white;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;

    opacity: 0;

    transition: opacity .25s ease;

}


.shop-product:hover
.product-preview::after {

    opacity: 1;

}



/* =====================================================
   PRODUCT INFO
===================================================== */

.product-info {

    padding: 18px;

}


.product-info h4 {

    margin: 0 0 8px;

    color: var(--shop-dark);

    font-size: 16px;

    line-height: 1.4;

}


.product-info p {

    min-height: 42px;

    margin: 0 0 16px;

    color: var(--shop-muted);

    font-size: 13px;

    line-height: 1.6;

}


.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.product-bottom strong {

    color: var(--shop-dark);

    font-size: 18px;

}


.add-product-btn {

    border: 0;

    border-radius: 9px;

    padding: 9px 12px;

    background: var(--shop-primary);

    color: white;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;

}


.add-product-btn:hover {

    background: var(--shop-primary-dark);

    transform: translateY(-1px);

}



/* =====================================================
   PRODUCT MODAL
===================================================== */

.product-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.product-modal.active {

    display: flex;

}


.product-modal-overlay {

    position: absolute;

    inset: 0;

    background: rgba(2,6,23,.78);

    backdrop-filter: blur(8px);

}


/* =====================================================
   MODAL BOX
===================================================== */

.product-modal-box {

    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 94vh;

    overflow-y: auto;

    background: white;

    border-radius: 24px;

    box-shadow:
        0 30px 100px rgba(0,0,0,.30);

}



/* =====================================================
   MODAL CLOSE BUTTON
===================================================== */

.product-modal-close {

    position: absolute;

    z-index: 20;

    top: 14px;

    right: 14px;

    width: 44px;

    height: 44px;

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.96);

    color: #111827;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 8px 25px rgba(0,0,0,.14);

    transition:
        transform .2s ease,
        background .2s ease;

}


.product-modal-close:hover {

    background: #f1f5f9;

    transform: scale(1.06);

}



/* =====================================================
   PRODUCT VIEWER
   MAIN IMAGE = 1:1 RATIO
===================================================== */

.product-viewer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding: 25px 30px 0;

}


/* =====================================================
   MAIN PRODUCT IMAGE
===================================================== */

.main-product-image {

    width: min(600px, 100%);

    aspect-ratio: 1 / 1;

    height: auto;

    overflow: hidden;

    border-radius: 18px;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   MAIN PRODUCT IMAGE
===================================================== */

.main-product-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 18px;

}



/* =====================================================
   VIEWER ARROWS
===================================================== */

.viewer-arrow {

    flex: 0 0 auto;

    width: 46px;

    height: 46px;

    border: 0;

    border-radius: 50%;

    background: var(--shop-dark);

    color: white;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background .2s ease,
        transform .2s ease;

}


.viewer-arrow:hover {

    background: var(--shop-primary);

    transform: scale(1.08);

}



/* =====================================================
   THUMBNAILS
===================================================== */

.product-thumbnails {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 20px 30px;

    overflow-x: auto;

    scrollbar-width: thin;

}


.product-thumbnail {

    flex: 0 0 78px;

    width: 78px;

    height: 78px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;

    border-radius: 10px;

    background: #f1f5f9;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;

}


.product-thumbnail:hover {

    transform: translateY(-2px);

}


.product-thumbnail.active {

    border-color: var(--shop-primary);

}


.product-thumbnail img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

}



/* =====================================================
   MODAL PRODUCT INFORMATION
===================================================== */

.product-modal-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 5px 30px 30px;

}


.modal-category {

    display: inline-block;

    margin-bottom: 7px;

    color: var(--shop-primary-dark);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.product-modal-info h2 {

    margin: 0 0 8px;

    color: var(--shop-dark);

    font-size: 25px;

    line-height: 1.3;

}


.product-modal-info p {

    max-width: 600px;

    margin: 0;

    color: var(--shop-muted);

    line-height: 1.6;

    font-size: 14px;

}


.modal-product-bottom {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-shrink: 0;

}


.modal-product-bottom strong {

    color: var(--shop-dark);

    font-size: 25px;

}


.modal-add-cart {

    border: 0;

    border-radius: 10px;

    padding: 13px 20px;

    background: var(--shop-primary);

    color: white;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .2s ease;

}


.modal-add-cart:hover {

    background: var(--shop-primary-dark);

    transform: translateY(-1px);

}



/* =====================================================
   CART OVERLAY
===================================================== */

.cart-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(17, 24, 39, .48);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.cart-overlay.active {

    opacity: 1;

    visibility: visible;

}



/* =====================================================
   CART DRAWER
===================================================== */

.cart-drawer {

    position: fixed;

    z-index: 10001;

    top: 0;

    right: 0;

    width: min(440px, 100%);

    height: 100vh;

    display: flex;

    flex-direction: column;

    background: white;

    box-shadow:
        -15px 0 50px rgba(0,0,0,.16);

    transform: translateX(100%);

    transition: transform .35s ease;

}


.cart-drawer.active {

    transform: translateX(0);

}



/* =====================================================
   CART HEADER
===================================================== */

.cart-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 24px;

    border-bottom: 1px solid var(--shop-border);

}


.cart-header-small {

    display: block;

    margin-bottom: 3px;

    color: var(--shop-primary-dark);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.cart-header h3 {

    margin: 0;

    color: var(--shop-dark);

    font-size: 22px;

}


.cart-close {

    width: 38px;

    height: 38px;

    border: 0;

    border-radius: 50%;

    background: var(--light);

    color: var(--shop-dark);

    font-size: 1.7rem;

    cursor: pointer;

}



/* =====================================================
   CART ITEMS
===================================================== */

.cart-items {

    flex: 1;

    overflow-y: auto;

    padding: 20px;

}


.cart-category-title {

    margin: 15px 0 10px;

    color: var(--shop-primary-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.cart-category-title:first-child {

    margin-top: 0;

}


.cart-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid #f1f5f9;

}


.cart-item-image {

    flex: 0 0 55px;

    width: 55px;

    height: 55px;

    overflow: hidden;

    border-radius: 9px;

    background: #f1f5f9;

}


.cart-item-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.cart-item-info {

    flex: 1;

    min-width: 0;

}


.cart-item-name {

    color: var(--shop-dark);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;

}


.cart-item-price {

    margin-top: 5px;

    color: var(--shop-muted);

    font-size: 13px;

}


.cart-remove {

    flex: 0 0 auto;

    width: 32px;

    height: 32px;

    border: 0;

    border-radius: 8px;

    background: #fee2e2;

    color: #dc2626;

    font-size: 20px;

    cursor: pointer;

}



/* =====================================================
   EMPTY CART
===================================================== */

.empty-cart {

    padding: 60px 20px;

    text-align: center;

}


.empty-cart-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--shop-muted);

    font-size: 30px;

}


.empty-cart h3 {

    margin: 0 0 8px;

    color: var(--shop-dark);

}


.empty-cart p {

    margin: 0;

    color: var(--shop-muted);

    font-size: 14px;

    line-height: 1.6;

}



/* =====================================================
   CART FOOTER
===================================================== */

.cart-footer {

    padding: 20px;

    border-top: 1px solid var(--shop-border);

    background: white;

}


.cart-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;

}


.cart-total span {

    color: var(--shop-muted);

    font-size: 14px;

}


.cart-total strong {

    color: var(--shop-dark);

    font-size: 22px;

}


.cart-checkout {

    width: 100%;

    padding: 15px;

    border: 0;

    border-radius: 11px;

    background: #25d366;

    color: white;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition: background .2s ease;

}


.cart-checkout:hover {

    background: #1ebe5d;

}


.cart-checkout:disabled {

    opacity: .45;

    cursor: not-allowed;

}


.cart-note {

    margin: 12px 0 0;

    text-align: center;

    color: var(--shop-muted);

    font-size: 11px;

    line-height: 1.5;

}



/* =====================================================
   CART BUTTON
===================================================== */

.cart-icon-btn {

    position: relative;

    width: 45px;

    height: 45px;

    border: 1px solid var(--shop-border);

    border-radius: 12px;

    background: white;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;

}


.cart-icon-btn:hover {

    border-color: var(--shop-primary);

    transform: translateY(-1px);

}


.cart-symbol {

    font-size: 20px;

}


.cart-badge {

    position: absolute;

    top: -6px;

    right: -6px;

    min-width: 20px;

    height: 20px;

    padding: 0 5px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50px;

    background: var(--shop-primary);

    color: white;

    font-size: 10px;

    font-weight: 800;

}



/* =====================================================
   FOOTER
===================================================== */

footer {

    padding: 6rem 2rem 2rem;

    background-color: var(--light);

    border-top: 1px solid var(--border);

    font-size: 0.9rem;

}


.footer-container {

    max-width: 1200px;

    margin: 0 auto 4rem;

    display: grid;

    grid-template-columns:
        1.2fr
        0.8fr
        0.8fr
        1.2fr;

    gap: 4rem;

}


.footer-brand {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}


.footer-socials {

    display: flex;

    gap: 1rem;

}


.social-icon {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--white);

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--dark-muted);

    transition: var(--transition);

}


.social-icon:hover {

    background-color: var(--primary);

    border-color: var(--primary);

    color: var(--white);

}


.footer-col-title {

    margin-bottom: 1.5rem;

    color: var(--dark);

    font-size: 1.05rem;

    font-weight: 700;

}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 0.75rem;

    list-style: none;

}


.footer-link a:hover {

    padding-left: 4px;

    color: var(--primary);

}


.footer-contact {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}


.footer-bottom {

    max-width: 1200px;

    margin: 0 auto;

    padding-top: 2rem;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-top: 1px solid var(--border);

    font-size: 0.85rem;

}



/* =====================================================
   RESPONSIVE — 1150px
===================================================== */

@media (max-width: 1150px) {

    .shop-grid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

    }

}



/* =====================================================
   RESPONSIVE — 900px
===================================================== */

@media (max-width: 900px) {

    .shop-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    .shop-category-header {

        align-items: flex-start;

        flex-direction: column;

    }


    .product-modal-info {

        flex-direction: column;

        align-items: flex-start;

    }


    .modal-product-bottom {

        width: 100%;

        justify-content: space-between;

    }


    .product-modal-box {

        width: min(720px, 100%);

    }


    .main-product-image {

        width: min(500px, 100%);

    }

}



/* =====================================================
   RESPONSIVE — 650px
===================================================== */

@media (max-width: 650px) {

    .shop-hero {

        padding: 70px 18px;

    }


    .shop-section {

        padding: 55px 15px;

    }


    .shop-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 13px;

    }


    .product-info {

        padding: 13px;

    }


    .product-info h3 {

        font-size: 14px;

    }


    .product-info p {

        font-size: 12px;

    }


    .product-bottom {

        align-items: stretch;

        flex-direction: column;

    }


    .add-product-btn {

        width: 100%;

    }



    /* ---------------------------------------------
       MOBILE MODAL
    --------------------------------------------- */

    .product-modal {

        padding: 10px;

    }


    .product-modal-box {

        width: 100%;

        max-height: 96vh;

        border-radius: 20px;

    }


    .product-modal-close {

        top: 10px;

        right: 10px;

        width: 40px;

        height: 40px;

    }


    .product-viewer {

        padding: 18px 10px 0;

        gap: 7px;

    }


    /* IMPORTANT:
       MAIN IMAGE REMAINS 1:1
    */

    .main-product-image {

        width: 100%;

        aspect-ratio: 1 / 1;

        height: auto;

        border-radius: 14px;

    }


    .main-product-image img {

        border-radius: 14px;

    }


    .viewer-arrow {

        width: 36px;

        height: 36px;

        font-size: 25px;

    }


    /* ---------------------------------------------
       THUMBNAILS
    --------------------------------------------- */

    .product-thumbnails {

        padding: 15px 15px;

        gap: 8px;

    }


    .product-thumbnail {

        flex: 0 0 65px;

        width: 65px;

        height: 65px;

    }


    /* ---------------------------------------------
       MODAL INFO
    --------------------------------------------- */

    .product-modal-info {

        padding: 5px 20px 25px;

    }


    .product-modal-info h2 {

        font-size: 21px;

    }


    .product-modal-info p {

        font-size: 13px;

    }


    .modal-product-bottom {

        align-items: stretch;

        flex-direction: column;

        width: 100%;

        gap: 12px;

    }


    .modal-product-bottom strong {

        font-size: 23px;

    }


    .modal-add-cart {

        width: 100%;

        padding: 14px;

    }


    /* ---------------------------------------------
       FOOTER
    --------------------------------------------- */

    .footer-bottom {

        align-items: flex-start;

        flex-direction: column;

    }

}

/* SHOP FILTER BUTTONS */
.shop-filter {
    padding: 7px 13px;
    font-size: 14px;
    min-height: 36px;
}

.shop-filter .filter-label {
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE — 420px
===================================================== */

@media (max-width: 420px) {

    .shop-grid {

        grid-template-columns: 1fr;

    }


    .product-viewer {

        padding-left: 8px;

        padding-right: 8px;

    }


    .main-product-image {

        width: calc(100% - 70px);

    }


    .viewer-arrow {

        width: 34px;

        height: 34px;

        font-size: 23px;

    }

}


/* =====================================================
   INTERACTIVE 3D MODAL PREVIEW
===================================================== */

.main-product-image.interactive-3d-preview {
    position: relative;
    overflow: hidden;
    perspective: 1100px;
    cursor: grab;
    touch-action: none;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(16, 185, 129, .18),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #f8fafc,
            #e8eef4
        );
}

.main-product-image.interactive-3d-preview::before {
    content: "MOVE OR DRAG TO ROTATE";
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, .78);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .2s ease;
}

.main-product-image.interactive-3d-preview::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 20%;
    right: 20%;
    bottom: 7%;
    height: 11%;
    border-radius: 50%;
    background: rgba(15, 23, 42, .32);
    filter: blur(18px);
    pointer-events: none;
}

.main-product-image.interactive-3d-preview.is-dragging {
    cursor: grabbing;
}

.main-product-image.interactive-3d-preview.is-dragging::before {
    opacity: 0;
}

.main-product-image.interactive-3d-preview img {
    position: relative;
    z-index: 2;
    width: 88%;
    height: 88%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow:
        0 28px 45px rgba(15, 23, 42, .30),
        0 2px 1px rgba(255, 255, 255, .65) inset;
    transform: rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: visible;
    transform-origin: center center;
    transition:
        transform .12s ease-out,
        box-shadow .2s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.main-product-image.interactive-3d-preview.is-dragging img {
    transition: box-shadow .2s ease;
    box-shadow:
        0 38px 60px rgba(15, 23, 42, .38),
        0 2px 1px rgba(255, 255, 255, .65) inset;
}

@media (hover: none) {
    .main-product-image.interactive-3d-preview::before {
        content: "DRAG TO ROTATE";
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-product-image.interactive-3d-preview img {
        transition: none;
    }
}

/* Live paid-order availability */
.payment-status-indicator{display:inline-flex;align-items:center;gap:9px;margin:4px 0 20px;padding:8px 13px;border:1px solid rgba(148,163,184,.28);border-radius:999px;background:rgba(255,255,255,.72);color:#334155;font-size:.84rem;font-weight:800;box-shadow:0 8px 20px rgba(15,23,42,.08);backdrop-filter:blur(12px)}.payment-status-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.16)}.payment-status-indicator.is-online{border-color:rgba(34,197,94,.3);color:#087f3e}.payment-status-indicator.is-online .payment-status-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.16),0 0 14px rgba(34,197,94,.82);animation:paymentPulse 1.6s ease-in-out infinite}.payment-status-indicator.is-offline{border-color:rgba(239,68,68,.29);color:#b4233b}.payment-status-indicator.is-offline .payment-status-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.14),0 0 13px rgba(239,68,68,.72)}@keyframes paymentPulse{50%{transform:scale(.8);box-shadow:0 0 0 7px rgba(34,197,94,0),0 0 17px rgba(34,197,94,.9)}}
/* Product articles and crawlable bundle links */
.product-modal-info{flex-wrap:wrap}
.product-modal-info>.product-article{order:3;flex:1 0 100%;min-width:0;padding:22px 0 3px;border-top:1px solid #e5e7eb}
.product-article[hidden],#modalArticleFaqSection[hidden]{display:none}
.product-article h3{margin:0 0 13px;font-size:1.35rem;color:var(--shop-dark)}
.product-article h4{margin:20px 0 12px;color:var(--shop-dark)}
.product-article #modalArticleContent p{margin:0 0 12px;max-width:75ch;line-height:1.7}
.product-article details{border-top:1px solid #e5e7eb;padding:12px 0}
.product-article summary{cursor:pointer;font-weight:700}
.product-article details p{padding-top:8px}
@media(max-width:600px){.product-modal-info>.product-article{padding-top:18px}}
\n.product-modal-info>.full-article-link{order:4;flex:1 0 100%;margin:0}.full-article-link a{color:var(--shop-primary-dark);font-weight:800;text-decoration:underline}\n
/* Compact bundle cards: long descriptions belong in the preview and article. */
.shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.shop-product{display:flex;flex-direction:column;min-width:0}
.shop-product .product-preview{flex:none}
.shop-product .product-info{display:flex;flex-direction:column;flex:1;height:auto;min-width:0;padding:17px}
.shop-product .product-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:2.8em;margin:7px 0 9px;line-height:1.4}
.shop-product .product-card-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:0;max-height:3.2em;margin:0 0 13px;font-size:.8rem;line-height:1.6}
.shop-product .product-formats{margin-bottom:12px}
.shop-product .product-bottom{margin-top:auto;padding-top:13px;border-top:1px solid #edf1f1}
@media(max-width:1150px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.shop-grid{grid-template-columns:minmax(0,1fr)}}

/* Let visitors reach the first bundle row without crossing a tall intro. */
.shop-hero{padding:48px 20px 34px}
.shop-hero .section-tag{margin-bottom:10px}
.shop-hero .section-title{margin-bottom:10px}
.shop-hero p{line-height:1.5;max-width:780px}
.shop-section{padding:26px 20px 70px}
.shop-container .cdr-discovery{margin:34px auto 0;padding:18px 22px}
.shop-product:focus-visible{outline:3px solid #087a58;outline-offset:3px}
.modal-bundle-facts{font-weight:750;color:#173b30;line-height:1.6;margin:14px 0 8px}
.modal-purchase-note{border-left:3px solid #10b981;background:#f0faf5;padding:10px 13px;border-radius:0 8px 8px 0;color:#34584b;line-height:1.55}
/* Sparse view counts distract from the preview and do not represent reviews. */
.shop-product .product-popularity{display:none!important}
@media(max-width:640px){.shop-hero{padding:38px 16px 30px!important}.shop-section{padding:22px 16px 58px}.shop-container .cdr-discovery{margin-top:24px}}

/* Prominent top ribbon for every zero-price bundle. */
.shop-product .product-preview .free-ribbon {
  position:absolute; inset:0 0 auto; z-index:10;
  display:flex; align-items:center; justify-content:center;
  width:100%; min-width:0; padding:10px 12px; box-sizing:border-box;
  border:0; border-radius:0; background:#facc15; color:#111827;
  box-shadow:0 3px 10px rgba(17,24,39,.18); transform:none;
  pointer-events:none;
}
.shop-product .free-ribbon .free-ribbon-main {
  display:block; color:#111827; font-size:18px; line-height:1.2;
  font-weight:900; letter-spacing:2px;
}
.shop-product:hover .product-preview .free-ribbon { transform:none; }
@media(max-width:650px) {
  .shop-product .product-preview .free-ribbon { padding:8px 10px; }
  .shop-product .free-ribbon .free-ribbon-main { font-size:16px; }
}

/* Red folded corner ribbon, matching the supplied reference. */
.shop-product .product-preview .free-ribbon {
  inset:auto; top:25px; left:-43px; width:170px; min-width:0;
  padding:10px 0; border:1px solid #ef3828; border-radius:0;
  background:linear-gradient(180deg,#d51b0b 0%,#f05c4b 42%,#cf1607 100%);
  color:#fff; font-size:20px; line-height:1.2; font-weight:900;
  letter-spacing:2px; text-align:center; transform:rotate(-45deg);
  box-shadow:0 5px 8px rgba(0,0,0,.25); overflow:visible;
}
.shop-product .product-preview .free-ribbon::before,
.shop-product .product-preview .free-ribbon::after {
  content:""; position:absolute; top:100%; width:0; height:0;
  border-top:8px solid #8f170c;
}
.shop-product .product-preview .free-ribbon::before {
  left:-1px; border-left:8px solid transparent;
}
.shop-product .product-preview .free-ribbon::after {
  right:-1px; border-right:8px solid transparent;
}

.shop-product .free-ribbon .free-ribbon-main {
  color:#fff; font-size:20px; line-height:1.2; font-weight:900; letter-spacing:2px;
}
.shop-product:hover .product-preview .free-ribbon { transform:rotate(-45deg); }

/* Preserve the complete supplied Bundle World logo on every screen size. */
.bundle-world-brand {
    margin: 0 auto 20px;
    width: min(100%, 640px);
    line-height: 0;
}
.bundle-world-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Compact catalogue entry and clear preview facts. */
.shop-hero{padding:28px 20px 24px}
.bundle-world-brand{width:min(100%,360px);margin-bottom:12px}
.shop-filter-wrapper{margin-top:18px}
.preview-current-price{font-size:22px;font-weight:800;color:#0b6650;margin:12px 24px 8px}
.preview-artwork-note{font-size:14px;line-height:1.6;color:#475569;margin:8px 24px 18px}
.viewer-arrow[hidden]{display:none}
.product-modal button:focus-visible,.product-modal summary:focus-visible{outline:3px solid #0b6650;outline-offset:4px}
@media(max-width:600px){.shop-hero{padding:20px 16px}.bundle-world-brand{width:240px}.preview-current-price{margin:12px 16px}.preview-artwork-note{margin:8px 16px 14px}}
