/* ==========================================================================
   MAKINA.az — UX Design System (customer-facing)
   Semantic tokens mapped to amber / emerald / WhatsApp conversion palette.
   Loaded after tokens.css + main.css. No Tailwind CDN.
   ========================================================================== */

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

html:has(body.page-listing-detail),
body.page-listing-detail,
html:has(body.page-listings),
body.page-listings {
    overflow-x: clip;
}

/* --- Typography ---------------------------------------------------------- */
.ux-h1,
h1.listings-main-head__title,
h1.ld-title,
.wizard-shell__title,
.sp-hero__title,
.home-section-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.2;
}

.ux-h1,
h1.listings-main-head__title {
    font-size: 1.25rem;
}
@media (min-width: 768px) {
    .ux-h1,
    h1.listings-main-head__title,
    h1.ld-title {
        font-size: 1.75rem;
    }
}

.product-title,
.catalog-card__title,
.compare-product-card__title {
    font-weight: 600;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}
.product-card:hover .product-title,
.product-card-link:hover .product-title {
    color: #d97706;
}

.product-price,
.ld-price,
.sp-card__price {
    font-weight: 800;
    color: #d97706;
    font-size: 1.05rem;
}
@media (min-width: 768px) {
    .product-price,
    .ld-price,
    .sp-card__price {
        font-size: 1.25rem;
    }
}

.ux-meta,
.ld-subtitle,
.listings-results-count,
.sp-card__meta {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* --- Buttons ------------------------------------------------------------- */
.btn-primary,
.btn--primary,
.ld-btn--primary,
.buy-now-btn {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #0f172a;
    font-weight: 700;
}
.btn-primary:hover,
.btn--primary:hover,
.ld-btn--primary:hover,
.buy-now-btn:hover {
    background: #d97706;
    border-color: #d97706;
    color: #0f172a;
}

.btn--call,
.ld-btn--call,
.listing-sticky-cta__btn--call,
.sp-card__cta--call {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
}
.btn--call:hover,
.ld-btn--call:hover,
.listing-sticky-cta__btn--call:hover,
.sp-card__cta--call:hover {
    background: #047857 !important;
    border-color: #047857 !important;
    color: #fff !important;
}

.btn--whatsapp,
.ld-btn--whatsapp,
.listing-sticky-cta__btn--wa,
.sp-card__cta--wa {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease;
}
.btn--whatsapp:hover,
.ld-btn--whatsapp:hover,
.listing-sticky-cta__btn--wa:hover,
.sp-card__cta--wa:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.ld-sidebar__cta-row .ld-btn--whatsapp {
    background: #ecfdf5 !important;
    border: 1px solid #bbf7d0 !important;
    color: #15803d !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}
.ld-sidebar__cta-row .ld-btn--whatsapp:hover {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

.ld-sidebar__cta-row .ld-btn--message {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-weight: 700;
}
.ld-sidebar__cta-row .ld-btn--message:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.btn--ghost,
.btn-outline,
.btn--outline,
.ld-btn--message {
    border-radius: 12px;
}

/* --- Cards --------------------------------------------------------------- */
.product-card,
.catalog-card,
.sp-card,
.wizard-type-card,
.compare-product-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    background: #fff;
    transition: all 0.2s ease;
    height: 100%;
}
.product-card:hover,
.catalog-card:hover,
.sp-card:hover,
.wizard-type-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.product-img-wrap,
.sp-card__media {
    aspect-ratio: 4 / 3;
    height: auto !important;
    background: #f3f4f6;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}
.product-img-wrap .product-img,
.sp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-grid,
.catalog-grid,
.sp-grid {
    align-items: stretch;
}

/* --- Touch targets (370–430px) ------------------------------------------ */
@media (max-width: 768px) {
    .btn,
    .btn-primary,
    .btn--primary,
    .btn-outline,
    .listings-filter-toggle,
    .listings-section-nav__item,
    .filter-panel input:not([type="checkbox"]):not([type="radio"]),
    .filter-panel select,
    .filter-panel button,
    .sp-filter input,
    .sp-filter select,
    .sp-filter button,
    .sp-toolbar select,
    .search-input,
    .wizard-type-card,
    .wizard-shell__exit,
    .account-listing-actions a,
    .account-listing-actions button,
    .lang-switcher__link,
    .app-drawer__link,
    .dropdown-menu li a {
        min-height: 44px;
    }

    .listings-section-nav__item {
        padding: 0 16px;
    }
}

/* --- Dropdowns ----------------------------------------------------------- */
.dropdown-menu {
    z-index: 50;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    border-top: 3px solid #f59e0b;
}
.dropdown-menu li a:hover {
    background: #fffbeb;
    color: #78350f;
    padding-left: 20px;
}

/* --- Modals / drawers ---------------------------------------------------- */
.contact-admin-backdrop,
.ld-modal__backdrop,
.listings-filter-backdrop.is-visible,
.app-drawer-backdrop:not([hidden]) {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
}

.contact-admin-close,
.ld-modal__close,
.filter-panel__close,
.app-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #9ca3af;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.contact-admin-close:hover,
.ld-modal__close:hover,
.filter-panel__close:hover,
.app-drawer__close:hover {
    color: #374151;
    background: #f3f4f6;
}

body.ux-modal-open,
body.listings-filter-open,
body.app-drawer-open {
    overflow: hidden;
}

/* --- Sticky mobile conversion bar ---------------------------------------- */
.listing-sticky-cta {
    display: none;
}
@media (max-width: 768px) {
    .listing-sticky-cta {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid #e5e7eb;
    }
    .listing-sticky-cta__price {
        font-weight: 800;
        color: #d97706;
        font-size: 0.95rem;
        white-space: nowrap;
        max-width: 34%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .listing-sticky-cta__actions {
        display: flex;
        flex: 1;
        gap: 8px;
    }
    .listing-sticky-cta__btn {
        flex: 1;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        border: 0;
        cursor: pointer;
    }
    .page-listing-detail .site-main,
    .page-listing-detail .ld-wrap {
        padding-bottom: 88px;
    }
}

/* --- Header sticky ------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

/* --- Filter panel touch + accordion look --------------------------------- */
.filter-panel input:not([type="checkbox"]):not([type="radio"]),
.filter-panel select,
.sp-aside input:not([type="checkbox"]):not([type="radio"]),
.sp-aside select {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
    width: 100%;
    background: #fff;
}
.filter-panel__title,
.sp-aside__title {
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

/* --- Account quick actions ----------------------------------------------- */
.account-action-menu {
    position: relative;
}
.account-action-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 200px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.16);
    padding: 6px;
    display: none;
}
.account-action-menu.is-open .account-action-menu__panel {
    display: block;
}
.account-action-menu__panel a,
.account-action-menu__panel button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.account-action-menu__panel a:hover,
.account-action-menu__panel button:hover {
    background: #fffbeb;
    color: #78350f;
}

/* --- Inbox bubbles ------------------------------------------------------- */
.inbox-bubble {
    max-width: 80%;
    border-radius: 16px;
    padding: 12px 16px;
}
.inbox-composer textarea,
.inbox-composer button {
    min-height: 44px;
    border-radius: 12px;
}


/* ==========================================================================
   PRODUCT CARD - 2026 Modern Design System
   ========================================================================== */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 18px;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 360px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.product-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 56px);
    pointer-events: none;
}

.product-card__badges .badge-premium,
.product-card__badges .badge-satis,
.product-card__badges .badge-icare,
.product-card__badges .badge-axtariram,
.product-card__badges .badge-ehtiyat,
.product-card__badges .product-type-badge-sale,
.product-card__badges .product-type-badge-rent,
.card-badges-left .badge-premium,
.card-badges-left .badge-boosted,
.card-badges-left .badge-status,
.card-badges-left .badge-satis,
.card-badges-left .badge-icare,
.card-badges-left .product-type-badge-sale,
.card-badges-left .product-type-badge-rent {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
}

.card-badges-left {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 56px);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.product-card--premium {
    border-color: #fbbf24;
    background: linear-gradient(to bottom, #fffbeb 0%, #ffffff 15%);
}

.product-card--premium:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}

/* Badge Premium */
.badge-premium {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.badge-premium--icon,
.badge-boosted--icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center;
    gap: 0 !important;
    font-size: 10px !important;
    letter-spacing: 0 !important;
    text-indent: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) !important;
}

.badge-premium--icon i,
.badge-boosted--icon i,
.badge-premium--icon svg,
.badge-boosted--icon svg {
    margin: 0;
    font-size: 10px !important;
    width: 10px !important;
    height: 10px !important;
    line-height: 1;
}

.card-img-box .badge-premium.badge-premium--icon,
.card-img-box .badge-boosted.badge-boosted--icon,
.product-img-wrap .badge-premium.badge-premium--icon,
.product-img-wrap .badge-boosted.badge-boosted--icon,
.card-badges-left .badge-premium--icon,
.card-badges-left .badge-boosted--icon {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
}

.badge-boosted {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.product-card__badges .badge-premium,
.product-card__badges .badge-boosted {
    position: static;
}

.product-card--boosted {
    border: 1px solid rgba(37, 99, 235, 0.35);
}

/* Type Badge (Sale/Rent) */
.product-type-badge-sale,
.product-type-badge-rent {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.product-type-badge-sale {
    background: rgba(255, 255, 255, 0.95);
    color: #f59e0b;
    border: 1.5px solid #f59e0b;
}

.product-type-badge-rent {
    background: rgba(59, 130, 246, 0.95);
    color: #ffffff;
    border: 1.5px solid #3b82f6;
}

/* Action Buttons */
.action-btns,
.card-actions--product {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transform: none;
}

.product-card:hover .action-btns,
.product-card:hover .card-actions--product {
    opacity: 1;
    transform: none;
}

.btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-round:hover {
    background: #ffffff;
    color: #f59e0b;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-round.is-active {
    background: #f59e0b;
    color: #ffffff;
}

.btn-heart.is-favorite {
    background: #ef4444;
    color: #ffffff;
}

.btn-like.is-liked {
    background: #3b82f6;
    color: #ffffff;
}

/* Product Card Link */
.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f9fafb;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.badge-year {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
}

/* Product Info */
.product-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
    display: block;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.product-card:hover .product-title {
    color: #f59e0b;
}

.product-place {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.card-place {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.card-place__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7b8798;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-place__item i {
    color: #f7971c;
    font-size: 11px;
    flex-shrink: 0;
}

/* Equipment Slider Specific */
.eq-item {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .eq-item {
        width: 240px;
    }

    .product-img-wrap {
        aspect-ratio: 16 / 11;
    }

    .product-info {
        padding: 14px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-place {
        font-size: 12px;
    }

    .badge-premium {
        font-size: 10px;
        padding: 5px 12px;
    }

    .action-btns {
        opacity: 1;
        transform: translateX(0);
        bottom: 8px;
        right: 8px;
        gap: 6px;
    }

    .btn-round {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .product-type-badge-sale,
    .product-type-badge-rent {
        font-size: 10px;
        padding: 5px 10px;
    }
}

.sayt-hedef {
    scroll-margin-top: 96px;
}
.sayt-hedef:target {
    animation: sayt-hedef-flash 1.8s ease;
}
.promo-bar.sayt-hedef:target {
    animation: sayt-hedef-flash-bar 1.8s ease;
}
@keyframes sayt-hedef-flash {
    0%, 40% { box-shadow: 0 0 0 4px rgba(247, 151, 28, 0.7); }
    100% { box-shadow: none; }
}
@keyframes sayt-hedef-flash-bar {
    0%, 40% { box-shadow: inset 0 0 0 3px #fff; }
    100% { box-shadow: none; }
}

@media (max-width: 640px) {
    .product-card {
        border-radius: 16px;
    }

    .badge-year {
        font-size: 11px;
        padding: 5px 10px;
        bottom: 8px;
        left: 8px;
    }
}

/* ===== Neat listing cards (global) ===== */
.catalog-grid .card,
.listings-main .card,
.card.card--neat {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8ecf1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.catalog-grid .card:hover,
.card.card--neat:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 88, 12, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.card.card--neat .card-img-box,
.catalog-grid .card-img-box {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #eef2f7;
}

.card.card--neat .card-img-box::after,
.catalog-grid .card-img-box::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.45));
    pointer-events: none;
    z-index: 1;
}

.card.card--neat .card-body,
.catalog-grid .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
    gap: 8px;
}

.card-meta-line {
    margin: 0;
    font-size: 11px;
    font-weight: 550;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card.card--neat .card-title,
.catalog-grid .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.card.card--neat .card-footer,
.catalog-grid .card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 0 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent;
    position: relative;
}

.card.card--neat .card-footer::before,
.catalog-grid .card-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #eef2f7;
    pointer-events: none;
}

.card-footer__main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.card.card--neat .price-tag,
.catalog-grid .price-tag {
    font-size: 1.2rem;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.card.card--neat .price-tag span,
.catalog-grid .price-tag span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.card.card--neat .btn-details,
.catalog-grid .btn-details {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-self: flex-end;
    background: linear-gradient(135deg, #f7971c, #ea580c);
    color: #fff;
    border: 0;
    outline: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.25);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.card.card--neat .badge-status,
.card.card--neat .badge-type,
.card.card--neat .badge-year,
.catalog-grid .badge-status,
.catalog-grid .badge-type,
.catalog-grid .badge-year {
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.2;
}

.card.card--neat .badge-status.bg-new,
.catalog-grid .badge-status.bg-new {
    background: rgba(5, 150, 105, 0.72);
}

.card.card--neat .badge-status.bg-used,
.catalog-grid .badge-status.bg-used {
    background: rgba(71, 85, 105, 0.62);
}

.card.card--neat .type-sale,
.card.card--neat .type-rent,
.catalog-grid .type-sale,
.catalog-grid .type-rent {
    border: 0 !important;
    color: #fff !important;
    background: rgba(15, 23, 42, 0.55) !important;
}

.card.card--neat .card-place__item i,
.catalog-grid .card-place__item i,
.product-card--neat .card-place__item i {
    color: #cbd5e1;
}

.product-card--neat .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}

.product-card--neat .product-title {
    order: 0;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.product-card--neat .product-price {
    order: 1;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0;
}

.product-card--neat .card-place {
    order: 2;
    margin-top: 0;
}

.product-img-wrap .card-badges-bottom {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
}

.product-img-wrap .card-badges-bottom .badge-year,
.product-img-wrap .card-badges-bottom .badge-status {
    position: static;
}

/* ===== Neat cards — stronger polish overrides ===== */
.card.card--neat,
.product-card.product-card--neat {
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    background: #fff;
}

.card.card--neat:hover,
.product-card.product-card--neat:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.28);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.product-card.product-card--neat.product-card--premium,
.card.card--neat.card--premium {
    border-color: rgba(234, 88, 12, 0.32);
    background: #fff;
}

.product-card.product-card--neat .product-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eef2f7;
}

.product-card.product-card--neat .product-img-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.42));
    pointer-events: none;
    z-index: 1;
}

.product-card.product-card--neat .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card.product-card--neat:hover .product-img {
    transform: scale(1.04);
}

.product-card.product-card--neat .product-card-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.product-card.product-card--neat .product-price span,
.card.card--neat .price-tag span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
}

.card.card--neat .card-actions,
.product-card.product-card--neat .card-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.card.card--neat .btn-card-action,
.product-card.product-card--neat .btn-card-action {
    width: 34px;
    height: 34px;
    border: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.card.card--neat .badge-type,
.card.card--neat .badge-year,
.product-card.product-card--neat .badge-type,
.product-card.product-card--neat .badge-year,
.product-card.product-card--neat .badge-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
    color: #fff;
    border: 0 !important;
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}

.card.card--neat .badge-status.bg-new,
.product-card.product-card--neat .badge-status.bg-new {
    background: rgba(5, 150, 105, 0.72) !important;
}

.card.card--neat .badge-status.bg-used,
.product-card.product-card--neat .badge-status.bg-used {
    background: rgba(71, 85, 105, 0.62) !important;
}

.card.card--neat .type-sale,
.card.card--neat .type-rent,
.card.card--neat .type-wanted,
.card.card--neat .type-spare,
.product-card.product-card--neat .type-sale,
.product-card.product-card--neat .type-rent,
.product-card.product-card--neat .type-wanted,
.product-card.product-card--neat .type-spare {
    border: 0 !important;
    color: #fff !important;
    background: rgba(15, 23, 42, 0.55) !important;
}

.card.card--neat .card-place__item,
.product-card.product-card--neat .card-place__item {
    color: #94a3b8;
}

.card.card--neat .card-place__item i,
.product-card.product-card--neat .card-place__item i {
    color: #cbd5e1 !important;
}

.card.card--neat .card-footer {
    border: 0 !important;
    outline: 0 !important;
}

@media (max-width: 768px) {
    .card.card--neat .card-actions,
    .product-card.product-card--neat .card-actions {
        display: flex;
        opacity: 1;
        transform: none;
    }

    .product-card.product-card--neat .product-img-wrap {
        height: 140px;
    }
}

/* ===== Equal-height grids (all pages) ===== */
.catalog-grid,
.product-grid,
.product-grid--dense,
.shops-grid,
.sp-grid,
.home-cat-grid__list,
.equipment-section .product-grid,
.listings-main .product-grid,
.listings-main .product-grid--dense,
.shop-show .product-grid {
    align-items: stretch;
}

.catalog-grid > .card,
.catalog-grid > article,
.product-grid > .product-card,
.product-grid > *,
.product-grid--dense > .product-card,
.product-grid--dense > *,
.shops-grid > .shop-card,
.shops-grid > a,
.sp-grid > *,
.listings-main .product-grid > *,
.listings-main .product-grid--dense > *,
.shop-show .product-grid > *,
.equipment-section .product-card {
    height: 100%;
    min-height: 0;
}

.card.card--neat .card-title,
.catalog-grid .card-title,
.product-card.product-card--neat .product-title,
.listings-main .product-card .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    min-height: calc(1.35em * 2);
    line-height: 1.35;
}

.card.card--neat .card-meta-line,
.product-card.product-card--neat .card-meta-line {
    min-height: 1.2em;
}

.card.card--neat .card-place,
.product-card.product-card--neat .card-place {
    min-height: 1.2em;
}

.shop-card {
    height: 100%;
}

.shop-card__name > span {
    min-height: calc(1.25em * 2);
}

.shop-card__meta {
    margin-top: auto;
}

/* ==========================================================================
   Shop-style cards (Kontakt-inspired) — product-card + catalog-card
   ========================================================================== */
.product-card--shop,
.card--shop {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card--shop:hover,
.card--shop:hover {
    transform: translateY(-3px);
    border-color: #d8dee6;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.product-card--shop.product-card--premium,
.card--shop.card--premium {
    border-color: rgba(234, 88, 12, 0.35);
    background: #fff;
}

.product-card--shop .product-img-wrap,
.card--shop .card-img-box {
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 0;
    overflow: hidden;
}

.product-card--shop .product-img-wrap::after,
.card--shop .card-img-box::after {
    display: none;
}

.product-card--shop .product-img,
.card--shop .card-img-box img {
    position: static !important;
    inset: auto !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none !important;
    transition: transform 0.35s ease;
}

.product-card--shop:hover .product-img,
.card--shop:hover .card-img-box img {
    transform: scale(1.03) !important;
}

.product-card--shop .product-img-link,
.card--shop .card-img-link {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
}

.card-badges-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}

.card-badge-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.card-badge-ring--premium {
    background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
}

.card-badge-ring--boosted {
    min-width: 34px;
    height: 34px;
    background: #2563eb;
}

.card-badge-ring--condition.is-new {
    background: #059669;
}

.card-badge-ring--condition.is-used {
    background: #64748b;
    font-size: 9px;
    padding: 0 10px;
}

.card-video-pill {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1.5px solid var(--primary-200, #fed7aa);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark, #d97706);
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.card-video-pill i {
    font-size: 9px;
}

.product-card--shop .card-badges-bottom,
.card--shop .card-badges-bottom {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
}

.product-card--shop .card-badges-bottom .badge-type,
.product-card--shop .card-badges-bottom .badge-year,
.card--shop .card-badges-bottom .badge-type,
.card--shop .card-badges-bottom .badge-year {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #475569 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.product-card--shop .product-info,
.card--shop .card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
    flex: 1;
}

.product-card--shop .product-title,
.product-card--shop .product-price,
.product-card--shop .card-place,
.product-card--shop .card-meta-line,
.product-card--shop .product-card-link,
.product-card--shop .card-action-bar,
.card--shop .card-title,
.card--shop .price-tag,
.card--shop .card-place,
.card--shop .card-meta-line,
.card--shop .card-footer,
.card--shop .card-action-bar {
    order: unset;
}

.product-card--shop .card-meta-line,
.card--shop .card-meta-line {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.3;
    min-height: auto;
}

.product-card--shop .product-title,
.card--shop .card-title,
.card--shop .card-title a {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    min-height: calc(1.35em * 2);
    text-decoration: none;
}

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

.product-card--shop .product-price-block,
.card--shop .card-footer {
    margin: 0;
    padding: 0;
    border: 0;
}

.product-card--shop .product-price,
.card--shop .price-tag {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: var(--primary-dark, #d97706);
    line-height: 1.15;
}

.product-card--shop .product-price__unit,
.card--shop .price-tag span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    margin-left: 2px;
}

.product-card--shop .card-place,
.card--shop .card-place {
    margin: 2px 0 0;
    gap: 6px 10px;
    min-height: auto;
}

.product-card--shop .card-place__item,
.card--shop .card-place__item {
    font-size: 11px;
    color: #94a3b8;
}

.card-action-bar {
    display: grid;
    grid-template-columns: 40px 40px 40px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    align-content: center;
    margin-top: auto;
    padding-top: 10px;
    flex: 0 0 auto;
    width: 100%;
}

.card-action-bar .btn-card-action {
    width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    box-shadow: none;
    align-self: center;
}

.card-action-bar .btn-card-action:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: none;
}

.card-action-bar .btn-card-action.active,
.card-action-bar .btn-card-action--fav.active {
    background: var(--primary, #f59e0b);
    border-color: var(--primary, #f59e0b);
    color: #0f172a;
}

.card-action-bar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--primary, #f59e0b);
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    align-self: center;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.card-action-bar__cta:hover {
    background: var(--primary-dark, #d97706);
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.32);
}

.card--shop .card-footer__main {
    width: 100%;
}

@media (max-width: 768px) {
    .product-card--shop .product-img-wrap,
    .card--shop .card-img-box {
        aspect-ratio: 4 / 3;
        padding: 12px;
    }

    .product-card--shop .product-price,
    .card--shop .price-tag {
        font-size: 1.2rem;
    }

    .card-action-bar {
        grid-template-columns: 36px 36px 36px minmax(0, 1fr);
        gap: 6px;
    }

    .card-action-bar .btn-card-action {
        width: 36px;
        height: 36px;
    }

    .card-action-bar__cta {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        font-size: 12px;
    }
}
