/* === STORE CARD STYLES === */
.store-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    width: 360px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    backdrop-filter: blur(10px);
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.store-banner {
    height: 100px;
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    position: relative;
    flex-shrink: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.store-logo {
    position: absolute;
    bottom: -25px;
    left: 20px;
    width: 72px;
    height: 72px;
    border-radius: 15px;
    border: 3px solid white;
    background: white;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 10;
}

.store-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.premium-badge {
    background: linear-gradient(135deg, #f9e076 0%, #d4af37 100%);
    color: #5a3d0b;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(180, 140, 20, 0.25);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.verified-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.selected-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.store-content {
    padding: 40px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-grow: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.3;
    margin-right: 10px;
}

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

.location-pinpoint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.location-pinpoint:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.store-type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.store-type.physical {
    background: #dbeafe;
    color: #1e40af;
}

.store-type.online {
    background: #f0fdf4;
    color: #166534;
}

.store-type.both {
    background: linear-gradient(45deg, #dbeafe, #f0fdf4);
    color: #1e40af;
}

.store-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.store-industry {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.features-container {
    margin: 8px 0;
}

.features-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 8px;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 500;
    min-height: 32px;
}

.feature i {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.9rem;
}

.contact-actions {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-items: center;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.1);
    flex-shrink: 0;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(30, 64, 175, 0.15);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
}
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}
.social-icon.facebook:hover {
    background: #4267B2;
    color: white;
}
.social-icon.telegram:hover {
    background: #0088cc;
    color: white;
}
.social-icon.tiktok:hover {
    background: linear-gradient(45deg, #69C9D0, #EE1D52);
    color: white;
}
.social-icon.website:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}
.social-icon.email:hover {
    background: #ea4335;
    color: white;
}

.badge-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.premium-badge:hover .badge-tooltip,
.verified-badge:hover .badge-tooltip,
.selected-badge:hover .badge-tooltip {
    opacity: 1;
}

.premium-badge, .verified-badge, .selected-badge {
    position: relative;
    cursor: pointer;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 160px;
    background-color: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    line-height: 1.4;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.8) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
/* Ensure store banner image covers the container properly */
.store-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio while covering the container */
    display: block; /* Prevents inline spacing issues */
}

/* Ensure store logo image fits the logo container without distortion */
.store-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio */
    border-radius: inherit; /* Matches the container's border-radius */
    display: block; /* Ensures proper rendering */
}
/* === STORE CARD SKELETON STYLES === */
.store-card-skeleton {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.store-skeleton-banner {
    height: 100px;
    width: 100%;
}

.store-skeleton-content {
    padding: 35px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.store-skeleton-name {
    height: 1.1rem;
    width: 60%;
    margin-bottom: 0.8rem;
}

.store-skeleton-industry {
    height: 0.8rem;
    width: 40%;
    margin-bottom: 12px;
}

.store-skeleton-features {
    margin: 12px 0;
}

.store-skeleton-features-title {
    height: 0.9rem;
    width: 30%;
    margin-bottom: 10px;
}

.store-skeleton-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.store-skeleton-feature {
    height: 1.8rem;
    border-radius: 8px;
}

.store-skeleton-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    padding-top: 15px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-skeleton-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 60%;
}

.store-skeleton-contact-item {
    height: 0.8rem;
    width: 100px;
}

.store-skeleton-social {
    display: flex;
    gap: 6px;
    max-width: 40%;
}

.store-skeleton-social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* === STORE CARD RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .store-card {
        width: 340px;
    }
    
    .store-banner {
        height: 85px;
    }
    
    .store-logo {
        width: 50px;
        height: 50px;
        left: 18px;
        bottom: -22px;
        font-size: 1.3rem;
    }
    
    .store-content {
        padding: 38px 18px 18px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info, .social-icons {
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .header-icons {
        gap: 8px;
    }
    
    .location-pinpoint, .store-type {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .store-card-skeleton {
        width: 340px;
    }

    .store-skeleton-banner {
        height: 85px;
    }
}

@media (max-width: 480px) {
    .store-card {
        width: 320px;
    }
    
    .store-banner {
        height: 80px;
    }
    
    .store-logo {
        width: 45px;
        height: 45px;
        left: 15px;
        bottom: -20px;
        font-size: 1.2rem;
    }
    
    .store-content {
        padding: 35px 15px 15px;
    }
    
    .store-name {
        font-size: 1.1rem;
    }
    
    .store-industry {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);;
    }
    
    .store-card-skeleton {
        width: 320px;
    }

    .store-skeleton-banner {
        height: 80px;
    }
}

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

/* Touch device optimizations for store cards */
@media (hover: none) and (pointer: coarse) {
    .store-card:hover {
        transform: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
    
    .location-pinpoint:hover,
    .store-type:hover {
        transform: none;
    }
}
