/* ============================================================
 * SmartSearch Meili - Dropdown styles
 * Default:  dark theme
 * Override: add class .smartsearch-theme-light on the wrap
 * ============================================================ */

/* ---------- CSS variables (dark theme defaults) ---------- */
.smartsearch-wrap {
/* Layout */
--ss-dropdown-width:   560px;
--ss-dropdown-height:  390px;
--ss-dropdown-offset-y: 4px;
--ss-border-radius:    6px;
--ss-border-radius-top-left: var(--ss-border-radius);
--ss-border-radius-top-right: var(--ss-border-radius);
--ss-border-radius-bottom-right: var(--ss-border-radius);
--ss-border-radius-bottom-left: var(--ss-border-radius);
--ss-col-split:        34%;
/* Colors */
--ss-bg:          #1c1c1c;
--ss-bg-cat:      #151515;
--ss-bg-hover:    #2a2a2a;
--ss-cat-hover-bg: #2a2a2a;
--ss-border:      #2e2e2e;
--ss-divider:     #2e2e2e;
--ss-cat-hover-border: #e74c3c;
--ss-cat-hover-border-width: 3px;
--ss-text:        #e0e0e0;
--ss-text-muted:  #888;
--ss-text-title:  #aaa;
--ss-shadow:      rgba(0, 0, 0, 0.55);
--ss-accent:      #e74c3c;
--ss-hover-border: #e74c3c;
/* Category font */
--ss-cat-font-size:   13px;
--ss-cat-font-weight: 400;
--ss-cat-color:       #e0e0e0;
--ss-cat-count-color: #888888;
--ss-cat-count-bg:    #d0d0d0;
--ss-cat-count-size:  22px;
--ss-cat-count-font-size: 11px;
--ss-cat-count-border-width: 0px;
--ss-cat-count-border-color: #d0d0d0;
--ss-border-width: 1px;
/* Product name font */
--ss-name-font-size:   13px;
--ss-name-font-weight: 400;
--ss-name-color:       #e0e0e0;
/* Current price font */
--ss-price-font-size:   14px;
--ss-price-font-weight: 700;
--ss-price-color:       #e0e0e0;
/* Old price font */
--ss-old-price-font-size: 11px;
--ss-old-price-color:     #888;
/* Discount badge */
--ss-discount-font-size: 11px;
--ss-discount-color:     #ffffff;
--ss-discount-bg:        #e74c3c;
--ss-mobile-header-height: 46px;
--ss-mobile-padding: 14px;
--ss-mobile-results-height: calc(100vh - 86px);
--ss-mobile-card-radius: 8px;
--ss-mobile-card-gap: 8px;
--ss-mobile-overlay-bg: #111111;
--ss-mobile-header-bg: #1c1c1c;
--ss-mobile-text-color: #e0e0e0;
--ss-mobile-card-bg: #1f1f1f;
--ss-mobile-divider-color: #2e2e2e;
--ss-mobile-close-bg: #7d7d7d;
--ss-mobile-close-color: #e0e0e0;
--ss-mobile-cat-font-size: 14px;
--ss-mobile-name-font-size: 14px;
--ss-mobile-price-font-size: 14px;
position: relative;
}

body.smartsearch-body-locked {
overflow: hidden;
position: fixed;
left: 0;
right: 0;
width: 100%;
}

.smartsearch-mobile-clear,
.smartsearch-mobile-close {
display: none;
}

/* ---------- Light theme overrides ---------- */
.smartsearch-theme-light {
--ss-bg:          #ffffff;
--ss-bg-cat:      #f5f5f5;
--ss-bg-hover:    #eef3ff;
--ss-border:      #e0e0e0;
--ss-divider:     #e0e0e0;
--ss-text:        #2c2c2c;
--ss-text-muted:  #999;
--ss-text-title:  #777;
--ss-shadow:      rgba(0, 0, 0, 0.14);
--ss-cat-color:   #2c2c2c;
--ss-name-color:  #2c2c2c;
--ss-price-color: #2c2c2c;
--ss-old-price-color: #999;
--ss-hover-border: #e74c3c;
}

/* ---------- Dropdown container ---------- */
.smartsearch-dropdown {
display: none;
position: absolute;
top: calc(100% + var(--ss-dropdown-offset-y, 4px));
left: 0;
right: 0;
z-index: 1050;
background: var(--ss-bg);
border: var(--ss-border-width, 1px) solid var(--ss-border);
border-radius: var(--ss-border-radius-top-left, var(--ss-border-radius, 6px)) var(--ss-border-radius-top-right, var(--ss-border-radius, 6px)) var(--ss-border-radius-bottom-right, var(--ss-border-radius, 6px)) var(--ss-border-radius-bottom-left, var(--ss-border-radius, 6px));
box-shadow: 0 8px 32px var(--ss-shadow);
overflow: hidden;
min-width: var(--ss-dropdown-width, 560px);
}

.smartsearch-dropdown.is-open {
display: block;
}

.smartsearch-wrap.smartsearch-mobile-active {
position: fixed;
inset: 0;
z-index: 1100;
display: flex !important;
flex-wrap: wrap;
align-content: flex-start;
align-items: flex-start;
gap: 0;
width: 100vw;
height: 100vh;
height: 100dvh;
box-sizing: border-box;
padding: var(--ss-mobile-padding, 14px);
background: var(--ss-mobile-overlay-bg, var(--ss-bg));
color: var(--ss-mobile-text-color, var(--ss-text));
overflow: hidden;
}

.smartsearch-wrap.smartsearch-mobile-active::after {
content: '';
position: absolute;
left: 0;
right: 0;
top: calc(var(--ss-mobile-padding, 14px) + var(--ss-mobile-header-height, 46px) + 6px);
height: 1px;
background: color-mix(in srgb, var(--ss-mobile-divider-color, var(--ss-divider)) 85%, transparent);
opacity: .9;
pointer-events: none;
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-close {
order: 1;
flex: 0 0 36px;
width: 36px;
min-width: 36px;
height: 36px;
margin: 2px 12px 10px 0;
padding: 0;
border-radius: 999px;
font-size: 0;
color: transparent;
text-indent: -9999px;
overflow: hidden;
white-space: nowrap;
position: relative;
background: var(--ss-mobile-close-bg, #7d7d7d);
border: none;
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-close::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 17px;
height: 17px;
transform: translate(-50%, -50%);
background-color: var(--ss-mobile-close-color, #ffffff);
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M15 18l-6-6 6-6M9 12h10'/%3E%3C/svg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M15 18l-6-6 6-6M9 12h10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.smartsearch-wrap.smartsearch-mobile-active > .form-control {
order: 2;
flex: 1 1 auto;
width: auto;
min-width: 0;
height: var(--ss-mobile-header-height, 46px);
font-size: 16px;
padding-left: 18px;
padding-right: 52px;
border-radius: 999px;
background: #ffffff;
color: #3b3b3b;
border: none;
box-shadow: none;
margin-bottom: 18px;
}

.smartsearch-wrap.smartsearch-mobile-active.smartsearch-mobile-hide-close > .form-control {
order: 1;
flex-basis: 100%;
width: 100%;
}

.smartsearch-wrap.smartsearch-mobile-active > .form-control::placeholder {
color: #7c7c7c;
opacity: .72;
}

.smartsearch-wrap.smartsearch-mobile-active > .input-group-btn {
display: none;
width: auto;
}

.smartsearch-wrap.smartsearch-mobile-active > .input-group-btn > .btn {
height: var(--ss-mobile-header-height, 46px);
border-radius: 0 6px 6px 0;
background: var(--ss-mobile-header-bg, var(--ss-bg));
color: var(--ss-mobile-text-color, var(--ss-text));
border-color: var(--ss-mobile-divider-color, var(--ss-divider));
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-clear,
.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-close {
display: inline-flex;
align-items: center;
justify-content: center;
height: var(--ss-mobile-header-height, 46px);
padding: 0 14px;
border: 1px solid var(--ss-mobile-divider-color, var(--ss-divider));
border-radius: 6px;
background: var(--ss-mobile-header-bg, var(--ss-bg));
color: var(--ss-mobile-close-color, var(--ss-mobile-text-color, var(--ss-text)));
font-size: 14px;
font-weight: 600;
line-height: 1;
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-close {
width: 36px;
min-width: 36px;
height: 36px;
padding: 0;
border: none;
border-radius: 999px;
background: var(--ss-mobile-close-bg, #7d7d7d);
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-clear {
order: 3;
position: absolute;
top: var(--ss-mobile-padding, 14px);
right: calc(var(--ss-mobile-padding, 14px) + 4px);
width: 44px;
min-width: 44px;
height: var(--ss-mobile-header-height, 46px);
padding: 0;
margin: 0;
border: none;
border-radius: 999px;
background: transparent;
color: #3b3b3b;
font-size: 0;
z-index: 2;
}

.smartsearch-wrap.smartsearch-mobile-active > .smartsearch-mobile-clear::before {
content: '\00d7';
font-size: 34px;
line-height: 1;
font-weight: 300;
}

.smartsearch-wrap.smartsearch-mobile-active.smartsearch-mobile-hide-close > .smartsearch-mobile-close {
display: none !important;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-dropdown {
position: relative;
order: 4;
top: 0;
left: auto;
right: auto;
transform: none;
display: block;
width: 100% !important;
min-width: 0;
height: var(--ss-mobile-results-height, calc(100dvh - (var(--ss-mobile-padding, 14px) * 2) - var(--ss-mobile-header-height, 46px) - 12px));
max-height: calc(100dvh - (var(--ss-mobile-padding, 14px) * 2) - var(--ss-mobile-header-height, 46px) - 12px);
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
background: var(--ss-mobile-overlay-bg, var(--ss-bg));
border: none;
border-radius: 0;
box-shadow: none;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-grid {
display: flex;
flex-direction: column;
height: auto;
min-height: 100%;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-col {
display: flex;
flex-direction: column;
width: 100%;
min-height: 0;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-col-categories {
flex: 0 0 auto;
max-height: none;
border-right: none;
border-bottom: none;
background: var(--ss-mobile-categories-bg, var(--ss-mobile-overlay-bg, var(--ss-bg)));
border-radius: var(--ss-mobile-categories-radius, 0);
overflow: hidden;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-col-products {
flex: 0 0 auto;
min-height: 0;
display: flex;
flex-direction: column;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-categories {
height: auto;
max-height: none;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items: stretch;
gap: var(--ss-mobile-card-gap, 8px);
padding: 2px 0 0;
overflow: visible;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-products {
height: auto;
flex: 0 0 auto;
min-height: auto;
padding-top: 6px;
overflow: visible;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-col-products .smartsearch-products {
height: auto;
}

.smartsearch-wrap.smartsearch-mobile-active.smartsearch-mobile-hide-categories .smartsearch-col-categories {
display: none;
}

.smartsearch-wrap.smartsearch-mobile-active.smartsearch-mobile-hide-products .smartsearch-col-products {
display: none;
}

.smartsearch-wrap.smartsearch-mobile-active.smartsearch-mobile-hide-badge .smartsearch-category-count {
display: none;
}

/* ---------- Dropdown position alignment ---------- */
.smartsearch-pos-left .smartsearch-dropdown  { left: 0; right: auto; }
.smartsearch-pos-center .smartsearch-dropdown { left: 50%; right: auto; transform: translateX(-50%); }
.smartsearch-pos-right .smartsearch-dropdown  { right: 0; left: auto; }
/* Page-width mode: stretch to full viewport width */
.smartsearch-width-page .smartsearch-dropdown {
  min-width: 0;
  left: 0;
  right: 0;
  width: 100%;
}
/* Search-box width mode: match input group width exactly */
.smartsearch-width-search .smartsearch-dropdown {
  min-width: 0;
  width: 100%;
}

/* ---------- Two-column grid ---------- */
.smartsearch-grid {
display: table;
width: 100%;
table-layout: fixed;
}

.smartsearch-col {
display: table-cell;
vertical-align: top;
}

.smartsearch-col-categories {
width: var(--ss-col-split, 34%);
background: var(--ss-bg-cat);
border-right: 1px solid var(--ss-divider);
padding: 14px 0;
}

.smartsearch-col-products {
width: 66%;
padding: 0;
}

/* ---------- Column headings ---------- */
.smartsearch-col-title {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: var(--ss-text-title);
letter-spacing: 0.7px;
padding: 0 14px 8px;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-col-title {
font-size: 12px;
color: var(--ss-mobile-text-color, var(--ss-text-title));
padding: 6px 0 10px;
}

/* ---------- Scrollable lists ---------- */
.smartsearch-categories,
.smartsearch-products {
margin: 0;
padding: 0;
height: var(--ss-dropdown-height, 390px);
overflow-y: auto;
list-style: none;
}

.smartsearch-col-products .smartsearch-products {
height: calc(var(--ss-dropdown-height, 390px) - 39px);
}

.smartsearch-categories,
.smartsearch-products {
scrollbar-width: thin;
scrollbar-color: var(--ss-accent) transparent;
}

.smartsearch-categories::-webkit-scrollbar,
.smartsearch-products::-webkit-scrollbar {
width: 6px;
}

.smartsearch-categories::-webkit-scrollbar-track,
.smartsearch-products::-webkit-scrollbar-track {
background: transparent;
}

.smartsearch-categories::-webkit-scrollbar-thumb,
.smartsearch-products::-webkit-scrollbar-thumb {
background: var(--ss-text-muted);
background: color-mix(in srgb, var(--ss-accent) 72%, transparent);
border-radius: 999px;
}

.smartsearch-categories::-webkit-scrollbar-thumb:hover,
.smartsearch-products::-webkit-scrollbar-thumb:hover {
background: var(--ss-accent);
}

/* ---------- Category item ---------- */
.smartsearch-category-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 9px 14px;
cursor: pointer;
font-size: var(--ss-cat-font-size, 13px);
font-weight: var(--ss-cat-font-weight, 400);
color: var(--ss-cat-color, var(--ss-text));
transition: background 0.12s;
border-left: var(--ss-cat-hover-border-width, 3px) solid transparent;
}

.smartsearch-category-item:hover,
.smartsearch-category-item.active {
background: var(--ss-cat-hover-bg, var(--ss-bg-hover));
border-left-color: var(--ss-cat-hover-border, var(--ss-hover-border, var(--ss-accent)));
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-category-item {
font-size: calc(var(--ss-mobile-cat-font-size, var(--ss-cat-font-size, 13px)) - 1px);
color: #ffffff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
gap: 6px;
min-height: 108px;
height: 100%;
padding: 12px 8px 10px;
margin: 0;
border: none;
border-radius: 18px;
background: color-mix(in srgb, var(--ss-mobile-card-bg, #4a4a4a) 92%, #ffffff 8%);
overflow: hidden;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-category-item:hover,
.smartsearch-wrap.smartsearch-mobile-active .smartsearch-category-item.active {
background: color-mix(in srgb, var(--ss-mobile-card-bg, #4a4a4a) 82%, #ffffff 18%);
border-left-color: transparent;
}

.smartsearch-category-name {
flex: 1;
margin-right: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-category-name {
flex: 0 1 auto;
margin-right: 0;
white-space: normal;
overflow: hidden;
text-overflow: clip;
font-size: calc(var(--ss-mobile-cat-font-size, var(--ss-cat-font-size, 13px)) - 1px);
line-height: 1.15;
display: -webkit-box;
line-clamp: 3;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-category-count {
background: transparent;
border: none;
padding: 0;
min-width: 0;
height: auto;
font-size: 14px;
font-weight: 700;
color: #ffffff;
}

@media (max-width: 380px) {
.smartsearch-wrap.smartsearch-mobile-active .smartsearch-categories {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

.smartsearch-category-count {
flex: 0 0 auto;
font-size: var(--ss-cat-count-font-size, 11px);
line-clamp: 2;
-webkit-line-clamp: 2;
justify-content: center;
height: var(--ss-cat-count-size, 22px);
min-width: var(--ss-cat-count-size, 22px);
padding: 0 6px;
color: var(--ss-cat-count-color, var(--ss-text-muted));
}

.smartsearch-cat-badge-circle .smartsearch-category-count {
border-radius: 999px;
}

.smartsearch-cat-badge-square .smartsearch-category-count {
border-radius: 4px;
}

.smartsearch-cat-badge-none .smartsearch-category-count {
display: none;
}

/* ---------- Product item ---------- */
.smartsearch-product-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
cursor: pointer;
transition: background 0.12s;
}

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

.smartsearch-product-item:hover,
.smartsearch-product-item.active {
background: var(--ss-bg-hover);
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-product-item {
align-items: flex-start;
background: #ffffff;
border-radius: max(14px, var(--ss-mobile-card-radius, 8px));
margin: 0 0 var(--ss-mobile-card-gap, 8px);
padding: 12px 14px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-product-name {
font-size: var(--ss-mobile-name-font-size, var(--ss-name-font-size, 13px));
color: #1e1e1e;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-price {
font-size: var(--ss-mobile-price-font-size, var(--ss-price-font-size, 14px));
color: #111111;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-old-price {
color: #d85a5a;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-product-prices {
min-width: 96px;
}

.smartsearch-product-image {
flex: 0 0 46px;
width: 46px;
height: 46px;
object-fit: contain;
border-radius: 4px;
background: #fff;
}

.smartsearch-product-name {
flex: 1 1 auto;
min-width: 0;
font-size: var(--ss-name-font-size, 13px);
font-weight: var(--ss-name-font-weight, 400);
color: var(--ss-name-color, var(--ss-text));
line-height: 1.35;
overflow: hidden;
display: -webkit-box;
line-clamp: 2;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

/* ---------- Price block (right-aligned) ---------- */
.smartsearch-product-prices {
flex: 0 0 auto;
text-align: right;
min-width: 88px;
}

.smartsearch-price-old-row {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 5px;
margin-bottom: 3px;
}

.smartsearch-old-price {
font-size: var(--ss-old-price-font-size, 11px);
color: var(--ss-old-price-color, var(--ss-text-muted));
text-decoration: line-through;
}

.smartsearch-discount {
font-size: var(--ss-discount-font-size, 11px);
font-weight: 600;
color: var(--ss-discount-color, #fff);
background: var(--ss-discount-bg, var(--ss-accent));
border-radius: 3px;
padding: 1px 5px;
white-space: nowrap;
}

.smartsearch-price {
font-size: var(--ss-price-font-size, 14px);
font-weight: var(--ss-price-font-weight, 700);
color: var(--ss-price-color, var(--ss-text));
white-space: nowrap;
}

/* ---------- Empty state ---------- */
.smartsearch-empty {
padding: 16px 14px;
color: var(--ss-text-muted);
font-size: 13px;
}

/* ---------- Products footer ---------- */
.smartsearch-products-footer {
padding: 8px 14px 10px;
text-align: right;
background: var(--ss-bg);
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-products-footer {
background: transparent;
border-top: none;
padding: 6px 0 0;
text-align: center;
}

.smartsearch-all-results {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 36px;
padding: 9px 16px;
border-radius: var(--ss-view-all-radius, 999px);
background: var(--ss-view-all-bg, #ffffff);
font-size: var(--ss-view-all-size, 13px);
font-weight: var(--ss-view-all-weight, 600);
color: var(--ss-view-all-color, #111111);
text-decoration: none;
line-height: 1.2;
transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.smartsearch-all-results:hover {
background: var(--ss-view-all-bg-hover, var(--ss-view-all-bg, #f3f3f3));
color: var(--ss-view-all-color-hover, var(--ss-view-all-color, #111111));
text-decoration: none;
opacity: .96;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-all-results {
width: 100%;
max-width: 280px;
min-height: 44px;
padding: 12px 18px;
border-radius: var(--ss-mobile-view-all-radius, 18px);
background: var(--ss-mobile-view-all-bg, #ffffff);
font-size: var(--ss-mobile-view-all-size, 14px);
font-weight: var(--ss-mobile-view-all-weight, 600);
color: var(--ss-mobile-view-all-color, #111111);
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-all-results:hover,
.smartsearch-wrap.smartsearch-mobile-active .smartsearch-all-results:focus {
background: var(--ss-mobile-view-all-bg-hover, var(--ss-mobile-view-all-bg, #f3f3f3));
color: var(--ss-mobile-view-all-color-hover, var(--ss-mobile-view-all-color, #111111));
}

.smartsearch-mobile-query-item {
display: block;
margin: 0 0 var(--ss-mobile-card-gap, 8px);
padding: 12px;
border-radius: var(--ss-mobile-card-radius, 8px);
background: var(--ss-mobile-card-bg, var(--ss-bg-hover));
color: var(--ss-mobile-text-color, var(--ss-text));
cursor: pointer;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-empty {
color: var(--ss-mobile-text-color, var(--ss-text-muted));
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-empty {
grid-column: 1 / -1;
padding-left: 0;
padding-right: 0;
}

/* ---------- Highlight marks ---------- */
mark.smartsearch-mark {
background: transparent;
color: var(--ss-accent);
font-weight: 700;
padding: 0;
}

/* ---------- Loading skeleton ---------- */
.smartsearch-skeleton-item {
height: 56px;
border-bottom: 1px solid var(--ss-divider);
background: linear-gradient(90deg, var(--ss-bg) 25%, var(--ss-bg-hover) 50%, var(--ss-bg) 75%);
background-size: 200% 100%;
animation: ss-shimmer 1.2s ease-in-out infinite;
}
.smartsearch-skeleton-item:last-child {
border-bottom: none;
}
@keyframes ss-shimmer {
0%   { background-position: 200% 0; }
100% { background-position: -200% 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
.smartsearch-dropdown {
min-width: 0;
left: -8px;
right: -8px;
}

.smartsearch-grid,
.smartsearch-col,
.smartsearch-col-categories,
.smartsearch-col-products {
display: block;
width: 100%;
}

.smartsearch-col-categories {
border-right: none;
border-bottom: 1px solid var(--ss-divider);
padding: 8px 0;
}

.smartsearch-categories {
max-height: 140px;
}

.smartsearch-wrap.smartsearch-mobile-active .smartsearch-dropdown {
left: auto;
right: auto;
}
}
