/* ========== VARIÁVEIS E RESET ========== */
:root {
    --primary-color: black;
    --secondary-color: #FFA500;
    --accent-color: #ff9a27;
    --dark-color: black;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #e68200 0%, #FFA500 100%);
    --gradient-secondary: linear-gradient(135deg, #e68200 0%, #FFA500 100%);
    --header-height: 80px;
    --header-height-mobile: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding-top: 20px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* ========== HEADER & NAVIGATION ========== */
.public-header {
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-public {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: var(--header-height);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.1);
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--light-color);
}

.btn-logout-header {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--light-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.btn-logout-header:hover {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.nav-text {
    display: inline;
}

.nav-link i, .btn-login i {
    display: none;
}

.admin-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
}

/* ========== LOCATION BANNER ========== */
.location-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--light-color);
    padding: 0.8rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

.location-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.btn-location {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-location:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.5;
}

.search-box {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: var(--light-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 2rem 1rem;
    margin-top: 0;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.view-all-btn {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-color);
    color: var(--light-color);
}

/* ========== PRODUCTS GRID ========== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.product-card {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(111, 66, 193, 0.15);
    border-color: rgba(111, 66, 193, 0.2);
    color: inherit;
    text-decoration: none;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image-container {
    height: 180px;
    position: relative;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.distance-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0099ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.photos-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--light-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(2px);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: green;
    margin-bottom: 10px;
}

.product-store {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.store-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--light-color);
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
    border: 1px solid #eee;
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name-text {
    font-size: 0.6rem;
    color: #636e72;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-visitar-loja {
    background-color: #FF9000;
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    width: 100%;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
    margin-top: 5px;
}

.btn-visitar-loja:hover {
    background-color: #FF8000;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
}

/* ========== STORES GRID ========== */
.stores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.store-card {
    background: var(--light-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px 15px 15px;
    text-align: center;
    min-height: 220px;
    text-decoration: none;
    color: inherit;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(111, 66, 193, 0.15);
    border-color: rgba(111, 66, 193, 0.2);
    color: inherit;
    text-decoration: none;
}

.store-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: var(--light-color);
    font-weight: bold;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.store-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name-card {
    color: #333333 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    width: 100%;
    padding: 0 5px;
}

.store-distance-card {
    background: #f8f9fa;
    color: #0099ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.proximity-badge {
    font-size: 0.75rem;
    color: #28a745;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .store-card {
        height: 190px !important;
        min-height: 190px;
        padding: 20px 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .store-avatar-large {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 12px;
    }
    
    .store-name-card {
        font-size: 0.95rem !important;
        height: 2.4em;
        margin: 0 0 6px 0;
        line-height: 1.2;
        padding: 0 3px;
    }
    
    
    .store-distance-card {
        font-size: 0.75rem !important;
        padding: 5px 10px;
        margin-top: 6px;
    }
    
    .proximity-badge {
        font-size: 0.7rem;
        margin-top: 6px;
    }
}

/* ========== FEATURES SECTION ========== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--light-color);
    font-size: 1.3rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.feature-desc {
    color: var(--gray-color);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 2rem 1rem 1.5rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light-color);
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--light-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.empty-state p {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* ========== MODAL ========== */
.location-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.location-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.location-modal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.location-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.location-text {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.location-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-location-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    width: 100%;
}

.btn-location-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-color);
}

.btn-location-secondary {
    background: transparent;
    color: var(--gray-color);
    border: 1px solid #dee2e6;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    width: 100%;
}

.btn-location-secondary:hover {
    background: #f8f9fa;
    color: var(--dark-color);
}

/* Image Modal Styles */
.image-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    background: transparent;
    overflow: hidden;
}

.image-modal .modal-header {
    border-bottom: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.image-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    padding: 0.5rem;
    margin: 0;
    background: transparent;
    border: none;
    font-size: 1.2rem;
}

.image-modal .btn-close:hover {
    opacity: 1;
    background: transparent;
}

.image-modal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: rgba(0, 0, 0, 0.9);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .nav-public {
        padding: 10px 15px;
        min-height: var(--header-height-mobile);
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .nav-links {
        gap: 8px;
        margin: 0;
        padding: 0;
    }
    
    .nav-link {
        font-size: 0 !important;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f8f9fa;
        color: var(--secondary-color);
        position: relative;
        padding: 0;
    }
    
    .nav-links .btn-login,
    .btn-logout-header {
        font-size: 0 !important;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f8f9fa;
        color: #dc3545;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }
    
    .nav-link i,
    .btn-login i,
    .btn-logout-header i {
        display: block !important;
        font-size: 15px;
    }
    
    .nav-text {
        display: none !important;
    }
    
    .btn-logout-header .nav-text {
        display: none;
    }
    
    .nav-link::after,
    .btn-login::after,
    .btn-logout-header::after {
        content: attr(data-title);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: var(--light-color);
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 10px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        z-index: 1001;
        pointer-events: none;
    }
    
    .nav-link:hover::after,
    .btn-login:hover::after,
    .btn-logout-header:hover::after {
        opacity: 1;
        visibility: visible;
    }
    
    .location-banner {
        margin-top: var(--header-height-mobile);
        padding: 0.6rem 0.8rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image-container {
        height: 140px !important;
    }
    
    .store-card {
        height: 170px !important;
        min-height: 170px;
        padding: 15px 10px 10px;
    }
    
    .product-info {
        padding: 10px 8px !important;
    }
    
    .product-name {
        font-size: 0.85rem !important;
        height: 2.4em !important;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }
    
    .btn-visitar-loja {
        font-size: 0.75rem !important;
        padding: 6px 0 !important;
    }
    
    .store-avatar-large {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 8px;
    }
    
    .store-name-card {
        font-size: 0.85rem !important;
        color: #333333 !important;
        height: 2em;
    }
    
    .store-distance-card {
        font-size: 0.7rem !important;
        padding: 4px 8px;
    }
    
    .distance-badge {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
        top: 1px;
        right: 6px;
    }
    
    .photos-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        bottom: 5px !important;
        right: 5px !important;
    }
    
    .section-header {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .view-all-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .main-content {
        padding: 1.5rem 0.8rem;
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .feature-title {
        font-size: 0.95rem;
    }
    
    .feature-desc {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .location-banner {
        margin-top: var(--header-height);
    }
    
    .nav-public {
        padding: 0 2rem;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .btn-login {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .search-box {
        max-width: 600px;
    }

    .main-content {
        padding: 3rem 2rem;
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .view-all-btn {
        width: auto;
        padding: 0.8rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .store-card {
        min-height: 220px;
        padding: 25px 15px 15px;
    }
    
    .store-avatar-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .store-name-card {
        font-size: 1.1rem;
        min-height: 2.8em;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-image-container {
        height: 240px;
    }
}

@media (max-width: 360px) {
    .products-grid,
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
}