/**
 * Featured Stores Section Styles  
 * Horizontal rectangular cards matching Mahally reference
 */

/* ==================== Common Styles ==================== */
.featured-stores-section {
    width: 100%;
    padding: 16px 0;
    background: #ffffff;
    direction: rtl;
}

.featured-stores-header {
    padding: 0 16px 12px;
}

.featured-stores-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    padding: 0;
}

.featured-stores-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 12px;
}

.featured-stores-container::-webkit-scrollbar {
    display: none;
}

.featured-stores-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    width: max-content;
}

.featured-store-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 170px;
    max-width: 180px;
    min-height: 80px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.featured-store-card:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.store-logo-wrapper {
    flex-shrink: 0;
}

.store-logo {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.verified-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ffffff;
    border-radius: 50%;
    color: #3b82f6;
    font-size: 14px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.store-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==================== Mobile Specific ==================== */
.featured-stores-section.mobile {
    padding: 12px 0;
}

.featured-stores-section.mobile .featured-store-card {
    min-width: 165px;
    max-width: 175px;
    min-height: 75px;
    padding: 10px 12px;
}

.featured-stores-section.mobile .store-logo {
    width: 52px;
    height: 52px;
}

.featured-stores-section.mobile .verified-badge {
    font-size: 13px;
}

.featured-stores-section.mobile .store-name {
    font-size: 12px;
}

.featured-stores-section.mobile .featured-stores-header h2 {
    font-size: 17px;
}

/* ==================== Desktop Specific ==================== */
.featured-stores-section.desktop {
    padding: 20px 0;
    background: #f8f9fa;
}

.featured-stores-section.desktop .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-stores-section.desktop .featured-stores-header {
    padding: 0 0 16px 0;
}

.featured-stores-section.desktop .featured-stores-header h2 {
    font-size: 20px;
}

.featured-stores-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stores-nav-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.stores-nav-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.stores-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stores-nav-btn i {
    font-size: 16px;
}

.featured-stores-section.desktop .featured-stores-container {
    flex: 1;
    padding: 4px 0;
}

.featured-stores-section.desktop .featured-store-card {
    min-width: 185px;
    max-width: 195px;
    min-height: 85px;
    padding: 12px 16px;
}

.featured-stores-section.desktop .store-logo {
    width: 58px;
    height: 58px;
}

.featured-stores-section.desktop .verified-badge {
    font-size: 15px;
}

.featured-stores-section.desktop .store-name {
    font-size: 14px;
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 768px) {
    .featured-stores-section.desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .featured-stores-section.mobile {
        display: none;
    }
}

/* RTL Adjustments */
[dir="rtl"] .stores-nav-btn.prev i {
    transform: scaleX(-1);
}

[dir="rtl"] .stores-nav-btn.next i {
    transform: scaleX(-1);
}
