/* Public Shops pages */
.shops-page {
    background: #f5f7fb;
    padding-bottom: 80px;
    font-family: 'DM Sans', sans-serif;
    color: #0f172a;
}
.shops-hero {
    background: linear-gradient(135deg, #001A78 0%, #000c3b 55%, #071429 100%);
    color: #fff;
    padding: 88px 20px 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.shops-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 106, .16), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 233, 253, .12), transparent 45%);
    pointer-events: none;
}
.shops-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.shops-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    letter-spacing: -.02em;
}
.shops-hero p {
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
    max-width: 620px;
}
.shops-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.shops-search-wrap {
    max-width: 820px;
    margin: -48px auto 40px;
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    border: 1px solid #eef2f7;
}
.shops-search-form {
    display: flex;
    gap: 10px;
}
.shops-search-input {
    flex: 1;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.shops-search-input:focus {
    border-color: #001A78;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 26, 120, .1);
}
.shops-search-btn {
    border: none;
    border-radius: 12px;
    background: #001A78;
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.shops-search-btn:hover {
    background: #000c3b;
    transform: translateY(-1px);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.shop-list-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shop-list-card:hover {
    transform: translateY(-5px);
    border-color: #dbe4f0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}
.shop-list-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.shop-list-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #ecfdf5, #eff6ff);
    border: 2px solid #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #059669;
    font-size: 1.05rem;
}
.shop-list-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-list-copy h2 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}
.shop-list-copy p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: .88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.shop-chip-trust {
    background: #ecfdf5;
    color: #047857;
}
.shop-chip-count {
    background: #eff6ff;
    color: #1d4ed8;
}
.shop-chip-score {
    background: #fff7ed;
    color: #c2410c;
}
.shop-list-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.shop-visit-btn,
.shop-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.shop-visit-btn {
    flex: 1;
    background: #001A78;
    color: #fff !important;
}
.shop-visit-btn:hover {
    background: #000c3b;
    transform: translateY(-1px);
    color: #fff !important;
}
.shop-copy-btn {
    flex: 0 0 auto;
    padding: 0 14px;
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.shop-copy-btn:hover,
.shop-copy-btn.copied {
    border-color: #001A78;
    color: #001A78;
}

.shops-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 60px 24px;
}
.shops-empty h3 {
    margin: 0 0 8px;
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
}
.shops-empty p {
    margin: 0;
    color: #64748b;
}
.shops-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* Shop show */
.shop-profile-hero {
    background: linear-gradient(135deg, #001A78 0%, #000c3b 100%);
    color: #fff;
    padding: 90px 20px 70px;
}
.shop-profile-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}
.shop-profile-logo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 106, .45);
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #00D46A;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.shop-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-profile-copy h1 {
    margin: 0 0 8px;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.shop-profile-copy .shop-location {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
    line-height: 1.5;
}
.shop-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}
.shop-action-form {
    width: 100%;
}
.shop-action-form .shop-action-primary,
.shop-action-form .shop-action-secondary {
    width: 100%;
}
.shop-action-row {
    display: flex;
    gap: 10px;
}
.shop-action-row .shop-action-secondary {
    flex: 1;
}
.shop-action-primary,
.shop-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
    width: 100%;
}
.shop-action-primary {
    background: #00D46A;
    color: #071429 !important;
}
.shop-action-primary:hover {
    transform: translateY(-1px);
    background: #12e57b;
    color: #071429 !important;
}
.shop-action-following {
    background: rgba(0, 212, 106, .15);
    color: #00D46A !important;
    border: 1px solid rgba(0, 212, 106, .45);
}
.shop-action-secondary {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28);
}
.shop-action-secondary:hover,
.shop-action-secondary.copied {
    border-color: #00D46A;
    color: #00D46A !important;
}
.shop-breadcrumb {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
}
.shop-breadcrumb a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}
.shop-breadcrumb a:hover {
    color: #00D46A;
}
.shop-products-section {
    margin-top: -28px;
}
.shop-products-toolbar {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-products-toolbar h2 {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.shop-product-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.shop-product-card:hover {
    transform: translateY(-5px);
    border-color: #dbe4f0;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
}
.shop-product-media-link,
.shop-product-title-link {
    text-decoration: none !important;
    color: inherit;
}
.shop-product-media {
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}
.shop-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.shop-product-card:hover .shop-product-media img {
    transform: scale(1.05);
}
.shop-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-weight: 600;
}
.shop-product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.shop-product-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.shop-product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.shop-product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #001A78;
    font-family: 'Syne', sans-serif;
}
.shop-product-views {
    font-size: .75rem;
    color: #64748b;
    font-weight: 600;
}
.shop-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    background: #001A78;
    color: #fff !important;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none !important;
    transition: background .2s, transform .2s;
}
.shop-product-btn:hover {
    background: #000c3b;
    transform: translateY(-1px);
    color: #fff !important;
}

@media (max-width: 980px) {
    .shops-grid,
    .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shop-profile-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .shop-profile-badges,
    .shop-profile-actions {
        justify-content: center;
    }
    .shop-profile-actions {
        width: 100%;
        max-width: 360px;
    }
    .shop-action-row {
        width: 100%;
    }
}
@media (max-width: 680px) {
    .shops-hero {
        padding: 76px 16px 95px;
    }
    .shops-search-form {
        flex-direction: column;
    }
    .shops-grid,
    .shop-product-grid {
        grid-template-columns: 1fr;
    }
    .shop-list-actions {
        flex-direction: column;
    }
    .shop-copy-btn {
        width: 100%;
        min-height: 44px;
    }
}
