/* =========================================================
   CATALOG UI - INDUSTRIAL B2B SEARCH
   Theme: DigiKey × Amazon Business Hybrid
   Colors:
   --accent: #aa0100
   --ui: #398387
   --bg: #f8f9fa
   ========================================================= */

/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --accent: #aa0100;
    --accent-hover: #8f0100;
    --accent-soft: rgba(170, 1, 0, 0.12);

    --ui: #398387;
    --ui-hover: #2f6f72;
    --ui-soft: rgba(57, 131, 135, 0.12);

    --bg: #f8f9fa;

    --surface: #ffffff;

    --text: #212529;
    --muted: #6c757d;

    --border: #e9ecef;

    --success: #198754;
    --warning: #fd7e14;
    --danger: #dc3545;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
}

/* =========================================================
   BASE
   ========================================================= */

html {
    overflow-x: hidden;
}
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    overflow-x: hidden;
}

a {
    color: var(--ui);
    text-decoration: none;
}

a:hover {
    color: var(--ui-hover);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   STICKY SEARCH
   ========================================================= */

.sticky-search-wrapper {
    background: var(--surface);
}

.sticky-search-content {
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.search-bar-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px 10px;
    box-shadow: var(--shadow-sm);
}

.search-icon {
    color: var(--muted);
    margin-right: 8px;
}

.search-input {
    border: none;
    box-shadow: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.search-input:focus {
    box-shadow: none;
}

.btn-clear-search {
    background: transparent;
    border: none;
    color: var(--muted);
    margin-right: 8px;
}

.search-submit-btn {
    border-radius: var(--radius-md);
    background: var(--accent);
    border: none;
}

.search-submit-btn:hover {
    background: var(--accent-hover);
}

/* =========================================================
   AUTOCOMPLETE
   ========================================================= */

.autocomplete-dropdown {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 2000;
}

.autocomplete-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--ui-soft);
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-search-section {
    padding: 24px 0;
}

.hero-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 50px 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
}

.hero-description {
    color: var(--muted);
    margin-bottom: 16px;
}

.hero-hint-btn {
    border: 1px solid var(--border);
    background: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    margin: 4px;
}

.hero-hint-btn:hover {
    border-color: var(--ui);
    color: var(--ui);
}

#mainSearchForm {
    position: relative;
}

/* =========================================================
   CHIPS
   ========================================================= */

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-btn:hover {
    border-color: var(--ui);
    color: var(--ui);
    transform: translateY(-1px);
}

.chip-btn.active {
    background: var(--ui);
    color: #fff;
    border-color: var(--ui);
}

/* =========================================================
   FILTERS
   ========================================================= */

.filters-sidebar {
    top: 90px;
    overflow: hidden;
    background: var(--surface, #fff);
    border: 1px solid #e9ecef;
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 4px 18px rgba(17, 24, 39, .045);
}


/* =========================================================
   HEADER
   ========================================================= */

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid #edf0f2;
}

.filters-title {
    color: #212529;
    font-size: 16px;
    font-weight: 700;
}

.filter-header-subtitle {
    color: #8a929a;
    font-size: 11px;
    line-height: 1.3;
}

.filter-reset-link {
    padding: 0;
    color: var(--ui, #398387);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s ease;
}

.filter-reset-link:hover {
    color: var(--accent, #aa0100);
}


/* =========================================================
   ACCORDION
   ========================================================= */

.filters-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid #edf0f2;
}

.filters-accordion .accordion-item:last-child {
    border-bottom: 0;
}

.filters-accordion .accordion-button {
    gap: 9px;
    padding: 14px 17px;
    color: #343a40;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
}

.filters-accordion .accordion-button:not(.collapsed) {
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .035);
    box-shadow: none;
}

.filters-accordion .accordion-button:focus {
    box-shadow: none;
}

.filters-accordion .accordion-button::after {
    width: 14px;
    height: 14px;
    background-size: 14px;
}

.filter-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .09);
    border-radius: 6px;
}

.filter-accordion-icon i {
    font-size: 12px;
}

.filters-accordion .accordion-body {
    padding: 4px 17px 17px;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.filter-helper-text {
    margin-bottom: 9px;
    color: #8a929a;
    font-size: 11px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.filter-search-wrap {
    position: relative;
}

.filter-search-wrap > .bi-search {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 2;
    color: #adb5bd;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.filter-search-input {
    height: 34px;
    padding-right: 31px !important;
    padding-left: 32px !important;
    color: #343a40;
    background: #f8f9fa;
    border-color: #e7eaed;
    border-radius: 8px;
    font-size: 12px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}

.filter-search-input::placeholder {
    color: #9da4ab;
}

.filter-search-input:hover {
    border-color: #d7dcdf;
}

.filter-search-input:focus {
    background: #fff;
    border-color: var(--ui, #398387);
    box-shadow: 0 0 0 3px rgba(57, 131, 135, .1);
}

.filter-search-clear {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #8b939b;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.filter-search-clear:hover {
    color: #343a40;
    background: #eceff1;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    color: #495057;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
    transition:
        color .15s ease,
        background-color .15s ease;
}

.filter-option:hover {
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .06);
}

.filter-option.active {
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .1);
    font-weight: 650;
}

.filter-option.active::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 3px;
    background: var(--ui, #398387);
    border-radius: 0 2px 2px 0;
    content: "";
}

.filter-option__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-option__count {
    flex: 0 0 auto;
    min-width: 24px;
    padding: 2px 5px;
    color: #969da4;
    background: #f1f3f5;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.filter-option:hover .filter-option__count,
.filter-option.active .filter-option__count {
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .1);
}


/* =========================================================
   SHOW MORE
   ========================================================= */

.filter-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 31px;
    padding: 5px 10px;
    color: var(--ui, #398387);
    background: transparent;
    border: 1px solid rgba(57, 131, 135, .2);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color .15s ease,
        background-color .15s ease,
        border-color .15s ease;
}

.filter-show-more:hover {
    color: var(--ui, #398387);
    background: rgba(57, 131, 135, .055);
    border-color: rgba(57, 131, 135, .35);
}

.filter-show-more i {
    font-size: 10px;
    transition: transform .2s ease;
}

.filter-show-more.is-expanded i {
    transform: rotate(180deg);
}


/* =========================================================
   EMPTY
   ========================================================= */

.filter-empty {
    padding: 14px 8px;
    color: #9ba1a7;
    font-size: 11px;
    text-align: center;
}


/* =========================================================
   MOBILE
   ========================================================= */

#mobileFilters {
    --bs-offcanvas-width: min(360px, 92vw);
}

#mobileFilters .offcanvas-header {
    padding: 17px 18px;
}

#mobileFilters .offcanvas-body {
    padding: 0;
}

#mobileFilters .filters-accordion .accordion-body {
    padding: 6px 18px 18px;
}

#mobileFilters .filter-option {
    min-height: 40px;
    font-size: 13px;
}

#mobileFilters .filter-search-input {
    height: 40px;
    font-size: 13px;
}

.offcanvas-footer {
    margin-top: auto;
    background: #fff;
}

.filter-reset-btn {
    color: #6c757d;
    font-size: 12px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.filter-option:focus-visible,
.filter-show-more:focus-visible,
.filter-reset-link:focus-visible {
    outline: 3px solid rgba(57, 131, 135, .17);
    outline-offset: 1px;
}

/* =========================================================
   RESULTS TOOLBAR
   ========================================================= */

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.results-title {
    font-weight: 700;
}

.results-subtitle {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    height: 100%;
    align-items: center;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin:12px;
    min-height: 80px;
    border-radius: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color:#333;
}

.product-meta {
    font-size: 14px;
    color: var(--muted);
}

.product-price {
    color: var(--success);
    font-weight: 600;
    margin-top: auto;
}
.product-card-footer {
    margin-left: auto;
    padding-right:2rem;
    max-width: 25%;
}
.product-card-footer button {
    padding-left:8px;
}

@media (max-width: 660px) {
    .product-card-footer {
        padding-right: 1rem;
    }
    .product-image {
        max-width: 90px;
    }
}

@media (max-width: 768px) {
    .product-image {
        max-width: 120px;
    }
}

/* =========================================================
   BADGES
   ========================================================= */

.product-category-badge {
    background: var(--ui-soft);
    color: var(--ui);
    font-size: 10px;
}

.ai-badge {
    background: var(--accent-soft);
    color: var(--accent);
}

/* =========================================================
   SKELETON
   ========================================================= */

.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 12px;
}

.skeleton-image,
.skeleton-line,
.skeleton-chip {
    background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-image {
    height: 110px;
}

.skeleton-line {
    height: 10px;
    margin-top: 8px;
}

.skeleton-line-lg { width: 80%; }
.skeleton-line-sm { width: 60%; }
.skeleton-line-price { width: 40%; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 40px;
    color: var(--muted);
    margin-bottom: 12px;
}

.empty-state-title {
    font-weight: 700;
}

.empty-state-text {
    color: var(--muted);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination-wrapper {
    margin-top: 24px;
    text-align: center;
}
.page-link {
    color: var(--ui) !important;
}
.active>.page-link, .page-link.active {
    color: #fefefe !important;
    background-color: var(--ui);
    border-color: var(--ui) !important;
}
.pagination-summary {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* =========================================================
   MODAL
   ========================================================= */

.quick-view-image-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
    border-radius: var(--radius-md);
}

/* =========================================================
   UTILITIES
   ========================================================= */

.btn-ui {
    background: var(--ui);
    color: #fff;
}

.btn-ui:hover {
    background: var(--ui-hover);
    color: #fff;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 768px) {
    .results-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sticky-search-content {
        flex-direction: column;
        align-items: stretch;
    }
}


.btn-add-cart{

    width:38px;

    height:38px;

    border-radius:10px;

    transition:.2s;

}

.btn-add-cart.added{
    pointer-events:none;
}

.btn-add-cart.is-added {
    color: #398387;
    background: rgba(57, 131, 135, 0.08);
    border-color: rgba(57, 131, 135, 0.25);
    cursor: default;
    opacity: 1;
}

.btn-add-cart.is-added:disabled {
    opacity: 1;
}

.toast{
    border-radius:14px;
}

/* =========================================================
   FREQUENT SEARCHES
   ========================================================= */

.frequent-searches {
    --frequent-accent: #aa0100;
    --frequent-ui: #398387;
    --frequent-border: #e5e7eb;
    --frequent-muted: #6b7280;
}

.frequent-searches .card {
    overflow: hidden;
    background:
        linear-gradient(
            105deg,
            rgba(57, 131, 135, 0.055) 0%,
            rgba(255, 255, 255, 0) 36%
        ),
        #ffffff;
    border-radius: 14px;
}

.frequent-searches__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--frequent-accent);
    background: rgba(170, 1, 0, 0.08);
    border-radius: 12px;
}

.frequent-searches__icon i {
    font-size: 18px;
}

.frequent-searches__title {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.frequent-searches__subtitle {
    color: var(--frequent-muted);
    font-size: 12px;
    line-height: 1.45;
}

.frequent-searches__hint {
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
}

.frequent-searches__list {
    display: flex;
    flex-direction: column;
}

.frequent-searches__row {
    display: grid;
    grid-template-columns: minmax(190px, 245px) 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--frequent-border);
}

.frequent-searches__row:first-child {
    border-top: 0;
}

.frequent-searches__category,
.frequent-searches__brand {
    padding: 0;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.frequent-searches__category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    transition: color 0.15s ease;
}

.frequent-searches__category i {
    flex: 0 0 auto;
    color: var(--frequent-ui);
    font-size: 14px;
}

.frequent-searches__category span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.frequent-searches__category:hover {
    color: var(--frequent-accent);
}

.frequent-searches__category:hover i {
    color: var(--frequent-accent);
}

.frequent-searches__arrow {
    color: #c4c9d0;
    font-size: 11px;
}

.frequent-searches__brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    min-width: 0;
}

.frequent-searches__brand {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    color: var(--frequent-ui);
    background: rgba(57, 131, 135, 0.07);
    border: 1px solid rgba(57, 131, 135, 0.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.frequent-searches__brand:hover {
    color: #ffffff;
    background: var(--frequent-ui);
    border-color: var(--frequent-ui);
    transform: translateY(-1px);
}

.frequent-searches__category:focus-visible,
.frequent-searches__brand:focus-visible {
    outline: 3px solid rgba(57, 131, 135, 0.2);
    outline-offset: 2px;
}

.frequent-searches__category.is-active {
    color: var(--frequent-accent);
}

.frequent-searches__category.is-active i {
    color: var(--frequent-accent);
}

.frequent-searches__brand.is-active {
    color: #ffffff;
    background: var(--frequent-accent);
    border-color: var(--frequent-accent);
}

.frequent-searches__row.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .frequent-searches__row {
        grid-template-columns: minmax(180px, 220px) 16px minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .frequent-searches__row {
        display: block;
        padding: 12px 0;
    }

    .frequent-searches__category {
        margin-bottom: 8px;
    }

    .frequent-searches__arrow {
        display: none;
    }

    .frequent-searches__brands {
        padding-left: 23px;
    }
}

@media (max-width: 575.98px) {
    .frequent-searches .card {
        border-radius: 12px;
    }

    .frequent-searches__brands {
        padding-left: 0;
    }

    .frequent-searches__brand {
        min-height: 28px;
        padding: 4px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frequent-searches__category,
    .frequent-searches__brand {
        transition: none;
    }
}

/* =========================================================
   RECENTLY VIEWED
   ========================================================= */

.recently-viewed-title {
    color: #212529;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.recently-viewed-subtitle {
    color: #8a929a;
    font-size: 11px;
}

.recently-viewed-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #8b9298;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    transition:
        color .15s ease,
        background-color .15s ease;
}

.recently-viewed-clear:hover {
    color: #aa0100;
    background: rgba(170, 1, 0, .06);
}

.recently-viewed-wrapper {
    position: relative;
}

.recently-viewed-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #d6dade transparent;
}

.recently-viewed-track::-webkit-scrollbar {
    height: 5px;
}

.recently-viewed-track::-webkit-scrollbar-track {
    background: transparent;
}

.recently-viewed-track::-webkit-scrollbar-thumb {
    background: #d6dade;
    border-radius: 99px;
}

.recently-viewed-card {
    display: flex;
    flex: 0 0 235px;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 82px;
    padding: 10px;
    color: #212529;
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .035);
    scroll-snap-align: start;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.recently-viewed-card:hover {
    color: #212529;
    border-color: rgba(57, 131, 135, .35);
    box-shadow: 0 7px 20px rgba(17, 24, 39, .07);
    transform: translateY(-1px);
}

.recently-viewed-image {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 8px;
}

.recently-viewed-image img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.recently-viewed-placeholder {
    color: #c0c6cb;
    font-size: 18px;
}

.recently-viewed-content {
    min-width: 0;
}

.recently-viewed-brand {
    margin-bottom: 3px;
    overflow: hidden;
    color: #398387;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.recently-viewed-card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #30353a;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.recently-viewed-model {
    margin-top: 4px;
    overflow: hidden;
    color: #949ba1;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recently-viewed-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 42px;
    padding: 0;
    color: #398387;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(17, 24, 39, .08);
    transform: translateY(-50%);
}

.recently-viewed-nav:hover {
    color: #aa0100;
}

.recently-viewed-nav-prev {
    left: -15px;
}

.recently-viewed-nav-next {
    right: -15px;
}

@media (max-width: 767.98px) {

    .recently-viewed-section {
        padding: 26px 0;
    }

    .recently-viewed-card {
        flex-basis: 210px;
    }

    .recently-viewed-image {
        width: 52px;
        height: 52px;
    }

}