/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content styles */
#content {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 40px;
    min-height: 100vh;
    margin: 127px 0;
    color: rgba(0, 0, 0, 1);
    font-family: 'M PLUS 1';
}

/* Product images section */
.product-images {
    width: 100%;
}

.main-image {
    width: 100%;
    margin-bottom: 10px;
}

.custom-big-image-slide {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sub-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-rows: 100px;
    grid-auto-flow: row;
    gap: 10px;
    max-width: 100%;
    margin-top: 10px;
}

.custom-image-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.custom-image-slide:hover {
    opacity: 0.8;
}

/* Product info section */
.product-info {
    padding: 0 20px;
}

h1 {
    margin: 0;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 25px;
}

.product-price-value {
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    line-height: 100%;
    display: block;
    margin-bottom: 10px;
}

.price01-default {
    color: #999;
    font-size: 24px;
    text-decoration: line-through;
}

.price02-default {
    color: #000;
    font-size: 36px;
    transition: all 0.3s ease;
}

.product-free-area, .product-description {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 25px;
}

.product-code {
    margin-bottom: 25px;
}

.product-code-label {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
}

.product-code-default {
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
}

.stock-status-display {
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 25px;
}

.form-select {
    margin-bottom: 25px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

select[name="classcategory_id1"], select[name="classcategory_id2"] {
    margin-bottom: 25px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.quantity-label {
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    margin-right: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.custom-quantity {
    width: 60px;
    text-align: center;
    border: none;
    padding: 12px;
    font-size: 16px;
}

.item-minus, .item-plus {
    background: #f5f5f5;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.item-minus:hover, .item-plus:hover {
    background: #e0e0e0;
}
.item-minus.btn-disabled, .item-plus.btn-disabled {
  display: none;
}

.product-stock-status {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    text-align: center;
}

.quantity-form {
    margin-bottom: 77px;
}

.add-cart {
    width: 100%;
    background-color: rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    height: 77px;
    border-radius: 5px;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-cart:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.add-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.product-stock-info {
    margin-bottom: 77px;
}

.user-imei-form {
    margin-bottom: 25px;
}

.imei-label {
    display: block;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    margin-bottom: 25px;
}

.custom-quantity.form-control {
    background: #fff !important;
}

/* Form error styles */
.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

.form-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    #content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin: 100px 0;
    }

    .product-name {
        font-size: 22px;
    }

    .product-price-value {
        font-size: 32px;
    }

    .price01-default {
        font-size: 20px;
    }

    .price02-default {
        font-size: 32px;
    }

    .quantity-label, .product-stock-status {
        font-size: 20px;
    }

    .add-cart {
        font-size: 20px;
        height: 60px;
    }

    .form-error {
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    #content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 80px 0;
    }

    .product-info {
        padding: 0;
    }

    .product-name {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .product-price {
        margin-bottom: 20px;
    }

    .product-price-value {
        font-size: 28px;
    }

    .price01-default {
        font-size: 18px;
    }

    .price02-default {
        font-size: 28px;
    }

    .product-free-area, .product-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .product-code {
        margin-bottom: 20px;
    }

    .product-code-label, .product-code-default {
        font-size: 14px;
    }

    .form-error {
        font-size: 12px;
    }

    .stock-status-display {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-select {
        margin-bottom: 20px;
        padding: 10px;
        font-size: 14px;
    }

    select[name="classcategory_id1"], select[name="classcategory_id2"] {
        margin-bottom: 20px;
        padding: 10px;
        font-size: 14px;
    }

    .quantity-label {
        font-size: 18px;
        margin-right: 8px;
    }

    .quantity-input-group {
        align-self: flex-start;
    }

    .custom-quantity {
        width: 50px;
        padding: 10px;
        font-size: 14px;
    }

    .item-minus, .item-plus {
        padding: 10px 12px;
        font-size: 16px;
    }

    .product-stock-status {
        display: flex;
        align-items: center;
        font-size: 18px;
        margin-left: 0;
        align-self: flex-start;
        text-align: center;
    }

    .quantity-form {
        margin-bottom: 50px;
    }

    .add-cart {
        font-size: 18px;
        height: 50px;
    }

    .product-stock-info {
        margin-bottom: 50px;
    }

    .sub-images {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 80px;
        gap: 8px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    #content {
        margin: 60px 0;
    }

    .product-name {
        font-size: 18px;
    }

    .product-price-value {
        font-size: 24px;
    }

    .price01-default {
        font-size: 16px;
    }

    .price02-default {
        font-size: 24px;
    }

    .quantity-label {
        font-size: 16px;
    }

    .custom-quantity {
        width: 45px;
        padding: 8px;
        font-size: 14px;
    }

    .item-minus, .item-plus {
        padding: 8px 10px;
        font-size: 14px;
    }

    .product-stock-status {
        display: flex;
        align-items: center;
        font-size: 16px;
        text-align: center;
    }

    .add-cart {
        font-size: 16px;
        height: 45px;
    }

    .form-error {
        font-size: 11px;
    }

    .sub-images {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 70px;
        gap: 6px;
    }
}
