/* === STORE CARD === */
.store-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 1px 2px rgba(15,28,63,0.04);
    width: 320px;
    position: relative;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(15,28,63,0.25);
    border-color: #d8deef;
}

/* Banner */
.store-banner {
    aspect-ratio: 16 / 9;
    background: #d4dbeb;
    position: relative;
    flex-shrink: 0;
}

.store-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,28,63,0) 50%, rgba(15,28,63,0.18) 100%);
    pointer-events: none;
}

/* Logo */
.store-logo {
    position: absolute;
    bottom: -22px;
    left: 14px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 2px solid #fff;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15,28,63,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--muted);
    z-index: 10;
    overflow: hidden;
}

.store-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* Tier badges */
.store-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.store-badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    flex-shrink: 0;
}
.store-badge-icon.is-premium  { background: var(--crown); }
.store-badge-icon.is-verified { background: var(--check); }
.store-badge-icon.is-selected { background: var(--star); }
.store-badge-icon svg { width: 12px; height: 12px; }

/* Card body */
.store-content {
    padding: 30px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.store-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    min-width: 0;
    margin: 0;
}

.header-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Store type chip — uniform brand style matching reference .stype */
.store-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--brand-softer);
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: default;
}
/* Override any leftover per-type colors — all types use the same brand chip */
.store-type.PHYSICAL,
.store-type.ONLINE,
.store-type.SERVICE,
.store-type.physical,
.store-type.online,
.store-type.both,
.store-type.service {
    background: var(--brand-softer);
    color: var(--brand);
}
.store-type i { font-size: 10px; }

/* Industry */
.store-industry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    margin: 0;
}
.store-industry i { font-size: 11px; }

/* Features — compact inline chips, no title row */
.features-container { margin: 0; }

.features-title { display: none; }

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--brand-softer);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    min-height: 0;
}
.feature i { color: var(--brand); font-size: 11px; }

/* Contact section */
.contact-actions {
    border-top: 1px solid var(--line-2);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-item i { color: var(--brand); font-size: 11px; flex-shrink: 0; }

/* Social icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-softer);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    text-decoration: none;
    transition: background .15s, color .15s, transform .12s;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon.whatsapp:hover  { background: #25D366; color: #fff; }
.social-icon.instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-icon.facebook:hover  { background: #4267B2; color: #fff; }
.social-icon.telegram:hover  { background: #0088cc; color: #fff; }
.social-icon.tiktok:hover    { background: linear-gradient(45deg,#69C9D0,#EE1D52); color: #fff; }
.social-icon.website:hover   { background: var(--brand); color: #fff; }
.social-icon.email:hover     { background: #ea4335; color: #fff; }

/* Tooltip (kept for accessibility) */
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background: rgba(15,28,63,0.85);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 8px;
    position: absolute;
    z-index: 10;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .2s;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: rgba(15,28,63,0.85) transparent transparent transparent;
}
.tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

/* === STORE CARD SKELETON === */
.store-card-skeleton {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.store-skeleton-banner {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.store-skeleton-content {
    padding: 30px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-skeleton-name    { height: 16px; width: 60%; border-radius: 4px; }
.store-skeleton-industry { height: 12px; width: 40%; border-radius: 4px; }

.store-skeleton-features { }
.store-skeleton-features-title { display: none; }
.store-skeleton-features-grid {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.store-skeleton-feature { height: 27px; width: 64px; border-radius: 6px; }

.store-skeleton-contact {
    border-top: 1px solid var(--line-2);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.store-skeleton-contact-info { display: flex; flex-direction: column; gap: 5px; }
.store-skeleton-contact-item { height: 12px; width: 90px; border-radius: 4px; }
.store-skeleton-social { display: flex; gap: 6px; }
.store-skeleton-social-icon { width: 28px; height: 28px; border-radius: 50%; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .store-card         { width: 300px; }
    .store-card-skeleton { width: 300px; }
}

@media (max-width: 480px) {
    .store-card         { width: 280px; }
    .store-card-skeleton { width: 280px; }
}

@media (max-width: 360px) {
    .store-card         { width: 260px; }
    .store-card-skeleton { width: 260px; }
}

/* Touch device: no hover transforms */
@media (hover: none) and (pointer: coarse) {
    .store-card:hover { transform: none; box-shadow: 0 1px 2px rgba(15,28,63,0.04); border-color: var(--line-2); }
    .social-icon:hover { transform: none; }
}
