﻿:root {
    --primary-color: #000000;
    --secondary-color: #c9a227;
    /* Gold/Premium accent */
    --accent-color: #c9a227;
    --bg-color: #f8f9fa;
    --text-color: #1a1a1a;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Outfit', 'Roboto', sans-serif;
    /* Keep Roboto as fallback */
    background: radial-gradient(circle at center, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flipbook Styles */
.catalog-container {
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    /* Header space adjustment */
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f8f9fa;
}

#flipbook {
    max-height: 85vh !important;
    /* Limite de altura forÃ§ado */
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Sombra para destacar */
}

/* O PageFlip injeta seu prÃ³prio canvas/div, mas estilizamos o conteÃºdo das pÃ¡ginas */
.page {
    background-color: white;
    /* box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);  Remover sombra interna para nÃ£o escurecer a imagem */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    /* border-right: 1px solid #eee;  Remover borda para clean look */
}

.page.--hard {
    background-color: #fafafa;
}

.page-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ESSENCIAL: Garante que a imagem caiba inteira sem cortes */
    pointer-events: none;
    user-select: none;
}

/* Hotspots (Ãreas ClicÃ¡veis) */
.hotspot {
    position: absolute;
    /* Area transparente, o clique funciona em toda a Ã¡rea desenhada */
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 50;
    /* Garantir que fique acima da imagem */
    -webkit-tap-highlight-color: transparent;
}

/* O Ãcone Visual (BotÃ£o) */
.hotspot::after {
    content: 'local_mall';
    /* Ãcone de sacola */
    font-family: 'Material Icons';
    font-size: 20px;
    color: white;

    /* Centralizar no retÃ¢ngulo desenhado */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Estilo do BotÃ£o */
    background-color: #D32F2F;
    /* Vermelho mais prÃ³ximo do BoticÃ¡rio/Varejo ou use var(--accent-color) */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    pointer-events: none;
    /* O clique vai para a div pai (.hotspot) */
    animation: floatIcon 3s ease-in-out infinite;
}

/* PosiÃ§Ãµes Personalizadas */
.hotspot.pos-center::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hotspot.pos-bottom-center::after {
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hotspot.pos-bottom-right::after {
    top: 100%;
    left: 100%;
    transform: translate(-50%, -50%);
}

.hotspot.pos-top-right::after {
    top: 0%;
    left: 100%;
    transform: translate(-50%, -50%);
}

.hotspot.pos-top-left::after {
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
}

/* Hover states para posiÃ§Ãµes */
.hotspot.pos-center:hover::after,
.hotspot.pos-bottom-center:hover::after,
.hotspot.pos-bottom-right:hover::after,
.hotspot.pos-top-right:hover::after,
.hotspot.pos-top-left:hover::after {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Efeito de pulso para chamar atenÃ§Ã£o */
@keyframes floatIcon {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.hotspot:hover::after {
    background-color: #B71C1C;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Header Bar (Estilo BoticÃ¡rio) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    z-index: 1000;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 170px;
    min-width: 130px;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.brand-fallback-inline {
    display: none;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-period {
    flex: 1 1 auto;
    font-size: 12px;
    color: #576574;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.nav-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    gap: 2px;
    transition: color 0.2s;
}

.nav-btn span:last-child {
    white-space: nowrap;
}

.nav-btn:hover {
    color: #333;
    /* ou var(--accent-color) */
}

.nav-btn .material-icons {
    font-size: 24px;
}

.nav-btn-consultora {
    background: linear-gradient(135deg, #171b24 0%, #2a3040 100%);
    color: #f5f7fb;
    border: 1px solid #c8a84f;
    box-shadow: 0 6px 16px rgba(23, 27, 36, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    min-width: 104px;
}

.nav-btn-consultora:hover {
    color: #fff;
    background: linear-gradient(135deg, #1e2430 0%, #31384b 100%);
    box-shadow: 0 8px 18px rgba(200, 168, 79, 0.28);
}

.nav-btn-consultora .material-icons {
    font-size: 20px;
    color: #d7bd62;
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1390;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    border-left: 1px solid #e8ebf0;
}

.search-panel.open {
    transform: translateX(0);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
    border-bottom: 1px solid #eef1f6;
}

.search-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1c2734;
}

.search-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #5a6472;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-input-wrap {
    margin: 12px 16px 8px;
    border: 1px solid #ced6e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 48px;
}

.search-input-wrap .material-icons {
    color: #667182;
    font-size: 21px;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1f2937;
}

#search-clear-btn {
    border: none;
    background: #eef2f7;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
}

.search-meta {
    color: #6a7585;
    font-size: 12px;
    padding: 0 16px 10px;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-result-item:hover {
    border-color: #c9d4e5;
    box-shadow: 0 4px 14px rgba(34, 51, 84, 0.08);
}

.search-result-thumb {
    width: 92px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f5f7fa;
}

.search-result-text {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    margin: 0;
    font-size: 14px;
    color: #16202d;
    font-weight: 600;
    line-height: 1.3;
}

.search-result-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #637083;
}

.search-empty {
    color: #637083;
    font-size: 13px;
    padding: 8px 6px;
}

.cart-icon-wrapper {
    position: relative;
}

.header-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #D32F2F;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* UI Elements */
.fab {
    display: none !important;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 10px;
    border: 2px solid white;
}

.hidden {
    display: none !important;
}

/* Cart Modal (Centralizado estilo BoticÃ¡rio) + Buttons */
.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    padding: 20px;
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.modal:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 600px;
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.close-btn {
    background: #555;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px;
    background-color: #fcfcfc;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Footer com BotÃµes */
.cart-footer {
    padding: 25px 30px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #888;
    margin-bottom: 25px;
}

.cart-total-value {
    font-size: 22px;
    font-weight: 800;
    color: #333;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-secondary {
    padding: 15px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-checkout {
    padding: 15px;
    background-color: #90d895;
    /* Verde BoticÃ¡rio aproximado */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    box-shadow: none;
    width: auto;
}

.btn-checkout:hover {
    background-color: #7bc780;
}

/* Product Popup Styles */
.product-popup-content {
    width: 400px;
    max-width: 94vw;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-deep);
    position: relative;
    text-align: center;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-popup-content h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
}

.product-popup-content p {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-tag {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.quantity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.quantity-control button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.quantity-control span {
    font-size: 20px;
    font-weight: bold;
    min-width: 30px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.add-to-cart-btn:hover {
    background-color: #bfa022;
    transform: translateY(-2px);
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-popup-btn:hover {
    color: #333;
}
@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        justify-content: space-between;
        height: auto;
        min-height: 74px;
        padding: 10px 14px;
        row-gap: 6px;
    }

    .brand-logo {
        flex: 0 0 130px;
        min-width: 110px;
    }

    .brand-logo-img {
        height: 28px;
        max-width: 120px;
    }

    .brand-fallback-inline {
        font-size: 16px;
    }

    .catalog-period {
        flex-basis: 100%;
        order: 3;
        text-align: left;
        max-width: 100%;
        font-size: 11px;
    }

    .nav-actions {
        gap: 10px;
    }

    .nav-btn {
        font-size: 10px;
    }

    .nav-btn .material-icons {
        font-size: 22px;
    }

    .nav-btn-consultora {
        padding: 6px 10px;
        min-width: 92px;
    }

    .nav-btn-consultora .material-icons {
        font-size: 18px;
    }

    .search-panel {
        width: 100vw;
    }

    .search-result-thumb {
        width: 80px;
        height: 52px;
    }

    .modal {
        padding: 8px;
    }

    #product-modal {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    #cart-modal {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }

    #cart-modal .modal-content {
        width: min(96vw, 430px);
        max-width: min(96vw, 430px);
        height: min(82dvh, 700px);
        max-height: min(82dvh, 700px);
        border-radius: 18px 18px 10px 10px;
        box-shadow: 0 -8px 28px rgba(17, 24, 39, 0.28);
        display: grid;
        grid-template-rows: auto 1fr auto;
        transform: none;
    }

    .modal-header {
        padding: 12px 14px;
    }

    .modal-header h2 {
        font-size: 16px;
        font-weight: 700;
    }

    #cart-modal .close-btn {
        width: 38px;
        height: 38px;
        background: #f0f3f8;
        color: #4f5b70;
        border: 1px solid #d6ddeb;
    }

    #cart-modal .cart-items {
        padding: 10px 14px;
        overflow-y: auto;
    }

    #cart-modal .cart-item {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    #cart-modal .cart-item h4 {
        font-size: 13px !important;
        line-height: 1.28;
    }

    #cart-modal .cart-item .remove-btn,
    #cart-modal .cart-item button[onclick^="removeFromCart"] {
        font-size: 11px !important;
    }

    #cart-modal .cart-footer {
        padding: 12px 14px;
        position: sticky;
        bottom: 0;
        z-index: 1;
        background: #fff;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    }

    #cart-modal .cart-total-row {
        margin-bottom: 12px;
        font-size: 16px;
    }

    #cart-modal .cart-total-value {
        font-size: 18px;
    }

    .cart-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-secondary,
    .btn-checkout {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-size: 13px;
    }

    #product-modal .product-popup-content {
        width: min(92vw, 380px);
        max-width: min(92vw, 380px);
        max-height: min(82dvh, 620px);
        overflow-y: auto;
        padding: 14px 14px 14px;
        border-radius: 18px;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.26);
    }

    #product-modal .product-popup-content h2 {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 6px;
        padding-right: 40px;
    }

    #product-modal .product-popup-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .price-tag {
        font-size: 20px;
        margin-bottom: 14px;
    }

    #product-modal .quantity-control {
        margin-bottom: 14px;
        gap: 12px;
    }

    #product-modal .quantity-control button {
        width: 42px;
        height: 42px;
        font-size: 22px;
        border-color: #d7dce4;
    }

    #product-modal .quantity-control span {
        font-size: 18px;
        min-width: 20px;
    }

    #product-modal .add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(201, 162, 39, 0.32);
    }

    #product-modal .close-popup-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f5f7fb;
        border: 1px solid #d9dfec;
        color: #667083;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        z-index: 3;
    }
}
