.gd-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    background: rgba(0,0,0,0.45);
}

.gd-search-overlay__inner {
    position: absolute;
    inset: 0;
    background: #fff;
    overflow: auto;
    padding: 24px 24px 40px;
}

.gd-search-overlay__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.gd-search-overlay__top {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}

.gd-search-overlay__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.gd-search-overlay__search-slot .block-search {
    width: 100%;
}

.gd-search-overlay__search-slot input[type="text"],
.gd-search-overlay__search-slot input[type="search"]{
    width: 100%;
    font-size: 18px;
    padding: 14px 14px;
}

/* contenuto sotto search */
.gd-search-overlay__content{
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 26px; /* <-- spazio top richiesto */
}

.gd-search-overlay__section-title{
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px; /* non più "appiccicato" */
}

.gd-search-overlay__grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.gd-search-overlay__card{
    display: block;
    text-decoration: none;
    color: inherit;
}

.gd-search-overlay__imgwrap{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
}

.gd-search-overlay__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gd-search-overlay__name{
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
}

.gd-search-overlay__empty{
    font-size: 13px;
    opacity: 0.8;
}

@media (max-width: 1024px){
    .gd-search-overlay__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px){
    .gd-search-overlay__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.gd-search-overlay-open {
    overflow: hidden;
}

/* STEP 21.1 - FIX spazio sopra "Trending products" (override tema) */
.gd-search-overlay .gd-search-overlay__content{
  padding-top: 26px !important;
}

.gd-search-overlay .gd-search-overlay__section-title{
  margin-top: 14px !important;
}

/* STEP 21.2 - spacer reale sotto search */
.gd-search-overlay__spacer{
  height: 32px;
  clear: both;
}
