/* ============================================
   PRODUTOS MODERNOS - BELMONTE DELIVERY
   Design Premium
   ============================================ */

:root {
    --primary-food: #ff4757;
    --primary-food-rgb: 255, 71, 87;
    --primary-food-hover: #ff6b81;
    --bg-premium: #F7F9FC;
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.product-card {
    background: white !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 25px 50px rgba(0, 114, 255, 0.1) !important;
}

.product-image {
    background: #f8faff !important;
    height: 200px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.product-price {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #27ae60 !important;
    margin: 0.5rem 0 !important;
}

/* Botões */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Espaço entre os botões */
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
    padding: 14px;
    border: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-actions .btn:active {
    transform: scale(0.96);
}

.product-actions .btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.product-actions .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
    color: white !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.2) !important;
}

.product-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.3) !important;
    filter: brightness(1.1);
}

/* ============================================
   MODAL DE PRODUTO - PREMIUM REDESIGN
   ============================================ */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.product-modal.modal--open {
    display: flex;
    opacity: 1;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.product-modal-container {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    transform: scale(0.92) translateY(10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1.1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.product-modal.modal--open .product-modal-container {
    transform: scale(1) translateY(0);
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
    transition: all 0.2s ease;
    color: #1e293b;
}

.product-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #ffffff;
}

.product-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 120px;
    scrollbar-width: none;
}

.product-modal-body::-webkit-scrollbar {
    display: none;
}

.product-modal-image-container {
    width: 100%;
    height: 320px;
    background: #f8fafc;
    overflow: hidden;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-content-info {
    padding: 32px;
}

.product-modal-content-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.product-modal-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 24px;
}

.product-modal-delivery-fee {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid #dcfce7;
    display: inline-block;
}

.product-modal-delivery-fee .fee-label {
    font-size: 0.9rem;
    color: #166534;
    font-weight: 600;
}

.product-modal-delivery-fee .fee-value {
    font-size: 1rem;
    color: #10b981;
    font-weight: 800;
    margin-left: 4px;
}

.product-modal-description {
    margin-bottom: 32px;
}

.product-modal-description h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.product-modal-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #475569;
}

.product-modal-quantity {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-modal-quantity h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-align: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #f1f5f9;
    width: auto;
    min-width: 180px;
    padding: 10px;
    border-radius: 100px;
    overflow: visible;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.qty-btn:hover {
    background: #0072ff;
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    min-width: 40px;
    text-align: center;
    user-select: none;
}

.product-modal-footer {
    padding: 24px 32px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 30;
}

.btn-modal-add,
.btn-modal-buy,
.btn-close-modal-footer {
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-modal-add {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-modal-add:hover {
    background: #f1f5f9;
    color: #1e293b;
    transform: translateY(-2px);
}

.btn-modal-buy {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.2);
    grid-column: span 1;
}

.btn-modal-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.3);
}

.btn-close-modal-footer {
    grid-column: span 2;
    background: #ffffff;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    margin-top: 4px;
}

.btn-close-modal-footer:hover {
    background: #f8fafc;
    color: #64748b;
    border-color: #cbd5e1;
}

@media (max-width: 600px) {
    .product-modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 24px;
        transform: scale(0.9) translateY(20px);
    }

    .product-modal.modal--open .product-modal-container {
        transform: scale(1) translateY(0);
    }

    .product-modal-footer {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .btn-modal-buy,
    .btn-modal-add,
    .btn-close-modal-footer {
        grid-column: span 1;
    }

    .product-modal-content-info {
        padding: 24px;
    }

    .product-modal-body {
        padding-bottom: 200px;
    }

    .quantity-control {
        min-width: 160px;
        gap: 12px;
    }

    .qty-btn {
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   REESTRUTURAÇÃO PÁGINA DA LOJA (iFood Style)
   ============================================ */

.store-page {
    position: relative;
    padding-bottom: 50px;
}

/* Banner de Fundo */
.store-banner-background {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.store-banner-background .store-banner-slider {
    height: 100%;
}

.store-banner-background .banner-slide {
    height: 220px;
}

.store-banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay de degradê no banner */
.store-banner-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

/* Card da Loja (Sobreposto) */
.store-header-overlay {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.store-header-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.store-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 12px;
}

.store-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name-link {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.2s;
}

.store-name-link:hover {
    color: #0072ff;
}

.store-header-card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.store-meta {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Barra de Busca Interna */
.in-store-search-section {
    padding: 24px 15px 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-container-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container-modern input {
    width: 100%;
    height: 50px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 15px 0 45px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
}

.search-container-modern input:focus {
    background: #ffffff;
    border-color: #0072ff;
    box-shadow: 0 0 0 4px rgba(0, 114, 255, 0.1);
    outline: none;
}

.search-container-modern .search-icon {
    position: absolute;
    left: 15px;
    color: #94a3b8;
}

/* Grid 2x2 */
.products-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 15px !important;
    max-width: 1000px;
    margin: 0 auto;
}

.products-grid-2x2 .product-card {
    border-radius: 16px !important;
    padding: 0 !important;
    height: auto !important;
}

.products-grid-2x2 .product-image {
    height: 150px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.products-grid-2x2 .product-info {
    padding: 12px !important;
}

.products-grid-2x2 .product-info h3 {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    min-height: 2.4rem;
}

.products-grid-2x2 .product-price {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
}

.products-grid-2x2 .product-actions {
    gap: 8px !important;
}

.products-grid-2x2 .btn {
    padding: 10px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .products-grid-2x2 {
        gap: 24px !important;
        padding: 30px 15px !important;
    }

    .store-banner-background {
        height: 300px;
    }

    .store-banner-background .banner-slide {
        height: 300px;
    }

    .store-header-card {
        flex-direction: row;
        text-align: left;
        padding: 30px;
        gap: 20px;
    }

    .store-logo-circle {
        margin-top: 0;
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    .store-header-card h1 {
        font-size: 1.8rem;
    }

    .products-grid-2x2 .product-image {
        height: 200px !important;
    }
}

/* ============================================
   MODERNIZAÇÃO PERFIL DA LOJA (Premium)
   ============================================ */

.info-page-premium {
    background-color: var(--bg-premium);
    min-height: 100vh;
    padding-bottom: 60px;
}

@keyframes fadeInPremium {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFadeInPremium {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.animate-premium {
    animation: fadeInPremium 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-logo-premium {
    animation: logoFadeInPremium 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Header de Impacto */
.info-header-premium {
    position: relative;
    height: 220px;
    width: 100%;
    margin-bottom: 60px;
}

.info-header-banner {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Slider de Banners Premium */
.info-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.info-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.info-map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
}

/* Banner Slider Animation Enhancement */
.info-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
    /* Slight scale for depth */
}

.info-banner-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.info-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    /* Subtle dim for better text contrast if needed */
}

.info-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
}

.info-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-back-btn:hover {
    transform: scale(1.1);
    background: var(--primary-food);
    color: #ffffff;
}

.info-logo-float {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    /* Começa invisível para a animação */
}

.info-logo-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo */
.info-main-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-store-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

/* Cards Premium */
.info-premium-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.info-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.info-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.info-card-header i {
    color: var(--primary-food);
}

/* Sobre accordion */
.info-description-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
    max-height: 100px;
    /* Reduzi para forçar o accordion */
    transition: max-height 0.4s ease;
}

.info-description-text.expanded {
    max-height: 2000px;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-food);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grid de Informações */
.info-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .info-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-item-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.info-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-food-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-food);
}

.info-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.info-item-card.empty {
    opacity: 0.6;
    background: #fdfdfd;
}

.info-item-card.empty .info-item-icon {
    background: #f1f5f9;
}

.info-item-card.empty .info-item-icon i {
    color: var(--text-muted);
}

.info-item-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.info-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

/* Mapa Placeholder */
.info-map-wrapper {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.info-map-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
}

.info-map-placeholder i {
    margin-bottom: 15px;
    opacity: 0.3;
}

.info-map-placeholder p {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.info-map-placeholder span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Estilo Desktop */
@media (min-width: 1024px) {
    .info-header-premium {
        height: 350px;
    }
}