/**
 * OMS Plugins - Estilos Globais
 * Version: 2026.14
 */

/* ==============================
   ESTILOS ADMIN
============================== */

.oms-dashboard .oms-card {
    max-width: 100%;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid #d60000;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.oms-dashboard .oms-title {
    margin-top: 0;
    color: #d60000;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.oms-dashboard .oms-table {
    margin-top: 15px;
    border-collapse: collapse;
}

.oms-dashboard .oms-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.oms-dashboard .oms-table td {
    vertical-align: middle;
}

.oms-dashboard .oms-button {
    background: #d60000;
    color: #fff;
    border-color: #b30000;
}

.oms-dashboard .oms-button:hover {
    background: #b30000;
    color: #fff;
}

.oms-dashboard .oms-info {
    margin-top: 20px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.oms-dashboard .oms-info .dashicons {
    color: #d60000;
}

/* Estilos comuns para tabs */
.oms-tab-content {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-top: none;
    margin-top: 0;
}

.oms-nav-tab-wrapper {
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 0;
}

.oms-nav-tab-active {
    border-bottom: 1px solid #fff;
    background: #fff;
}

/* Estilos para modais */
.oms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 100000;
}

.oms-modal-content {
    background: #fff;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.oms-modal-title {
    color: #d60000;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Estilos para regras de desconto */
.oms-rule-block {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    transition: all 0.3s ease;
}

.oms-rule-block:hover {
    border-color: #007cba !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.oms-rule-title {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.oms-remove-rule {
    color: #dc3232;
    border-color: #dc3232;
    float: right;
}

.oms-remove-rule:hover {
    background: #dc3232;
    color: #fff;
    border-color: #dc3232;
}

/* Estilos para categorias */
.oms-categories-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.oms-category-item {
    display: block;
    margin: 8px 0;
}

/* Estilos para capacidades */
.oms-capabilities-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.oms-capability-group {
    margin-bottom: 20px;
}

.oms-capability-group h4 {
    margin-bottom: 10px;
    color: #007cba;
}

.oms-capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 5px;
}

.oms-capability-item {
    display: block;
    margin: 2px 0;
    padding: 5px;
    background: #fff;
    border-radius: 3px;
}

.oms-capability-item code {
    background: none;
    padding: 0;
}

/* ==============================
   ESTILOS FRONTEND - PRODUTOS
   Layout: Preço normal + Preço Club com logotipo na mesma linha
   PREÇO NORMAL SEM RISCADO
============================== */

/* Container de preços - flex para alinhar na mesma linha */
.om-pricing-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
}

/* Preço normal - SEM RISCADO */
.om-normal-price {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.om-normal-price .woocommerce-Price-amount {
    font-weight: 400;
    text-decoration: none;
}

/* Preço Club com fundo vermelho e logotipo - ALINHADO AO CENTRO */
.om-club-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d60000;
    color: #ffffff;
    padding: 5px 15px 5px 12px;
    border-radius: 30px;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    min-height: 32px;
}

.om-club-price-badge .om-club-amount {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.om-club-price-badge .om-club-amount .woocommerce-Price-amount,
.om-club-price-badge .om-club-amount .woocommerce-Price-currencySymbol {
    color: #ffffff !important;
    line-height: 1;
    text-decoration: none;
}

.om-club-price-badge img {
    height: 18px;
    width: auto;
    display: block;
    margin: 0;
}

/* Página individual do produto */
.om-single-pricing-container {
    margin: 15px 0;
}

.om-single-pricing-container .om-pricing-container {
    margin: 0;
}

.om-single-pricing-container .om-club-price-badge {
    font-size: 18px;
    padding: 6px 18px 6px 15px;
    min-height: 36px;
}

.om-single-pricing-container .om-club-price-badge img {
    height: 22px;
}

.om-single-login-message {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* Esconder botões padrão do WooCommerce no loop */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: none !important;
}

/* ==============================
   ESTILOS CARRINHO - MOSTRA AMBOS OS PREÇOS
   PREÇO NORMAL SEM RISCADO
============================== */

/* Container do preço no carrinho */
.om-cart-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

/* Preço normal no carrinho - SEM RISCADO */
.om-cart-regular {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

/* Preço Club no carrinho */
.om-cart-club-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #d60000;
    color: #fff;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    font-size: 14px;
    width: fit-content;
    min-height: 28px;
}

.om-cart-club-price .woocommerce-Price-amount,
.om-cart-club-price .woocommerce-Price-currencySymbol {
    color: #fff !important;
    line-height: 1;
    text-decoration: none;
}

.om-cart-club-price img {
    height: 16px;
    width: auto;
    display: block;
    margin: 0;
}

/* Preço normal sem desconto */
.om-cart-normal {
    color: #333;
    font-size: 14px;
    text-decoration: none;
}

/* Subtotal no carrinho - SEM RISCADO */
.om-cart-subtotal {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.om-cart-regular-subtotal {
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.om-cart-club-subtotal {
    color: #d60000;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* Mensagem de desconto */
.om-discount-message {
    background: #f0f8ff;
    border-left: 4px solid #d60000;
    padding: 12px;
    margin: 15px 0;
    border-radius: 3px;
}

.om-discount-message span {
    font-weight: bold;
    color: #d60000;
}

/* Imagem do produto - border-radius */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
    border-radius: 12px !important;
}

/* Secções deslizantes */
.om-section-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.om-section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.om-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.om-section-slides {
    position: relative;
    width: 200%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.om-section-slide {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.om-section-content {
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.om-section-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.om-section-button:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.om-section-prev {
    left: 20px;
}

.om-section-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .om-pricing-container {
        gap: 8px;
    }
    
    .om-club-price-badge {
        font-size: 14px;
        padding: 4px 12px 4px 10px;
        min-height: 28px;
    }
    
    .om-club-price-badge img {
        height: 16px;
    }
    
    .om-single-pricing-container .om-club-price-badge {
        font-size: 16px;
        min-height: 32px;
    }
    
    .om-single-pricing-container .om-club-price-badge img {
        height: 20px;
    }
    
    .om-section-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .om-section-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .om-cart-pricing {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .om-pricing-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Utilitários */
.oms-text-center { text-align: center; }
.oms-mt-20 { margin-top: 20px; }
.oms-mb-20 { margin-bottom: 20px; }
.oms-p-20 { padding: 20px; }
.oms-rounded { border-radius: 4px; }
.oms-shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }