
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    color: #222;
}

.header {
    background: #172554;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

.header h1 {
    margin-bottom: 10px;
    font-size: 28px;
}

.header p {
    color: #cbd5e1;
}

.container {
    max-width: 1100px;
    margin: 35px auto;
    padding: 20px;
}

.extract-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.extract-box h2 {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 15px;
    margin-bottom: 15px;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
    margin: 5px 0;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#status {
    margin-top: 12px;
    color: #475569;
}

#productResults h2 {
    margin: 30px 0 18px;
}

.product-card {
    display: flex;
    gap: 25px;
    background: white;
    padding: 22px;
    border-radius: 12px;
    align-items: center;
}

#mainImage {
    width: 230px;
    max-height: 250px;
    object-fit: contain;
}

.product-details {
    line-height: 2;
    overflow-wrap: anywhere;
}

.product-details h3 {
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-details a {
    color: #2563eb;
}

.image-gallery,
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.related-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

.related-card h3 {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-card a {
    color: #2563eb;
}

@media (max-width: 600px) {
    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    #mainImage {
        width: 100%;
    }

    .container {
        margin: 15px auto;
        padding: 12px;
    }
}
