
.product-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.price-table-wrapper {
    margin-bottom: 25px;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
}
.price-table th {
    background: #333;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    text-align: center;
}
.price-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 15px;
}

/* Main layout */
.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Main product image */
.main-image-box {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
}
.main-image-box img {
    width: 100%;
    height: 470px;
    object-fit: contain;
}

/* Thumbnail slider */
.thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}
.thumb-item {
    width: 100px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-item:hover,
.thumb-item.active {
    border-color: #333;
}

/* Product Info */
.product-info h1 {
    font-size: 28px;
    font-weight: 700;
}
.product-price-box {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Color & size selectors */
.color-option,
.size-option,
.type-option {
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-option.active,
.size-option.active,
.type-option.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Add to cart */
.add-to-cart {
    margin-left: 12px;
}

/* Description tab */
.desc-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    background: #fafafa;
}

@media(max-width: 768px){
    .product-section {
        grid-template-columns: 1fr;
    }
}


.color-selector {
    margin-bottom: 20px;
}

.section-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    width: 75px;
    height: 75px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.color-option img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.color-swatch {
    display: block;
    width: 100%;
    height: 45px;
    border-radius: 4px;
}

.color-label {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.color-option.active {
    border-color: #000;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}


    .size-qty-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .size-box {
        width: 55px;
        text-align: center;
    }

    .size-box .size-name {
        font-weight: 600;
        margin-bottom: 3px;
        font-size: 0.9em;
    }

    .size-box button {
        border: none;
        background: none;
        padding: 0;
        font-size: 1.1em;
        cursor: pointer;
        color: #333;
        line-height: 1;
    }

    .size-box button:hover {
        color: #0d6efd;
    }

    .size-box input {
        width: 45px;
        height: 32px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        padding: 0;
        margin: 2px 0;
    }

    .size-box input:focus {
        outline: none;
        border-color: #0d6efd;
    }

    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type=number] {
        -moz-appearance: textfield;
    }

.position-images-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.position-images-section h5 {
    color: #333;
    font-weight: 600;
}

.position-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start; /* Changed from center to flex-start */
}

.position-thumb-list .thumb-item {
    width: 120px;
    text-align: center;
}

.position-thumb-list .thumb-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.position-thumb-list .thumb-item small {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.position-thumb-list .thumb-item.active small {
    color: #000;
    font-weight: bold;
}