/* ============================= */
/* 1. RESET BÁSICO (se não tiver reset.css) */
/* ============================= */
html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    color: #fff;
    background-color: #1f1f1f;
    padding-bottom: 40px;
}

body.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* ============================= */
/* 2. HERO SECTION               */
/* ============================= */
.hero-section {
    padding-top: 70px;
    position: relative;
    height: 370px;
    background: linear-gradient(rgba(12, 74, 142, 0.5), rgba(0, 0, 0, 0.7)),
        url("../assets/images/back.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.8s forwards ease;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-icon {
    width: 2rem;
    height: auto;
}

.hero-title {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.couple-names {
    font-family: "Great Vibes", cursive;
    font-size: 2.4rem;
    color: #ffd1dc;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.couple-decor {
    font-size: 1.2rem;
    color: #ffd1dc;
}

.countdown-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.countdown {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

/* ============================= */
/* 3. LAYOUT PRINCIPAL           */
/* ============================= */
.container {
    display: flex;
    padding-bottom: 5px;
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: #2b2b2b;
}

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
    position: sticky;
    top: 80px;
    left: 0;
    width: 250px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background-color: #2b2b2b;
    padding: 20px;
    box-sizing: border-box;
}

/* ============================= */
/* 4. MENU LATERAL               */
/* ============================= */
.menu ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.menu li {
    margin-bottom: 10px;
}

.menu a {
    display: block;
    text-decoration: none;
    color: #bdbdbd;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.menu a:hover {
    background-color: #3a3a3a;
    color: #fff;
}

.menu a.active {
    color: #ffffff;
    font-weight: bold;
    background-color: #3a3a3a;
}

/* ============================= */
/* 5. CATEGORIAS SIDEBAR         */
/* ============================= */
.categories {
    margin-top: 20px;
}

.categories-toggle {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    cursor: default;
}

.sidebar-category {
    margin-bottom: 8px;
}

.sidebar-category>a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-category>a:hover {
    background-color: #3a3a3a;
}

.sidebar-category.active>a,
.sidebar-category.expanded>a {
    background-color: #4285f4;
    color: #fff;
    font-weight: bold;
}

.sidebar-category .toggle-icon {
    transition: transform 0.3s ease;
}

.sidebar-category.expanded .toggle-icon {
    transform: rotate(90deg);
}

.subcategoria-list {
    margin-left: 16px;
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.sidebar-category.expanded .subcategoria-list {
    max-height: 500px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sidebar-subcategoria a {
    display: block;
    padding: 5px 12px;
    color: #aaa;
    font-weight: 400;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-subcategoria a:hover {
    background-color: #3a3a3a;
    color: #fff;
}

.sidebar-subcategoria.active a,
.sidebar-subcategoria a.active {
    background-color: #383838;
    color: #fff;
    font-weight: 500;
}

/* ============================= */
/* 6. CONTEÚDO PRINCIPAL         */
/* ============================= */
.main-content {
    flex: 1;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 15px;
}

/* ---------- Filtro de categorias (topo) ---------- */
.filter-categories {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.categories-grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.category-card {
    background-color: #caf3f0;
    color: #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    background-color: #b3e3e0;
}

.category-card.active {
    background-color: #2196f3;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 5px #2196f3;
}

.category-card.active i {
    color: #fff;
}

.category-card[data-category="todos"].active {
    background-color: #4285f4 !important;
    box-shadow: 0 0 5px #4285f4;
}

/* ============================= */
/* 7. TÍTULO DINÂMICO           */
/* ============================= */
.categoria-header {
    padding: 0 10px;
}

#tituloCategoria {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #fff;
}

#tituloCategoria .titulo-main {
    color: #fff;
    font-weight: 500;
}

#tituloCategoria .titulo-main.muted {
    color: #888;
}

#tituloCategoria .titulo-sub {
    color: #fff;
    font-weight: 600;
}

#tituloCategoria .titulo-count {
    color: #bbb;
    font-weight: 400;
    margin-left: 4px;
}

/* ============================= */
/* 8. LISTA DE ITENS             */
/* ============================= */
.items-section {
    margin-top: 20px;
}

.items-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.sort-btn {
    background-color: #353535;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.sort-btn:hover {
    background-color: #454545;
}

.sort-btn.active {
    background-color: #555;
    color: #fff;
}

.sort-btn.active[data-status="ja-temos"] {
    background-color: #27ae60;
    color: white;
}

.sort-btn.active[data-status="nao-temos"] {
    background-color: #c0392b;
    color: white;
}

.items-grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: stretch;
}

.item-card {
    background-color: #2b2b2b;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 0.3s ease forwards, slideUp 0.3s ease forwards;
    will-change: transform, opacity;
}

.item-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px #c0392b;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
    }

    to {
        transform: translateY(0);
    }
}

.item-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #fff;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 10px;
}

.item-name {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0 0 4px;
    min-height: 2.4em;
}

.item-price {
    font-size: 0.95rem;
    color: #bdbdbd;
    margin: 0;
    min-height: 1.6em;
    display: flex;
    align-items: center;
}

.status {
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 20px;
    margin: 2px 0;
    min-height: 1.6em;
    color: #fff;
}

.ja-temos {
    background-color: #27ae60;
}

.nao-temos {
    background-color: #c0392b;
}

.status-btn.ja-temos-btn.active {
    background-color: #27ae60;
    color: #fff;
    font-weight: bold;
}

.status-btn.nao-temos-btn.active {
    background-color: #c0392b;
    color: #fff;
    font-weight: bold;
}

.sort-btn.active:not(.status-btn) {
    background-color: #4285f4;
    color: white;
    font-weight: bold;
}

.item-link {
    margin-top: auto;
    display: inline-block;
    position: relative;
    padding: 4px 8px;
    border: 1px solid #00adee;
    border-radius: 4px;
    color: #00adee;
    text-decoration: none;
    font-size: 0.85rem;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.item-link:hover {
    color: #fff;
}

.item-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #00adee;
    z-index: -1;
    border-radius: 4px;
    transition: width 0.3s;
}

.item-link:hover::before {
    width: 100%;
}

.item-link i {
    margin-right: 6px;
}

.item-date {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
    min-height: 1.6em;
    display: flex;
    align-items: center;
}

/* ============================= */
/* 9. MODAL PIX                  */
/* ============================= */
.pix-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pix-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.pix-modal-content {
    background-color: #2e2e2e;
    color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    position: relative;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    animation: fadeInModal 0.4s ease forwards;
}

@keyframes fadeInModal {
    to {
        transform: scale(1);
    }
}

.pix-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.pix-close:hover {
    color: #fff;
}

.pix-qr {
    width: 200px;
    height: auto;
    margin-top: 20px;
    border-radius: 6px;
}

.pix-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #7dd3fc;
}

.pix-modal-content p {
    margin: 6px 0;
    font-size: 1rem;
}

.pix-modal-content strong {
    color: #ffffff;
}

.copiar-btn {
    background-color: #4285f4;
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    display: inline-block;
    margin: 10px;
    transition: background-color 0.3s, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.copiar-btn:hover {
    background-color: #3367d6;
    transform: scale(1.05);
    text-decoration: none;
}

.copiar-btn:active {
    background-color: #2c6bbf;
    transform: scale(0.98);
}

.copiar-btn.copiado {
    background-color: #34a853;
    color: white;
    font-weight: bold;
}

.copiar-btn i {
    margin-right: 8px;
}

/* Destacar o link Pix em verde #90ee90 sem usar ID */
.nav-link.pix-link {
    color: #90ee90;
}

.nav-link.pix-link i {
    color: #90ee90;
}

/* Hover suave mantendo o verde */
.nav-link.pix-link:hover {
    background: rgba(144, 238, 144, 0.15);
    color: #90ee90;
}


/* ============================= */
/* 11. HAMBURGER MENU (sidebar)  */
/* ============================= */
.sidebar-toggle {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: .5s;
}

.sidebar-toggle:active {
    transform: scale(0.9) rotate(-10deg);
}

.sidebar-toggle i {
    font-size: 1.4rem;
    color: #fff;
}

.sidebar.open {
    transform: translateX(0);
}

.filtros-conteudo {
    display: none;
}

.filtros-conteudo.filtros-aberto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtros-toggle {
    background-color: #353535;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.filtros-mobile {
    display: none;
}

/* ============================= */
/* 13. BOTÃO FLUTUANTE “TOPO”    */
/* ============================= */
.scroll-to-top {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B1736 0%, #081229 100%);
    color: #fff;
    display: flex;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top i {
    font-size: 1.4rem;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #59659c 0%, #424f77 100%);
    transform: scale(1.1);
}

/* ============================= */
/* 14. RODAPÉ                    */
/* ============================= */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0B1736 0%, #081229 100%);
    color: #f0f0f0;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    z-index: 999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
}

.site-footer.hide {
    transform: translateY(100%);
    opacity: 0;
}

/* ============================= */
/* 15. RESPONSIVO                */
/* ============================= */
@media (min-width: 769px) {
    .filtros-conteudo {
        display: flex;
        gap: 10px;
    }

    .scroll-to-top {
        padding: 16px 18px;
        bottom: 80px;
    }

    .scroll-to-top i {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin-top: 0;
        padding-bottom: 5px;
    }

    .main-content {
        padding: 10px;
    }

    .hero-section {
        padding-top: 60px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .items-header {
        flex-direction: column;
    }

    .filter-categories {
        display: none;
    }

    .filtros-mobile {
        display: block;
        margin-bottom: 10px;
    }

    .filtros-conteudo {
        display: none;
    }

    .filtros-conteudo.filtros-aberto {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* sidebar mobile */
    .hamburger-menu {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        background-color: #2b2b2b;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.open~.sidebar-overlay {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
        pointer-events: auto;
    }

    .hero-section {
        min-height: 360px;
        padding-top: 70px;
        padding-bottom: 20px;
    }

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

    .couple-names {
        font-size: 2rem;
    }

    .countdown {
        font-size: 1.1rem;
    }

    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        padding: 10px 14px;
        display: none;
    }

    .scroll-to-top:hover {
        background: linear-gradient(135deg, #0B1736 0%, #081229 100%);
        transform: scale(1.05);
    }

    .scroll-to-top i {
        font-size: 1.2rem;
    }

    .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0B1736;
        color: #fff;
        text-align: center;
        padding: 10px;
        z-index: 999;
        font-size: 0.9rem;
    }


}

@media (max-width: 480px) {
    .hero-section {
        height: 220px;
    }

    .hero-icon {
        width: 1.6rem;
    }

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

    .couple-names {
        font-size: 1.8rem;
    }

    .countdown {
        font-size: 1rem;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sort-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}