/*
Theme Name: Droga Force Definitivo
Author: Droga Force
Description: Tema unificado WordPress/WooCommerce da Droga Force, baseado na arquitetura estável da Magazine Amaro.
Version: 3.3.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: magazine-amaro-definitivo
*/

:root {
    --ma-verde: #EB3C4D;
    --ma-verde-escuro: #B6202F;
    --ma-verde-claro: #FFF0F2;
    --ma-texto: #171717;
    --ma-fundo: #FAFAFA;
    --ma-borda: #E8DDE0;
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--ma-fundo);
}

body, button, input, select, textarea {
    font-family: Arial, Helvetica, sans-serif;
}

.ma-generic-main {
    width: min(1160px, calc(100vw - 32px));
    min-height: 45vh;
    margin: 34px auto 60px;
}

.ma-generic-article {
    background: #fff;
    border: 1px solid var(--ma-borda);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(13, 62, 34, .05);
}

.ma-generic-article.is-elementor {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ma-generic-title {
    margin: 0 0 22px;
    color: var(--ma-texto);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.ma-cart-page-shell,
.ma-checkout-page-shell {
    width: 100%;
    min-height: 55vh;
    padding: 26px 16px 60px;
    background: var(--ma-fundo);
}

.ma-cart-page-inner,
.ma-checkout-page-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
}

@media (max-width: 640px) {
    .ma-generic-main { width: calc(100vw - 20px); margin-top: 18px; }
    .ma-generic-article { padding: 20px 16px; border-radius: 14px; }
    .ma-cart-page-shell,
    .ma-checkout-page-shell { padding: 14px 10px 48px; }
}

.ma-order-tracking {
    width: min(880px, calc(100vw - 32px));
    margin: 38px auto 70px;
}

.ma-order-tracking-intro,
.ma-order-tracking-form {
    background: #fff;
    border: 1px solid var(--ma-borda);
    border-radius: 22px;
    padding: 28px;
}

.ma-order-tracking-intro {
    margin-bottom: 18px;
}

.ma-order-tracking-intro span {
    color: var(--ma-verde-escuro);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ma-order-tracking-intro h1 {
    margin: 8px 0 10px;
    color: var(--ma-texto);
}

.ma-order-tracking-intro p {
    margin: 0;
    color: #526173;
}

/* Identidade Droga Force: somente cores e marca, sem alterar a geometria do layout. */
body .ma14-topbar,
body .ma14-search button,
body .ma14-btn-primary,
body .ma14-product-buy,
body .single_add_to_cart_button,
body .checkout-button,
body #place_order,
body button[name="apply_coupon"],
body button[name="update_cart"] {
    background: #B6202F !important;
    border-color: #B6202F !important;
    color: #fff !important;
}

body .ma14-nav a:hover,
body .ma14-nav a:focus,
body .ma14-footer-col a:hover,
body .ma14-footer-col a:focus,
body .ma14-pix-new,
body .ma14-product-price,
body .ma14-section-title a {
    color: #B6202F !important;
}

body .ma14-hero {
    background: radial-gradient(circle at top right, rgba(235, 60, 77, .38), transparent 34%), linear-gradient(135deg, #24070B 0%, #64111B 50%, #B6202F 100%) !important;
}

body .ma14-hero h1 span,
body .ma14-kicker {
    color: #FF9CA6 !important;
}

body #ma14-footer.ma14-footer {
    background: #fff !important;
    color: #171717 !important;
    border-top: 1px solid #E8DDE0 !important;
}

body #ma14-footer.ma14-footer h3,
body #ma14-footer.ma14-footer p,
body #ma14-footer.ma14-footer a,
body #ma14-footer.ma14-footer span,
body #ma14-footer.ma14-footer strong,
body #ma14-footer.ma14-footer address {
    color: #171717 !important;
}

body #ma14-footer .ma14-footer-col h3::after {
    background: #EB3C4D !important;
}

body .ma14-logo img {
    width: auto !important;
    max-width: 230px !important;
    max-height: 72px !important;
    object-fit: contain !important;
}

/* Páginas institucionais: HTML limpo, sem CSS visível dentro do conteúdo. */
.ma-generic-article.is-managed-page {
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dfi-page {
    color: #243246;
}

.dfi-hero {
    padding: clamp(30px, 5vw, 58px);
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(255,255,255,.17), transparent 36%), linear-gradient(135deg, #4c0b14, #B6202F);
    color: #fff;
    box-shadow: 0 18px 42px rgba(76, 11, 20, .16);
}

.dfi-hero span {
    display: block;
    margin-bottom: 9px;
    color: #ffd8dc;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dfi-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.05;
}

.dfi-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.6;
}

.dfi-page-body {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.dfi-content-grid,
.dfi-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

.dfi-content-grid > div {
    display: grid;
    gap: 18px;
}

.dfi-section,
.dfi-company-card,
.dfi-note {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #eadde0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(46, 11, 17, .05);
}

.dfi-section h2,
.dfi-company-card h2,
.dfi-note h2 {
    margin: 0 0 12px;
    color: #1c293b;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.2;
}

.dfi-section p,
.dfi-section li,
.dfi-company-card dd,
.dfi-note p {
    color: #526174;
    font-size: 16px;
    line-height: 1.72;
}

.dfi-section p:last-child,
.dfi-note p:last-child {
    margin-bottom: 0;
}

.dfi-section a,
.dfi-company-card a,
.dfi-note a {
    color: #B6202F;
    font-weight: 750;
}

.dfi-section ul {
    margin: 12px 0 0;
    padding-left: 21px;
}

.dfi-section li + li {
    margin-top: 7px;
}

.dfi-company-card {
    position: sticky;
    top: 18px;
}

.dfi-company-card dl,
.dfi-company-card div {
    margin: 0;
}

.dfi-company-card dl > div {
    padding: 12px 0;
    border-bottom: 1px solid #eee5e7;
}

.dfi-company-card dl > div:last-child {
    border-bottom: 0;
}

.dfi-company-card dt {
    margin-bottom: 3px;
    color: #7a4750;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dfi-company-card dd {
    margin: 0;
}

.dfi-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin: 5px 8px 0 0;
    padding: 10px 18px;
    border: 1px solid #B6202F;
    border-radius: 12px;
    background: #B6202F;
    color: #fff !important;
    text-decoration: none;
}

.dfi-button.is-secondary {
    background: #fff;
    color: #B6202F !important;
}

.dfi-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dfi-payment-icon {
    display: inline-flex;
    min-width: 56px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 6px 11px;
    border-radius: 10px;
    background: #FFF0F2;
    color: #B6202F;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
}

.dfi-note {
    border-color: #f0c6cc;
    background: #fff8f9;
}

.dfi-updated {
    margin: 18px 4px 0;
    color: #778395;
    font-size: 12px;
    text-align: right;
}

/* Avaliações, estrelas e abas da página de produto. */
.ma14-rating-line {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 22px !important;
}

.ma14-rating-card {
    margin: 8px 0 3px !important;
}

.ma14-rating-product {
    margin: 10px 0 16px !important;
}

.ma14-rating-note {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.ma14-product-tabs-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.ma14-product-tab-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 12px !important;
    border-bottom: 1px solid #e9e1e3 !important;
    background: #fff8f9 !important;
}

.ma14-product-tab-buttons button {
    min-height: 48px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #566578 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.ma14-product-tab-buttons button.is-active {
    border-color: #efc3c9 !important;
    background: #fff !important;
    color: #B6202F !important;
    box-shadow: 0 7px 18px rgba(86, 13, 23, .08) !important;
}

.ma14-product-tab-panel {
    display: none !important;
    padding: clamp(22px, 4vw, 38px) !important;
}

.ma14-product-tab-panel.is-active {
    display: block !important;
}

.ma14-product-tab-panel .ma14-desc-content,
.ma14-product-tab-panel .ma14-desc-content * {
    visibility: visible !important;
    opacity: 1 !important;
}

.ma14-product-tab-panel .ma14-desc-content {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.ma14-product-tab-panel #reviews,
.ma14-product-tab-panel .woocommerce-Reviews {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.ma14-product-tab-panel #review_form_wrapper {
    margin-top: 22px !important;
    padding-top: 22px !important;
    border-top: 1px solid #e8e1e3 !important;
}

.ma14-product-tab-panel #review_form input,
.ma14-product-tab-panel #review_form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 11px 13px !important;
    border: 1px solid #d9dfe7 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

.ma14-product-tab-panel #review_form textarea {
    min-height: 120px !important;
}

.ma14-product-tab-panel #review_form input[type="submit"] {
    width: auto !important;
    border-color: #B6202F !important;
    background: #B6202F !important;
    color: #fff !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    .dfi-content-grid,
    .dfi-contact-grid,
    .dfi-payment-grid {
        grid-template-columns: 1fr;
    }

    .dfi-company-card {
        position: static;
    }

    .dfi-hero {
        border-radius: 18px;
    }

    .ma14-product-tab-panel {
        padding: 18px 15px !important;
    }
}
