/* Shop branding: logo, verified badge, hero banner, owner dashboard */
.shop-logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #102a43, #24476b);
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
}
.shop-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    z-index: 1;
}
.shop-logo-xs { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.shop-logo-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.shop-logo-md { width: 52px; height: 52px; font-size: 18px; }
.shop-logo-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 24px; }
.shop-logo-xl { width: 112px; height: 112px; border-radius: 24px; font-size: 36px; }

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2f6;
    color: #334e68;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.shop-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.shop-badge.is-verified { background: #e7f7ef; color: #047857; }
.shop-badge.is-compact { padding: 3px 7px; font-size: 10px; }
.shop-badge.is-compact svg { width: 12px; height: 12px; }

/* Phone card shop marker */
.phone-card-shop-flag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    box-shadow: 0 4px 14px rgba(16, 42, 67, .18);
}
.phone-card-shop-flag.is-verified { background: #047857; color: #fff; }
.phone-card-shop-flag:not(.is-verified) { background: rgba(255, 255, 255, .95); }
.phone-card-seller-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #102a43;
    font-weight: 700;
}
.phone-card-seller-shop:hover { color: #f65a1b; }
.phone-card-seller-shop span.name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 9.5rem;
}
.phone-card-seller-shop .verified-tick { color: #059669; flex-shrink: 0; width: 14px; height: 14px; }

/* Hero */
.shop-hero {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(16, 42, 67, .06);
}
.shop-hero-banner {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #102a43;
}
.shop-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-hero-banner-mark { display: none; }
.shop-hero-banner.is-placeholder {
    background:
        radial-gradient(circle at 18% 30%, rgba(246, 90, 27, .55), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(56, 189, 248, .35), transparent 45%),
        linear-gradient(120deg, #0b1f33, #163a5c 55%, #102a43);
}
.shop-hero-banner.is-placeholder .shop-hero-banner-mark {
    position: absolute;
    right: 24px;
    bottom: 10px;
    display: block;
    max-width: 70%;
    overflow: hidden;
    color: rgba(255, 255, 255, .1);
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.shop-hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 20px;
    padding: 0 24px 20px;
}
.shop-hero-logo {
    margin-top: -56px;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(16, 42, 67, .18);
    z-index: 2;
}
.shop-hero-info { flex: 1 1 260px; min-width: 0; padding-top: 14px; }
.shop-hero-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.shop-hero-title h1 { margin: 0; color: #102a43; font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.shop-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; color: #64748b; font-size: 13px; font-weight: 600; }
.shop-hero-meta span + span::before { content: '·'; margin: 0 8px; color: #cbd5e1; }
.shop-hero-address { margin-top: 6px; color: #475569; font-size: 14px; }
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-hero-description { padding: 0 24px 22px; color: #475569; font-size: 14px; line-height: 1.7; white-space: pre-line; }

@media (max-width: 640px) {
    .shop-hero { border-radius: 16px; }
    .shop-hero-banner { height: 140px; }
    .shop-hero-body { padding: 0 16px 16px; }
    .shop-hero-logo { width: 84px; height: 84px; border-radius: 20px; font-size: 28px; margin-top: -42px; }
    .shop-hero-actions { width: 100%; }
    .shop-hero-actions > * { flex: 1 1 auto; }
    .shop-hero-description { padding: 0 16px 16px; }
}

/* Directory card */
.shop-card { display: flex; flex-direction: column; overflow: hidden; padding: 0 !important; }
.shop-card-banner { position: relative; height: 92px; background: #102a43; }
.shop-card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-banner.is-placeholder {
    background:
        radial-gradient(circle at 20% 30%, rgba(246, 90, 27, .5), transparent 45%),
        linear-gradient(120deg, #0b1f33, #163a5c);
}
.shop-card-body { display: flex; flex: 1; flex-direction: column; padding: 0 20px 20px; }
.shop-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.shop-card-head .shop-logo { margin-top: -28px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(16, 42, 67, .15); }

/* Owner dashboard */
.shop-dash-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 1024px) { .shop-dash-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.shop-dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .shop-dash-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shop-dash-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; scrollbar-width: none; }
.shop-dash-tabs::-webkit-scrollbar { display: none; }
.shop-dash-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}
.shop-dash-tab.is-active { border-color: #102a43; background: #102a43; color: #fff; }
.shop-dash-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .shop-dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .shop-dash-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shop-dash-card-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}
.shop-dash-card-status .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-dash-card-status .actions button,
.shop-dash-card-status .actions a {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #102a43;
    font-size: 12px;
    font-weight: 700;
}
.shop-dash-card-status .actions button:hover,
.shop-dash-card-status .actions a:hover { border-color: #f65a1b; color: #f65a1b; }
.shop-dash-card-status .actions .danger { color: #b91c1c; }
.shop-status-pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.shop-status-pill.is-active { background: #e7f7ef; color: #047857; }
.shop-status-pill.is-sold { background: #fff1e9; color: #d94912; }
.shop-status-pill.is-other { background: #eef2f6; color: #475569; }

.shop-media-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shop-media-banner-preview {
    width: 100%;
    height: 96px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(120deg, #0b1f33, #163a5c);
}
.shop-media-banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-media-input { width: 100%; font-size: 13px; color: #475569; }
.shop-media-input::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #102a43;
    font-weight: 700;
    cursor: pointer;
}
.shop-media-hint { display: block; margin-top: 4px; color: #94a3b8; font-size: 12px; }

/* Listing page seller box */
.listing-shop-box { display: flex; align-items: center; gap: 12px; }
.listing-shop-box h2 { overflow-wrap: anywhere; }
