.sm-autovit-wrapper {
  --sm-brand: #d84315;
  --sm-brand-hover: #c23812;
  --sm-brand-light: #df4a18;
  --sm-brand-rgb: 216, 67, 21;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  align-items: flex-start;
}

.sm-sidebar .sm-compare-sidebar{
    background: #ffffff;
    border-radius: 14px;
    position: sticky;
    top: 120px;
    padding: 22px 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    max-width: 320px;
}

.sm-compare-sidebar {
    margin-top: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: none;
}
.sm-compare-sidebar.active {
    display: block;
}

/* Titlu */
.sm-sidebar h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* Labels */
.sm-sidebar label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 6px;
    color: #222;
}

/* Select & inputs */
.sm-sidebar select {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
}

.sm-sidebar select:focus {
    outline: none;
    border-color: #d84315;
}

.sm-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 1400px) {
    .sm-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.sm-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow .25s ease, transform .25s ease;
  position: static !important;
  z-index: auto !important;
}

.sm-card-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
}

.sm-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.sm-card-image {
    width: 100%;
    height: 200px;
    background: #f4f4f4;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.sm-card img {
    position: static !important;
}

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

.sm-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

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

.sm-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.sm-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #d84315;
  margin-bottom: 12px;
}

.sm-card-price-block {
  margin-bottom: 14px;
  padding: 2px 0 4px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.sm-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sm-card-price-row + .sm-card-price-row {
  margin-top: 4px;
}

.sm-card-price-row-brut {
  padding-top: 2px;
  border-top: none;
}

.sm-card-price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8b7a70;
}

.sm-card-price-value {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #d84315;
}

.sm-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: 14px;
}

.sm-card-meta li {
  margin-bottom: 4px;
}

.sm-link {
  font-size: 14px;
  color: #d84315;
  font-weight: 600;
  text-decoration: none;
}

.sm-link:hover {
  text-decoration: underline;
}

.sm-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-btn-primary {
  width: 100%;
  height: 46px;
  background: #d84315;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sm-btn-primary:hover {
  background: #bf360c;
}

.sm-btn-reset {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: #d84315;
  text-decoration: none;
}

/* Tablet: păstrează sidebar + conținut pe două coloane */
@media (max-width: 1024px) {
  .sm-autovit-wrapper {
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .sm-sidebar {
    position: relative;
    top: 0;
  }
}

.noUi-target {
    margin: 10px 0 6px;
}
.noUi-connect {
    background: #e24c1a;
}
.noUi-handle {
    border-radius: 4px;
    background: #e24c1a;
    border: none;
    box-shadow: none;
}
.sm-range-label {
    font-size: 13px;
    color: #555;
}

/* ========================= */
/* FILTER SIDEBAR – CLEAN UI */
/* ========================= */

.sm-sidebar {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 18px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    max-width: 320px;
}


/* Grup filtru */
.filter-group {
    margin-top: 18px;
}

.filter-label {
    margin-bottom: 8px;
}

/* Slider wrapper */
.filter-slider {
    margin-top: 8px;
}

/* noUi slider base */
#slider1,
#slider2 {
    margin: 14px 6px 8px;
}

/* Slider base */
.noUi-target {
    border: none;
    background: #eee;
    height: 6px;
    border-radius: 6px;
}

.noUi-connect {
    background: #d84315!important;
}

/* Handles */
.noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d84315;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    top: -7px;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none;
}
/* Hover */
.noUi-handle:hover {
  background: #b63f1a;
}

/* =========================
   SLIDER VALUES
   ========================= */

.filter-slider p,
.filter-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

.filter-slider strong {
    font-weight: 600;
    color: #111;
}

/* Select-uri */
.sm-sidebar select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
}

.sm-btn-primary {
    margin-top: 22px;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #d84315;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217,76,29,0.35);
}

/* Reset button */
.sm-btn-reset {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
    color: #777;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.sm-btn-reset:hover {
    background: #eee;
    color: #222;
}

/* === SORT TOOLBAR === */
.sm-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.sm-sort-label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

/* container select */
.sm-sort-select {
    position: relative;
}

/* select premium */
.sm-sort-select select,
#sm-sort {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 42px 10px 14px;
    min-width: 220px;
    max-width: 260px;

    font-size: 14px;
    font-weight: 500;
    color: #222;

    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* hover + focus */
.sm-sort-select select:hover,
#sm-sort:hover {
    border-color: #ff4d00;
}

.sm-sort-select select:focus,
#sm-sort:focus {
    outline: none;
    border-color: #ff4d00;
    box-shadow: 0 0 0 3px rgba(255,77,0,0.15);
}

/* săgeată custom */
.sm-sort-select::after {
    /*content: "▾"; */
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #ff4d00;
}

/* responsive */
@media (max-width: 768px) {
    body.sm-no-scroll {
        overflow: hidden;
    }

    .sm-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(17, 17, 17, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sm-autovit-wrapper.sm-filters-open .sm-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    .sm-mobile-filter-bar {
        display: flex;
        margin-bottom: 12px;
    }

    .sm-filter-trigger {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        background: #d84315;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .sm-filter-trigger:active {
        transform: scale(0.98);
    }

    .sm-filter-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-shrink: 0;
        padding: 14px 16px;
        margin: -22px -18px 16px;
        border-bottom: 1px solid #eee;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 2;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    }

    .sm-filter-drawer-title {
        font-size: 18px;
        font-weight: 700;
        color: #111;
    }

    .sm-filter-drawer-header .sm-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        font-size: 28px;
        line-height: 1;
        color: #333;
        background: #f3f3f3;
        border: none;
        border-radius: 10px;
        cursor: pointer;
    }

    .sm-autovit-wrapper {
        display: block;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .sm-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(100vw - 24px, 420px);
        max-width: 100%;
        margin: 0;
        z-index: 10001;
        border-radius: 0 14px 14px 0;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
    }

    .sm-autovit-wrapper.sm-filters-open .sm-sidebar {
        transform: translateX(0);
    }

    .sm-sidebar #sm-filter-form {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .sm-sidebar h3 {
        display: none;
    }

    .sm-sidebar-cta-light {
        margin-bottom: 16px;
    }

    .sm-filter-form-footer {
        position: sticky;
        bottom: 0;
        margin-top: 8px;
        padding-top: 12px;
        padding-bottom: 4px;
        background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0));
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }

    .sm-btn-filter-dismiss {
        display: block;
        width: 100%;
        min-height: 48px;
        margin-top: 10px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 12px;
        cursor: pointer;
    }

    .sm-sidebar .sm-btn-primary {
        min-height: 48px;
        font-size: 16px;
        margin-top: 12px;
    }

    .sm-filter-form-footer .sm-btn-reset {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .sm-sidebar select {
        min-height: 48px;
        font-size: 16px;
    }

    .km-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .km-row select {
        min-height: 48px;
        width: 100%;
    }

    .sm-results {
        width: 100%;
        max-width: 100%;
    }

    .sm-results-toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding: 12px;
    }

    .sm-sort-label {
        flex: 1 1 100%;
        font-size: 15px;
    }

    .sm-sort-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sm-sort-select select,
    #sm-sort {
        min-width: 0;
        width: 100%;
        max-width: none;
        min-height: 48px;
        font-size: 16px;
    }

    .sm-per-page {
        flex: 1 1 100%;
        flex-wrap: wrap;
        font-size: 15px;
        line-height: 1.5;
    }

    .sm-per-page select {
        min-height: 48px;
        font-size: 16px;
        padding: 8px 12px;
    }

    .sm-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sm-card {
        border-radius: 16px;
    }

    .sm-card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .sm-card-image {
        height: auto;
        aspect-ratio: 16 / 10;
        position: relative;
    }

    .sm-card-image img {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sm-no-image {
        position: absolute;
        inset: 0;
        min-height: 0;
    }

    .sm-card-body {
        padding: 18px 16px 16px;
    }

    .sm-card-title {
        font-size: 18px;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .sm-card-price-value {
        font-size: 18px;
    }

    .sm-card-meta {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .sm-card-meta li {
        margin-bottom: 8px;
    }

    /* ascunde detalii tehnice redundante pe mobil (titlu + listă rămân esențiale) */
    .sm-card-meta li:nth-child(4),
    .sm-card-meta li:nth-child(5),
    .sm-card-meta li:nth-child(6) {
        display: none;
    }

    .sm-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sm-btn-details {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin-top: 0;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 12px;
        box-sizing: border-box;
    }

    .sm-card-footer {
        padding: 12px 16px;
    }

    .sm-pagination {
        margin-top: 28px;
        padding-bottom: 16px;
    }

    .sm-pagination .page-numbers {
        min-height: 44px;
        min-width: 44px;
        line-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (min-width: 769px) {
    .sm-filter-overlay {
        display: none !important;
    }

    .sm-mobile-filter-bar {
        display: none !important;
    }

    .sm-filter-drawer-header {
        display: none !important;
    }

    .sm-btn-filter-dismiss {
        display: none !important;
    }
}

/* filtrare dupa km */
.km-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.km-row select {
    height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    font-size: 15px;
    background-color: #fff;
}

.km-row select:focus {
    border-color: #3b6fd8;
    outline: none;
}

/* Panou comparare */

/* PANEL */
.sm-compare-panel {
    position: fixed;
    top: 120px;              /* sub header */
    right: 20px;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 12px;
    z-index: 99999;
    display: none;           /* apare doar când există selecții */
}

.sm-compare-panel h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* HEADER */
.sm-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

/* ITEMS */
.sm-compare-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

/* ITEM */
.sm-compare-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.sm-compare-item img {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.sm-compare-item button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}
#sm-compare-go {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #e24c1a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
#sm-compare-go:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* CTA */
.sm-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    transition: all .2s ease;
}



.sm-compare-btn:enabled {
    opacity: 1;
}

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

.sm-compare-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    padding: 16px;
    position: sticky;
    top: 120px; /* sub header */
}

.sm-compare-sidebar h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sm-compare-sidebar.is-empty {
    opacity: .4;
}

.sm-compare-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    user-select:none;
}

.sm-compare-label input {
    width: 16px;
    height: 16px;
}

.sm-compare-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;
}

.sm-compare-content {
    background: #fff;
    width: min(1200px, 95vw);
    max-height: 90vh;
    overflow: auto;

    border-radius: 12px;
    padding: 24px;
    position: relative;
}

#sm-compare-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.sm-compare-page {
    max-width: 1200px;
    margin: 0 auto;
}

.sm-compare-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sm-compare-inline input {
    cursor: pointer;
}

.sm-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-compare-table th,
.sm-compare-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.sm-compare-table thead th {
    background: #f5f5f5;
}

.sm-card.selected {
    outline: 2px solid #e5531a;
    position: static !important;
    z-index: auto !important;
}

.sm-compare-label input:checked + span {
    color: #e5531a;
    font-weight: 600;
}

.sm-compare-tray {
    position: fixed;
    right: 24px;
    bottom: 200px;
    width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    padding: 12px;
    z-index: 9999;
}

.sm-compare-remove text{
    margin-bottom: 15px;
}

.sm-compare-tray.hidden {
    display: none;
}

.sm-compare-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.sm-compare-thumb {
    position: relative;
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.sm-compare-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-compare-thumb button {
    position: absolute;
    top: 4px;
    right: 4px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    line-height: 1;
    font-size: 14px;
    font-weight: 700;

    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 50%;

    cursor: pointer;
}

.sm-compare-thumb button:hover {
    background: #d92c2c;
    transform: scale(1.1);
}
.sm-compare-main-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #e5541b;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.sm-compare-main-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Sidebar CTA */
.sm-sidebar-cta-light {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.sm-sidebar-cta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.sm-sidebar-cta-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.sm-sidebar-cta-text span {
    font-size: 13px;
    color: #666;
}

.sm-sidebar-cta-btn {
    display: block;
    text-align: center;
    background: #d84315;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sm-sidebar-cta-btn:hover {
    background: #e63600;
}

/* Buton vezi detalii pe card */
.sm-btn-details {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #d84315;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sm-btn-details:hover {
    background: #e63600;
}

/* Paginatie */
.sm-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.sm-per-page select {
    
    border-radius: 6px;
}

.sm-pagination {
    margin-top: 40px;
    text-align: center;
}

.sm-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f2f2f2;
    text-decoration: none;
}

.sm-pagination .current {
    background: #111;
    color: #fff;
}

.sm-per-page span{
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

/* ========== Comparator dedicat (shortcode sonmotors_compare) ========== */
.sm-compare-tool.sm-compare-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 0 48px;
    font-family: inherit;
}

.sm-compare-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: #111;
    letter-spacing: -0.02em;
}

.sm-compare-lead {
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 24px;
    max-width: 52ch;
}

.sm-compare-mobile-hint {
    display: none;
}

.sm-compare-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    background: #fafafa;
}

.sm-compare-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: calc(148px + var(--sm-compare-cols, 2) * 280px);
}

.sm-compare-matrix col.sm-compare-col-label {
    width: 148px;
}

.sm-compare-matrix col.sm-compare-col-car {
    width: 280px;
}

.sm-compare-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 6;
    vertical-align: top;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 16px 12px;
}

.sm-compare-corner {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 8;
    min-width: 148px;
    width: 148px;
    background: #fafafa;
    box-shadow: 6px 0 14px -8px rgba(0, 0, 0, 0.12);
}

.sm-compare-col-head {
    min-width: 280px;
}

.sm-compare-col-head-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.sm-compare-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #ececec;
}

.sm-compare-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-compare-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    height: 100%;
    color: #999;
    font-size: 14px;
}

.sm-compare-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sm-compare-card-title:hover,
.sm-compare-card-title:focus-visible {
    color: #d84315;
    outline: none;
}

.sm-compare-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #d84315;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.sm-compare-matrix tbody tr.sm-compare-section th {
    position: static;
    left: auto;
    background: linear-gradient(90deg, #fff5f0 0%, #fff 100%);
    color: #d84315;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #f5e6df;
    border-top: 1px solid #eee;
    box-shadow: none;
}

.sm-compare-data-row .sm-compare-th-label {
    position: sticky;
    left: 0;
    z-index: 4;
    font-weight: 700;
    text-align: left;
    color: #111;
    background: #fafafa;
    min-width: 148px;
    width: 148px;
    box-shadow: 6px 0 14px -8px rgba(0, 0, 0, 0.12);
    border-right: 1px solid #eee;
}

.sm-compare-data-row td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.55;
    vertical-align: middle;
    color: #222;
    word-wrap: break-word;
}

.sm-compare-data-row .sm-compare-th-label {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.55;
}

.sm-compare-data-row--alt .sm-compare-th-label {
    background: #f3f5f7;
}

.sm-compare-data-row--alt td {
    background: #f9fafb;
}

.sm-compare-cell--diff {
    background: #fff0e6 !important;
    box-shadow: inset 0 0 0 1px rgba(216, 67, 21, 0.28);
}

.sm-compare-yes,
.sm-compare-check {
    color: #1b5e20;
    font-weight: 800;
    flex-shrink: 0;
}

.sm-compare-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-compare-checks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #222;
}

.sm-compare-checks li:last-child {
    margin-bottom: 0;
}

@media (hover: hover) {
    .sm-compare-data-row:hover .sm-compare-th-label {
        background: #eef2f6;
    }

    .sm-compare-data-row:hover td:not(.sm-compare-cell--diff) {
        background: #f5f9fc;
    }

    .sm-compare-data-row--alt:hover td:not(.sm-compare-cell--diff) {
        background: #eef3f7;
    }
}

@media (max-width: 768px) {
    .sm-compare-tool.sm-compare-page {
        padding-left: 4px;
        padding-right: 4px;
    }

    .sm-compare-lead {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .sm-compare-mobile-hint {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 600;
        color: #7c2d12;
        background: #fff7f3;
        border: 1px solid #f3d8cb;
        border-radius: 999px;
    }

    .sm-compare-mobile-hint-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: #fde6dc;
        color: #d84315;
        font-size: 14px;
        line-height: 1;
        animation: sm-compare-hint-slide 1.3s ease-in-out infinite;
    }

    .sm-compare-matrix-wrap {
        position: relative;
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .sm-compare-matrix-wrap::after {
        content: "";
        position: sticky;
        right: 0;
        top: 0;
        display: block;
        float: right;
        width: 26px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to right, rgba(250, 250, 250, 0), rgba(250, 250, 250, 0.95));
    }

    .sm-compare-col-head {
        min-width: 272px;
    }

    .sm-compare-matrix {
        min-width: calc(128px + var(--sm-compare-cols, 2) * 272px);
    }

    .sm-compare-matrix col.sm-compare-col-car {
        width: 272px;
    }

    .sm-compare-corner,
    .sm-compare-data-row .sm-compare-th-label {
        min-width: 128px;
        width: 128px;
    }

    .sm-compare-matrix col.sm-compare-col-label {
        width: 128px;
    }

    .sm-compare-matrix thead th {
        z-index: 7;
    }

    .sm-compare-corner {
        z-index: 9;
    }
}

@keyframes sm-compare-hint-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* ========== Buy Back — SON MOTORS ========== */
.sm-buyback-banner {
    --sm-bb-accent: var(--sm-brand, #d84315);
    --sm-bb-ink: #111827;
    position: relative;
    margin: 0 0 32px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

.sm-buyback-banner-accent {
    position: absolute;
    top: -40%;
    right: -8%;
    width: 42%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(216, 67, 21, 0.35) 0%, transparent 68%);
    pointer-events: none;
}

.sm-buyback-banner-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px 32px;
    padding: 32px 36px;
}

.sm-buyback-banner-badge {
    grid-column: 1 / -1;
    display: inline-flex;
    align-self: start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(216, 67, 21, 0.9);
    padding: 6px 12px;
    border-radius: 999px;
}

.sm-buyback-banner-text h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.02em;
}

.sm-buyback-banner-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
}

.sm-buyback-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    padding: 15px 26px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    background: var(--sm-bb-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(216, 67, 21, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sm-buyback-open-btn:hover {
    background: #c23812;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(216, 67, 21, 0.4);
}

/* Portal — deasupra headerului temei, WhatsApp, etc. */
.sm-buyback-portal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

.sm-buyback-portal.hidden {
    display: none !important;
}

.sm-buyback-portal.is-open {
    pointer-events: auto;
}

.sm-buyback-portal .sm-buyback-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: sm-bb-fade-in 0.25s ease;
}

.sm-buyback-portal .sm-buyback-modal {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(72px, env(safe-area-inset-top, 0px) + 56px) 16px max(16px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

body.sm-buyback-open {
    overflow: hidden !important;
}

.sm-buyback-portal .sm-buyback-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    margin: auto;
    background: #f8f9fb;
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    animation: sm-bb-slide-up 0.3s ease;
    flex-shrink: 0;
}

@keyframes sm-bb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sm-bb-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.sm-buyback-modal-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    padding: 22px 24px 20px;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
}

.sm-buyback-modal-brand {
    flex: 1;
    min-width: 0;
}

.sm-buyback-modal-kicker {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d84315;
    margin-bottom: 6px;
}

.sm-buyback-modal-brand h2 {
    margin: 0 0 6px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sm-buyback-modal-sub {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

#sm-buyback-portal .sm-buyback-close,
.sm-buyback-portal .sm-buyback-close {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: #d84315 !important;
    cursor: pointer !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(216, 67, 21, 0.45) !important;
    opacity: 1 !important;
    visibility: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: inherit !important;
    line-height: 1 !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

#sm-buyback-portal .sm-buyback-close-icon,
.sm-buyback-portal .sm-buyback-close-icon {
    display: block !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #fff !important;
    pointer-events: none;
}

#sm-buyback-portal .sm-buyback-close:hover,
.sm-buyback-portal .sm-buyback-close:hover {
    background: #c23812 !important;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.5) !important;
}

.sm-buyback-portal .sm-buyback-form {
    flex: 1;
    min-height: 0;
    padding: 8px 20px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sm-buyback-form::-webkit-scrollbar {
    width: 6px;
}

.sm-buyback-form::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.sm-buyback-step {
    margin: 16px 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sm-buyback-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-bottom: 1px solid #eef1f5;
}

.sm-buyback-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #d84315;
    flex-shrink: 0;
}

.sm-buyback-step-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.sm-buyback-step-body {
    padding: 18px;
}

.sm-buyback-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.sm-buyback-grid:last-child,
.sm-buyback-step-body > .sm-buyback-field:last-child {
    margin-bottom: 0;
}

.sm-buyback-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sm-buyback-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-buyback-field {
    margin-bottom: 16px;
}

.sm-buyback-field:last-child {
    margin-bottom: 0;
}

.sm-buyback-field > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #374151;
    letter-spacing: 0.02em;
}

.sm-req {
    color: #d84315;
    font-weight: 700;
}

.sm-buyback-field input,
.sm-buyback-field select,
.sm-buyback-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-buyback-field input::placeholder,
.sm-buyback-field textarea::placeholder {
    color: #9ca3af;
}

.sm-buyback-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.sm-buyback-field input:focus,
.sm-buyback-field select:focus,
.sm-buyback-field textarea:focus {
    outline: none;
    border-color: #d84315;
    box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.12);
}

.sm-buyback-field textarea {
    resize: vertical;
    min-height: 88px;
}

.sm-buyback-upload-zone {
    position: relative;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: #f9fafb;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sm-buyback-upload-zone.is-dragover,
.sm-buyback-upload-zone:hover {
    border-color: #d84315;
    background: #fffaf7;
    box-shadow: inset 0 0 0 1px rgba(216, 67, 21, 0.08);
}

.sm-buyback-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.sm-buyback-upload-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    color: #9ca3af;
}

.sm-buyback-upload-zone:hover .sm-buyback-upload-visual,
.sm-buyback-upload-zone.is-dragover .sm-buyback-upload-visual {
    color: #d84315;
}

.sm-buyback-upload-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.sm-buyback-upload-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.45;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.sm-buyback-file-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-buyback-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #374151;
}

.sm-buyback-file-remove {
    border: none;
    background: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #6b7280;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sm-buyback-file-remove:hover {
    color: #d84315;
}

.sm-buyback-footer {
    margin: 8px 12px 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sm-buyback-consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sm-buyback-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.sm-buyback-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sm-buyback-check-ui {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.sm-buyback-consent input:checked + .sm-buyback-check-ui {
    border-color: #d84315;
    background: #d84315;
}

.sm-buyback-consent input:checked + .sm-buyback-check-ui::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sm-buyback-consent-text {
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}

.sm-buyback-consent-text .sm-req {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sm-buyback-consent a {
    color: #d84315;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sm-buyback-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: linear-gradient(180deg, #df4a18 0%, #d84315 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(216, 67, 21, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.sm-buyback-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(216, 67, 21, 0.35);
}

.sm-buyback-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.sm-buyback-msg {
    margin: 14px 0 0;
    padding: 12px 14px;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    line-height: 1.45;
}

.sm-buyback-msg:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.sm-buyback-msg.is-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.sm-buyback-msg.is-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .sm-buyback-banner-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .sm-buyback-open-btn {
        width: 100%;
        justify-content: center;
    }

    .sm-buyback-portal .sm-buyback-modal {
        align-items: flex-end;
        padding: 0;
    }

    .sm-buyback-portal .sm-buyback-modal-dialog {
        max-width: none;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        max-height: 92dvh;
        animation: sm-bb-sheet-up 0.35s ease;
    }

    @keyframes sm-bb-sheet-up {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .sm-buyback-modal-topbar {
        padding: 18px 16px 16px;
    }

    #sm-buyback-portal .sm-buyback-close,
    .sm-buyback-portal .sm-buyback-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .sm-buyback-portal .sm-buyback-form {
        padding: 4px 12px 20px;
    }

    .sm-buyback-grid-2,
    .sm-buyback-grid-3 {
        grid-template-columns: 1fr;
    }

    .sm-buyback-footer {
        margin: 8px 8px 12px;
        padding: 16px;
    }
}

/* ===== Landing ads shortcode ===== */
.sm-landing-ads {
    width: 100%;
    margin: 0 auto;
}

.sm-landing-ads--gallery .sm-landing-gallery-grid {
    margin: 0;
}

.sm-landing-gallery-grid.sm-landing-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sm-landing-gallery-grid.sm-landing-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sm-landing-gallery-grid.sm-landing-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sm-landing-slider {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    align-items: center;
}

.sm-landing-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.sm-landing-slider-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.sm-landing-slide {
    flex: 0 0 33.333%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.sm-landing-slide .sm-card {
    height: 100%;
}

.sm-landing-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sm-landing-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.sm-landing-slider-btn:not(:disabled):hover {
    border-color: #d84315;
    color: #d84315;
}

.sm-landing-slider-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.sm-landing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
}

.sm-landing-dot.is-active {
    background: #d84315;
}

@media (max-width: 1400px) {
    .sm-landing-gallery-grid.sm-landing-cols-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sm-landing-gallery-grid.sm-landing-cols-3,
    .sm-landing-gallery-grid.sm-landing-cols-4,
    .sm-landing-gallery-grid.sm-landing-cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-landing-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 700px) {
    .sm-landing-gallery-grid.sm-landing-cols-3,
    .sm-landing-gallery-grid.sm-landing-cols-4,
    .sm-landing-gallery-grid.sm-landing-cols-5 {
        grid-template-columns: 1fr;
    }

    .sm-landing-slider {
        grid-template-columns: 36px 1fr 36px;
        gap: 4px;
    }

    .sm-landing-slide {
        flex-basis: 100%;
        padding: 0 6px;
    }

    .sm-landing-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
