/* /plugins/assets/style.css */

:root {
    --accent-color: #d6c7ea;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #e4e4e4;

    /* Cores das Categorias */
    --bg-equalizers: rgba(126, 173, 220, 0.3);
    --bg-dynamics: rgba(228, 132, 180, 0.3);
    --bg-harmonics: rgba(131, 221, 176, 0.3);
    --bg-special-effects: rgba(216, 222, 129, 0.3);
    --bg-instruments: rgba(194, 150, 237, 0.3);
}

/* --- MUDANÇA 1 --- */
/* Removemos a largura máxima daqui, para que ele ocupe 100% da largura */
.plugins-content {
    width: 100%;
    /* max-width: 1200px; <-- REMOVIDO */
    /* margin: 0 auto; <-- REMOVIDO */
    padding: 40px 0; /* Apenas padding vertical agora */
    z-index: 10;
    position: relative;
}

.plugins-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px; /* Adicionamos padding aqui para o texto não colar nas bordas */
}
.plugins-header h1 { font-size: 3rem; font-weight: bold; color: #fff; margin-bottom: 10px; }
.plugins-header p { font-size: 1.2rem; color: var(--secondary-text-color); }


.category-section {
    position: relative;
    margin-bottom: 40px;
    padding: 80px 0;
}

.category-background-shape {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.category-background-shape svg {
    width: 100%;
    height: 60%;
}

/* --- MUDANÇA 2 --- */
/* Aplicamos a largura máxima e a centralização AQUI, no conteúdo */
.category-content {
    position: relative;
    z-index: 2;
    /* As regras do antigo .plugins-content vêm para cá */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    color: var(--primary-text-color);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}
.product-card:hover { transform: scale(1.05); }
.product-name { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; min-height: auto; color: var(--secondary-text-color); }
.product-image-wrapper { margin-bottom: 15px; cursor: pointer; }
.product-image { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; margin: 0 auto; }
.product-price { font-size: 1.1rem; font-weight: 400; color: var(--accent-color); margin-bottom: 20px; }
.add-cart-link { display: inline-block; background-color: rgba(159, 134, 192, 0.1); border: 1px solid var(--accent-color); color: var(--accent-color); padding: 8px 20px; font-size: 0.8rem; border-radius: 50px; text-decoration: none; font-weight: 400; text-transform: uppercase; transition: background-color 0.3s ease, color 0.3s ease; }
.add-cart-link:hover { background-color: var(--accent-color); color: #121212; }


/* --- Regras de Cor para os SVGs (sem alteração) --- */
.category-equalizers .category-background-shape svg path { fill: var(--bg-equalizers); }
.category-dynamics .category-background-shape svg path { fill: var(--bg-dynamics); }
.category-harmonics .category-background-shape svg path { fill: var(--bg-harmonics); }
.category-special-effects .category-background-shape svg path { fill: var(--bg-special-effects); }
.category-instruments .category-background-shape svg path { fill: var(--bg-instruments); }

/* --- Estilos para Controles Fixos no Rodapé --- */
/* --- ESTILOS FINAIS E ORGANIZADOS --- */

/* 1. Controles Fixos no Rodapé (Container Principal) */
.fixed-footer-controls {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 2. Botão "View Cart" (Menor e Discreto) */
#view-cart-button {
    background-color: var(--accent-color);
    color: #121212;
    padding: 10px 20px; /* Reduzido */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem; /* Reduzido */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out, background-color 0.2s;
    display: flex; /* Mantido para alinhamento */
    align-items: center;
}

#view-cart-button:hover {
    transform: scale(1.05);
    background-color: #fff;
}

#cart-counter {
    background-color: #ffffff00;
    color: #121212;
    border-radius: 50%;
    padding: 1px 7px; /* Reduzido */
    font-size: 0.75em; /* Reduzido */
    margin-left: 8px;
    display: none;
}

/* 3. Switch de Moeda (Menor e Discreto) */
.currency-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Reduzido */
    color: var(--primary-text-color);
    font-size: 0.8rem; /* Reduzido */
    font-weight: bold;
    margin-bottom: 0; /* Removida margem desnecessária */
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px; /* Reduzido */
    height: 24px; /* Reduzido */
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3c3c4c;
    transition: .4s;
    border-radius: 24px; /* Ajustado */
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Reduzido */
    width: 18px;  /* Reduzido */
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(20px); /* Ajustado */
}

/* 4. Estilos para Preço Promocional */
.product-price .regular-price-striked {
    text-decoration: line-through;
    color: #ff6b6b;
    font-size: 0.85em;
    opacity: 0.8;
    margin-right: 8px;
}

.product-price .sale-price {
    font-weight: bold;
}

/* 5. Estilos da Aba Lateral do Carrinho (Side Cart) */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#side-cart-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #1e1e2f;
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.cart-open #side-cart-container {
    right: 0;
}

body.cart-open #cart-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

#side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    color: var(--primary-text-color);
}

#side-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

#close-cart-btn {
    background: none;
    border: none;
    color: var(--primary-text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#side-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--primary-text-color);
}

.cart-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent-color);
}

#side-cart-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.coupon-area {
    display: flex;
    margin-bottom: 20px;
}

#coupon-code {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #444;
    background-color: #2c2c3d;
    color: var(--primary-text-color);
    border-radius: 4px 0 0 4px;
}

#apply-coupon-btn {
    padding: 10px 15px;
    border: 1px solid var(--accent-color);
    background-color: var(--accent-color);
    color: #121212;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.subtotal-area {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #218838;
}

/* --- Estilos para o Botão "ADD TO CART" --- */

.add-to-cart-button {
    display: inline-block;
    background-color: rgba(159, 134, 192, 0.1);
    border: 1px solid #9f86c0; /* Cor de destaque (accent-color) */
    color: #9f86c0;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.8rem;
}

.add-to-cart-button:hover {
    background-color: #9f86c0;
    color: #121212;
}

.add-to-cart-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- ESTILOS FINAIS PARA O CONTEÚDO DO MODAL --- */

/* 1. Cor da Fonte da Descrição */
.modal-product-description {
    color: #e0e0e0; /* Cor de texto primária (clara) */
    text-align: center;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}


/* --- Estilos do Modal (sem alterações) --- */
#product-modal .modal-content-dynamic { 
    background: rgba(32, 33, 43, 0.9); 
    padding: 30px 40px; border-radius: 12px; 
    max-width: 700px; width: 90%; 
    max-height: 85vh; 
    overflow-y: auto; 
    position: relative; 
    color: var(--primary-text-color); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
    transform: scale(0.9); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 

}

#product-modal.visible .modal-content-dynamic { 
    transform: scale(1); 

}
#product-modal .modal-close-btn { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: 
    none; border: 
    none; font-size: 2.5rem; 
    color: #fff; 
    cursor: pointer; 
    opacity: 0.6; 
    transition: opacity 0.2s ease, transform 0.2s ease; 
    line-height: 1; 

}

#product-modal .modal-close-btn:hover { 
    opacity: 1; 
    transform: rotate(90deg); 
}

/* Garante que links dentro da descrição também sejam claros */
.modal-product-description a {
    color: #9f86c0 !important; /* Cor de destaque */
}

/* 2. Tamanho da Imagem Principal do Modal */
.modal-product-image {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 25px;
    border-radius: 5px;
}

/* 3. Estilo para os Vídeos do YouTube Incorporados */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 para vídeos */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0; /* Espaçamento vertical */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- AJUSTE DE COR E ESTILO DA DESCRIÇÃO DO MODAL --- */

.modal-product-description {
    color: #e0e0e0 !important; /* Força a cor de texto primária (clara) */
    line-height: 1.6;
}

/* Garante que parágrafos dentro da descrição herdem a cor */
.modal-product-description p {
    color: #e0e0e0 !important;
}

/* --- ESTILOS FINAIS E CORRIGIDOS PARA O CONTEÚDO DO MODAL --- */

/* 1. Cor da Fonte da Descrição */
/* Esta regra força todo o texto dentro da descrição a ser claro */
.modal-product-description,
.modal-product-description p,
.modal-product-description li {
    color: #e0e0e0 !important;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.modal-product-description a {
    color: #9f86c0 !important;
}

/* 2. Tamanho da Imagem Principal do Modal (sem alteração) */
.modal-product-image {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 25px;
    border-radius: 5px;
}

/* 3. Estilo para os Vídeos do YouTube Incorporados (sem alteração) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 4. NOVO: Tamanho das Imagens DENTRO da Descrição */
.modal-product-description img {
    max-width: 580px !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 5px;
}

/* --- ESTILOS FINAIS E CORRIGIDOS PARA O CONTEÚDO DO MODAL --- */

/* 1. Cor da Fonte da Descrição (AGORA MAIS FORTE) */
/* Esta regra força todo o texto e parágrafos dentro da descrição a ser claro */
.modal-product-description,
.modal-product-description p,
.modal-product-description li,
.modal-product-description h6,
.modal-product-description span { /* Adicionado para sobrescrever o estilo inline */
    color: #e0e0e0 !important;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto;
    line-height: 1.6;
}

.modal-product-description a {
    color: #9f86c0 !important;
}

/* 2. Tamanho da Imagem Principal do Modal (sem alteração) */
.modal-product-image {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 25px;
    border-radius: 5px;
}

/* 3. Estilo para os Vídeos do YouTube Incorporados (sem alteração) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin: 25px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 4. Tamanho das Imagens DENTRO da Descrição */
.modal-product-description img {
    max-width: 580px !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 5px;
}