#laser-line {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    height: 4px; /* Adjust thickness */
    background-color: red; /* Laser color */
    box-shadow: 0 0 10px red; /* Glow effect */
    opacity: 0.8; /* Slight transparency */
    animation: laser-blink 1s infinite alternate;
}

@keyframes laser-blink {
    0% { opacity: 0.8; }
    100% { opacity: 0.4; }
}


.fixed-button {
    position: fixed;
    bottom: 62px;
    left: 10px;
    width: 48px;
    height: 48px;
    background-color: #c30000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 999;
}
.fixed-button:hover {
    background-color: white;
    color: #c30000;
    border: 2px solid #c30000;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}
.popup-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 90vh;
    background: white;
    border-radius: 8px;
    overflow-y: auto;
    padding: 0px;
}
.close-button {
    position: absolute;
    top: -10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 45px;
    color: gray;
    z-index: 9999;
}
.close-button:hover {
    color: black;
}
.scan-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #c30000;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.scan-button:hover {
    background-color: #a00000;
}
.hidden {
    display: none;
}

#scanner {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.container {
    max-width: 600px;
    margin: auto;
}
.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.button {
    padding: 10px 20px;
    background-color: red;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.quantity-controls {
    display: flex;
    align-items: center;
}
.quantity-controls button {
    padding: 5px 10px;
    margin: 0 5px;
    background: gray;
    color: white;
    border: none;
    cursor: pointer;
}
.message {
    text-align: center;
    color: green;
    font-weight: bold;
}

.quantity-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 160px;
}
.quantity-button {
    background-color: #d1d5db;
    color: #1f2937;
    font-size: 24px;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.quantity-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.quantity-input {
    width: 48px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}


#increase:disabled{
    opacity: 0.5;
}

#decrease:disabled{
    opacity: 0.5;
}

@media (min-width: 768px) {
    #openPopup{display: none;}
}