/* ============================================================
   GLOVO PORTUGAL — PÁGINA DE PRODUTOS
   Design: Estilo Ollie com cores Glovo
   Paleta: Verde #00D084, Branco #FFFFFF, Cinza #F5F5F5
   Tipografia: Poppins
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: #F5F5F5;
    color: #333;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */

.header {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: #00D084;
    color: #FFFFFF;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.promo-badge {
    display: inline-block;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.logo-pin {
    width: 28px;
    height: 28px;
    background: #00D084;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-pin::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    transform: rotate(45deg);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #00D084;
}

/* ─── Breadcrumb ───────────────────────────────────────────────────────────── */

.breadcrumb {
    padding: 16px 20px;
    font-size: 13px;
    color: #888;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #00D084;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ─── Container ────────────────────────────────────────────────────────────── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Title Section ────────────────────────────────────────────────────────── */

.title-section {
    text-align: center;
    padding: 40px 20px;
}

.celebration-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
    line-height: 1.2;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.available-count {
    font-size: 14px;
    color: #00D084;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ─── Products Grid ────────────────────────────────────────────────────────── */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

/* ─── Product Card ─────────────────────────────────────────────────────────── */

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.product-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #F9F9F9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00D084;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 4;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 11px;
    color: #00D084;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-rating {
    margin-bottom: 12px;
}

.stars {
    color: #FFC244;
    font-size: 13px;
    letter-spacing: 2px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.original-price {
    font-size: 12px;
    color: #AAA;
    text-decoration: line-through;
}

.current-price {
    font-size: 20px;
    font-weight: 800;
    color: #00D084;
}

.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-details {
    width: 100%;
    background: linear-gradient(135deg, #00D084 0%, #00B86A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 208, 132, 0.4);
}

.btn-details:active {
    transform: translateY(0);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.footer {
    background: #FFFFFF;
    border-top: 1px solid #E0E0E0;
    padding: 24px 20px;
    text-align: center;
    color: #AAA;
    font-size: 12px;
    margin-top: 40px;
}

/* ─── Modal ────────────────────────────────────────────────────────────────── */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #00D084;
}

.modal-body {
    padding: 24px;
}

.modal-logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.modal-brand-logo {
    max-height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.modal-image {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-brand {
    font-size: 11px;
    color: #00D084;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-rating {
    margin-bottom: 12px;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-price .original-price {
    font-size: 12px;
    color: #AAA;
    text-decoration: line-through;
}

.modal-price .current-price {
    font-size: 24px;
    font-weight: 800;
    color: #00D084;
}

.modal-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, #00D084 0%, #00B86A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 208, 132, 0.4);
}

.btn-continue {
    width: 100%;
    background: #F5F5F5;
    color: #666;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue:hover {
    background: #E8E8E8;
    color: #333;
}

/* ─── Notificação ──────────────────────────────────────────────────────────── */

.notificacao {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00D084;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notificacao.show {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .header-nav {
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }

    .main-title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .title-section {
        padding: 24px 16px;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 20px;
    }

    .celebration-icon {
        font-size: 36px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-description {
        font-size: 12px;
    }

    .current-price {
        font-size: 18px;
    }

    .product-logo {
        width: 40px;
        height: 40px;
    }
}

/* ─── Acessibilidade ───────────────────────────────────────────────────────── */

button:focus,
a:focus {
    outline: 2px solid #00D084;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* —— Integração Glovo (navegação + modal extra) —— */

.js-glovo-nav-links.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    gap: 12px;
    z-index: 90;
}

.header-nav {
    position: relative;
}

.modal-frete-note {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 10px;
}

.btn-continue-link {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #00d084;
    margin-bottom: 10px;
    text-decoration: none;
}

.btn-continue-link:hover {
    text-decoration: underline;
}
