/* Fix for uneven shop cards */
.top-shop-item {
    height: 100%;
    display: flex;
}

.shop-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.shop-card-img {
    height: 200px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
}

.shop-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-address {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .shop-card-body {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .shop-card-footer {
        padding: 0.75rem;
    }
    
    .shop-card-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .shop-card-address {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}

/* NEW MODERN TOP SHOPS DESIGN */
.featured-shops-container {
    padding: 2rem 0;
    position: relative;
}

.featured-shops-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.featured-shops-heading h2 {
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-shops-heading .star-icon {
    color: #FFD700;
    margin-right: 0.75rem;
    font-size: 1.75rem;
}

.featured-shops-heading .view-all {
    margin-left: auto;
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(67, 97, 238, 0.1);
}

.featured-shops-heading .view-all:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

/* Updated grid layout for desktop and mobile */
.shop-cards-grid {
    display: grid;
    gap: 1.5rem;
}

.shop-cards-grid.desktop-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    grid-template-rows: repeat(2, 1fr);    /* 2 rows for desktop */
}

.shop-cards-grid.mobile-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    grid-template-rows: repeat(2, 1fr);    /* 2 rows for mobile */
    gap: 1rem;
}

.modern-shop-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.modern-shop-card .card-top-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 215, 0, 0.9);
    color: #2b2d42;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modern-shop-card .card-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.modern-shop-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.modern-shop-card:hover .card-img {
    transform: scale(1.05);
}

.modern-shop-card .card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.modern-shop-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2b2d42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.modern-shop-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.modern-shop-card .card-address {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.modern-shop-card .card-address i {
    color: #4361ee;
    margin-right: 0.4rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.modern-shop-card .card-address span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-shop-card .card-category {
    display: inline-block;
    background-color: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.modern-shop-card .card-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
}

.modern-shop-card .view-btn {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modern-shop-card .view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.modern-shop-card .action-icons {
    display: flex;
    gap: 0.5rem;
}

.modern-shop-card .action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4361ee;
    transition: all 0.3s;
    cursor: pointer;
}

.modern-shop-card .action-icon:hover {
    background-color: #4361ee;
    color: white;
    transform: translateY(-2px);
}

/* Carousel Styles */
.featured-shops-container .carousel {
    margin-bottom: 2rem;
}

.featured-shops-container .carousel-indicators {
    bottom: -30px;
}

.featured-shops-container .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.3);
    margin: 0 5px;
    border: none;
}

.featured-shops-container .carousel-indicators button.active {
    background-color: #4361ee;
    transform: scale(1.2);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .modern-shop-card .card-img-container {
        height: 140px;
    }
    
    .modern-shop-card .card-content {
        padding: 1rem;
    }
    
    .modern-shop-card .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .shop-cards-grid.mobile-grid {
        gap: 0.75rem;
    }
    
    .modern-shop-card .card-img-container {
        height: 120px;
    }
    
    .modern-shop-card .card-content {
        padding: 0.75rem;
    }
    
    .modern-shop-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .modern-shop-card .card-address {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .modern-shop-card .card-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .modern-shop-card .view-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .featured-shops-heading h2 {
        font-size: 1.25rem;
    }
    
    .featured-shops-heading .star-icon {
        font-size: 1.25rem;
    }
    
    .featured-shops-heading .view-all {
        padding: 0.3rem 0.75rem;
        font-size: 0.8rem;
    }
}
