:root {
    /* --- NOVAS VARIÁVEIS DE COR (REFATORADO) --- */
    --cor-fundo: #FFFFFF;
    --cor-titulos-rodape: #333333;
    --fonte-titulo: 'Cormorant Garamond', serif;
    --fonte-corpo: 'Montserrat', sans-serif;
    --cor-fundo-filtros: #FFFFFF;
    --cor-texto-icones-filtros: #333333;
    --cor-fundo-card: #FFFFFF;
    --cor-texto-card: #333333;
    --cor-btn-produto-fundo: #d4af37;
    --cor-btn-produto-texto: #333333;
    --sombra-padrao: 0 4px 15px rgba(0, 0, 0, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--fonte-corpo); background-color: var(--cor-fundo); color: var(--cor-titulos-rodape); line-height: 1.7; }

/* Otimização de Carregamento */
.loading-styles .page-container {
    visibility: hidden;
    opacity: 0;
}
.styles-loaded .page-container {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s linear;
}
#loading-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: var(--cor-fundo);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
}

.page-container { 
    width: 100%;
    position: relative;
    background: transparent;
}

header, main, footer {
    position: relative;
    z-index: 1;
}

header { 
    background-color: transparent;
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 1px solid #eee;
}
.logo-site {
    max-height: 90px;
    width: auto;
    display: none;
    margin-left: auto;
    margin-right: auto;
}

main { 
    padding: 2rem 1rem; 
    max-width: 1200px;
    margin: 0 auto;
}
.section-title { font-family: var(--fonte-titulo); color: var(--cor-titulos-rodape); text-align: center; font-size: 2.8rem; }
.section-subtitle { 
    text-align: center; 
    margin-bottom: 3rem; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
    color: var(--cor-titulos-rodape);
    opacity: 0.8;
}

#featured-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--cor-texto-icones-filtros);
}

.carousel-button.prev { left: -15px; }
.carousel-button.next { right: -15px; }

.filtros-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 3rem; 
    max-width: 1000px; 
    margin-left: auto; 
    margin-right: auto; 
    flex-wrap: wrap; 
}
.search-wrapper { 
    position: relative; 
    flex-grow: 1;
    flex-basis: 100%;
    margin-bottom: 1rem;
}
.filter-wrapper, .sort-wrapper { 
    position: relative; 
    flex-grow: 1; 
}
.search-wrapper i, .filter-wrapper i, .sort-wrapper i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--cor-texto-icones-filtros); opacity: 0.6; }

#search-input, #category-filter, #sort-filter { 
    width: 100%; 
    padding: 0 1rem 0 40px;
    border: none; 
    border-radius: 50px; 
    font-size: 1rem; 
    background-color: var(--cor-fundo-filtros); 
    color: var(--cor-texto-icones-filtros);
    min-width: 200px;
    height: 44px;
}

#search-input::placeholder {
    color: var(--cor-texto-icones-filtros);
    opacity: 1 !important;
}
#search-input:-ms-input-placeholder {
    color: var(--cor-texto-icones-filtros);
}
#search-input::-ms-input-placeholder {
    color: var(--cor-texto-icones-filtros);
}


#category-filter, #sort-filter, .settings-sidebar select, #categoria-produto-select-side { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23aaa%22/%3E%3C/svg%3E'); background-repeat: no-repeat; background-position: right 15px center; background-size: 1em; cursor: pointer; }

.offer-filter-wrapper .offer-filter-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: none;
    border-radius: 50px;
    padding: 0 1rem;
    cursor: pointer;
    background-color: var(--cor-fundo-filtros);
    color: var(--cor-texto-icones-filtros);
    height: 44px;
}

#offer-filter {
    margin: 0; 
    flex-shrink: 0; 
    accent-color: var(--cor-btn-produto-fundo);
}

.view-toggle-wrapper { flex-shrink: 0; }
#btn-toggle-view { 
    border: none;
    border-radius: 50px; 
    background-color: var(--cor-fundo-filtros); 
    color: var(--cor-texto-icones-filtros);
    font-size: 1rem;
    cursor: pointer; 
    transition: background-color 0.3s, color 0.3s; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 44px;
}
#btn-toggle-view:hover { filter: brightness(0.95); }
#btn-toggle-view i { color: var(--cor-texto-icones-filtros); opacity: 0.6; }

.produto-descricao {
    height: 0;
    overflow: hidden;
    margin: 0;
    transition: height 0.3s ease-out, margin 0.3s ease-out;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--cor-texto-card);
    opacity: 0.8;
}
.produto-descricao.expanded {
    height: auto;
    margin: 0.5rem 0 1rem 0;
}
.ler-mais-btn {
    display: block;
    padding-top: 5px;
    font-weight: bold;
    cursor: pointer;
    color: var(--cor-texto-card);
}

/* MODO GRID (BLOCOS) */
.container-presentes.view-grid { display: grid; grid-template-columns: repeat(auto-fit, 340px); justify-content: center; gap: 2rem; align-items: stretch; }
.container-presentes.view-grid .presente-card { flex-direction: column; height: 100%; width: 340px; }
.container-presentes.view-grid .product-image-slider { padding-top: 133.33%; }
.container-presentes.view-grid .presente-info, .carousel-track .presente-info { padding: 1.5rem; text-align: center; }
.container-presentes.view-grid .card-content, .carousel-track .card-content { flex-grow: 1; }
.container-presentes.view-grid .presente-info h3, .carousel-track .presente-info h3 { min-height: 4.5rem; }
.container-presentes.view-grid .ler-mais-btn, .carousel-track .ler-mais-btn { text-align: center; }

/* MODO LISTA */
.container-presentes.view-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.container-presentes.view-list .presente-card { flex-direction: row; align-items: flex-start; width: 100%; }
.container-presentes.view-list .product-image-slider { 
    flex-shrink: 0;
    width: 250px; 
    height: 250px;
    overflow: hidden;
}
.container-presentes.view-list .slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.container-presentes.view-list .presente-info { 
    text-align: left; 
    padding: 1.5rem 2rem 1.5rem 2rem;
}
.container-presentes.view-list .card-content { flex-grow: 1; }
.container-presentes.view-list .presente-info h3 { min-height: auto; }
.container-presentes.view-list .ler-mais-btn { text-align: left; padding-left: 0; }

.presente-card { background: var(--cor-fundo-card); border-radius: 10px; box-shadow: var(--sombra-padrao); overflow: hidden; display: flex; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out; opacity: 0; transform: translateY(20px); flex-shrink: 0; }
.carousel-track > .presente-card { width: 340px; flex-direction: column; }
.presente-card.visible { opacity: 1; transform: translateY(0); }
.presente-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); }
.presente-card.produto-oculto { opacity: 0.6; background-color: #fffbeB; }

.sale-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 4;
}

.product-image-slider { 
    position: relative; 
    overflow: hidden; 
    cursor: zoom-in; 
    flex-shrink: 0; 
    width: 100%; 
}
.container-presentes.view-grid .product-image-slider, .carousel-track .presente-card .product-image-slider { border-radius: 10px 10px 0 0; }
.container-presentes.view-list .product-image-slider { border-radius: 10px 0 0 10px; }
.carousel-track .presente-card .product-image-slider { height: 0; padding-top: 133.33%; }

.slider-wrapper { position: absolute; top:0; left:0; width:100%; height:100%; display: flex; transition: transform 0.5s ease-in-out; }
.slider-slide { flex: 0 0 100%; height: 100%; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls { position: absolute; top: 50%; left: 5px; right: 5px; transform: translateY(-50%); display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.slider-control-prev, .slider-control-next { background: rgba(0, 0, 0, 0.4); color: white; border: none; border-radius: 50%; width: 35px; height: 35px; font-size: 1rem; cursor: pointer; opacity: 0; transition: opacity 0.3s, background-color 0.3s; pointer-events: auto; display: flex; justify-content: center; align-items: center; }
.product-image-slider:hover .slider-controls button { opacity: 1; }
.slider-control-prev:hover, .slider-control-next:hover { background: rgba(0, 0, 0, 0.7); }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.6); cursor: pointer; transition: background-color 0.3s; }
.dot.active { background-color: white; }

#image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 10000; justify-content: center; align-items: center; padding: 15px; }
#image-modal img { display: block; max-width: 90%; max-height: 90%; object-fit: contain; }
#close-modal { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10001; }
#close-modal:hover, #close-modal:focus { color: #bbb; }
.modal-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-nav-button.prev { left: 20px; }
.modal-nav-button.next { right: 20px; }

.presente-info { display: flex; flex-direction: column; flex-grow: 1; }
.presente-info h3 { font-family: var(--fonte-titulo); font-size: 1.3rem; margin: 0 0 0.8rem 0; color: var(--cor-texto-card); }
.preco { font-size: 1.5rem; font-weight: 500; color: var(--cor-texto-card); margin-bottom: 1rem; }
.card-actions { margin-top: auto; }

.preco-promocional { font-size: 1.5rem; font-weight: bold; color: var(--cor-texto-card); }
.preco-antigo { font-size: 1rem; color: #999; text-decoration: line-through; margin-right: 10px; }

.btn-comprar { display: block; width: 100%; text-decoration: none; font-weight: 500; padding: 0.8rem 1.5rem; border-radius: 50px; border: none; cursor: pointer; background: var(--cor-btn-produto-fundo); color: var(--cor-btn-produto-texto); }

.mensagem-aviso { text-align: center; font-size: 1.1rem; padding: 2rem; max-width: 800px; margin: 2rem auto; background-color: #ffebee; border-radius: 8px; color: #c62828; }

.load-more-container { text-align: center; margin-top: 3rem; }
#btn-load-more { font-size: 1rem; font-weight: 500; padding: 0.8rem 2.5rem; border-radius: 50px; border: 2px solid var(--cor-btn-produto-fundo); cursor: pointer; background: transparent; color: var(--cor-btn-produto-fundo); transition: background-color 0.3s, color 0.3s; }
#btn-load-more:hover { background: var(--cor-btn-produto-fundo); color: var(--cor-btn-produto-texto); }

footer { text-align: center; padding: 2rem; background-color: transparent; border-top: 1px solid #eee; margin-top: 3rem; font-size: 0.9rem; color: var(--cor-titulos-rodape); }
.footer-admin-link { margin-top: 1rem; }
.footer-admin-link a { font-size: 0.8rem; color: #aaa; text-decoration: none; }
.footer-admin-link a:hover { text-decoration: underline; }

.fab-container { position: fixed; bottom: 25px; right: 25px; display: flex; flex-direction: column-reverse; gap: 15px; z-index: 1000; align-items: flex-end; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.admin-sidebar, .settings-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background-color: #fff; z-index: 1002; padding: 2rem; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); transition: right 0.4s; overflow-y: auto; color: #333; }
#admin-buttons-container { display: flex; flex-direction: column-reverse; gap: 10px; }
.fab-btn { width: 60px; height: 60px; color: #fff; border: none; border-radius: 50%; box-shadow: var(--sombra-padrao); font-size: 1.5rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.settings-fab { background-color: #6c757d; }
.add-presente-btn, .save-edit-btn { background-color: var(--cor-btn-produto-fundo); }
.overlay.active { opacity: 1; visibility: visible; }
.admin-sidebar.active, .settings-sidebar.active { right: 0; }
.close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; }
.admin-sidebar h3, .settings-sidebar h3 { font-family: var(--fonte-titulo); color: #333; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
form label { font-weight: 500; margin-bottom: 0.5rem; font-size: 0.9rem; display: block; text-align: left; }
form input, form textarea, form select { padding: 0.8rem; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 1.5rem; width: 100%; }
form textarea { font-family: var(--fonte-corpo); resize: vertical; }
.settings-sidebar input[type="color"] { padding: 0; height: 40px; background: none; border: none; }
form button { padding: 0.8rem 1.5rem; border: none; border-radius: 50px; cursor: pointer; font-weight: 500; color: #fff; background-color: var(--cor-btn-produto-fundo); width: 100%; }
.settings-sidebar hr { border: none; border-top: 1px solid #eee; margin: 2rem 0; }
.spinner { border: 8px solid #f3f3f3; border-top: 8px solid var(--cor-btn-produto-fundo); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.card-edit-controls { position: absolute; top: 10px; right: 10px; z-index: 5; display: none; gap: 5px; }
.presente-card.edit-mode .card-edit-controls { display: flex; }
.card-edit-btn { background-color: #007bff; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 0.8rem; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.delete-btn { background-color: #dc3545; }
.hide-btn { background-color: #6c757d; }
.feature-btn { background-color: #fdc12a; }

#password-prompt-side { text-align: left; }
#password-prompt-side h3 { font-family: var(--fonte-titulo); font-size: 1.8rem; text-align: center; }
#password-prompt-side p { text-align: center; margin-bottom: 2rem; font-size: 0.9rem; }
#password-prompt-side label {
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: #333;
}
#password-prompt-side input { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 1rem; font-size: 1rem; }
#password-prompt-side input:focus { outline: none; border-color: var(--cor-btn-produto-fundo); box-shadow: 0 0 5px rgba(197, 157, 95, 0.5); }
#btn-confirmar-senha-side { width: 100%; padding: 0.9rem; font-size: 1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
#btn-confirmar-senha-side:hover { filter: brightness(0.9); }
#mensagem-erro-side { text-align: center; margin-top: 1rem; }

#current-images-container { border: 1px solid #ddd; padding: 10px; border-radius: 5px; min-height: 80px; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.image-preview-wrapper { position: relative; width: 80px; height: 80px; }
.image-preview-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.remove-image-btn { position: absolute; top: -5px; right: -5px; background-color: #dc3545; color: white; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-weight: bold; line-height: 22px; }

#admin-form, #settings-form { padding-bottom: 100px; }

/* --- NOVO: Estilos para o seletor de texturas --- */
.texture-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, 68px);
    gap: 10px;
    margin-bottom: 1rem;
}
.texture-option {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 1px;
    position: relative;
}
.texture-option:hover {
    transform: scale(1.05);
}
.texture-option img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}
.texture-option input[type="radio"] {
    display: none;
}
.texture-option input[type="radio"]:checked + img {
    box-shadow: 0 0 0 3px var(--cor-btn-produto-fundo);
}
.upload-new-texture {
    margin-top: 1.5rem;
}
.upload-new-texture .btn-upload {
    background: #28a745;
    color: white;
    border: none;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    width: auto;
    margin-top: 0.5rem;
}
.upload-new-texture .btn-upload:hover {
    background: #218838;
}
.upload-status-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}
.limit-message {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}
.btn-remove {
    background: #6c757d;
    color: white;
    border: none;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.btn-remove:hover {
    background: #5a6268;
}


@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}
.skeleton {
    opacity: 1;
    background-color: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1s linear infinite;
    flex-direction: column;
}
.skeleton-image {
    width: 100%;
    padding-top: 133.33%;
    background-color: #e0e0e0;
}
.skeleton-content { padding: 1.5rem; }
.skeleton-text { height: 20px; width: 80%; background-color: #e0e0e0; margin-bottom: 10px; border-radius: 4px; }
.skeleton-text.short { width: 50%; }

@media (max-width: 768px) {
    main { padding: 1rem; }
    #featured-section { margin-bottom: 2rem; }
    .carousel-track > .presente-card { width: 48%; }
    .carousel-track > .presente-card .presente-info { padding: 0.8rem; text-align: center; }
    .carousel-button { width: 40px; height: 40px; font-size: 1.2rem; }
    .carousel-button.prev { left: 5px; }
    .carousel-button.next { right: 5px; }
    
    .filtros-container { 
        flex-direction: row; 
        align-items: center; 
        gap: 0.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .filtros-container > .search-wrapper {
        width: 100%;
        flex-basis: 100%;
        order: -1;
        margin-bottom: 0.5rem;
    }
    .filter-wrapper, .sort-wrapper {
        flex-grow: 1;
        min-width: 110px;
    }
    #category-filter, #sort-filter {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem 0.6rem 30px;
        min-width: 0;
        height: 38px;
    }
    .offer-filter-wrapper .offer-filter-box {
        font-size: 0.8rem;
        padding: 0 0.8rem;
        height: 38px;
        flex-grow: 1;
        justify-content: center;
    }
    .view-toggle-wrapper { flex-shrink: 1; }
    #btn-toggle-view { 
        width: auto; 
        height: 38px;
        font-size: 0.8rem;
        padding: 0 0.8rem;
    }

    .section-title { font-size: 2rem; }
    .slider-controls { display: none; }
    
    .container-presentes.view-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .container-presentes.view-grid .presente-card, .container-presentes.view-list .presente-card { width: auto; }
    .container-presentes.view-list .product-image-slider { 
        width: 150px;
        height: 150px;
    }
    .container-presentes.view-list .presente-info { padding: 0.8rem 1rem; }
    .container-presentes.view-grid .presente-info { padding: 0.8rem; }
    .container-presentes.view-grid .presente-info h3, .carousel-track .presente-info h3 { font-size: 1rem; min-height: 2.8rem; }
    .container-presentes.view-grid .preco, .carousel-track .preco { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .container-presentes.view-list .presente-info h3 { font-size: 1.1rem; }
    .carousel-track { gap: 0.5rem; }
    .carousel-track > .presente-card { width: 48%; }
    .modal-nav-button { width: 40px; height: 40px; }
    .modal-nav-button.prev { left: 5px; }
    .modal-nav-button.next { right: 5px; }
}

/* ============================================= */
/* === TEMPLATE 1: MINIMALISTA (SEM CONTORNO) === */
/* ============================================= */

.template-minimalista #search-input,
.template-minimalista #category-filter,
.template-minimalista #sort-filter,
.template-minimalista .offer-filter-wrapper .offer-filter-box,
.template-minimalista #btn-toggle-view {
    border-radius: 0;
    border: none;
}

.template-minimalista #search-input:focus,
.template-minimalista #category-filter:focus,
.template-minimalista #sort-filter:focus {
    box-shadow: none;
    outline: 2px solid var(--cor-btn-produto-fundo);
}

.template-minimalista .presente-card {
    border-radius: 0;
    box-shadow: none;
    transition: opacity 0.5s ease-out, filter 0.3s ease;
}

.template-minimalista .product-image-slider {
    border-radius: 0 !important;
}

.template-minimalista .presente-card:hover {
    transform: none;
    box-shadow: none;
    filter: brightness(0.97);
}

.template-minimalista .btn-comprar,
.template-minimalista #btn-load-more {
    border-radius: 0;
}

.template-minimalista #btn-load-more {
    border: none;
    background-color: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
}

.template-minimalista .btn-comprar:hover,
.template-minimalista #btn-load-more:hover {
    filter: brightness(1.1);
}

/* ======================================================= */
/* === TEMPLATE 2: MODERNO (VERSÃO DINÂMICA CORRIGIDA)  === */
/* ======================================================= */

.template-moderno .page-container {
    position: relative;
    overflow: hidden;
}

.template-moderno .page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--cor-titulos-rodape) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.template-moderno #search-input,
.template-moderno #category-filter,
.template-moderno #sort-filter,
.template-moderno .offer-filter-wrapper .offer-filter-box,
.template-moderno #btn-toggle-view {
    background-color: var(--cor-fundo-filtros);
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-moderno #search-input:hover,
.template-moderno #category-filter:hover,
.template-moderno #sort-filter:hover,
.template-moderno .offer-filter-wrapper .offer-filter-box:hover,
.template-moderno #btn-toggle-view:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.15),
                0 6px 15px rgba(0, 0, 0, 0.15);
}

.template-moderno #category-filter,
.template-moderno #sort-filter {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23333%22/%3E%3C/svg%3E');
    background-position: right 15px center;
    background-repeat: no-repeat;
}

.template-moderno .btn-comprar,
.template-moderno #btn-load-more {
    border: 1px solid rgba(0,0,0,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(135deg, var(--cor-btn-produto-fundo), var(--cor-btn-produto-fundo));
    background-size: 250% auto;
    background-position: left center;
    transition: all 0.3s ease-out;
}

.template-moderno .btn-comprar:hover,
.template-moderno #btn-load-more:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
                0 6px 15px rgba(0, 0, 0, 0.2);
}

.template-moderno .btn-comprar:active,
.template-moderno #btn-load-more:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}


/* ======================================================= */
/* === TEMPLATE 3: GLASS (VERSÃO FINAL)                 === */
/* ======================================================= */

@keyframes floatAnimation {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.template-glass .page-container {
    overflow: hidden;
}

.template-glass .page-container::before,
.template-glass .page-container::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(60px);
    animation: floatAnimation 25s infinite alternate ease-in-out;
}

.template-glass .page-container::before {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
}
.template-glass .page-container::after {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.template-glass #search-input,
.template-glass #category-filter,
.template-glass #sort-filter,
.template-glass .offer-filter-wrapper .offer-filter-box,
.template-glass #btn-toggle-view {
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2), 0 0 15px rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.template-glass .presente-card,
.template-glass .btn-comprar,
.template-glass #btn-load-more {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2), 0 0 15px rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.template-glass .presente-info { background-color: transparent; }

.template-glass .search-wrapper i, 
.template-glass .filter-wrapper i, 
.template-glass .sort-wrapper i,
.template-glass #btn-toggle-view i {
    color: var(--cor-texto-icones-filtros);
    z-index: 1; 
}

.template-glass #search-input,
.template-glass #category-filter,
.template-glass #sort-filter,
.template-glass .offer-filter-wrapper .offer-filter-box,
.template-glass #btn-toggle-view {
    color: var(--cor-texto-icones-filtros);
}

.template-glass .presente-info h3,
.template-glass .preco,
.template-glass .preco-promocional,
.template-glass .preco-antigo,
.template-glass .ler-mais-btn,
.template-glass .produto-descricao {
    color: var(--cor-texto-card);
}
.template-glass .btn-comprar,
.template-glass #btn-load-more {
    background: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
}


.template-glass #search-input::placeholder {
    color: var(--cor-texto-icones-filtros);
    opacity: 1;
}

.template-glass #category-filter,
.template-glass #sort-filter {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23333333%22/%3E%3C/svg%3E');
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 1em;
}

.template-glass .product-image-slider {
    border-radius: 10px 10px 0 0 !important;
}

.template-glass .presente-card:hover,
.template-glass #search-input:hover,
.template-glass #category-filter:hover,
.template-glass #sort-filter:hover,
.template-glass .offer-filter-wrapper .offer-filter-box:hover,
.template-glass #btn-toggle-view:hover,
.template-glass .btn-comprar:hover,
.template-glass #btn-load-more:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3), 0 0 25px rgba(255, 255, 255, 0.1);
}

.template-glass #category-filter option,
.template-glass #sort-filter option {
    color: #333;
    background-color: #fff;
}


/* ======================================================= */
/* === TEMPLATE 4: LUXO (VERSÃO RELEVO FINAL)           === */
/* ======================================================= */

.template-luxo .section-title {
    color: var(--cor-titulos-rodape);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.template-luxo .presente-card,
.template-luxo #search-input,
.template-luxo #category-filter,
.template-luxo #sort-filter,
.template-luxo .offer-filter-wrapper .offer-filter-box,
.template-luxo #btn-toggle-view,
.template-luxo .btn-comprar,
.template-luxo #btn-load-more {
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
    color: var(--cor-texto-icones-filtros);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4),
                inset -2px -2px 5px rgba(255,255,255,0.1);
}

.template-luxo .presente-card:hover,
.template-luxo #search-input:hover,
.template-luxo #category-filter:hover,
.template-luxo #sort-filter:hover,
.template-luxo .offer-filter-wrapper .offer-filter-box:hover,
.template-luxo #btn-toggle-view:hover,
.template-luxo .btn-comprar:hover,
.template-luxo #btn-load-more:hover {
    transform: none;
    box-shadow: inset 3px 3px 7px rgba(0,0,0,0.5),
                inset -2px -2px 5px rgba(255,255,255,0.1);
}

.template-luxo .presente-card .product-image-slider {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.template-luxo .presente-card .presente-info h3,
.template-luxo .presente-card .preco,
.template-luxo .presente-card .preco-promocional,
.template-luxo .presente-card .ler-mais-btn,
.template-luxo .presente-card .produto-descricao {
    color: var(--cor-texto-card);
}

.template-luxo .btn-comprar {
    background: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
}

.template-luxo .product-image-slider {
    border-radius: 0 !important;
}

.template-luxo #search-input::placeholder {
    color: var(--cor-texto-icones-filtros);
    opacity: 1;
}

.template-luxo #category-filter,
.template-luxo #sort-filter {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22rgba(255,255,255,0.5)%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

.template-luxo #btn-load-more {
    background: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
    border-width: 0;
}


/* ======================================================= */
/* === TEMPLATE 5: INDUSTRIAL (VERSÃO FINAL CORRIGIDA)  === */
/* ======================================================= */

/* --- 1. Fundo da Página --- */
.template-industrial .page-container {
    /* CORREÇÃO: A regra de 'background-image' e 'background-color' foi removida מכאן 
       para permitir que a textura selecionada no painel seja aplicada corretamente. */
}

/* --- Títulos com Estilo Industrial --- */
.template-industrial .section-title {
    color: var(--cor-titulos-rodape);
    text-shadow: 0 0 5px rgba(255,255,255,0.2), 0 0 10px rgba(0,0,0,0.5);
}

/* --- 4. Cards de Produto (Agora dinâmicos) --- */
.template-industrial .presente-card {
    background: var(--cor-fundo-card);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border-radius: 4px;
}

.template-industrial .presente-card .product-image-slider {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.template-industrial .presente-card h3,
.template-industrial .presente-card .preco,
.template-industrial .presente-card .preco-promocional,
.template-industrial .presente-card .ler-mais-btn,
.template-industrial .presente-card .produto-descricao {
    color: var(--cor-texto-card);
}

/* --- 2 & 3. Efeito de Metal Pintado e Texto Gravado --- */
.template-industrial #search-input,
.template-industrial #category-filter,
.template-industrial #sort-filter,
.template-industrial .offer-filter-wrapper .offer-filter-box,
.template-industrial #btn-toggle-view,
.template-industrial .btn-comprar,
.template-industrial #btn-load-more {
    border: none;
    border-radius: 4px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.2);
    background-color: var(--cor-fundo-filtros);
    background-image: 
        url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".75" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23n)" opacity=".2"/%3E%3C/svg%3E'),
        linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.5) 100%);
    background-blend-mode: overlay;
    color: var(--cor-texto-icones-filtros);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    transition: all 0.2s ease;
}

.template-industrial .btn-comprar {
    background-color: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
}

.template-industrial #btn-load-more {
    background-color: var(--cor-btn-produto-fundo);
    color: var(--cor-btn-produto-texto);
}

.template-industrial #search-input:hover,
.template-industrial #category-filter:hover,
.template-industrial #sort-filter:hover,
.template-industrial .offer-filter-wrapper .offer-filter-box:hover,
.template-industrial #btn-toggle-view:hover,
.template-industrial .btn-comprar:hover,
.template-industrial #btn-load-more:hover {
    filter: brightness(1.2);
}

.template-industrial #search-input:active,
.template-industrial #category-filter:active,
.template-industrial #sort-filter:active,
.template-industrial .offer-filter-wrapper .offer-filter-box:active,
.template-industrial #btn-toggle-view:active,
.template-industrial .btn-comprar:active,
.template-industrial #btn-load-more:active {
    filter: brightness(0.9);
    box-shadow: 0 1px 2px rgba(0,0,0,0.5), inset 0 1px 1px rgba(0,0,0,0.2);
}

.template-industrial #search-input::placeholder {
    color: var(--cor-texto-icones-filtros);
    opacity: 1;
}

.template-industrial #category-filter,
.template-industrial #sort-filter {
    background-image: 
        url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".75" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23n)" opacity=".2"/%3E%3C/svg%3E'),
        linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.5) 100%),
        url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22rgba(255,255,255,0.8)%22/%3E%3C/svg%3E');
    background-repeat: repeat, no-repeat, no-repeat;
    background-position: center center, center center, right 15px center;
    background-size: auto, auto, 1em;
}