* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fb;
    color: #1d2733;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #dce4ee;
    padding: 18px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #0057b8;
}

.navigation {
    display: flex;
    gap: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 18px;
    border-left: 1px solid #dce4ee;
}

.language-switcher a {
    padding: 6px 8px;
    border-radius: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: #ffffff;
    background: #0057b8;
}

.navigation a {
    color: #26374a;
    text-decoration: none;
    font-weight: 600;
}

.navigation a:hover {
    color: #0057b8;
}

.hero {
    background: linear-gradient(135deg, #0057b8, #003f87);
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 32px;
}

.search-form {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.search-form input {
    width: 100%;
    border: none;
    padding: 18px;
    font-size: 16px;
    outline: none;
}

.search-form button {
    border: none;
    background-color: #102a43;
    color: #ffffff;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #091c2e;
}

.categories {
    padding: 60px 0;
}

.categories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 45, 75, 0.08);
}

.category-card h3 {
    color: #0057b8;
    margin-bottom: 12px;
}

.search-page {
    min-height: calc(100vh - 80px);
    padding: 54px 0;
}

.search-form-page {
    max-width: none;
    border: 1px solid #dce4ee;
    box-shadow: 0 8px 24px rgba(20, 45, 75, 0.08);
}

.search-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 42px 0 22px;
}

.search-heading h1,
.search-heading p {
    margin: 0;
}

.product-results {
    display: grid;
    gap: 14px;
}

.product-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(20, 45, 75, 0.08);
}

.result-image {
    display: grid;
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    color: #64748b;
    background: #f1f5f9;
    text-align: center;
    text-decoration: none;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.details-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    text-decoration: none;
}

.product-result-card h2 {
    margin: 8px 0;
    font-size: 20px;
}

.product-brand {
    color: #0057b8;
    font-weight: 800;
}

.product-code {
    color: #64748b;
}

.product-result-meta {
    display: grid;
    gap: 8px;
    min-width: 150px;
    text-align: right;
}

.product-result-meta strong {
    color: #0057b8;
    font-size: 22px;
}

.in-stock {
    color: #166534;
}

.out-of-stock {
    color: #9f1239;
}

.no-results {
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.product-page {
    min-height: calc(100vh - 80px);
    padding: 54px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.15fr) minmax(260px, 0.75fr);
    gap: 30px;
    align-items: start;
}

.product-gallery,
.product-info,
.purchase-card {
    padding: 26px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 45, 75, 0.08);
}

.main-product-image,
.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    color: #64748b;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.product-thumbnail {
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #0057b8;
}

.product-thumbnail img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.product-info h1 {
    margin: 12px 0 18px;
}

.product-data div {
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
}

.product-data dt {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.product-data dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.purchase-card {
    display: grid;
    gap: 16px;
}

.product-price {
    color: #0057b8;
    font-size: 30px;
}

.warehouse-stock div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.technical-section {
    margin-top: 30px;
    padding: 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 45, 75, 0.08);
}

.technical-section h2 {
    margin-top: 0;
}

.technical-table {
    margin: 0;
}

.technical-table div {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 1fr;
    gap: 24px;
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
}

.technical-table dt {
    color: #64748b;
}

.technical-table dd {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .navigation {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions {
        flex-direction: column;
        gap: 14px;
    }

    .language-switcher {
        padding-left: 0;
        border-left: 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .search-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-form button {
        padding: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-heading,
    .product-result-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-result-meta {
        text-align: left;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}
