#merch-container {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
}

.merch-visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.merch-video, .view-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.merch-video {
    object-fit: cover;
    pointer-events: none;
}

.merch-video.is-active, .view-container.is-active {
    opacity: 1;
    pointer-events: auto;
}

.view-container {
    pointer-events: none;
}

.glow-overlay {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.glow-overlay.is-glowing {
    opacity: 1;
}

.product-hotspot, #zoom-in-trigger {
    position: absolute;
    cursor: pointer;
}

#product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#product-modal-overlay.is-visible {
    display: flex;
    overflow-y: scroll;
}

@media screen and (max-width: 1800px) and (max-height: 820px) {
    body #product-modal-overlay.is-visible {
        padding-top: 20vh;
    }
}

#product-modal-content {
    background-color: #1E2029;
    background-image: url("/wp-content/themes/cocoro-theme/assets/images/merch/Asset1@6x-8.png");
    background-repeat: no-repeat;
    background-size: 48%;
    background-position: right -26% bottom -55%;
    color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid #3A3D4C;
    position: relative;
    max-width: 1024px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#product-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.8rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

#product-modal-close:hover {
    color: #fff;
}

.product-modal-layout-v2 {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-modal-main-content {
    display: flex;
    gap: 45px;
}

.modal-gallery-column {
    flex-basis: 45%;
    flex-shrink: 0;
}
.modal-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    border: 1px solid #3A3D4C;
    border-radius: 4px;
    overflow: hidden;
}
.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 4px;
}
.modal-gallery-thumbnails {
    display: flex;
    gap: 10px;
}
.gallery-thumbnail {
    width: 65px;
    height: 65px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #3A3D4C;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
}
.gallery-thumbnail:hover, .gallery-thumbnail.is-active {
    opacity: 1;
    border: 2px solid #03c3f1;
}

.modal-details-column {
    flex-basis: 55%;
    display: flex;
    flex-direction: column;
}
.modal-details-column h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}
.modal-description {
    font-size: 0.95rem;
    color: #aeb4c4;
    flex-grow: 0;
}
.modal-price {
    margin-bottom: 0;
}
body .modal-price .woocommerce-Price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #04c3f1;
}

.modal-actions {
    display: flex;
    justify-content: center;
    align-items: normal;
    align-content: center;
    gap: 30px;
    padding-top: 20px;
    margin: 0 auto;
    width: 69%;
}
.modal-actions form.cart {
    margin-bottom: 0;
}
.modal-actions .button {
    display: block;
    padding: 15px;
    text-align: center;
    align-items: center;
    align-content: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}
body .modal-actions p {
    border: 0!important;
    padding: 0!important;
    margin: 0;
    flex: 2;
}
body .modal-actions p a.ajax_add_to_cart {
    color: #fff;
    border: 2px solid #09ffff;
    font-size: 24px;
    background-color: #ffffff00;
    padding: 6% 20% 6% 20%;
    -webkit-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    -moz-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
}
body .modal-actions p:hover a {
    color: #09ffff;
}
.modal-actions .single_add_to_cart_button {
    background: transparent;
    color: #4D8BFF;
    border: 2px solid #4D8BFF;
    -webkit-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    -moz-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
}
.modal-actions .single_add_to_cart_button:hover {
    background: #4D8BFF;
    color: #fff;
}
.modal-actions .buy-now-button {
    background: #4d8bff00;
    color: #fff;
    border: 2px solid #09ffff;
    font-size: 24px;
    padding: 2% 8% 2% 8%;
    flex: 1;
        -webkit-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    -moz-box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
    box-shadow: 0px 0px 24px -9px rgba(9, 255, 255, 1);
}
.modal-actions .buy-now-button:hover {
    background: #ffffff00;
    color: #09ffff;
}

.short-key-title-desk {
    color: #04c3f1;
    text-transform: uppercase;
    font-weight: 800;
    line-height: normal;
    flex-grow: 0;
    padding-bottom: 20px;
}

.full-desc {
    font-weight: 200;
    color: #fff;
    line-height: 1.45;
    padding-bottom: 30px;
}

body .modal-actions p a.ajax_add_to_cart:hover {
    background: #ffffff00!important;
    color: #09ffff!important;
}

.merch-navigation-button {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform:
    translateX(-50%);
    cursor: pointer;
    width: 10%;
}

.modal-meta {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #aeb4c4;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between category and size lines */
}

.modal-meta .meta-label {
    font-weight: 600;
    color: #fff;
    margin-right: 8px;
}

.modal-meta a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #555;
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    font-size: 18px;
}

.modal-meta a:hover {
    color: #4D8BFF;
    border-bottom-color: #4D8BFF;
}

.modal-attributes {
    display: flex;
    align-items: baseline;
    text-transform: uppercase;
}

.modal-attributes span {
    font-size: 17px;
}

.modal-attributes span:hover {
    -webkit-box-shadow: inset 0px 0px 19px 0px rgba(3, 195, 241, 1);
-moz-box-shadow: inset 0px 0px 19px 0px rgba(3, 195, 241, 1);
box-shadow: inset 0px 0px 19px 0px rgba(3, 195, 241, 1);
    color: #fff;
    background-color: #03c3f1;
}

.modal-attributes span {
    border: 2px solid #03c3f1;
    text-align: center;
    justify-content: center;
    align-items: end;
    padding: 4px;
    border-radius: 5px;
    -webkit-box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
    -moz-box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
    box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
    color: #03c3f1;
    font-weight: 900;
    transition: 0.2s ease-in-out;
}

/* ==========================================================================
   11. Merch Page Mobile - Panoramic Scroll
   ========================================================================== */

@media screen and (max-width: 991px) {
    body.page-template-template-merch {
        overflow-x: auto;
    }

    #merch-container {
        width: 400vw; 
        
        overflow: visible;
    }

    .merch-visual-container {
        width: 100%;
    }
    .merch-nav-mob, .merch-nav-mob-in-zoom {
        display: block;
        position: fixed;
        z-index: 100;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 30%; 
    }

    .merch-nav-mob img, .merch-nav-mob-in-zoom img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 991px) {
    .glow-overlay.always-glowing {
        opacity: 1;
    }
    #product-modal-content {
        padding: 20px;
        /* max-height: 90vh; */
        display: flex;
        flex-direction: column;
        margin-top: 40px;
    }

    #product-modal-overlay {
        align-items: flex-start;
        padding-top: 5vh;
    }

    #product-modal-overlay.is-visible {
        overflow-y: scroll;
        padding-top: unset;
        padding-top: 0!important;
    }

    .product-modal-layout-v2 {
        flex-direction: column;
        gap: 25px;
        flex-grow: 1;
        overflow-y: auto;
        position: relative;
        padding-top: 45px;
    }

    .product-modal-main-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .modal-gallery-column,
    .modal-details-column {
        flex-basis: 100%;
    }

    .modal-details-column h1 {
        font-size: 1.8rem;
    }

    .modal-price .woocommerce-Price-amount {
        font-size: 2rem !important;
    }

    .modal-description {
        max-height: none; 
        overflow-y: visible;
        position: static;
    }
    .modal-description::after {
        display: none;
    }

    .modal-gallery-column,
    .modal-details-column {
        flex-basis: 100%;
    }

    .modal-actions .button {
        padding: 12px;
        font-size: 1.8rem;
    }

    .modal-gallery-thumbnails {
        display: flex;
        flex-wrap: wrap;
    }

    #product-modal-close {
        top: 5px;
        right: 16px;
        z-index: 11;
    }

    .product-modal-main-content {
        display: grid;
    }

    .modal-actions {
        display: block;
        gap: 21px;
        padding-top: 20px;
        margin: 0 auto;
        width: 100%;
        flex-shrink: 0;
    }

    body .modal-actions p {
        margin-bottom: 25px;
    }

    body .modal-actions p, body .modal-actions p a {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

#zoom-out-button, .merch-nav-mob {
    animation: pulse 4s ease-in-out infinite;
}