body {
    position: relative;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}
body::before {
    content: "";
    background-image: url('<?php echo $backgroundImageUrl; ?>');
    background-repeat: repeat;
    background-size: 1200px 1200px;
    opacity: 0.06;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
}

.container {
    max-width: 1150px;
    margin: 15px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-details {
    display: flex;
    gap: 20px;
    align-items: flex-start; 
    flex-wrap: wrap;
}

.product-images {
    flex: 1;
    position: relative;
}

.product-images img {
    width: 100%;  
    max-width: 400px;
    height: auto; 
    border-radius: 10px;
    object-fit: cover; 
    cursor: pointer;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 10px;
}

.thumbnail {
    width: 80px; 
    height: 60px; 
    margin: 5px; 
    cursor: pointer;
    border: 1px solid #ccc; 
    border-radius: 5px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover; 
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 40px;
    height: 40px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #717171;
}

.product-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ee1c25;
    margin-bottom: 10px; 
}

.category,
.barcode,
.stock-code,
.gtin,
.status {
    font-size: 1.2rem; 
    color: #555;
    margin-bottom: 5px;
}

.status {
    font-weight: bold;
    color: <?php echo $stok > 0 ? 'green' : 'red'; ?>;
}

.price {
    font-size: 1.8rem; 
    color: #fc6d2d;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 10px 0;
    max-width: 1150px; 
    margin: 20px auto; 
}

.tab {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #ddd;
}

.active-tab {
    background-color: #fc6d2d;
    color: white;
}

.tab-content {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1150px; 
    margin: 0 auto; 
    display: none;
}

.description-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.add-to-cart-btn {
    background-color: #fc6d2d;
    color: #fff;
    border: none;
    padding: 12px 24px; 
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 15px;
}

.add-to-cart-btn:hover {
    background-color: #e5631a;
    transform: scale(1.05);
}

.login-prompt {
    font-size: 1rem;
    color: #fc6d2d;
    text-align: center;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.tabs-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .product-details {
        flex-direction: column; 
        align-items: center; 
    }
    .product-info {
        align-items: center; 
        text-align: center; 
    }
    .price {
        font-size: 1.2rem; 
    }
    .add-to-cart-btn {
        font-size: 0.9rem; 
    }
}

@media (max-width: 576px) {
    .price {
        font-size: 1rem; 
    }
    .add-to-cart-btn {
        font-size: 0.8rem; 
    }
}