/* Improved Shop Slider Section */
.shop-slider-section {
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-bottom: 20px;
    overflow: hidden; /* Prevent horizontal scrollbar */
}

.container-fluid {
    padding: 0 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Shop Card Styling */
.shop-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: calc(100% - 20px); /* Account for margin */
    margin: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.shop-image-container {
    height: 140px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-image {
    transform: scale(1.05);
}

.shop-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.shop-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.4;
}

.visit-shop-btn {
    background-color: #0ea5e9;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: block;
}

.visit-shop-btn:hover {
    background-color: #0284c7;
    color: white;
}

.no-shops-message {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 500px;
}

/* Slider Layout */
.shop-slider {
    position: relative;
    overflow: hidden; /* Hide overflow to prevent scrollbar */
    margin: 0 -10px; /* Compensate for card margins */
}

.shop-slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.shop-item {
    flex: 0 0 calc(25% - 0px); /* Default: 4 items per view */
    max-width: calc(25% - 0px);
    padding: 0;
}

/* Navigation Controls */
.shop-slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.8);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.shop-slider-nav button:hover {
    background: rgba(14, 165, 233, 1);
}

.shop-slider-nav .prev {
    left: 10px;
}

.shop-slider-nav .next {
    right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .shop-item {
        flex: 0 0 calc(33.333% - 0px); /* 3 items per view */
        max-width: calc(33.333% - 0px);
    }
}

@media (max-width: 991px) {
    .shop-item {
        flex: 0 0 calc(50% - 0px); /* 2 items per view */
        max-width: calc(50% - 0px);
    }
}

@media (max-width: 767px) {
    .shop-item {
        flex: 0 0 calc(100% - 0px); /* 1 item per view */
        max-width: calc(100% - 0px);
    }
    
    .shop-slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0ea5e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}