* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #111827;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #0f172a;
}

.logo span {
    color: #0057d9;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #111827;
    text-decoration: none;
    font-size: 15px;
}

.whatsapp-btn {
    background: #22c55e;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.hero {
    background: linear-gradient(135deg, #071526, #0b3a77);
    color: white;
    padding: 70px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 16px;
}

.hero p {
    font-size: 18px;
    color: #dbeafe;
}

.search-form {
    display: flex;
    margin-top: 28px;
    max-width: 620px;
}

.search-form input {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 16px;
}

.search-form button {
    border: none;
    background: #0057d9;
    color: white;
    padding: 0 28px;
    border-radius: 0 12px 12px 0;
    font-weight: 700;
}

.hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 28px;
    border-radius: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.category-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 36px 0;
}

.filters {
    background: white;
    padding: 22px;
    border-radius: 18px;
    height: fit-content;
}

.filters label {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
}

.filters select {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.product-image {
    height: 170px;
    background: #e5e7eb;
    border-radius: 14px;
    margin-bottom: 14px;
}

.product-card h3 {
    margin: 0 0 8px;
}

.price {
    font-size: 20px;
    font-weight: 800;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.green {
    background: #dcfce7;
    color: #15803d;
}

.orange {
    background: #ffedd5;
    color: #c2410c;
}

.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

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

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.details-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #0057d9;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    padding: 46px 0;
}

.product-detail-image,
.product-detail-info {
    background: white;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.big-product-image {
    width: 100%;
    height: 420px;
    background: #e5e7eb;
    border-radius: 18px;
}

.product-detail-info h1 {
    margin: 0 0 12px;
    font-size: 34px;
}

.detail-price {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 18px;
    color: #0057d9;
}

.detail-badges {
    margin-bottom: 24px;
}

.detail-table {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.detail-table div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-table strong {
    color: #374151;
}

.detail-table span {
    text-align: right;
    color: #111827;
}

.description-box {
    margin-top: 24px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 16px;
}

.product-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn {
    flex: 1;
    text-align: center;
    background: #0057d9;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.whatsapp-btn.big {
    flex: 1;
    text-align: center;
    padding: 14px 18px;
}

.note {
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
}

.lead-section {
    background: white;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 46px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.lead-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
}

.lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form button {
    border: none;
    background: #0057d9;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .big-product-image {
        height: 280px;
    }

    .product-detail-info h1 {
        font-size: 28px;
    }

    .detail-price {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

    .detail-table div {
        flex-direction: column;
        gap: 4px;
    }

    .detail-table span {
        text-align: left;
    }
}

.success-message {
    background: #dcfce7;
    color: #15803d;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.filters input {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.filter-btn {
    width: 100%;
    margin-top: 20px;
    border: none;
    background: #0057d9;
    color: white;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.reset-filter {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 700;
}
.catalog-page {
    padding: 36px 0;
    background: #f4f7fb;
    min-height: calc(100vh - 72px);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.filters {
    background: #ffffff;
    padding: 22px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 96px;
}

.filters h3 {
    margin: 0 0 24px;
    font-size: 22px;
}

.filters label {
    display: block;
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
}

.filters input,
.filters select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d6dce7;
    border-radius: 12px;
    background: white;
    font-size: 15px;
}

.filter-btn {
    width: 100%;
    height: 52px;
    margin-top: 24px;
    border: none;
    background: #0057d9;
    color: white;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.reset-filter {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 800;
}

.catalog-content {
    min-width: 0;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.catalog-header h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.1;
}

.catalog-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-weight: 700;
}

.sort-select {
    width: 210px;
    height: 46px;
    border: 1px solid #d6dce7;
    border-radius: 12px;
    background: white;
    padding: 0 14px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.11);
}

.product-image-wrap {
    position: relative;
    height: 210px;
    background: #e5e7eb;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.image-badge.green {
    background: #dcfce7;
    color: #15803d;
}

.image-badge.orange {
    background: #ffedd5;
    color: #c2410c;
}

.condition-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.product-card-body {
    padding: 18px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.product-car {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.price {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.details-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    border-radius: 14px;
    background: #0057d9;
    color: white;
    text-decoration: none;
    font-weight: 900;
}

.empty-catalog {
    grid-column: 1 / -1;
    background: white;
    padding: 36px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.empty-catalog h3 {
    margin: 0 0 8px;
}

.empty-catalog p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .catalog-header h1 {
        font-size: 32px;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .catalog-page {
        padding: 24px 0;
    }

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

    .product-image-wrap {
        height: 220px;
    }
}

.product-detail-page {
    padding: 42px 0 56px;
    background: #f4f7fb;
    min-height: calc(100vh - 72px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
}

.breadcrumbs a {
    color: #0057d9;
    text-decoration: none;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}

.product-gallery,
.product-info-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.big-product-img,
.big-product-image {
    width: 100%;
    height: 480px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.product-info-card h1 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1.15;
    color: #0f172a;
}

.product-detail-car {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 16px;
    font-weight: 800;
}

.detail-price {
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 950;
    color: #0057d9;
}

.detail-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.detail-table {
    display: grid;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
}

.detail-table div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.detail-table div:last-child {
    border-bottom: none;
}

.detail-table strong {
    color: #475569;
    font-weight: 900;
}

.detail-table span {
    color: #0f172a;
    font-weight: 700;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 26px;
}

.primary-btn,
.whatsapp-btn.big {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 950;
}

.primary-btn {
    background: #0057d9;
    color: white;
}

.whatsapp-btn.big {
    background: #22c55e;
    color: white;
}

.note {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.product-description {
    margin-top: 28px;
}

.lead-section {
    margin-top: 28px;
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.lead-section-header {
    margin-bottom: 22px;
}

.lead-section-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.lead-section-header p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lead-form textarea {
    grid-column: 1 / -1;
}

.lead-form button {
    grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #d6dce7;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
}

.lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form button {
    border: none;
    background: #0057d9;
    color: white;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
}

.success-message {
    background: #dcfce7;
    color: #15803d;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .big-product-img,
    .big-product-image {
        height: 360px;
    }

    .product-info-card h1 {
        font-size: 30px;
    }

    .detail-price {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .product-detail-page {
        padding: 24px 0 40px;
    }

    .breadcrumbs {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .product-gallery,
    .product-info-card,
    .lead-section {
        border-radius: 20px;
        padding: 18px;
    }

    .big-product-img,
    .big-product-image {
        height: 280px;
    }

    .product-info-card h1 {
        font-size: 26px;
    }

    .detail-table div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .lead-form {
        grid-template-columns: 1fr;
    }
}
.product-detail-shell {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.product-main-card,
.lead-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.product-main-inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.product-photo-box {
    min-width: 0;
}

.product-detail-img,
.product-detail-placeholder {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    background: #e5e7eb;
}

.product-photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.product-info-box h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.15;
    color: #0f172a;
}

.product-detail-car {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 16px;
    font-weight: 800;
}

.detail-price {
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 950;
    color: #0057d9;
}

.detail-table.compact div {
    grid-template-columns: 120px 1fr;
    padding: 12px 14px;
}

.lead-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.lead-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 700;
}

.lead-form-card {
    display: grid;
    gap: 10px;
}

.lead-form-card label {
    font-weight: 800;
    font-size: 14px;
    color: #0f172a;
}

.lead-form-card input,
.lead-form-card textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d6dce7;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
}

.lead-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form-card button {
    margin-top: 8px;
    border: none;
    background: #0057d9;
    color: white;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .lead-card {
        max-width: 100%;
    }
}

@media (max-width: 850px) {
    .product-main-inner {
        grid-template-columns: 1fr;
    }

    .product-detail-img,
    .product-detail-placeholder {
        height: 320px;
    }
}

@media (max-width: 560px) {
    .product-main-card,
    .lead-card {
        padding: 18px;
        border-radius: 20px;
    }

    .product-detail-img,
    .product-detail-placeholder {
        height: 260px;
    }

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

    .product-info-box h1 {
        font-size: 26px;
    }

    .detail-price {
        font-size: 30px;
    }

    .detail-table.compact div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

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

.menu-toggle {
    display: none;
    border: none;
    background: #0057d9;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filters-toggle {
    display: none;
    border: none;
    background: #0057d9;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-inner {
        height: 68px;
        position: relative;
    }

    .logo {
        font-size: 22px;
    }

    .menu-toggle {
        display: block;
    }

    .header-whatsapp {
        padding: 10px 14px;
        font-size: 14px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        padding: 18px;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
        z-index: 50;
    }

    .nav.is-open {
        display: grid;
        gap: 14px;
    }

    .nav a {
        font-size: 16px;
        font-weight: 800;
        padding: 10px 0;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .filters {
        position: static;
        padding: 18px;
    }

    .filters h3 {
        margin: 0;
        font-size: 20px;
    }

    .filters-toggle {
        display: block;
    }

    .filters-form {
        display: none;
        margin-top: 18px;
    }

    .filters.is-open .filters-form {
        display: block;
    }

    .catalog-header {
        margin-bottom: 20px;
    }

    .catalog-header h1 {
        font-size: 30px;
    }

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

    .product-image-wrap {
        height: 230px;
    }
}

@media (max-width: 420px) {
    .header-whatsapp {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .catalog-header h1 {
        font-size: 28px;
    }

    .product-image-wrap {
        height: 210px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none !important;
    }

    .nav.is-open {
        display: grid !important;
    }

    .filters-form {
        display: none !important;
    }

    .filters.is-open .filters-form {
        display: block !important;
    }
}
/* Mobile product detail polish */
@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 36px;
    }

    .breadcrumbs {
        font-size: 13px;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .product-detail-shell {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-main-card,
    .lead-card {
        padding: 16px;
        border-radius: 20px;
    }

    .product-main-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-img,
    .product-detail-placeholder {
        height: 260px;
        border-radius: 16px;
    }

    .product-photo-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 14px;
    }

    .primary-btn,
    .whatsapp-btn.big {
        min-height: 50px;
        font-size: 15px;
    }

    .product-info-box h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    .product-detail-car {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .detail-price {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .detail-badges {
        margin-bottom: 18px;
    }

    .detail-table.compact {
        border-radius: 16px;
    }

    .detail-table.compact div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 14px;
    }

    .detail-table.compact strong {
        font-size: 13px;
        color: #64748b;
    }

    .detail-table.compact span {
        font-size: 15px;
    }

    .note {
        font-size: 13px;
    }

    .lead-card h2 {
        font-size: 23px;
    }

    .lead-card p {
        font-size: 14px;
    }

    .lead-form-card input,
    .lead-form-card textarea {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .lead-form-card button {
        padding: 14px 16px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .product-detail-img,
    .product-detail-placeholder {
        height: 220px;
    }

    .product-info-box h1 {
        font-size: 23px;
    }

    .detail-price {
        font-size: 26px;
    }
}
.home-hero {
    padding: 72px 0;
    background: linear-gradient(135deg, #071526, #0b3a77);
    color: white;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr;
    gap: 34px;
    align-items: center;
}

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    margin-bottom: 18px;
}

.home-hero h1 {
    margin: 0 0 18px;
    font-size: 48px;
    line-height: 1.08;
}

.home-hero p {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.6;
    max-width: 680px;
}

.home-search {
    display: flex;
    margin-top: 28px;
    max-width: 680px;
}

.home-search input {
    flex: 1;
    height: 56px;
    padding: 0 18px;
    border: none;
    border-radius: 16px 0 0 16px;
    font-size: 16px;
}

.home-search button {
    border: none;
    background: #0057d9;
    color: white;
    padding: 0 30px;
    border-radius: 0 16px 16px 0;
    font-weight: 950;
    cursor: pointer;
}

.home-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    max-width: 460px;
}

.home-hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    padding: 28px;
}

.home-hero-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.home-hero-card ul {
    margin: 20px 0 0;
    padding-left: 20px;
    color: #e0f2fe;
    line-height: 1.9;
    font-weight: 700;
}

.home-section {
    padding: 42px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.section-head p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}

.section-link {
    color: #0057d9;
    text-decoration: none;
    font-weight: 950;
}

.home-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: white;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.brand-chip {
    background: #eff6ff;
    color: #0057d9;
}

.home-note {
    padding: 22px 0 42px;
}

.home-note-inner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 18px 22px;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .home-hero {
        padding: 46px 0;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        font-size: 38px;
    }

    .home-search {
        flex-direction: column;
        gap: 12px;
    }

    .home-search input,
    .home-search button {
        width: 100%;
        border-radius: 16px;
        height: 54px;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .home-hero h1 {
        font-size: 32px;
    }

    .home-hero p {
        font-size: 16px;
    }

    .home-hero-card {
        padding: 22px;
    }

    .section-head h2 {
        font-size: 27px;
    }

    .home-note-inner {
        flex-direction: column;
    }
}

.search-autocomplete {
    position: relative;
    width: 100%;
}

.home-search .search-autocomplete {
    flex: 1;
}

.search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    z-index: 100;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggest.is-open {
    display: block;
}

.suggest-item {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover {
    background: #f8fafc;
}

.suggest-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
    color: #111827;
}

.suggest-meta {
    display: block;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}

.suggest-empty {
    padding: 14px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

/* Fixed home search + autocomplete */
.home-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    margin-top: 28px;
}

.home-search .search-autocomplete {
    position: relative;
    flex: 1;
    width: auto;
}

.home-search input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: none;
    border-radius: 16px 0 0 16px;
    font-size: 16px;
    outline: none;
}

.home-search button {
    width: 150px;
    height: 58px;
    border: none;
    background: #0057d9;
    color: white;
    border-radius: 0 16px 16px 0;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

/* Search suggestions */
.search-autocomplete {
    position: relative;
}

.search-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    z-index: 999;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.search-suggest.is-open {
    display: block;
}

.suggest-item {
    display: block;
    padding: 13px 16px;
    text-decoration: none;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover {
    background: #f8fafc;
}

.suggest-title {
    display: block;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 4px;
}

.suggest-meta {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

.suggest-empty {
    padding: 14px 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    background: white;
}

@media (max-width: 768px) {
    .home-search {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
    }

    .home-search input {
        border-radius: 16px;
    }

    .home-search button {
        width: 100%;
        border-radius: 16px;
    }

    .search-suggest {
        top: calc(100% + 6px);
    }
}


/* New compact homepage */
.home-page {
    background: #f4f7fb;
    min-height: calc(100vh - 72px);
}

.home-search-block {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 42px 0;
}

.home-search-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: center;
}

.home-search-inner h1 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.1;
    color: #0f172a;
}

.home-search-inner p {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 17px;
    font-weight: 700;
}

.simple-home-search {
    display: flex;
    max-width: 760px;
}

.simple-home-search .search-autocomplete {
    flex: 1;
}

.simple-home-search input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d6dce7;
    border-right: none;
    border-radius: 16px 0 0 16px;
    font-size: 16px;
    outline: none;
}

.simple-home-search button {
    width: 150px;
    height: 58px;
    border: none;
    background: #0057d9;
    color: white;
    border-radius: 0 16px 16px 0;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.quick-help-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 22px;
    padding: 24px;
}

.quick-help-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #0f172a;
}

.quick-help-card p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.quick-help-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 900;
}

.home-area {
    padding: 34px 0 10px;
}

.home-area-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.home-area-head h2 {
    margin: 0;
    font-size: 28px;
    color: #0f172a;
}

.home-area-head a {
    color: #0057d9;
    text-decoration: none;
    font-weight: 900;
}

.brand-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.brand-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.brand-card span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eff6ff;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.brand-card strong {
    font-size: 16px;
}

.category-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.category-mini-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    min-height: 74px;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.category-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.category-mini-card strong {
    font-size: 16px;
}

@media (max-width: 900px) {
    .home-search-inner {
        grid-template-columns: 1fr;
    }

    .home-search-inner h1 {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .home-search-block {
        padding: 28px 0;
    }

    .simple-home-search {
        flex-direction: column;
        gap: 12px;
    }

    .simple-home-search input {
        border: 1px solid #d6dce7;
        border-radius: 16px;
    }

    .simple-home-search button {
        width: 100%;
        border-radius: 16px;
    }

    .home-area-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-card-grid,
    .category-mini-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .brand-card-grid,
    .category-mini-grid {
        grid-template-columns: 1fr;
    }

    .home-search-inner h1 {
        font-size: 30px;
    }
}

.brand-logo-box,
.category-img-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-logo-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-card:hover,
.category-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.brand-card,
.category-mini-card {
    transition: 0.18s ease;
}



.category-mini-card {
    min-height: 86px;
}

.category-img-box {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #eff6ff;
}

.category-img-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.catalog-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.catalog-shortcuts span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.catalog-shortcuts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0057d9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: 0.15s ease;
}

.catalog-shortcuts a:hover {
    background: #0057d9;
    border-color: #0057d9;
    color: white;
    transform: translateY(-1px);
}

.info-page {
    background: #f4f7fb;
    min-height: calc(100vh - 72px);
    padding: 42px 0;
}

.info-card {
    background: white;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.info-card h1 {
    margin: 0 0 16px;
    font-size: 36px;
    color: #0f172a;
}

.info-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.info-grid div,
.contacts-box div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.info-grid h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
}

.info-grid p {
    margin: 0;
    font-size: 15px;
}

.info-note {
    margin-top: 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0f172a;
    border-radius: 18px;
    padding: 18px;
    font-weight: 800;
}

.contacts-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}

.contacts-box strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 8px;
}

.contacts-box p {
    margin: 0;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 950;
}

@media (max-width: 850px) {
    .info-grid,
    .contacts-box {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 24px;
    }

    .info-card h1 {
        font-size: 30px;
    }
}



.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    background: #22c55e;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
    transition: 0.15s ease;
}

.contact-whatsapp-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}


.product-type {
    margin: -4px 0 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}



/* =========================
   CLEAN MOBILE VERSION
   только под текущий HTML
========================= */

@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background: #f4f7fb;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Header */
    .header {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative;
    }

    .logo {
        font-size: 23px;
        font-weight: 950;
        line-height: 1;
        white-space: nowrap;
        color: #0f172a;
        text-decoration: none;
    }

    .logo span {
        color: #0057d9;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .header-whatsapp {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: #eff6ff;
        color: #0057d9;
        font-size: 22px;
        font-weight: 950;
        cursor: pointer;
    }

    .nav {
        display: none !important;
        position: absolute;
        top: 74px;
        left: 16px;
        right: 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
        z-index: 1200;
    }

    .nav.is-open {
        display: grid !important;
        gap: 6px;
    }

    .nav a {
        display: block;
        padding: 13px 14px;
        border-radius: 12px;
        color: #0f172a;
        font-weight: 850;
        text-decoration: none;
    }

    .nav a:hover {
        background: #eff6ff;
        color: #0057d9;
    }

    /* Home page */
    .home-page {
        background: #f4f7fb;
    }

    .home-search-block {
        background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
        padding: 26px 0 28px;
        border-bottom: 1px solid #e5e7eb;
        overflow: hidden;
    }

    .home-search-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
    }

    .home-search-inner h1 {
        margin: 0 0 10px;
        font-size: 29px;
        line-height: 1.15;
        letter-spacing: -0.4px;
        color: #0f172a;
    }

    .home-search-inner p {
        margin: 0 0 18px;
        color: #64748b;
        font-size: 15px;
        line-height: 1.5;
        font-weight: 700;
    }

    /* Search */
    .simple-home-search {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .simple-home-search .search-autocomplete {
        width: 100%;
        min-width: 0;
    }

    .simple-home-search input {
        width: 100%;
        height: 54px;
        padding: 0 15px;
        border: 1px solid #d6dce7;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 16px;
        outline: none;
    }

    .simple-home-search input::placeholder {
        color: #94a3b8;
    }

    .simple-home-search button {
        width: 100%;
        height: 54px;
        border: none;
        border-radius: 16px;
        background: #0057d9;
        color: #ffffff;
        font-size: 16px;
        font-weight: 950;
        cursor: pointer;
    }

    .search-suggest {
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        border-radius: 16px;
        z-index: 1300;
        max-height: 260px;
        overflow-y: auto;
    }

    /* Быстрый переход */
    .catalog-shortcuts {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .catalog-shortcuts::-webkit-scrollbar {
        display: none;
    }

    .catalog-shortcuts span {
        flex: 0 0 auto;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
    }

    .catalog-shortcuts a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 8px 13px;
        border-radius: 999px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #0057d9;
        font-size: 13px;
        font-weight: 900;
        text-decoration: none;
        white-space: nowrap;
    }

    .catalog-shortcuts a:first-of-type {
        background: #0057d9;
        border-color: #0057d9;
        color: #ffffff;
    }

    /* WhatsApp card */
    .quick-help-card {
        width: 100%;
        padding: 18px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid #dbe7fb;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    }

    .quick-help-card h3 {
        margin: 0 0 8px;
        font-size: 22px;
        line-height: 1.2;
        color: #0f172a;
    }

    .quick-help-card p {
        margin: 0 0 14px;
        color: #475569;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 700;
    }

    .quick-help-card a {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: #22c55e;
        color: #ffffff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 950;
        white-space: nowrap;
    }

    /* Sections */
    .home-area {
        padding: 28px 0 0;
    }

    .home-area-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }

    .home-area-head h2 {
        margin: 0;
        font-size: 23px;
        line-height: 1.2;
        color: #0f172a;
    }

    .home-area-head a {
        color: #0057d9;
        font-size: 14px;
        font-weight: 900;
        text-decoration: none;
        white-space: nowrap;
    }

    /* Brands */
    .brand-card-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-card {
        min-width: 0;
        min-height: 84px;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    }

    .brand-logo-box,
    .brand-card span {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: #f8fafc;
        flex-shrink: 0;
    }

    .brand-logo-box img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .brand-card strong {
        min-width: 0;
        font-size: 15px;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.2;
    }

    /* Products */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        border-radius: 20px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    }

    .product-image-wrap,
    .product-img,
    .product-image {
        height: 210px;
    }

    .product-img {
        width: 100%;
        object-fit: cover;
    }

    .product-card-body {
        padding: 15px;
    }

    .product-card-body h3 {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.3;
    }

    .product-car,
    .product-type {
        font-size: 13px;
        line-height: 1.35;
    }

    .price {
        font-size: 22px;
        margin: 10px 0;
    }

    .details-link {
        min-height: 46px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-search-inner h1 {
        font-size: 27px;
    }

    .brand-card-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrap,
    .product-img,
    .product-image {
        height: 195px;
    }
}

/* =========================
   MOBILE BRANDS COMPACT
========================= */

@media (max-width: 768px) {
    .brand-card-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .brand-card-grid::-webkit-scrollbar {
        display: none;
    }

    .brand-card {
        flex: 0 0 96px;
        min-height: 92px;
        padding: 12px 8px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        text-align: center;
        gap: 7px;
    }

    .brand-logo-box,
    .brand-card span {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .brand-logo-box img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .brand-card strong {
        font-size: 13px;
        line-height: 1.15;
        max-width: 84px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* =========================
   TABLET FIX
========================= */

@media (min-width: 600px) and (max-width: 900px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .product-card {
        width: 100%;
        border-radius: 20px;
    }

    .product-image-wrap,
    .product-img,
    .product-image {
        height: 220px;
    }

    .product-img {
        width: 100%;
        object-fit: cover;
    }

    .product-card-body {
        padding: 16px;
    }

    .product-card-body h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .price {
        font-size: 22px;
    }

    .details-link {
        min-height: 46px;
        border-radius: 14px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-wrap {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 0 22px 0;
    position: relative;
}

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


.catalog-gallery {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f5f9;
}

.catalog-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.catalog-gallery-img.active {
    opacity: 1;
}

.gallery-progress {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.gallery-progress-item {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    cursor: pointer;
}

.gallery-progress-item.active {
    background: #0b5fe8;
}

.catalog-gallery .image-badge,
.catalog-gallery .condition-badge {
    z-index: 20;
}


.dark-gallery {
    width: 100%;
}

.detail-main-photo {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.detail-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px);
    transform: scale(1.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.detail-blur-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.detail-blur-bg.active {
    opacity: 1;
}

.detail-main-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.detail-main-img.active {
    opacity: 1;
}

.detail-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.detail-arrow-left {
    left: 18px;
}

.detail-arrow-right {
    right: 18px;
}

.detail-fullscreen-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.75);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.detail-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.detail-thumb {
    width: 112px;
    height: 84px;
    flex: 0 0 112px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
}

.detail-thumb.active {
    border-color: #0b5fe8;
}

.detail-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.product-detail-placeholder {
    width: 100%;
    height: 100%;
    background: #e5eaf3;
}

@media (max-width: 768px) {
    .detail-main-photo {
        height: 360px;
        border-radius: 12px;
    }

    .detail-thumb {
        width: 82px;
        height: 64px;
        flex-basis: 82px;
    }

    .detail-arrow {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }
}


.fullscreen-open {
    overflow: hidden;
}

.fullscreen-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: #050816;
    color: #fff;
}

.fullscreen-viewer.active {
    display: block;
}

.fullscreen-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(34px);
    transform: scale(1.12);
    opacity: 0.45;
}

.fullscreen-blur-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 22, 0.55);
}

.fullscreen-image-wrap {
    position: absolute;
    top: 0;
    left: 80px;
    right: 80px;
    bottom: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.fullscreen-close {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.fullscreen-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.fullscreen-arrow-left {
    left: 24px;
}

.fullscreen-arrow-right {
    right: 24px;
}

.fullscreen-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 5;
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    padding: 0 24px 8px;
}

.fullscreen-thumb {
    width: 104px;
    height: 76px;
    flex: 0 0 104px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
    opacity: 0.72;
}

.fullscreen-thumb.active {
    border-color: #0b5fe8;
    opacity: 1;
}

.fullscreen-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .fullscreen-image-wrap {
        left: 16px;
        right: 16px;
        bottom: 105px;
    }

    .fullscreen-arrow {
        width: 40px;
        height: 40px;
        font-size: 34px;
    }

    .fullscreen-arrow-left {
        left: 12px;
    }

    .fullscreen-arrow-right {
        right: 12px;
    }

    .fullscreen-thumb {
        width: 76px;
        height: 58px;
        flex-basis: 76px;
    }
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pagination-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    color: #0b5fe8;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pagination-link.active {
    background: #0b5fe8;
    color: #ffffff;
}

.sort-form {
    margin: 0;
}


.whatsapp-btn,
.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-btn::before,
.contact-whatsapp-btn::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M16.04 3C9.45 3 4.09 8.28 4.09 14.78c0 2.08.55 4.11 1.6 5.89L4 29l8.55-1.68a12.2 12.2 0 0 0 3.49.5C22.63 27.82 28 22.54 28 16.04S22.63 3 16.04 3zm0 22.75c-1.1 0-2.18-.17-3.2-.52l-.46-.15-5.07 1 1-4.92-.25-.5a9.7 9.7 0 0 1-1.1-4.47c0-5.35 4.43-9.7 9.88-9.7s9.88 4.35 9.88 9.7-4.43 9.56-9.88 9.56zm5.42-7.25c-.3-.15-1.75-.85-2.02-.95-.27-.1-.47-.15-.67.15-.2.3-.77.95-.95 1.15-.17.2-.35.22-.65.07-.3-.15-1.27-.46-2.42-1.46-.9-.79-1.5-1.76-1.67-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.18.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.58-.92-2.16-.24-.56-.49-.48-.67-.49h-.57c-.2 0-.52.07-.8.37-.27.3-1.05 1.01-1.05 2.46s1.08 2.86 1.23 3.06c.15.2 2.12 3.18 5.13 4.45.72.31 1.28.49 1.72.63.72.22 1.37.19 1.89.12.58-.09 1.75-.7 2-1.38.25-.68.25-1.26.17-1.38-.08-.12-.27-.2-.57-.35z'/%3E%3C/svg%3E");
}
