/**
 * Pages Typography — A Glória Eterna Store
 *
 * Prose styling for static pages (Sobre, FAQ, Termos, etc.)
 * Dark theme with gold accents.
 */

/* ===== PROSE CONTAINER ===== */

.gloria-prose {
    font-family: 'Ubuntu', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #c4c4c4;
}

/* ===== HEADINGS ===== */

.gloria-prose h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}

.gloria-prose h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dbaf4a;
}

.gloria-prose h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e2e2e2;
    margin: 2rem 0 0.75rem;
}

.gloria-prose h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #dbaf4a;
    margin: 1.5rem 0 0.5rem;
}

/* ===== PARAGRAPHS ===== */

.gloria-prose p {
    margin: 0 0 1.25rem;
}

.gloria-prose p:last-child {
    margin-bottom: 0;
}

/* ===== STRONG / BOLD ===== */

.gloria-prose strong {
    color: #fff;
    font-weight: 600;
}

/* ===== LINKS ===== */

.gloria-prose a {
    color: #dbaf4a;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.gloria-prose .woocommerce a,
.gloria-prose .woocommerce-MyAccount-content a {
    text-decoration: none;
}

.gloria-prose a:hover {
    color: #f4e1b3;
}

/* ===== LISTS ===== */

.gloria-prose ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.gloria-prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.gloria-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: #dbaf4a;
    border-radius: 50%;
}

.gloria-prose ol {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
    counter-reset: ol-counter;
    list-style: none;
}

.gloria-prose ol li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.6rem;
    counter-increment: ol-counter;
}

.gloria-prose ol li::before {
    content: counter(ol-counter) '.';
    position: absolute;
    left: -1.5rem;
    color: #dbaf4a;
    font-weight: 700;
    font-size: 14px;
}

/* Breadcrumbs e listas de navegação não devem ter counter */
.gloria-prose ol.flex li::before,
.gloria-prose ol.flex li,
.woocommerce-MyAccount-navigation ol li::before,
.woocommerce-breadcrumb li::before {
    content: none !important;
    counter-increment: none !important;
}

/* Nested lists */
.gloria-prose ul ul,
.gloria-prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===== BLOCKQUOTE ===== */

.gloria-prose blockquote {
    border-left: 3px solid #dbaf4a;
    background: rgba(219, 175, 74, 0.05);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #e2e2e2;
    font-style: italic;
}

.gloria-prose blockquote p:last-child {
    margin-bottom: 0;
}

/* ===== HORIZONTAL RULE ===== */

.gloria-prose hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 2rem 0;
}

/* ===== TABLES ===== */

.gloria-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 14px;
}

.gloria-prose table th {
    text-align: left;
    font-weight: 700;
    color: #dbaf4a;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #2a2a2a;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gloria-prose table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #1f1f1f;
    color: #c4c4c4;
}

.gloria-prose table tr:hover td {
    background: rgba(219, 175, 74, 0.03);
}

/* ===== CODE ===== */

.gloria-prose code {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #dbaf4a;
}

.gloria-prose pre {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.gloria-prose pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #c4c4c4;
}

/* ===== IMAGES ===== */

.gloria-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ===== FIRST PARAGRAPH ACCENT ===== */

.gloria-prose > p:first-child {
    font-size: 16px;
    color: #e2e2e2;
    line-height: 1.9;
}

/* ===== ASAAS BOLETO / PIX BUTTON ===== */

.woocommerce-order-details a[href*="asaas"],
.woocommerce-order-details a[href*="boleto"],
.woocommerce-order-details a[href*="bank_slip"],
.gloria-prose a[href*="asaas"],
.gloria-prose a[href*="boleto"],
.gloria-prose a[href*="bank_slip"] {
    display: inline-block !important;
    background: linear-gradient(135deg, #9a7d2e 0%, #dbaf4a 40%, #f4e1b3 100%) !important;
    color: #000 !important;
    font-family: 'Branding', 'Helvetica Neue', sans-serif;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px !important;
    text-decoration: none !important;
    margin: 12px 0 !important;
    transition: opacity 0.2s;
}

.woocommerce-order-details a[href*="asaas"]:hover,
.woocommerce-order-details a[href*="boleto"]:hover,
.gloria-prose a[href*="asaas"]:hover,
.gloria-prose a[href*="boleto"]:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* ===== WooCommerce SHORTCODE PAGES ===== */

/* Wishlist page inside prose */
.gloria-prose .gloria-wishlist-page {
    font-size: inherit;
}


/* ===== ASAAS BOLETO / PIX BUTTON ===== */
.woocommerce-order-details a[href*="asaas"],
.woocommerce-order-details a[href*="boleto"],
.gloria-prose a[href*="asaas"],
.gloria-prose a[href*="boleto"] {
    display: inline-block !important;
    background: linear-gradient(135deg, #9a7d2e 0%, #dbaf4a 40%, #f4e1b3 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 32px !important;
    text-decoration: none !important;
    margin: 12px 0 !important;
    transition: opacity 0.2s;
}
.woocommerce-order-details a[href*="asaas"]:hover,
.gloria-prose a[href*="asaas"]:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* ===== Variation buttons — out of stock ===== */
.gloria-size-btn.is-out-of-stock,
.gloria-sticky-size-btn.is-out-of-stock,
.gqv-size-btn.is-out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
    color: #71717a !important;
    border-color: rgba(113, 113, 122, 0.3) !important;
    background: transparent !important;
}
.gloria-size-btn.is-out-of-stock:hover,
.gloria-sticky-size-btn.is-out-of-stock:hover,
.gqv-size-btn.is-out-of-stock:hover {
    border-color: rgba(113, 113, 122, 0.3) !important;
    color: #71717a !important;
    background: transparent !important;
}
