body {
        font-family: Arial, sans-serif;
        height: 100%;
        margin: 0;
        padding: 0;
        align-items: flex-start;


        background-image: url('../images/XBbackground11.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
.main-box {
    display: flex;
    width: 100%;
    max-width: 1400px;   
    margin: 80px auto;
    gap: 10px;
    padding: 10px;

    background-color: white;
    border: 2px solid green;
    border-radius: 20px;

    box-shadow: 0 6px 25px rgba(0,0,0,0.3);    
}

.left-box {
    width: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-box img {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
}

.right-box {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.top-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.price-tag {
    text-align: center;
    width: 320px;
    color: darkgreen;
    padding: 13px;
    border-radius: 20px;
    font-weight: bolder;
    font-size: 16px;
    white-space: nowrap;
}
.price-tag,
.add-cart {
    background: linear-gradient(90deg, #1f7a00, #00ff66) !important;
        }
.buy-now {
    background: linear-gradient(90deg, #0f4200, #009944) !important;
        }

.buy-now { background-color: darkblue; }
.buy-now:hover { background-color: blue; transform: scale(.95); }

.add-cart { background-color: darkred; }
.add-cart:hover { background-color: red; transform: scale(.95); }

.logo-icon,
.cart-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 6px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

.logo-icon img,
.cart-icon img {
    width: 115%;
    height: 115%;
    object-fit: contain;
    cursor: pointer;
}

.middle-box {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background: #ddd;
}

.middle-box iframe {
    width: 100%;
    height: 100%;
}
.bottom-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.bottom-buttons button {
    height: 80px;
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
}

@media (max-width: 1500px) {
    .main-box {
        width: 90vw;
        max-width: 1200px;
    }
    .left-box img {
        max-width: 100%;
    }
    .middle-box {
        aspect-ratio: 16/9;
    }
}
    

@media (max-width: 1200px) and (min-width: 850px) {
 .main-box {
        width: 85vw;         
        max-width: none;
        padding: 0;
        margin: 5px auto;
        align-items: center;
        border-radius: 20px;
    }
    .left-box {
        width: 38%;
    }
    .left-box img {
        border-radius: 18px;
        margin: 5px;
        width: 97%;
    }
    .right-box {
        width: 62%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .logo-icon,
    .cart-icon {
        height: 45px !important;        
        width: 45px !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;      
    }
    .top-buttons {
        gap: 6px;
        margin-bottom: 0px;
    }
   
    .price-tag {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 28px;
        border-radius: 5px;
        width: 165px;
        font-size: 11px;
        padding: 6px 10px;
    }
    .middle-box {
        width: 100%;              
        height: 200px;
        border-radius: 18px;
        margin-right: 10px;
        overflow: hidden;
        position: relative;
    }
    .middle-box iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        border-radius: 15px;
    }

    .bottom-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;              
        width: 100%;
        margin-right: 10px;
        margin-bottom: 5px;
    }
    .bottom-buttons button {
        font-size: 14px;
        padding: 10px 12px;
        height: 50px;
    }
}


    
@media (max-width: 768px) {
    .main-box {
        flex-direction: column;
        max-width: 600px;
    }

    .left-box, .right-box {
        width: 100%;
    }

    .left-box img {
        max-width: 300px;
        margin: 0 auto;
    }
    .middle-box {
        height: 250px;
    }
    .bottom-buttons {
        flex-direction: column;
    }
}
.main-mobile {
    display: none !important;
}

@media (max-width: 480px) {
      .main-box {
        display: none !important;
    }
    .main-mobile {
        display: block !important;
    }
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;

        background-image: url('../../images/XBbackgroundReal.jpg') !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 20px !important;
    }
    body {
        pointer-events: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-mobile {
        width: 92%;
        height: 100% !important;
        max-height: 75svh !important;
        margin: 0 auto;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
        background: white;
    }
    .upper-box {
        display: grid;
        grid-template-columns: 55% 45%;
        gap: 10px;
        margin-top: 5px;
    }
    .left-box {
        border-radius: 5px;
        overflow: hidden;
        margin-left: 10px;
        margin-top: 5px;
        border-radius: none !important;
    }
    .left-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center !important;
        max-height: 500px;
    }
    .right-box {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .icons-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 90%;
        margin-left: 5px;
        position: relative;
    }
    .logo-icon {
        margin-top: 2px;
    }
    .logo-icon,
    .cart-icon {
        position: relative;
        width: 55px;
        height: 55px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
    .cart-icon {
        position: relative;
        overflow: visible !important;
    }
    .cart-count {
        position: absolute;
        top: 35px !important;
        right: -5px !important;
        min-width: 20px !important;
        height: 20px !important;
        background: red;
        color: #fff;
        font-size: 11px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .price-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
        margin-left: 5px;
    }
    .price-tag,
    .buy-now,
    .add-cart {
        width: 90%;
        height: 50px;
        border-radius: 20px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }
    .price-tag {
        padding: 0;
    }
    .price-tag,
    .add-cart {
        background: linear-gradient(90deg, #003a7a, #0094ff) !important;
    }
    .buy-now {
        background: linear-gradient(90deg, #001f42, #005491) !important;
    }
    .lower-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 5px;

    }
    .middle-box {
        height: 200px;
        width: 95%;
        border-radius: 25px !important;
        overflow: hidden;
        margin-left: 10px;
        margin-top: 10px;
        
    }
    .middle-box iframe {
        width: 100%;
        height: 100%;
        pointer-events: none !important;
    }
    .modal {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        display: none;
        align-items: center;
        justify-content: center;
        padding: 10px;
        z-index: 9999;
        pointer-events: auto !important;
    }
    .modal.active {
        pointer-events: auto;
    }

    #orderForm {
        width: 75%;
        max-width: 360px;
        max-height: 510px;
        height: 100%;
        background: #1c1c1c;
        border-radius: 18px;
        padding: 15px;
        overflow-y: auto;
    }
    #cartModal {
        width: 75%;
        max-width: 360px;
        height: 100%;
        max-height: 350px;
    }
    #consoleModal {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 75%;
        max-width: 250px;
        height: 75%;
        max-height: 200px;
    }
    #consoleModal h2 {
        font-size: 18px !important;
        margin-bottom: 30px !important;
    }
    .console-options {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #orderForm input,
    #orderForm textarea {
        width: 70%;
        font-size: 14px;
        padding: 10px;
        border-radius: 10px;
    }

    #orderForm textarea {
        min-height: 80px;
    }

    .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: 14px;
    }

    #cartList {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #2a2a2a;
        padding: 10px;
        border-radius: 12px;
        font-size: 14px;
    }
    .cart-item button {
        background: #b00000;
        color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
    }
 
    #closeSuccess {
        display: block;
        text-align: center;
        text-decoration: none;
        margin-top: auto;
    }
    #successModal {
        width: 70% !important;
        max-width: 480px !important;
        height: 30%;
        max-height: 800px;

        pointer-events: auto !important;
        position: fixed;
        z-index: 99999;
    }
    #successModal h2 {
        margin-top: 25px;
    }
    #successModal .btn {
        display: block !important;
        width: 80% !important;
        max-width: 300px !important;
        margin: 0 auto 14px !important;
        padding: 12px !important;

        background: linear-gradient(90deg, #7a0000, #ff0000) !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        font-weight: bold !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
        color: white !important;
        text-align: center !important;

        box-shadow: 0 0 15px rgba(255,0,0,0.55) !important;
        transition: 0.2s !important;
    }
    #successModal .btn:hover {
        transform: scale(1.03) !important;
        box-shadow:
            0 25px rgba(255,0,0,0.7)
            0 0 40px rgba(255,0,0,0.4) !important;
    }
    #specOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        background: rgba(0, 0, 0, 0.6);

        display: none;
        pointer-events: none;
        z-index: 999;
    }
    #specOverlay.active {
        display: block;
        pointer-events: auto;
    }
    #specModal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 75%;
        max-width: 360px;
        height: fit-content;
        max-height: none;

        background: #0b0b0b;
        border-radius: 25px;
        padding: 18px 15px;

        border: 2px solid red;
        box-shadow:
            0 0 20px rgba(255,0,0,0.6),
            0 0 60px rgba(255,0,0,0.4);

        display: none;
        z-index: 1000;

    }
    /* NASLOV */
    #specModal h2 {
        text-align: center;
        color: red;
        margin-top: 10px;
        margin-bottom: 20px;
        font-size: 18px;
        letter-spacing: 1px;
        text-shadow: 0 0 10px rgba(255,0,0,0.7);
    }

    /* SADRŽAJ SPECIFIKACIJA */
    #specContent {
        color: #ddd;
        font-size: 15px;
        line-height: 1.6;
        overflow-y: auto;
    }

    /* BOLD LABELS */
    #specContent b {
        color: white;
    }

    /* X DUGME */
    .modal-close {
        position: absolute !important;
        top: 5px !important;
        right: 10px !important;

        background: none !important;
        border: none !important;

        color: red !important;
        font-size: 30px !important;
        font-weight: bold !important;
        cursor: pointer !important;

        text-shadow: 0 0 10px rgba(255,0,0,0.8) !important;
    }

}

.blur {
    filter: blur(5px);
    pointer-events: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 9;
    animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0;}
    to   { opacity: 1;}
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0a0a0a;
    padding: 25px;
    width: 400px;
    border-radius: 12px;
    border: 2px solid #ff0000;
    box-shadow: 
        0 0 25px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 0, 0, 0.25);
    display: none;
    z-index: 10;
    animation: popup 0.28s ease-out;
}
@keyframes popup {
    0% { transform: translate(-50%, -48%) scale(0.95); opacity: 0;}
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1;}
}
.modal h2 {
    text-align: center;
    color: #ff0000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.modal input,
.modal textarea {
    display: block;
    width: 80%;
    max-width: 300px;
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 6px;
    background: #111;
    border: 2px solid #222;
    color: #fff;
    transition: 0.25s;
    font-size: 14px;
}
.modal input:focus,
.modal textarea:focus {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    outline: none;
}
.modal input::placeholder,
.modal textarea::placeholder {
    color: #bbb;
}
#orderForm .btn {
    display: block !important;
    width: 80% !important;
    max-width: 300px !important;
    margin: 0 auto 14px !important;
    padding: 12px !important;

    background: linear-gradient(90deg, #7a0000, #ff0000) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    color: white !important;
    text-align: center !important;

    box-shadow: 0 0 15px rgba(255,0,0,0.55) !important;
    transition: 0.2s !important;
}

#orderForm .btn:hover {
    transform: scale(1.03) !important;
    box-shadow:
        0 0 25px rgba(255,0,0,0.7)
        0 0 40px rgba(255,0,0,0.4) !important;
}
#cartModal .btn {
    display: block !important;
    width: 80% !important;
    max-width: 300px !important;
    margin: 0 auto 14px !important;
    padding: 12px !important;

    background: linear-gradient(90deg, #7a0000, #ff0000) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    color: white !important;
    text-align: center !important;

    box-shadow: 0 0 15px rgba(255,0,0,0.55) !important;
    transition: 0.2s !important;
}

#cartModal .btn:hover {
    transform: scale(1.03) !important;
    box-shadow:
        0 0 25px rgba(255,0,0,0.7)
        0 0 40px rgba(255,0,0,0.4) !important;
}



.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    font-size: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
}

#cartList {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 5px;
}


.cart-item {
    background: #111;
    border: 1px solid #400000;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 0 8px rgba(255,0,0,0.2);
}
.remove-item {
    background: #330000;
    color: #ff4444;
    border: 1px solid #660000;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: bold;
}
.remove-item:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255,0,0,0.6);
}
#cartList::-webkit-scrollbar {
    width: 7px;
}
#cartList::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 10px;
}
#cartList::-webkit-scrollbar-track {
    background: #222;
}
#consoleModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: #0a0a0a;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ff0000;

    box-shadow: 
        0 0 25px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 0, 0, 0.3);

    z-index: 9999;
    text-align: center;
}

#consoleModal h2 {
    color: #ff0000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,0,0,0.7);
}


#consoleModal .console-btn {
    width: 80%;
    padding: 12px;
    border-radius: 8px;
    margin: 10px auto;
    background: linear-gradient(90deg, #7a0000, #ff0000);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: block;

    box-shadow:
        0 0 15px rgba(255,0,0,0.5),
        0 0 25px rgba(255,0,0,0.3);
}

#consoleModal .console-btn:hover {
    transform: scale(1.05);
}
#overlay.blur {
  backdrop-filter: blur(25px);
  background: rgba(0, 0, 0, 0.92);
}

body.modal-blur > *:not(#overlay):not(.modal) {
  filter: blur(25px);
  pointer-events: none;
}
#cartModal,
#orderForm,
#successModal {
  pointer-events: auto;
  z-index: 10000;
}
