body {
        font-family: Arial, sans-serif;
        height: 100%;
        margin: 0;
        padding: 0;
        align-items: flex-start;
        pointer-events: auto;


        background-image: url('../images/PCbackground3.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 red;
    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: 220px;
    background: darkred;
    color: white;
    padding: 13px;
    border-radius: 20px;
    font-weight: bolder;
    font-size: 15px;
    white-space: nowrap;
}

.top-buttons button {
    width: 220px;
    padding: 14px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.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;
    gap: 10px;
}

.bottom-buttons button {
    flex: 1;
    padding: 8px;
    background: lightgray;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

.advanced { border: 2px solid black; }

@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) and (max-height: 450px) {
 .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;
    }
    .top-buttons button {
        height: 40px;
        border-radius: 5px;
        font-size: 12px;
        padding: 6px 10px;
        width: 138px;         
    }
    .price-tag {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 28px;
        border-radius: 5px;
        width: 85px;
        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;
        gap: 6px;              
        width: 100%;
        justify-content: center;
        margin-right: 10px;
        margin-bottom: 5px;
    }
    .bottom-buttons button {
        font-size: 10.5px;
        padding: 6px 10px;
    }

}




@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;
}

@media (max-width: 480px), (max-width: 1200px) and (min-width: 850px) and (min-height: 800px) {

    .main-box {
        display: none !important;
    }
    .main-mobile {
        display: block !important;
    }
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;
        
        background-image: url('../../images/PCbackgroundReal.jpg') !important;
	    background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		border-radius: 20px;
    }
    html, body {
        background-color: black;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    body {
        pointer-events: auto;
    }
    .main-mobile {
        width: 92%;
        height: 93.5vh;
        max-height: 93.5svh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-radius: 15px;
        background: white;
    }
    .upper-box {
        display: grid;
        grid-template-columns: 58% 42%;
        gap: 10px;
    }
    .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;
    }
    .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: 70px;
        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, #7a0000, #ff0000) !important;
    }
    .buy-now {
        background: linear-gradient(90deg, #5a0000, #b30000) !important;
    }
    .lower-box {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 5px;

    }
    .middle-box {
        height: 198px;
        width: 95%;
        border-radius: 25px !important;
        overflow: hidden;
        margin-left: 10px;
        margin-top: 5px;
        
    }
    .middle-box iframe {
        width: 100%;
        height: 100%;
        border: 0;
        pointer-events: none !important;
    }
    .specification {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    .minimum,
    .advanced {
        background: linear-gradient(90deg, #7a0000, #ff0000) !important;
        border: none !important;
        border-radius: 20px !important;
        cursor: pointer !important;
        font-weight: bold !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
        color: white !important;
        text-align: center !important;
        padding: 10px;
        padding-top: 30px;
        padding-bottom: 30px;

        box-shadow: 0 0 15px rgba(255,0,0,0.55) !important;
        width: 90%;
    }
   .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,
  #cartModal {
    width: 75%;
    max-width: 360px;
    max-height: 510px;
    height: 100%;
    background: #1c1c1c;
    border-radius: 18px;
    padding: 15px;
    overflow-y: auto;
  }

  #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: 10px;
  }

  .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;
  }
  #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 */
#specModal .modal-close {
    position: absolute;
    top: 5px;
    right: 10px;

    background: none;
    border: none;

    color: red;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;

    text-shadow: 0 0 10px rgba(255,0,0,0.8);
}
}
@media (max-width: 1200px) and (min-width: 850px) and (min-height: 800px) {

  /* === OSNOVA === */
  html, body {
    height: 100%;
    overflow: hidden;
  }

  .main-box {
    display: none !important;
  }

  .main-mobile {
    width: 90%;
    height: 90%;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* === GORNJI DIO (slika + dugmad) === */
  .main-mobile .upper-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 20px;

    flex: 0 0 240px;

  }

  .main-mobile .left-box {
    flex: 0 0 300px;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
  }

  .main-mobile .left-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .main-mobile .right-box {
    flex: 1;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* === CIJENA + DUGMAD === */
  .main-mobile .price-tag,
  .main-mobile .buy-now,
  .main-mobile .add-cart {
    width: 450px;
    height: 50px;
    font-size: 14px;
    border-radius: 20px;
  }

  /* === VIDEO === */
  .main-mobile .middle-box {
    width: 86.5%;
    margin: 10px auto;
    border-radius: 22px;
    overflow: hidden;

    flex: 0.70;
  }

  /* === SPECIFIKACIJE === */
  .main-mobile .specification {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 92%;
    margin: 11px auto 20px;

    flex: 0 0 220px;
  }

  .main-mobile .minimum,
  .main-mobile .advanced {
    width: 100%;
    margin: 0;
    font-size: 15px;
  }

  /* === IKONICE === */
  .main-mobile .icons-row {
    gap: 14px;
  }

  .main-mobile .logo-icon,
  .main-mobile .cart-icon {
    width: 52px;
    height: 52px;
  }
}


   

.blur {
    filter: blur(5px);
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
}
@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;
    animation: popup 0.28s ease-out;
}
.modal.active {
    display: block;
}
@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 {
    width: 80%;
    max-width: 450px;
    height: 80%;
    max-height: 400px;
}
#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 !important;
    border: 1px solid #400000 !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    border-radius: 6px !important;
    color: #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    box-shadow: 0 0 8px rgba(255,0,0,0.2) !important;
}
.cart-item button {
    background: #b00000 !important;
    color: white !important;
    border: none !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    cursor: pointer !important;
  }

#cartList::-webkit-scrollbar {
    width: 7px;
}
#cartList::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 10px;
}
#cartList::-webkit-scrollbar-track {
    background: #222;
}
#overlay {
  pointer-events: auto;
}
#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 0 25px rgba(255,0,0,0.7)
        0 0 40px rgba(255,0,0,0.4) !important;
}

#cartModal,
#orderForm,
#successModal {
  pointer-events: auto;
  z-index: 10000;
}

#overlay {
  z-index: 9000;
}
#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;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #ff0000;
  cursor: pointer;
  line-height: 1;
  z-index: 10001;
  transition: 0.2s;
}

.modal-close:hover {
  transform: scale(1.15);
  color: #ff4d4d;
}