/* item-page.css */

#itemPage {
    max-width: 90%;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.product-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.product-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background: #f7f7f7;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.product-description {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
}

.product-price span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1976d2;
}

.product-options,
.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.product-options label,
.product-actions label {
    font-size: 1rem;
    color: #333;
}

select,
input[type="number"] {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s;
}

select:focus,
input[type="number"]:focus {
    border-color: #1976d2;
    outline: none;
}

.add-to-cart-btn {
    padding: 10px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: #145ea8;
}

@media (max-width: 700px) {
    .product-container {
        flex-direction: column;
        align-items: stretch;
    }
    .product-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    #itemPage {
        padding: 16px;
        margin: 20px auto;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price span {
        font-size: 1.25rem;
    }

    .product-options,
    .product-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #itemPage {
        max-width: 95%;
        padding: 12px;
        margin: 10px auto;
        border-radius: 10px;
    }

    .product-container {
        gap: 16px;
    }

    .product-image img {
        border-radius: 8px;
    }

    .product-details {
        gap: 12px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-description {
        font-size: 0.95rem;
    }

    select,
    input[type="number"] {
        padding: 10px 14px;
        font-size: 1rem;
    }
}

.product-number {
    font-size: 1.1rem;
    color: #888;
    margin-top: 4px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}