/*
Theme Name: KCBerry Child
Template: kcberry-theme
Version: 2.3
*/

body.single .kc-content-wrap {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: 60px 24px 100px !important;
    display: block !important;
}

body.single .kc-date {
    font-size: 14px !important;
    color: #888 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
    font-family: 'DM Sans', sans-serif !important;
}

body.single .kc-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 52px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-bottom: 48px !important;
}

body.single .kc-content {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 19px !important;
    line-height: 1.85 !important;
    color: #2a2a2a !important;
}

body.single .kc-content p {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 19px !important;
    line-height: 1.85 !important;
    color: #2a2a2a !important;
    margin-bottom: 28px !important;
}

body.single .kc-content h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-top: 56px !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
}

body.single .kc-content h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-top: 44px !important;
    margin-bottom: 16px !important;
}

body.single .kc-content h4 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-top: 36px !important;
    margin-bottom: 12px !important;
}

body.single .kc-content strong {
    font-weight: 700 !important;
    color: #111 !important;
}

body.single .kc-content a {
    color: #c8102e !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

body.single .kc-content ul,
body.single .kc-content ol {
    padding-left: 28px !important;
    margin-bottom: 28px !important;
}

body.single .kc-content li {
    font-size: 19px !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
    color: #2a2a2a !important;
}

body.single .kc-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 40px 0 !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07) !important;
}

body.single .kc-content table th {
    background: #111 !important;
    color: #fff !important;
    padding: 14px 18px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    font-family: 'DM Sans', sans-serif !important;
}

body.single .kc-content table td {
    padding: 14px 18px !important;
    border-bottom: 1px solid #eee !important;
    color: #333 !important;
    font-family: 'DM Sans', sans-serif !important;
}

body.single .kc-content table tr:last-child td {
    border-bottom: none !important;
}

body.single .kc-content table tr:nth-child(even) td {
    background: #fafafa !important;
}

body.single .kc-content blockquote {
    border-left: 4px solid #c8a96e !important;
    padding: 20px 28px !important;
    margin: 40px 0 !important;
    background: #faf9f7 !important;
    border-radius: 0 12px 12px 0 !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 20px !important;
}

body.single .kc-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 40px 0 !important;
    border-radius: 16px !important;
    display: block !important;
}

@media (max-width: 768px) {
    body.single .kc-title {
        font-size: 32px !important;
    }
    body.single .kc-content-wrap {
        padding: 32px 16px 60px !important;
    }
    body.single .kc-content {
        font-size: 17px !important;
    }
    body.single .kc-content h2 {
        font-size: 26px !important;
    }
    body.single .kc-content h3 {
        font-size: 22px !important;
    }
    body.single .kc-content table {
        display: block !important;
        overflow-x: auto !important;
    }
    body.single .kc-content table th,
    body.single .kc-content table td {
        white-space: nowrap !important;
        padding: 10px 12px !important;
    }
}


/* ===============================================
   FIX: BOTÃO "FINALIZAR COMPRAS" — texto branco
=============================================== */
.wc-proceed-to-checkout a.checkout-button,
.cart_totals .checkout-button,
a.checkout-button,
.woocommerce a.button.checkout-button,
.woocommerce-mini-cart__buttons a.checkout {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* ===============================================
   FIX: LEIA TAMBÉM duplicado nos artigos do blog
   O tema pai injeta o bloco via filtro + template.
   Esta regra esconde o segundo bloco.
=============================================== */
.kcb-post-cta + .kcb-post-cta {
    display: none !important;
}


/* ===============================================
   WORKSHOP — MOBILE FIXES (v2.1)
   Página: /workshop/
=============================================== */

/* 1. Sections: reduzir padding excessivo em mobile */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0 !important;
    }
    .section--lg {
        padding: 5rem 0 !important;
    }
}

/* 2. Hero grid: price card deixa de ser sticky após colapso */
@media (max-width: 900px) {
    .workshop-price-card {
        position: static !important;
        margin-top: 2rem !important;
    }
}

/* 3. Preço: reduzir tamanho de fonte em mobile */
@media (max-width: 768px) {
    .workshop-price {
        font-size: 44px !important;
    }
}

/* 4. Grelha de datas (Lisboa/Porto/Portimão): 3 cols → 1 col */
@media (max-width: 768px) {
    .section--sand .container > div,
    .section--sand .container > .reveal {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

/* 5. Barra de passos do formulário: esconder linhas e texto em ecrãs pequenos */
@media (max-width: 540px) {
    .ws-step-line {
        display: none !important;
    }
    .ws-step span:last-child {
        display: none !important;
    }
    .workshop-steps {
        justify-content: space-evenly !important;
        gap: 0 !important;
        margin-bottom: 2rem !important;
    }
}

/* 6. Form rows: colapsar uma coluna em ecrãs médios */
@media (max-width: 680px) {
    .workshop-form-wrap {
        padding: 0 !important;
    }
    .workshop-form-row {
        grid-template-columns: 1fr !important;
    }
}