/* ============================================================
   shopin.city — vetrina dei negozi e caroselli grandi
   Caricato dopo ui2.css.

   Criterio: chi guarda ha fra i venti e i cinquant'anni ed è
   abituato a Zalando, Amazon e alle app di consegna. Si fida
   di tre cose, in quest'ordine: la faccia del negozio (foto e
   logo), il giudizio di chi c'è già stato, e la merce vera.
   La card le mette tutte e tre nello stesso colpo d'occhio.
   ============================================================ */

/* ----------------------------------------------------------
   13. Card negozio
   ---------------------------------------------------------- */

.shop-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(6, 8, 12, .04);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.shop-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(6, 8, 12, .14);
}

/* La copertina resta il richiamo, ma lascia spazio all'avatar. */
.shops-rail .shop-card-cover,
.shop-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
}

.shop-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.shop-card:hover .shop-card-cover-img { transform: scale(1.05); }

.shop-card-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(6, 8, 12, .16);
}

/* L'avatar sborda sulla copertina come su un profilo: è il gesto
   che fa leggere subito la card come "un negozio", non "una foto". */
.shop-card-mono {
    position: absolute;
    left: 16px;
    bottom: -26px;
    z-index: 4;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 3px solid var(--bg);
    background: var(--shop-color, var(--night));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px rgba(6, 8, 12, .18);
    overflow: hidden;
}

.shop-card-mono.has-logo { background: #fff; padding: 0; }
.shop-card-mono .shop-mono-img { border-radius: 0; }

.shop-card-body {
    padding: 36px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-card-title {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.shop-card-title a { color: var(--ink); text-decoration: none; }
.shop-card-title a:hover { color: var(--night); }

/* ------------------------------------------- Valutazione */

.shop-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: .82rem;
    color: var(--ink);
}

.shop-rating-stars {
    display: inline-flex;
    gap: 1px;
    font-size: .92rem;
    line-height: 1;
}

.shop-rating-stars .star { color: var(--line); }
.shop-rating-stars .star.is-on { color: #F5A623; }

.shop-rating strong { font-weight: 700; }

.shop-rating-count {
    color: var(--muted);
    font-size: .76rem;
}

/* --------------------------------------- Riga informativa */

.shop-card-line {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
}

.shop-card-line strong { color: var(--ink); font-weight: 700; }
.shop-card-offers { color: var(--danger); font-weight: 700; }

.shop-card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.35;
}

.shop-card-pin {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.7;
}

/* ------------------------------- Anteprima della merce */

.shop-peek {
    display: flex;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.shop-peek-item,
.shop-peek-more {
    flex: 1 1 0;
    min-width: 0;
}

.shop-peek-item a,
.shop-peek-more a {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 9px;
    overflow: hidden;
    background: var(--bg-soft);
}

.shop-peek-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s var(--ease);
}

.shop-peek-item a:hover img { transform: scale(1.08); }

.shop-peek-fallback,
.shop-peek-more a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.shop-peek-more a {
    border: 1px dashed var(--line);
    background: transparent;
    text-decoration: none;
}

.shop-peek-more a:hover { color: var(--night); border-color: var(--night); }

.shop-card-actions { margin-top: 4px; }

.shop-card-actions .btn {
    border-radius: 10px;
    font-size: .82rem;
    letter-spacing: .02em;
}

/* ----------------------------------------------------------
   14. Caroselli più generosi
   ---------------------------------------------------------- */

.shops-rail > * {
    width: min(460px, 86vw);
    max-width: min(460px, 86vw);
}

.rail .cat-strip > * {
    width: min(300px, 70vw);
    max-width: min(300px, 70vw);
}

.cat-strip-name { font-size: 1.32rem; }

@media (min-width: 700px) and (max-width: 1099px) {
    .shops-rail > * { width: min(460px, 52vw); max-width: min(460px, 52vw); }
    .rail .cat-strip > * { width: min(300px, 34vw); max-width: min(300px, 34vw); }
}

@media (max-width: 699px) {
    .shops-rail > *,
    .rail .cat-strip > * {
        width: 100%;
        max-width: 100%;
    }

    .shop-card-body { padding-top: 34px; }
    .cat-strip-name { font-size: 1.24rem; }
}
