/* Variables */
:root {
    --border-light: #eee;
    --text-dark: #333;
    --text-muted: #666;
    --background-light: #f5f5f5;
    --hover-light: #eee;
    --text-light: #888;
    --primary: #007bff;
    --success: #28a745;
    --ruby-primary: #e0115f;
    --ruby-secondary: #b10d48;
    --premium-primary: #ffd700;
    --premium-secondary: #daa520;
    --standard-primary: #0066CC;
    --gray-primary: #808080;
    --transition-speed: 0.3s;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
}

/* Base card styles */
.store-card {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    width: 100%;
}

.store-card:not(.gris) {
    cursor: pointer;
}

.store-card:not(.gris):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Card Header */
.store-header {
    padding: 16px;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: none;
}

.store-name {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

/* Chevron */
.chevron {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 4px;
    transition: transform var(--transition-speed);
}

.store-card.expanded .chevron {
    transform: rotate(180deg);
}

.store-card.gris .chevron {
    display: none;
}

/* Store Content */
.store-content {
    max-height: 100px;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
    background: white;
}

.store-card.expanded .store-content {
    max-height: 1000px;
}

/* État replié - masquer la section produits */
.store-card:not(.expanded) .products-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, 
                opacity var(--transition-speed) ease-out;
}

/* État déplié - afficher la section produits */
.store-card.expanded .products-section {
    max-height: 1000px;
    opacity: 1;
}

/* Basic Info */
.store-basic-info {
    padding: 0 16px 12px 16px;
}

.store-address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.store-address, 
.store-phone-link {
    font-size: 14px;
    line-height: 1.4;
}

.store-address {
    flex: 1;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    text-decoration: none;
}

.distance-tag {
    background: var(--background-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.store-phone-link {
    color: var(--primary);
    text-decoration: none;
    display: block;
}

/* Products Section */
.products-section {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.products-count {
    font-size: 13px;
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.product-item {
    background: var(--background-light);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.product-item:hover {
    background: var(--hover-light);
}

/* Store Actions */
.store-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 36px;
}

.action-text {
    font-size: 13px;
    font-weight: 500;
}

.action-icon {
    font-size: 18px;
}

.action-button.call-button {
    background: var(--background-light);
    color: var(--text-dark);
}

.action-button.directions-button {
    background: var(--success);
    color: white;
}

.action-button.details-button {
    background: var(--primary);
    color: white;
}

.action-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.store-card.ruby {
    border-left: 4px solid var(--ruby-primary);
}

.store-card.premium {
    border-left: 4px solid var(--premium-primary);
}

.store-card.standard {
    border-left: 4px solid var(--standard-primary);
}

.store-card.gris {
    border-left: 4px solid var(--gray-primary);
}
/* Base button styles */
.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ruby styles */
.ruby .view-details-btn {
    background: var(--ruby-primary, #e0115f);
    border-top: 1px solid rgba(224, 17, 95, 0.1);
}

.ruby .view-details-btn:hover {
    background: var(--ruby-secondary, #b10d48);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(224, 17, 95, 0.2);
}

/* Premium styles */
.premium .view-details-btn {
    background: #ffd700;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    color: #000;
}

.premium .view-details-btn:hover {
    background: var(--premium-primary, #ffd700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(184, 134, 11, 0.2);
}

/* Standard styles */
.standard .view-details-btn {
    background: var(--standard-primary, #0066CC);
    border-top: 1px solid rgba(0, 102, 204, 0.1);
}

.standard .view-details-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
}

/* Gris (basic) styles */
.gris .view-details-btn {
    background: var(--gray-primary, #808080);
    border-top: 1px solid rgba(128, 128, 128, 0.1);
}

.gris .view-details-btn:hover {
    background: #666666;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(128, 128, 128, 0.2);
}

/* Animation de la flèche */
.view-details-btn .arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.view-details-btn:hover .arrow {
    transform: translateX(4px);
}

/* Style spécifique pour les cartes d'actualités et promotions */
.actu-content .view-details-btn,
.promo-content .view-details-btn {
    border-radius: 0 0 8px 8px;
    margin: 12px -16px -16px -16px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .view-details-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}
/* Badges simples */
.shop-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: capitalize;
    background: #f0f0f0;
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .shop-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .store-card.ruby,
    .store-card.premium,
    .store-card.standard,
    .store-card.gris {
        border-left-width: 3px;
    }
}
/* Mobile Styles */
@media (max-width: 480px) {
    .store-card {
        margin: 8px;
        border-radius: 12px;
    }

    .store-header {
        padding: 12px;
    }

    .store-name {
        font-size: 15px;
        line-height: 1.3;
    }

    .store-basic-info {
        padding: 8px 12px;
    }

    .store-actions {
        position: sticky;
        bottom: 0;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
        padding: 4px;
        background: white;
        z-index: 10;
    }
    
    .action-button {
        padding: 6px;
        min-height: 36px;
        border-radius: 6px;
    }

    .action-text {
        font-size: 12px;
        font-weight: 500;
    }

    .action-icon {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 8px 0;
    }

    .product-item {
        padding: 8px;
        font-size: 12px;
        text-align: center;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .distance-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}