/* Shops Page Styles */

:root {
    --tzedek-green: rgb(34, 197, 94);
    --tzedek-dark-green: rgb(22, 163, 74);
    --tzedek-light-green: rgb(187, 247, 208);
    --primary-color: rgb(34, 197, 94);
    --primary-dark: rgb(22, 163, 74);
    --primary-light: rgb(220, 252, 231);
    --secondary-color: rgb(5, 150, 105);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --star-color: #fbbf24;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Hero Section */
.shops-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.shops-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-lighter);
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-lighter);
}

.search-button {
    padding: 1.25rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Shops Content */
.shops-content {
    padding: 3rem 0 4rem;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-left {
    display: flex;
    align-items: center;
}

.results-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count i {
    color: var(--primary-color);
}

.filter-right {
    display: flex;
    align-items: center;
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group {
    position: relative;
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg width="12" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l5 5 5-5" stroke="%236b7280" stroke-width="2" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-filters {
    padding: 0.75rem 1.25rem;
    background: var(--danger);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Shops Grid */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Shop Card */
.shop-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Shop Banner */
.shop-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
}

.shop-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-banner img {
    transform: scale(1.1);
}

.shop-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-badge i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Shop Info */
.shop-info {
    padding: 1.5rem;
    position: relative;
}

/* Shop Logo */
.shop-logo {
    width: 80px;
    height: 80px;
    margin: -50px auto 1rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shop Name */
.shop-name {
    text-align: center;
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-name a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-name a:hover {
    color: var(--primary-color);
}

/* Shop Stats */
.shop-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.9rem;
    color: var(--star-color);
}

.stars i.far {
    color: var(--border-color);
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.shop-products-count {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-products-count i {
    color: var(--primary-color);
}

/* Shop Description */
.shop-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 50px;
}

/* Shop Location */
.shop-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.shop-location i {
    color: var(--primary-color);
}

/* Visit Shop Button */
.visit-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.visit-shop-btn:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.visit-shop-btn i {
    transition: transform 0.3s ease;
}

.visit-shop-btn:hover i {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-wrapper {
        border-radius: 12px;
    }

    .search-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .filters-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-left,
    .filter-right {
        width: 100%;
    }

    .filters-form {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .clear-filters {
        width: 100%;
        justify-content: center;
    }

    .shops-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .shops-hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-input {
        padding: 1rem 1rem 1rem 3rem;
    }

    .search-button {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }

    .shop-banner {
        height: 150px;
    }

    .shop-logo {
        width: 70px;
        height: 70px;
        margin-top: -45px;
    }
}
