.product-page {
    padding: 80px 0 96px;
}

.product-inner {
    max-width: 1120px;
}

.product-header {
    margin: 0 0 24px;
}

.product-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}

.product-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.02em;
    color: #171717;
}

.product-breadcrumb {
    flex-shrink: 0;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: #a3a3a3;
}

.product-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-breadcrumb li {
    display: flex;
    align-items: center;
}

.product-breadcrumb li:not(:first-child)::before {
    content: ">";
    margin: 0 8px;
    color: #d4d4d4;
}

.product-breadcrumb a {
    color: #a3a3a3;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #171717;
}

.product-breadcrumb [aria-current="page"] {
    color: #737373;
}

.product-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.product-subnav-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 14px;
    line-height: 20px;
    color: #171717;
    text-decoration: none;
}

.product-subnav-link:hover {
    border-color: #171717;
}

.product-subnav-link.is-active {
    border-color: #0d1b3d;
    background: #0d1b3d;
    color: #ffffff;
}

.product-empty {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #737373;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}

.product-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card-image.has-hover:hover .product-card-image-hover,
.product-card-link:hover .product-card-image.has-hover .product-card-image-hover {
    opacity: 1;
}

.product-card-name {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 22px;
    color: #171717;
}

.product-card-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.product-card-month {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #2f7de1;
}

.product-card-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 0;
}

.product-card-rate {
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: rgb(199, 0, 0);
}

.product-card-now {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: #171717;
}

.product-card-prices .product-card-now {
    margin: 0;
}

.product-card-was {
    font-size: 13px;
    line-height: 18px;
    color: #a3a3a3;
    text-decoration: line-through;
}

.product-pager {
    margin: 40px 0 0;
}

.product-pager-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    font-size: 14px;
    line-height: 20px;
    color: #171717;
    text-decoration: none;
}

.product-pager-btn:hover {
    border-color: #0d1b3d;
    color: #0d1b3d;
}

.product-pager-btn.is-active {
    border-color: #0d1b3d;
    background: #0d1b3d;
    color: #ffffff;
}

.product-pager-btn.is-disabled {
    border-color: #f0f0f0;
    background: #fafafa;
    color: #d4d4d4;
    pointer-events: none;
}

@media all and (max-width: 1024px) {
    .product-page {
        padding: 64px 0 80px;
    }

    .product-title {
        font-size: 28px;
        line-height: 36px;
    }

    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media all and (max-width: 767px) {
    .product-page {
        padding: 40px 0 64px;
    }

    .product-title {
        font-size: 24px;
        line-height: 32px;
    }

    .product-header {
        margin: 0 0 16px;
    }

    .product-header-top {
        flex-direction: column;
        gap: 8px;
    }

    .product-breadcrumb {
        order: -1;
        margin: 0;
    }

    .product-subnav {
        gap: 6px;
        margin: 12px 0 0;
    }

    .product-subnav-link {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
        line-height: 18px;
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-pager {
        margin: 28px 0 0;
    }

    .product-pager-list {
        gap: 4px;
    }

    .product-pager-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        line-height: 18px;
    }
}

/* ---------- category car search ---------- */

.car-search {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 26px 28px 28px;
    margin-bottom: 36px;
}

.car-search-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.car-search-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.car-search-total {
    position: absolute;
    right: 0;
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.car-search-total strong {
    color: var(--oe-primary, #2286c1);
    font-weight: 700;
}

.car-search-form {
    position: relative;
}

.car-search-reset {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.car-search-reset:hover {
    color: #111827;
    text-decoration: underline;
}

.car-search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 12px;
}

.car-search-field {
    display: block;
    min-width: 0;
}

.car-search-field select {
    width: 100%;
    height: 56px;
    padding: 0 40px 0 18px;
    border: 0;
    border-radius: 0;
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    color: #374151;
    font-size: 15px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

.car-search-field select:focus-visible {
    outline: 2px solid var(--oe-primary, #2286c1);
    outline-offset: -2px;
}

.car-search-submit {
    height: 56px;
    border: 0;
    border-radius: 0;
    background: var(--oe-primary, #2286c1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}

.car-search-submit:hover {
    background: var(--oe-navy, #0d1b3d);
}

@media (max-width: 900px) {
    .car-search {
        padding: 20px 18px 22px;
    }

    .car-search-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 26px;
    }

    .car-search-title {
        font-size: 20px;
    }

    .car-search-total {
        position: static;
    }

    .car-search-fields {
        grid-template-columns: 1fr 1fr;
    }

    .car-search-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .car-search-fields {
        grid-template-columns: 1fr;
    }
}
