:root {
    --primary-burgundy: #4F2211;
    --dark-wine: #2f1109;
    --accent-gold: #7a3d26;
    --bg-cream: #faf7f2;
    --card-bg: #ffffff;
    --text-dark: #3a190c;
    --text-muted: #666666;
    --green-status: #2e7d32;
    --radius: 12px;
    --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: rgb(253, 245, 230);
    position: relative;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 12, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 9999;
}

.image-modal-content {
    width: min(1100px, 100%);
    max-height: 90vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.image-modal img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 90vh;
    object-fit: contain;
    background: #f8f4ef;
}

.image-modal-details {
    min-width: 0;
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-dark);
}

.image-modal-details h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.image-modal-details p {
    color: var(--text-muted);
    white-space: pre-line;
    font-size: 0.9rem;
    line-height: 1.6;
}

.image-modal-details strong {
    display: block;
    margin-top: 1.25rem;
    color: var(--primary-burgundy);
    font-size: 1rem;
}

@media (max-width: 700px) {
    .image-modal-content {
        max-height: 92vh;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 48vh) auto;
    }

    .image-modal img {
        min-height: 0;
        max-height: none;
    }

    .image-modal-details {
        padding: 1.25rem;
    }
}

.close-image-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

/* CONTAINER SIMULANDO TELA DE CELULAR (MOBILE-FIRST) */
.mobile-container {
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.store-header {
    position: relative;
    overflow: hidden;
}

.video-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.site-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.92);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 245, 230, 0.3);
}

.store-header,
.product-section,
.footer,
.promo-banner,
.category-list,
.catalogo,
.dif-item {
    position: relative;
    z-index: 1;
}

.store-header>*:not(.video-bg-wrap) {
    position: relative;
    z-index: 1;
}

/* HEADER */
.store-header {
    background-color: rgb(253, 245, 230);
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
}

.profile-info {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    background-color: transparent;
}

.profile-img {
    width: 90px;
    height: 90px;
    min-width: 68px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f3eadf;
    border: 2px solid var(--primary-burgundy);
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-title h1 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #4F2211;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge {
    background-color: #e8f5e9;
    color: var(--green-status);
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.status-badge.is-open {
    background-color: #e8f5e9;
    color: #1f8f3d;
}

.status-badge.is-closed {
    background-color: #fdeaea;
    color: #c62828;
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.delivery-info,
.hours-info {
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.delivery-info {
    color: #ffffff;
}

.hours-info {
    color: var(--text-muted);
}

.schedule-toggle {
    align-self: flex-start;
    background: rgba(79, 34, 17, 0.06);
    border: 1px solid rgba(79, 34, 17, 0.14);
    color: var(--primary-burgundy);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.32rem 0.6rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    cursor: pointer;
}

#hours-box {
    margin-top: 0.45rem;
    background: rgb(253, 245, 230);
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    display: grid;
    gap: 0.22rem;
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--text-dark);
    box-shadow: none;
}

/* BOTÕES RÁPIDOS */
.quick-actions {
    display: flex;
    gap: 50px;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.1rem;
}

.action-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background-color: #f5f5f5;
    color: var(--text-dark);
    text-decoration: none;
    border: none;
    padding: 0.3rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.whatsapp-btn,
.instagram-btn,
.share-btn,
.location-btn,
.time-btn {
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn-image,
.instagram-btn-image,
.share-btn-image,
.location-btn-image,
.time-btn-image {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary-burgundy);
    animation: pulseWhats 1.8s infinite;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

.whatsapp-btn:hover,
.instagram-btn:hover,
.share-btn:hover,
.location-btn:hover,
.time-btn:hover {
    background: transparent;
    transform: translateY(-1px);
}

@keyframes pulseWhats {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* BANNER DE DIFERENCIAIS (ESTILO VINHO/BORDO) */
.diferenciais-banner {
    background-color: #4F2211;
    color: #ffffff;
    margin: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

}

.dif-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;

}

.dif-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
    border-radius: 8px;

}

.dif-item strong {
    font-size: 0.85rem;
    display: block;

}

.dif-item p {
    font-size: 0.72rem;
    opacity: 0.8;

}

/* FILTROS POR CATEGORIA */
.categories-scroll {
    display: flex;
    gap: 0.5rem;
    padding: 5px 1rem;
    overflow-x: auto;
    scrollbar-width: none;

}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    white-space: nowrap;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn.active {
    background-color: var(--primary-burgundy);
    color: #ffffff;
    border-color: var(--primary-burgundy);
}

/* GRID DE PRODUTOS (2 COLUNAS) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0 1rem;
}

@media (max-width: 1099px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 799px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 0.5rem;
    }
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
}

.tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--primary-burgundy);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.product-card img,
.carousel-track img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    cursor: pointer;
}

.product-card>video,
.carousel-track video {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    background: #f8f4ef;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover img,
.product-card:hover .carousel-track img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

.product-card:hover video,
.product-card:hover .carousel-track video {
    transform: scale(1.04);
}

.product-card img:active,
.product-card.click-animate img {
    animation: photoMove 0.35s ease;
}

@keyframes photoMove {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
    }

    25% {
        transform: scale(1.08) translateY(-3px) rotate(-1deg);
    }

    50% {
        transform: scale(1.12) translateY(-6px) rotate(1deg);
    }

    75% {
        transform: scale(1.05) translateY(-2px) rotate(-1deg);
    }

    100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.carousel-book {
    position: relative;
    padding: 0.2rem 0.2rem 0;
}

.carousel-track {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track img,
.carousel-track video {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card[data-category="ebooks"] img,
.product-card[data-category="ebooks"] video {
    object-fit: contain;
    background: #f8f4ef;
}

.carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.35rem;
    pointer-events: none;
}

.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    z-index: 2;
}

.carousel-indicator {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(79, 34, 17, 0.45);
    cursor: pointer;
}

.carousel-indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.carousel-btn {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(79, 34, 17, 0.72);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.product-info {
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 0.45rem;
}

.promo-offer {
    display: block;
    margin: 0 0 0.55rem;
    padding: 0.45rem 0.55rem;
    text-align: center;
    color: #c41a28;
    background: #fff0f1;
    border: 1px solid rgba(210, 31, 47, 0.25);
    border-radius: 6px;
    line-height: 1.35;
    animation: promoPulse 1.4s ease-in-out infinite;
}

.promo-offer strong {
    display: block;
    font-size: 0.78rem;
}

.promo-offer span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
}

@keyframes promoPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.product-info .desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0.4rem 0;
    letter-spacing: 0.045em;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
}

.price {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    letter-spacing: 0.01em;
}

.buy-btn {
    font-family: var(--font-sans);
    background-color: var(--primary-burgundy);
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: 0.2s;
}

.buy-btn:hover {
    background-color: var(--dark-wine);
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid #eee;
    background-color: #85814C;
    color: #000000;
}

footer p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.03em;
}

footer .sub {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.01em;
}

footer .copyright {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: center;
    /* Mantém a logo inteira sem cortar */
    background-color: #ffffff;
    border: 2px solid var(--primary-burgundy);
    padding: 2px;
}