/*
Theme Name: AmaLabs Theme
Theme URI: http://eduardovianna.com/vtis/amalabs
Author: Eduardo Vianna
Author URI: http://eduardovianna.com
Description: Tema personalizado para AmaLabs - Laboratório de Análises Clínicas. Design limpo, médico e profissional.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: health, medical, laboratory, responsive, clean
*/

:root {
    --primary-color: #00b894;
    /* Medical Green */
    --secondary-color: #0984e3;
    /* Trust Blue */
    --accent-color: #55efc4;
    /* Light Green */
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --content-max-width: 720px;
    --border-radius: 8px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Conteúdo de texto (entry-content) - alinhado ao design da home */
.site-main .entry-content {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-color);
}

/* Max-width apenas em blocos de texto (parágrafos, títulos, listas) - formulários ficam em largura total */
.site-main .entry-content > p,
.site-main .entry-content > h1,
.site-main .entry-content > h2,
.site-main .entry-content > h3,
.site-main .entry-content > h4,
.site-main .entry-content > h5,
.site-main .entry-content > h6,
.site-main .entry-content > ul,
.site-main .entry-content > ol,
.site-main .entry-content > blockquote,
.site-main .entry-content .wp-block-paragraph,
.site-main .entry-content .wp-block-heading,
.site-main .entry-content .wp-block-list {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.site-main .entry-content p {
    margin-bottom: 1.25em;
}

.site-main .entry-content p:last-child {
    margin-bottom: 0;
}

.site-main .entry-content h2,
.site-main .entry-content h3,
.site-main .entry-content h4,
.site-main .entry-content h5,
.site-main .entry-content h6 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.site-main .entry-content h2:first-child,
.site-main .entry-content h3:first-child,
.site-main .entry-content h4:first-child {
    margin-top: 0;
}

.site-main .entry-content ul,
.site-main .entry-content ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.site-main .entry-content li {
    margin-bottom: 0.5em;
}

.site-main .entry-content .wp-block-paragraph {
    margin-bottom: 1.25em;
}

/* Formulários e conteúdo embarcado usam largura total (não recebem max-width dos blocos de texto) */
.site-main .entry-content form,
.site-main .entry-content .gform_wrapper,
.site-main .entry-content .wpcf7 {
    max-width: 100%;
}

/* User identification bar (above header, logged-in only) */
.user-identification-bar {
    background: var(--user-bar-bg, var(--primary-color));
    color: var(--user-bar-text, #fff);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 0;
}

.user-identification-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.user-identification-bar__welcome {
    flex: 1;
    min-width: 0;
}

.user-identification-bar__logout {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

.user-identification-bar__logout:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .user-identification-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Sticky wrapper: user bar + header stick together when scrolling */
.site-header-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    flex-direction: column;
    /* Stack top and bottom rows */
    justify-content: center;
    height: auto;
    padding: 0 20px;
    /* Mantém respiro lateral (evita conteúdo colado nas bordas em tablet/desktop) */
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    gap: 20px;
}

.header-bottom-row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
    padding: 0;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* Custom Logo Image */
.site-branding .custom-logo-link img,
.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Navigation - apenas o primeiro nível em linha */
#primary-menu,
.main-navigation > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 15px 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Itens com submenu: seta e posição para dropdown */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a {
    padding-right: 18px;
}

.main-navigation .menu-item-has-children > a::after {
    content: '\25BC';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.8;
    pointer-events: none;
}

/* Submenu: dropdown escondido por padrão, visível ao hover */
.main-navigation .sub-menu {
    display: block;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.main-navigation .sub-menu li {
    margin: 0;
    border: none;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.05) 0%, rgba(0, 184, 148, 0.1) 100%);
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    /* Context for overlay */
}

/* Hero Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: var(--hero-overlay-opacity, 0);
    /* Dynamic Opacity */
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Lift above overlay */
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--hero-text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    color: var(--hero-text-color);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Carousel (Home) - Largura total, altura proporcional (2000×600) */
.hero-carousel-wrap {
    position: relative;
    height: auto;
    min-height: 300px;
    aspect-ratio: 2000 / 600;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.05) 0%, rgba(0, 184, 148, 0.1) 100%);
}
.home-hero-carousel {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
.home-hero-carousel .swiper-slide {
    height: 100%;
}
.hero-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.05) 0%, rgba(0, 184, 148, 0.1) 100%);
}
.hero-slide .hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-slide .hero-slide-bg-mobile {
    display: none;
}
@media (max-width: 768px) {
    /* Imagem mobile 600×800: proporção retrato para não cortar */
    .hero-carousel-wrap {
        aspect-ratio: 600 / 800;
    }
    .hero-slide .hero-slide-bg-desktop {
        display: none;
    }
    .hero-slide .hero-slide-bg-mobile {
        display: block;
    }
}
.hero-slide .hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.hero-slide .hero-content {
    position: relative;
    z-index: 2;
}
.home-hero-carousel-pagination {
    position: absolute;
    bottom: 24px;
    z-index: 10;
}
.home-hero-carousel-next,
.home-hero-carousel-prev {
    color: #fff;
    z-index: 10;
}
.hero-carousel-wrap .home-hero-carousel-next,
.hero-carousel-wrap .home-hero-carousel-prev {
    color: #fff !important;
}
.hero-carousel-wrap .home-hero-carousel-next:hover,
.hero-carousel-wrap .home-hero-carousel-prev:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}
.hero-carousel-wrap .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}
.hero-carousel-wrap .swiper-pagination-bullet-active {
    background: #fff;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f0f4f8;
    /* Very light blueish grey */
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Seção dos cards acima do rodapé (fundo branco, separada do footer) */
.footer-cards-section {
    background: #ffffff;
    width: 100%;
    padding: 48px 0 40px;
    color: var(--text-color);
}

/* Footer */
.site-footer {
    background: #2d3436;
    color: var(--white);
    padding: 60px 0 20px;
}

/* Cards acima do rodapé (3 cards editáveis) */
.footer-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 48px 20px 40px;
    background: #ffffff;
    color: var(--text-color);
}

.footer-card {
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 28px 20px;
}

.footer-card__icon {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.footer-card__icon svg {
    width: 48px;
    height: 48px;
}

.footer-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.footer-card__desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-card__link:hover {
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .footer-cards {
        grid-template-columns: 1fr;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.footer-widget p {
    color: #b2bec3;
    font-size: 15px;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #636e72;
}

.site-info {
    color: #b2bec3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #00a884;
    /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.cta-section .btn-primary {
    background-color: var(--white);
    color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .main-navigation {
        display: none;
        /* Mobile menu would require JS implementation or plugin */
    }
}

/* Hero Specific Button Styles */
.hero-section .btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.hero-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-section .btn-secondary {
    border-color: var(--hero-text-color);
    color: var(--hero-text-color);
}

.hero-section .btn-secondary:hover {
    background-color: var(--hero-text-color);
    color: var(--secondary-color);
}

/* Header Actions / Cart */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

/* Login e Carrinho: mesma cor (sobrescreve estilos globais de link) */
.header-login,
.header-cart {
    color: var(--text-color);
}

.header-login:hover,
.header-cart:hover {
    color: var(--primary-color);
}

.header-login {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 2px solid var(--white);
}

/* Cart modal (Amway-style dropdown on hover) */
.header-cart-wrapper {
    position: relative;
}

.cart-modal {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header-cart-wrapper:hover .cart-modal,
.header-cart-wrapper.is-open .cart-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* User modal (dropdown on hover when logged in) */
.header-login-wrapper {
    position: relative;
}

.user-modal {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 260px;
    max-width: calc(100vw - 24px);
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 16px 20px;
}

.header-login-wrapper:hover .user-modal,
.header-login-wrapper.is-open .user-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-modal__name {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.user-modal__link {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.user-modal__link:hover {
    color: var(--primary-color);
}

.user-modal__logout {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.cart-modal-title {
    margin: 0;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.cart-modal__inner {
    padding: 16px 20px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-modal-empty {
    margin: 0 0 12px;
    color: var(--text-light);
    font-size: 14px;
}

.cart-modal-shop-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cart-modal-summary {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-light);
}

.cart-modal-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.cart-modal-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f6;
}

.cart-modal-item:last-child {
    border-bottom: none;
}

.cart-modal-item-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background: #f9f9f9;
}

.cart-modal-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-modal-item-details {
    flex: 1;
    min-width: 0;
}

.cart-modal-item-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.cart-modal-item-name:hover {
    color: var(--primary-color);
}

.cart-modal-item-sku,
.cart-modal-item-qty {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.cart-modal-item-price {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 4px;
}

.cart-modal-item-remove {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-light);
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-modal-item-remove:hover {
    color: #c0392b;
    background-color: rgba(192, 57, 43, 0.08);
}

.cart-modal-item-remove svg {
    display: block;
}

.cart-modal-item-remove.is-loading {
    opacity: 0.6;
    cursor: wait;
}

.cart-modal-subtotal-label {
    margin: 12px 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.cart-modal-subtotal {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.cart-modal-checkout-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background-color: #2d3436;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--border-radius, 8px);
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.cart-modal-checkout-btn:hover {
    background-color: #1a1d1f;
    color: var(--white);
}

.cart-modal-clear-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

.cart-modal-clear-link:hover {
    color: var(--primary-color);
}

/* ========== Cart Page (two-column layout) ========== */
/* Hide page title on cart so only our template title shows (avoid duplicate "Carrinho") */
body.woocommerce-cart .site-main .entry-header,
body.woocommerce-cart .entry-header {
    display: none;
}

.cart-page {
    margin-top: 24px;
    margin-bottom: 48px;
}

.cart-page__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.cart-page__left {
    min-width: 0;
}

.cart-page__right {
    position: sticky;
    top: 24px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.cart-page__breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.cart-page__breadcrumb a {
    color: var(--secondary-color);
}

.cart-page__breadcrumb a:hover {
    color: var(--primary-color);
}

.cart-page__breadcrumb-sep {
    margin: 0 6px;
}

.cart-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.cart-page__welcome {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cart-page .woocommerce-cart-form {
    margin-bottom: 24px;
}

.cart-page .shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #eee;
}

.cart-page .shop_table thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-light, #f9f9f9);
    border-bottom: 1px solid #eee;
}

.cart-page .shop_table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
}

.cart-page .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.cart-page .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    color: var(--text-light);
    border-radius: var(--border-radius);
}

.cart-page .product-remove a:hover {
    color: var(--white);
    background: #e74c3c;
}

.cart-page .product-thumbnail a,
.cart-page .product-thumbnail img {
    display: block;
}

.cart-page .product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--bg-light, #f9f9f9);
}

.cart-page .product-name a {
    font-weight: 600;
    color: var(--text-color);
}

.cart-page .product-name a:hover {
    color: var(--primary-color);
}

.cart-page__item-sku {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.cart-page .product-price,
.cart-page .product-subtotal {
    font-weight: 600;
    color: var(--text-color);
}

.cart-page .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.cart-page .product-quantity .qty {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.cart-page .actions {
    padding: 16px 14px !important;
    background: var(--bg-light, #f9f9f9);
    border-top: 1px solid #eee;
}

.cart-page__update-btn {
    padding: 10px 20px;
    background: var(--text-color);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.cart-page__update-btn:hover {
    background: #1a1d1f;
    color: var(--white);
}

#cart-page-shipping-block.cart-page__shipping-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background: var(--white);
    margin-bottom: 20px;
    overflow: hidden;
}

#cart-page-shipping-block.cart-page__shipping-block > * {
    margin: 0;
    max-width: 100%;
}

#cart-page-shipping-block .woo-better-parent-container {
    margin-top: 0;
    max-width: 100%;
}

#cart-page-shipping-block #custom-postcode-form {
    margin-top: 12px;
}

.cart-page__shipping-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.cart-page__shipping-block .shipping-calculator-form {
    margin-top: 12px;
}

.cart-page__shipping-block .shipping-calculator-form input.input-text {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    width: 140px;
    margin-right: 8px;
}

.cart-page__shipping-block .shipping-calculator-form button {
    padding: 8px 16px;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
}

.cart-page__shipping-block .shipping-calculator-form button:hover {
    background: #1a1d1f;
    color: var(--white);
}

.cart-page__clear-wrap {
    margin: 0;
}

.cart-page__clear-link {
    font-size: 14px;
    color: var(--text-light);
}

.cart-page__clear-link:hover {
    color: var(--primary-color);
}

/* Cart page right column */
.cart-page__continue-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--text-color);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
    background: var(--text-color);
}

.cart-page__continue-btn:hover {
    background: var(--white);
    color: var(--text-color);
}

.cart-page__coupon {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background: var(--bg-light, #f9f9f9);
}

.cart-page__coupon-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.cart-page__coupon-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-page__coupon-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.cart-page__coupon-btn {
    padding: 10px 18px;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.cart-page__coupon-btn:hover {
    background: #1a1d1f;
    color: var(--white);
}

.cart-page .cart-collaterals {
    float: none;
    display: block;
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
    padding-left: 0;
}

.cart-page .wc-proceed-to-checkout {
    display: none;
}

.cart-page .cart_totals {
    float: none;
    width: 100%;
    margin-left: 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background: var(--bg-light, #f9f9f9);
}

/* Override WooCommerce .woocommerce .cart-collaterals .cart_totals { float: right; width: 48%; } */
body.woocommerce-cart .cart-page .cart-collaterals .cart_totals,
.woocommerce .cart-page .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
}

.cart-page .cart_totals h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.cart-page .cart_totals table {
    width: 100%;
    table-layout: auto;
}

.cart-page .cart_totals th {
    padding: 8px 12px 8px 0;
    border: none;
    min-width: 80px;
    white-space: nowrap;
    vertical-align: top;
}

.cart-page .cart_totals td {
    padding: 8px 0;
    border: none;
    min-width: 90px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.cart-page .cart_totals .shipping td {
    max-width: 100%;
}

.cart-page .cart_totals .shipping label {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cart-page .cart_totals .shipping ul,
.cart-page .cart_totals .shipping li,
.cart-page .cart_totals .shipping div {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cart-page .cart_totals .order-total th,
.cart-page .cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.cart-page__checkout-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    background: var(--text-color);
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--border-radius);
    margin-top: 16px;
}

.cart-page__checkout-btn:hover {
    background: #1a1d1f;
    color: var(--white);
}

/* Cart page empty state */
.cart-page--empty {
    text-align: center;
    padding: 48px 20px;
}

.cart-page--empty .cart-page__empty-message {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-light);
}

.cart-page--empty .cart-page__shop-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius);
}

.cart-page--empty .cart-page__shop-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Cart page responsive */
@media (max-width: 992px) {
    .cart-page__layout {
        grid-template-columns: 1fr;
    }

    .cart-page__right {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page .shop_table thead {
        display: none;
    }

    .cart-page .shop_table tbody tr {
        display: block;
        border: 1px solid #eee;
        border-radius: var(--border-radius);
        margin-bottom: 16px;
        padding: 12px;
        background: var(--white);
    }

    .cart-page .shop_table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f1f2f6;
    }

    .cart-page .shop_table tbody td:last-child {
        border-bottom: none;
    }

    .cart-page .shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 12px;
        color: var(--text-light);
        margin-right: 12px;
    }

    .cart-page .product-remove {
        order: -1;
        justify-content: flex-end;
    }

    .cart-page .product-remove::before {
        display: none;
    }

    .cart-page .product-thumbnail {
        flex-wrap: wrap;
    }

    .cart-page .product-thumbnail::before {
        content: attr(data-title);
        width: 100%;
        margin-bottom: 4px;
    }
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

.products-section .woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* More defined shadow */
    transition: all 0.3s ease;
    border: 1px solid #f1f2f6;
    /* Subtle border for definition */
    text-align: center;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    /* Ensure sufficient height */
}

.products-section .woocommerce ul.products li.product a img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    /* Added fluid margin around image */
}

.products-section .woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    /* Highlight border on hover */
}

.products-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    color: #2d3436;
    margin: 15px 0 10px;
    padding: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    height: 42px;
    /* Fixed height for consistent alignment */
    /* Line Clamping */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    /* Vertically center text in the box if less than 2 lines? Hard with clamp. 
       Let's stick to top alignment for text which looks cleaner in grid. */
}

.products-section .woocommerce ul.products li.product p.price {
    color: #f39c12;
    /* Orange Accent */
    font-weight: 800;
    font-size: 18px;
    /* Slightly smaller for balance */
    margin-bottom: 10px;
    /* Tighter spacing */
}

/* Quantity Selector Styling */
.products-section .woocommerce ul.products li.product .quantity {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.products-section .woocommerce ul.products li.product .quantity input.qty {
    border-top: 1px solid #dfe6e9;
    border-bottom: 1px solid #dfe6e9;
    border-left: none;
    border-right: none;
    /* We want a capsule, usually buttons are separate, but if this is a single input: */
    border: 1px solid #dfe6e9;
    border-radius: 20px;
    padding: 6px 12px;
    width: 100px;
    /* Wider click area */
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

/* If there are buttons (+/-), they usually sit outside. 
   Assuming standard WC quantity buttons or just input. 
   If custom JS is used for +/- buttons, we style accordingly. */

.products-section .woocommerce ul.products li.product .button {
    background-color: #f39c12;
    /* Orange Accent */
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    margin-top: auto;
    /* Push to bottom */
    transition: all 0.3s ease;
    width: 100%;
    /* Full width button */
    padding: 10px 0;
    /* Slightly thinner */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.products-section .woocommerce ul.products li.product .button:hover {
    background-color: #e67e22;
    /* Darker Orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* Home products carousel: mesmo estilo de quantidade e botão da loja */
.products-section .product-card.product .amalabs-quantity-wrapper {
    margin-bottom: 12px;
}
.products-section .product-card.product .quantity {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}
.products-section .product-card.product .quantity input.qty {
    border: 1px solid #dfe6e9;
    border-radius: 20px;
    padding: 6px 12px;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}
.products-section .product-card.product .button {
    background-color: #f39c12;
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.3s ease;
    width: 100%;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}
.products-section .product-card.product .button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* Product Short Description Styling */
.product-short-description {
    font-size: 13px !important;
    color: #95a5a6 !important;
    margin-bottom: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    /* Fixed height for exactly 2 lines (1.4 line-height * 13px * 2 approx 37px, rounded to 40 for space) */
    line-height: 1.5;
    /* Relaxed line height for readability */
}

/* Header Search */
.header-search {
    flex-grow: 1;
    margin: 0 40px;
    max-width: 600px;
}

.woocommerce-product-search {
    display: flex;
    position: relative;
    width: 100%;
}

.header-search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 44px;
}

.header-search .search-field::placeholder {
    color: #b2bec3;
}

.header-search .search-field:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(9, 132, 227, 0.1);
}

.header-search button[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    height: 44px;
    width: 44px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-search button[type="submit"]:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Button */
#mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    margin-left: 20px;
}

@media (max-width: 900px) {
    #mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        padding: 15px 30px;
        /* Increased horizontal padding */
    }

    .header-top-row {
        flex-wrap: wrap;
        /* Allow searching to drop */
    }

    .site-branding {
        flex: 1;
        /* Logo takes available left space */
    }

    .header-actions {
        order: 2;
        /* Logo (1), Actions (2) */
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 15px 0 0;
        flex-basis: 100%;
        /* Force new line */
    }

    .header-bottom-row {
        border-top: none;
        /* remove separator on mobile if stacked */
    }

    /* Mobile Navigation */
    .main-navigation {
        display: none;
        width: 100%;
        background: var(--white);
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
    }

    .main-navigation a {
        display: block;
        padding: 15px;
    }

    /* Submenu no mobile: acordeão (clique para abrir) */
    .main-navigation .menu-item-has-children > a::after {
        transition: transform 0.2s ease;
    }
    .main-navigation .menu-item-has-children.is-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    .main-navigation .sub-menu {
        position: static;
        min-width: auto;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.03);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .main-navigation .menu-item-has-children.is-open > .sub-menu {
        max-height: 500px;
    }
    .main-navigation .sub-menu a {
        padding: 12px 15px 12px 28px;
    }

    /* Cart modal: full-width on mobile so it stays visible and aligned */
    .header-cart-wrapper .cart-modal {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: var(--border-radius, 8px) var(--border-radius, 8px) 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }

    .header-cart-wrapper.is-open .cart-modal {
        max-height: 70vh;
    }
}

/* Ajax Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid #dfe6e9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.search-results-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results-dropdown li {
    border-bottom: 1px solid #f1f2f6;
}

.search-results-dropdown li:last-child {
    border-bottom: none;
}

.search-results-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.search-results-dropdown a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.search-thumb {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-title {
    font-size: 14px;
    font-weight: 500;
}

.search-loading,
.search-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Protocolo Customizado Shortcode - Trilha */
.protocolo-customizado {
    margin: 40px 0 50px;
}

.protocolo-customizado__step-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
}

.protocolo-customizado__step {
    display: none;
}

.protocolo-customizado__step[hidden] {
    display: none !important;
}

.protocolo-customizado__step.protocolo-customizado__step--active:not([hidden]) {
    display: block !important;
}

/* Cards da trilha (escolhas) - estilo alinhado à página de pré-login */
.protocolo-customizado__cards {
    display: grid;
    gap: 24px;
    margin-top: 16px;
}

.protocolo-customizado__cards--choice {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 640px) {
    .protocolo-customizado__cards--choice {
        grid-template-columns: 1fr 1fr;
    }
}

.protocolo-customizado__card {
    display: block;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.protocolo-customizado__card:hover:not(:disabled) {
    border-color: #3fadb6;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.protocolo-customizado__card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.protocolo-customizado__card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #3fadb6;
}

.protocolo-customizado__cards--choice .protocolo-customizado__card-image {
    display: block;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.protocolo-customizado__cards--choice .protocolo-customizado__card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botão Voltar - estilo alinhado aos cards */
.protocolo-customizado__back {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #3fadb6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 10px 20px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.protocolo-customizado__back:hover {
    border-color: #3fadb6;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    color: #3fadb6;
}

.protocolo-customizado__hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}

.protocolo-customizado__intro {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-light, #555);
    line-height: 1.5;
}

.protocolo-customizado__intro p:first-child {
    margin-top: 0;
}

.protocolo-customizado__intro p:last-child {
    margin-bottom: 0;
}

/* Seção protocolos prontos */
.protocolo-customizado__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4 colunas para lista de protocolos prontos (especificidade maior que .protocolo-customizado__grid) */
.protocolo-customizado__prontos.protocolo-customizado__grid--products {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .protocolo-customizado__prontos.protocolo-customizado__grid--products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .protocolo-customizado__prontos.protocolo-customizado__grid--products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.protocolo-customizado__product-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 16px;
}

.protocolo-customizado__product-link {
    display: block;
    margin-bottom: 8px;
}

.protocolo-customizado__product-link img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.protocolo-customizado__product-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 8px;
}

.protocolo-customizado__product-card .protocolo-customizado__price {
    margin: 8px 0 12px;
    font-size: 1rem;
}

.protocolo-customizado__empty {
    color: var(--text-light);
    padding: 24px;
}

/* Step Sucesso */
.protocolo-customizado__success {
    padding: 24px 0;
    text-align: center;
}

.protocolo-customizado__success .protocolo-customizado__message--success {
    margin-bottom: 20px;
    display: block;
}

.protocolo-customizado__success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.protocolo-customizado__btn--primary {
    order: 1;
}

.protocolo-customizado__btn--secondary {
    order: 2;
    background-color: #6c757d !important;
}

.protocolo-customizado__btn--secondary:hover {
    background-color: #5a6268 !important;
}

.protocolo-customizado__message--inline {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.protocolo-customizado__message--inline.success {
    background: #d4edda;
    color: #155724;
}

.protocolo-customizado__message--inline.error {
    background: #f8d7da;
    color: #721c24;
}

.protocolo-customizado__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .protocolo-customizado__grid {
        grid-template-columns: 1fr;
    }
}

.protocolo-customizado__box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 24px;
}

.protocolo-customizado__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.protocolo-customizado__field {
    margin-bottom: 16px;
}

.protocolo-customizado__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.protocolo-customizado__search-wrap {
    position: relative;
}

.protocolo-customizado__search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.protocolo-customizado__search-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.protocolo-customizado__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
}

.protocolo-customizado__dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.protocolo-customizado__dropdown li {
    cursor: pointer;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    align-items: center;
    background: var(--white);
    transition: background-color 0.2s;
}

.protocolo-customizado__dropdown li:hover {
    background-color: #f8f9fa;
}

.protocolo-customizado__selected-name {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    margin-top: 4px;
    font-weight: 500;
}

.protocolo-customizado__selected-name .protocolo-customizado__clear {
    font-size: 11px;
    color: var(--text-light);
    margin-left: 4px;
}

.protocolo-customizado__selected-name .protocolo-customizado__clear:hover {
    color: var(--secondary-color);
}

.protocolo-customizado__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 16px;
}

.protocolo-customizado__btn {
    width: 100%;
    font-size: 1.25rem;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.protocolo-customizado__btn:hover:not(:disabled) {
    background-color: #3fadb6 !important;
}

.protocolo-customizado__btn:disabled,
.protocolo-customizado__btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.protocolo-customizado__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.protocolo-customizado__message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.protocolo-customizado__message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.protocolo-customizado-error {
    color: #dc3545;
    padding: 16px;
    background: #f8d7da;
    border-radius: 4px;
}

/* Product Page Layout */
.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
    width: 25%;
    display: inline-block;
}

.woocommerce div.product .product_title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.woocommerce div.product p.price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.woocommerce div.product form.cart .button {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #00a884;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.woocommerce div.product .woocommerce-tabs .panel {
    border-radius: 0;
    box-shadow: none;
    padding: 30px 0;
}

/* Related Products */
.related.products h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

/* UI Improvements */
.section-content-narrow {
    max-width: 700px !important;
    margin: 0 auto;
    line-height: 1.8;
}

.modern-card {
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modern-card.bg-white {
    background-color: #ffffff;
}

.modern-card.bg-gray {
    background-color: #f8f9fa;
}

.hero-text-shadow h1,
.hero-text-shadow p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.cta-grid {
    align-items: center;
}

/* Carousel & Grid Standardized Styles */
.products-carousel {
    padding-bottom: 50px;
    /* Space for pagination */
    position: relative;
    padding-right: 50px;
    /* Space for arrows */
    padding-left: 50px;
    overflow: hidden;
    /* Prevent horizontal scrollbar */
    max-width: 100%;
}

.products-carousel .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Shared Product Card Styles */
.products-carousel .product-card,
.woocommerce ul.products li.product {
    background: #fff;
    /* width: 100%; REMOVED to allow grid columns */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    border-radius: 8px;
    padding: 20px !important;
    /* Enforce padding */
    box-sizing: border-box;
    border: 1px solid #f1f2f6;
    /* Subtle border for grid items */
}

.products-carousel .product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.products-carousel .product-card img,
.woocommerce ul.products li.product a img {
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-right: auto;
    margin: 2px;
}

/* Title Styling */
.products-carousel .product-card h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    margin: 15px 0;
    text-align: center;
    color: var(--text-color);
    line-height: 1.4;
    min-height: 64px;
    /* Ensure 2 lines alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price Styling */
.products-carousel .product-card .price,
.woocommerce ul.products li.product .price {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
    color: #00b894;
    /* Primary/Green */
    text-align: center;
    font-size: 18px;
}

/* Button Styling */
.products-carousel .product-card .button,
.woocommerce ul.products li.product .button {
    background-color: #f39c12;
    /* Orange Accent */
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    margin-top: auto;
    width: 100%;
    display: inline-block;
    padding: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    text-decoration: none;
    line-height: normal;
    text-align: center;
    border: none;
}

.products-carousel .product-card .button:hover,
.woocommerce ul.products li.product .button:hover {
    background-color: #e67e22;
    /* Darker Orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    color: var(--white);
}

/* Pagination & Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--secondary-color);
    background: transparent;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Hide Short Description for alignment */
.products-carousel .product-card .product-short-description,
.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce ul.products li.product p:not(.price) {
    display: none !important;
}

/* Shop Layout (Amway Style Refined) */
.shop-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding-top: 20px;
}

.shop-sidebar-column {
    flex: 0 0 20%;
    /* Slightly narrower sidebar like Amway */
    max-width: 20%;
    padding: 0 15px;
    box-sizing: border-box;
    border-right: 1px solid #eee;
    /* Divider */
}

.shop-products-column {
    flex: 0 0 80%;
    /* Wider product area */
    max-width: 80%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Grid Adjusted for 80% width - 3 columns; unified card structure and style */
.shop-products-column .woocommerce ul.products li.product {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 420px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    margin-bottom: 40px !important;
    text-align: center;
    border: 1px solid #f1f2f6 !important;
    border-radius: var(--border-radius, 8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.shop-products-column .woocommerce ul.products li.product:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Product Images - fixed area for alignment */
.shop-products-column .woocommerce ul.products li.product > a:first-of-type {
    display: block !important;
    height: 200px !important;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: var(--border-radius, 8px);
    margin-bottom: 16px;
}

.shop-products-column .woocommerce ul.products li.product > a:first-of-type img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
    display: block;
}

/* Title Styling - 2 lines max for alignment (overrides global rule) */
.shop-products-column .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    color: var(--text-color, #2d3436);
    font-weight: 600;
    margin: 0 0 12px;
    height: 64px !important;
    min-height: unset !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    text-align: center;
}

/* Short description in shop grid: visibility controlled by Customizer (shop_loop_short_description_visible) */

/* Price - fixed margin for alignment */
.shop-products-column .woocommerce ul.products li.product .price {
    font-size: 16px;
    color: var(--text-color, #2d3436);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Buttons - Amway Style (Dark/Black bar) */
.products-carousel .product-card .button,
.woocommerce ul.products li.product .button {
    background-color: #2d3436;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    padding: 10px 0;
    text-transform: capitalize;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.products-carousel .product-card .button:hover,
.woocommerce ul.products li.product .button:hover {
    background-color: #000;
    box-shadow: none;
    transform: none;
}

/* Shop grid: button sticks to bottom and unified style */
.shop-products-column .woocommerce ul.products li.product .button {
    margin-top: auto !important;
    padding: 12px 16px !important;
    border-radius: var(--border-radius, 8px) !important;
    font-size: 14px !important;
}

.shop-products-column .woocommerce ul.products li.product .button:hover {
    background-color: #1a1d1f !important;
}

/* Sidebar Styling - Minimal */
.shop-sidebar-column .widget {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    border: none;
    border-radius: 0;
}

.shop-sidebar-column .widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    border: none;
    /* No underline */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.shop-sidebar-column ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f9f9f9;
}

.shop-sidebar-column ul li a {
    color: #555;
    font-size: 13px;
}

.shop-sidebar-column ul li a:hover {
    color: #000;
    font-weight: 600;
}

/* Shop sidebar: accordion only on mobile - hide outer header and per-category toggles on desktop */
.shop-sidebar-column .shop-categories-accordion-header {
    display: none;
}

.shop-sidebar-column .category-toggle-wrap {
    display: none !important;
}

@media (max-width: 991px) {
    .shop-sidebar-column .shop-categories-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        margin: 0;
        border: none;
        border-bottom: 1px solid #eee;
        background: transparent;
        cursor: pointer;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #000;
        text-align: left;
    }

    .shop-sidebar-column .shop-categories-accordion-title {
        flex: 1 1 auto;
    }

    .shop-sidebar-column .shop-categories-accordion-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .shop-sidebar-column .shop-categories-accordion-expanded .shop-categories-accordion-icon {
        transform: rotate(180deg);
    }

    .shop-sidebar-column .shop-categories-accordion-collapsed .shop-categories-accordion-content {
        display: none;
    }

    .shop-sidebar-column .product-categories > li.cat-item-has-children .category-toggle-wrap,
    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li.cat-item-has-children .category-toggle-wrap {
        display: inline-flex !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    .shop-sidebar-column,
    .shop-products-column {
        flex: 0 0 100%;
        max-width: 100%;
        border: none;
    }

    .shop-products-column .woocommerce ul.products li.product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Shop sidebar: collapsible categories (Amway style) on mobile */
    .shop-sidebar-column .product-categories {
        list-style: none;
        margin: 0;
        padding: 0;
        border: none;
    }

    .shop-sidebar-column .product-categories > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 0;
        margin: 0;
    }

    .shop-sidebar-column .product-categories > li > a,
    .shop-sidebar-column .product-categories > li .category-toggle-wrap {
        padding: 14px 0;
        font-weight: 700;
        color: #000;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .shop-sidebar-column .product-categories > li > a {
        flex: 1 1 auto;
        text-decoration: none;
    }

    .shop-sidebar-column .product-categories > li > a:hover {
        color: #000;
    }

    .shop-sidebar-column .product-categories .children {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        width: 100%;
        border: none;
    }

    .shop-sidebar-column .product-categories > li.category-expanded .children {
        display: block;
    }

    .shop-sidebar-column .product-categories .category-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        color: #555;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .shop-sidebar-column .product-categories .category-toggle:hover {
        color: #000;
    }

    .shop-sidebar-column .product-categories > li.category-expanded .category-toggle {
        transform: rotate(180deg);
    }

    .shop-sidebar-column .product-categories > li:not(.cat-item-has-children) .category-toggle-wrap {
        display: none;
    }

    .shop-sidebar-column .product-categories .children li {
        padding: 8px 0 8px 15px;
        border-bottom: none;
    }

    .shop-sidebar-column .product-categories .children li a {
        font-weight: 400;
        text-transform: none;
        font-size: 13px;
    }

    /* Shop sidebar: WooCommerce block "Lista de categorias de produtos" - accordion on mobile */
    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list {
        list-style: none;
        margin: 0;
        padding: 0;
        border: none;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #eee;
        padding: 0;
        margin: 0;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > a,
    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li .category-toggle-wrap {
        padding: 14px 0;
        font-weight: 700;
        color: #000;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > a {
        flex: 1 1 auto;
        text-decoration: none;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > a:hover {
        color: #000;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > ul {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0 0 10px 0;
        width: 100%;
        border: none;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li.category-expanded > ul {
        display: block;
    }

    .shop-sidebar-column .wc-block-product-categories .category-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        color: #555;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .shop-sidebar-column .wc-block-product-categories .category-toggle:hover {
        color: #000;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li.category-expanded .category-toggle {
        transform: rotate(180deg);
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li:not(.cat-item-has-children) .category-toggle-wrap {
        display: none;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > ul li {
        padding: 8px 0 8px 15px;
        border-bottom: none;
    }

    .shop-sidebar-column .wc-block-product-categories .wc-block-product-categories-list--depth-0 > li > ul li a {
        font-weight: 400;
        text-transform: none;
        font-size: 13px;
    }

    /* Shop sidebar: search box below categories */
    .shop-sidebar-column .shop-sidebar-search {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .shop-sidebar-column .shop-sidebar-search .woocommerce-product-search {
        display: flex;
        align-items: center;
        width: 100%;
        border: 1px solid #dfe6e9;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .shop-sidebar-column .shop-sidebar-search .search-field {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        border: none;
        font-size: 14px;
    }

    .shop-sidebar-column .shop-sidebar-search .search-field::placeholder {
        color: #999;
    }

    .shop-sidebar-column .shop-sidebar-search button[type="submit"] {
        flex-shrink: 0;
        padding: 12px 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #555;
    }

    .shop-sidebar-column .shop-sidebar-search button[type="submit"]:hover {
        color: #000;
    }
}

@media (max-width: 767px) {
    .shop-products-column .woocommerce ul.products li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .hide-on-desktop {
        display: block;
    }
}

@media (min-width: 992px) {
    .hide-on-desktop {
        display: none;
    }
}

/* Quantity Input (Amway Style: Label + Pill) */
.amalabs-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

/* Fixed margin for quantity in shop grid */
.shop-products-column .woocommerce ul.products li.product .amalabs-quantity-wrapper {
    margin-bottom: 12px;
}

.qty-label {
    margin-right: 10px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    border-radius: 50px;
    /* Pill shape */
    padding: 2px 10px;
    background: #fff;
    width: auto;
}

.qty-selector .qty-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    padding: 0 5px;
    line-height: 1;
}

.qty-selector .quantity {
    margin: 0 !important;
    /* Reset default margin */
}

/* Hide default borders of WC input inside our pill */
.qty-selector input.qty {
    border: none !important;
    background: transparent !important;
    width: 40px !important;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
    font-weight: 600;
    -moz-appearance: textfield;
    /* Hide spinner */
    height: auto !important;
}

.qty-selector input.qty::-webkit-outer-spin-button,
.qty-selector input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Adjust button text size */
.woocommerce ul.products li.product .button {
    font-size: 14px !important;
    padding: 12px 10px !important;
}

/* Enforce 3 Columns Grid (Desktop) */
@media (min-width: 992px) {

    /* Ensure Container is Flex and Handles Gutter (Negative Margin Method) */
    .shop-products-column .woocommerce ul.products,
    .woocommerce-page .shop-products-column ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        /* Pull container by 20px on each side to absorb item margins */
        margin: 0 -20px !important;
        width: auto !important;
        box-sizing: border-box !important;
        justify-content: flex-start;
        gap: 0 !important;
    }

    .shop-products-column .woocommerce ul.products li.product,
    .woocommerce-page .shop-products-column ul.products li.product {
        /* Width = 33.33% of parent. Subtract total horizontal margin (40px) from width */
        flex: 0 0 calc(33.3333% - 40px) !important;
        max-width: calc(33.3333% - 40px) !important;
        width: calc(33.3333% - 40px) !important;

        /* 20px left + 20px right = 40px gutter */
        margin: 0 20px 60px !important;

        padding: 20px !important;
        float: none !important;
        clear: none !important;
        box-sizing: border-box !important;
    }

    /* Remove previous nth-child resets as they are not needed with symmetric margins */
    .shop-products-column .woocommerce ul.products li.product:nth-child(3n),
    .shop-products-column .woocommerce ul.products li.product:nth-child(3n+1) {
        clear: none !important;
        margin-right: 20px !important;
        /* Keep symmetric logic */
    }
}

@media (max-width: 991px) {
    .shop-products-column .woocommerce ul.products li.product {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Mobile: Quantidade em duas linhas (label em cima, - 1 + embaixo) */
    .shop-products-column .woocommerce ul.products li.product .amalabs-quantity-wrapper,
    .woocommerce ul.products li.product .amalabs-quantity-wrapper,
    .products-section .product-card.product .amalabs-quantity-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .shop-products-column .woocommerce ul.products li.product .qty-label,
    .woocommerce ul.products li.product .qty-label,
    .products-section .product-card.product .qty-label {
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .shop-products-column .woocommerce ul.products li.product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Pré-Login (Finalizar Compra) - Page Template
   ========================================================================== */
.pre-login-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.pre-login {
    max-width: 960px;
    margin: 0 auto;
}

.pre-login__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
}

.pre-login__subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 36px;
    font-size: 1rem;
}

.pre-login__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pre-login__card {
    background: var(--bg-light);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pre-login__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.pre-login__card-title {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.pre-login__card-text {
    color: var(--text-color);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pre-login__btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--text-color);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    border-radius: var(--border-radius);
    transition: background 0.2s ease, transform 0.1s ease;
}

.pre-login__btn:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .pre-login__cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cadastro de Cliente (Registro em 2 etapas)
   ========================================================================== */
.register-page {
    padding: 48px 0 72px;
    background: #f7f9fb;
}

.register-page ~ .footer-cards-section {
    display: none;
}

.register-form-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

.register__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
}

.register__subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.register-form__errors {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    list-style: none;
}

.register-form__errors ul {
    margin: 0;
    padding-left: 20px;
}

.register-form__errors li {
    margin-bottom: 6px;
}

.register-form__errors li:last-child {
    margin-bottom: 0;
}

.register-progress {
    position: relative;
    margin: 0 auto 40px;
    padding: 0 40px;
    max-width: 520px;
}

.register-progress::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 64px;
    right: 64px;
    height: 2px;
    background: #dbe4f3;
    z-index: 0;
}

.register-progress::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 64px;
    height: 2px;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
    z-index: 1;
}

.register-progress__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.register-progress__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 8px;
}

.register-progress__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8efff;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.register-progress__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    color: var(--text-light);
    font-weight: 600;
}

.register-progress__item--active .register-progress__num {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

.register-progress__item--active .register-progress__label {
    color: var(--secondary-color);
}

.register-progress__item--done .register-progress__num {
    background: var(--primary-color);
    color: var(--white);
}

.register-progress__item--done .register-progress__label {
    color: var(--primary-color);
}

.register-progress[data-active-step="2"]::after {
    width: calc(100% - 128px);
}

.register-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 36px;
    box-shadow: 0 24px 48px rgba(31, 45, 61, 0.08);
    max-width: 520px;
    margin: 0 auto;
}

.register-form__legend {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 22px;
}

.register-form__section {
    margin-bottom: 28px;
}

.register-form__section + .register-form__section {
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.register-form__section-title {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
    font-weight: 700;
}

.register-form__field {
    margin-bottom: 18px;
}

.register-form__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.register-form__field input[type="text"],
.register-form__field input[type="email"],
.register-form__field input[type="password"],
.register-form__field input[type="number"],
.register-form__field select {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.register-form__field input:focus,
.register-form__field select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.12);
    outline: none;
}

.register-form__field input:invalid:not(:focus):not(:placeholder-shown),
.register-form__field select:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.register-form__field input:invalid:focus,
.register-form__field select:invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.register-form__field--date .register-form__date-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.register-form__field--date input,
.register-form__field--date select {
    flex: 1;
}

.register-form__field--date input:first-child,
.register-form__field--date input:last-child {
    max-width: 92px;
    text-align: center;
}

.register-form__field--date select {
    min-width: 140px;
}

.register-form__field--phone .register-form__phone-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

#reg_phone_area {
    flex: 0 0 72px;
    text-align: center;
}

#reg_phone_number {
    flex: 1;
}

#reg_phone_area {
    text-align: center;
}

#reg_phone_number {
    text-align: left;
    letter-spacing: 0.03em;
}

.register-form__password-wrap {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.register-form__password-wrap input {
    flex: 1;
    padding-right: 48px;
}

.register-form__password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.register-form__password-toggle:hover {
    color: var(--primary-color);
}

.register-form__password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.register-form__password-icon {
    display: block;
}

.register-form__password-icon[hidden] {
    display: none;
}

.register-form__cep-link {
    font-size: 0.85rem;
    margin-left: 14px;
    color: var(--secondary-color);
}

.register-form__cep-link:hover {
    color: var(--primary-color);
}

.register-form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.register-form__field--checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.register-form__terms {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.5;
}

.register-form__actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.register-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 26px rgba(0, 134, 116, 0.18);
}

.register-form__btn--primary {
    background: var(--primary-color);
    color: var(--white) !important;
}

.register-form__btn--primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(9, 132, 227, 0.22);
}

/* Cadastro concluído (sucesso) */
.register-success-page {
    padding-top: 70px;
    padding-bottom: 90px;
    background: #f7f9fb;
}

.register-success {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 24px 48px rgba(31, 45, 61, 0.08);
}

.register-success__title {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.register-success__number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 18px;
}

.register-success__message {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.6;
}

.register-success__btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--primary-color);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 26px rgba(0, 134, 116, 0.18);
}

.register-success__btn:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(9, 132, 227, 0.22);
}

@media (max-width: 767px) {
    .register-page {
        padding: 32px 0 56px;
    }

    .register-progress {
        padding: 0 24px;
        margin-bottom: 32px;
    }

    .register-progress::before {
        left: 48px;
        right: 48px;
    }

    .register-progress::after {
        left: 48px;
    }

    .register-form {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .register-progress[data-active-step="2"]::after {
        width: calc(100% - 96px);
    }

    .register-form__actions {
        justify-content: center;
    }

    .register-form__btn {
        width: 100%;
        box-shadow: 0 14px 24px rgba(0, 134, 116, 0.22);
    }

    .register-success {
        padding: 34px 26px;
    }

    #reg_phone_area {
        flex-basis: 64px;
    }
}

/* ==========================================================================
   Checkout (Finalizar compra)
   ========================================================================== */

/* Título da página de checkout */
body.woocommerce-checkout .entry-header,
body.woocommerce-checkout .entry-title {
    margin-bottom: 1.5rem;
}

/* Container do checkout: largura máxima e margens laterais (título + cupom alinhados ao conteúdo) */
.woocommerce-checkout .site-main,
body.woocommerce-checkout .site-main {
    max-width: 1148px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Checkout em 1 coluna (formulário padrão sem etapas) */
.woocommerce-checkout form.checkout:not(.checkout-amway-form) {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

/* --- Checkout estilo Amway (4 etapas + duas colunas) --- */
.checkout-amway-form {
    max-width: 100%;
    margin: 0;
}

/* Container centralizado (margens laterais já aplicadas em .site-main no checkout) */
.checkout-amway-inner {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-amway-back {
    margin-bottom: 1rem;
}

.checkout-amway-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.checkout-amway-back-link:hover {
    color: var(--secondary-color);
}

.checkout-amway-back-link svg {
    flex-shrink: 0;
}

/* Barra de progresso */
.checkout-amway-progress {
    margin-bottom: 2rem;
}

.checkout-amway-progress__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-amway-progress__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkout-amway-progress__item--active {
    color: var(--secondary-color);
    font-weight: 600;
}

.checkout-amway-progress__item--active .checkout-amway-progress__num {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.checkout-amway-progress__item--done .checkout-amway-progress__num {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.checkout-amway-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: var(--white);
    font-weight: 600;
    font-size: 0.8125rem;
}

.checkout-amway-progress__item--done .checkout-amway-progress__num {
    font-size: 0.875rem;
}

/* Layout duas colunas */
.checkout-amway-wrap {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.checkout-amway-left {
    min-width: 0;
}

.checkout-amway-right {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checkout-summary__title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Etapas: só a ativa visível */
.checkout-step {
    display: none;
}

.checkout-step--active {
    display: block;
}

.checkout-step__title {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.checkout-step-1__content,
.checkout-step-2__content {
    margin-bottom: 1.5rem;
}

/* Mensagem de erro do Captcha no passo 2 (Pagamento) */
.checkout-step-2__captcha-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
}

.checkout-captcha--error {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Passo 1: caixa com endereço do cadastro + botão para expandir formulário */
.checkout-step-1__address-box {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.checkout-step-1__address-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.checkout-step-1__address-text {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-color);
}

.checkout-step-1__address-toggle {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.checkout-step-1__address-toggle:hover {
    background: var(--text-color);
    color: var(--white);
}

.checkout-step-1__address-form--hidden {
    display: none !important;
}

.checkout-step-1__content .woocommerce-shipping-fields,
.checkout-step-1__content .woocommerce-shipping-totals {
    margin-bottom: 1rem;
}

/* Métodos de envio na etapa 1 (podem vir como tr da tabela) */
.checkout-step-1__content .woocommerce-shipping-totals,
.checkout-step-1__content .woocommerce-shipping-totals tr,
.checkout-step-1__content .woocommerce-shipping-totals td {
    display: block;
    width: 100%;
}

.checkout-step-1__content .woocommerce-shipping-totals td {
    padding: 0.5rem 0;
}

/* Garantir que o radio de método de entrega mostre o estado :checked (evita “flag” invisível) */
.checkout-step-1__content .woocommerce-shipping-totals input[type="radio"] {
    accent-color: var(--text-color, #1a1a1a);
}
.checkout-step-1__content .woocommerce-shipping-totals input[type="radio"]:checked {
    accent-color: var(--text-color, #1a1a1a);
}

.checkout-step__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.checkout-step__actions--final {
    align-items: center;
    gap: 1rem;
}

.checkout-amway-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
}

.checkout-amway-btn--continue {
    background: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

.checkout-amway-btn--continue:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--white);
}

.checkout-amway-btn--secondary {
    background: transparent;
    color: var(--text-color);
    border-color: #dee2e6;
}

.checkout-amway-btn--secondary:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.checkout-amway-btn--primary {
    background: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

.checkout-amway-btn--primary:hover {
    background: #1a1a1a;
    color: var(--white);
}

.checkout-amway-form #checkout-step-2 #place_order {
    display: none;
}

.checkout-amway-form .amalabs-shipping-hidden {
    display: none !important;
}

/* Cards da etapa 3 (revisão) */
.checkout-step-3__cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-review-card {
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

.checkout-review-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-review-card__title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--secondary-color);
}

.checkout-review-card__edit {
    display: inline-flex;
    padding: 0.25rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 4px;
}

.checkout-review-card__edit:hover {
    color: var(--secondary-color);
}

.checkout-review-card__body {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.5;
}

.checkout-step-3__totals {
    margin-bottom: 1.5rem;
}

.checkout-step-3__totals #place_order {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 0.5rem;
}

.checkout-step-3__totals #place_order:hover {
    background: #1a1a1a;
    color: var(--white);
}

.checkout-step__details-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-step-3-review-table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.checkout-step-3-review-table th,
.checkout-step-3-review-table td {
    padding: 0.5rem 0.5rem 0.5rem 0;
    vertical-align: top;
}

.checkout-step-3-review-table .order-total th,
.checkout-step-3-review-table .order-total td {
    font-weight: 700;
    border-top: 2px solid #e9ecef;
    padding-top: 0.75rem;
}

/* Bloco de origem oculto (billing e estrutura original) */
.checkout-amway-source--hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.checkout-amway-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Resumo na coluna direita (conteúdo movido de #order_review) */
/* Sidebar: ocultar linha de envio com radios duplicados; seleção só na coluna esquerda (passo Entrega) */
#checkout-amway-summary-inner .woocommerce-checkout-review-order-table tr.shipping {
    display: none;
}

/* Sidebar: linha que exibe a opção de entrega selecionada (atualizada via JS) */
.checkout-summary-shipping-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid #e9ecef;
}
.checkout-summary-shipping-label {
    font-weight: 600;
    color: var(--text-color);
}
.checkout-summary-shipping-value {
    text-align: right;
    color: var(--text-color);
}

#checkout-amway-summary-inner .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

#checkout-amway-summary-inner .woocommerce-checkout-review-order-table th,
#checkout-amway-summary-inner .woocommerce-checkout-review-order-table td {
    padding: 0.4rem 0;
    vertical-align: top;
}

#checkout-amway-summary-inner .order-total th,
#checkout-amway-summary-inner .order-total td {
    font-size: 1.0625rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 2px solid #e9ecef;
}

/* Checkout em 1 coluna: formulário e resumo empilhados (fallback quando não Amway) */
.woocommerce-checkout form.checkout:not(.checkout-amway-form) #customer_details {
    order: 1;
}

.woocommerce-checkout form.checkout:not(.checkout-amway-form) #order_review_heading {
    order: 2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.woocommerce-checkout form.checkout:not(.checkout-amway-form) #order_review {
    order: 3;
}

.woocommerce-checkout form.checkout #customer_details {
    order: 1;
}

.woocommerce-checkout form.checkout #order_review_heading {
    order: 2;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.woocommerce-checkout form.checkout #order_review {
    order: 3;
}

/* Forçar cobrança e entrega em 1 coluna (sobrescrever WooCommerce 2 colunas) */
body.woocommerce-checkout #customer_details {
    display: block;
    width: 100%;
}

body.woocommerce-checkout #customer_details .col2-set {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.woocommerce-checkout #customer_details .col2-set .col-1,
body.woocommerce-checkout #customer_details .col2-set .col-2 {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Checkout Amway: ocultar totalmente a seção Detalhes de cobrança (campos permanecem no DOM para envio) */
.checkout-amway-form .amalabs-billing-accordion {
    display: none !important;
}

/* Acordeão: Detalhes de cobrança recolhido por padrão (checkout não-Amway) */
.woocommerce-checkout .amalabs-billing-accordion {
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: var(--bg-light);
}

.woocommerce-checkout .amalabs-billing-accordion summary {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.woocommerce-checkout .amalabs-billing-accordion summary::-webkit-details-marker {
    display: none;
}

.woocommerce-checkout .amalabs-billing-accordion summary::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.woocommerce-checkout .amalabs-billing-accordion[open] summary::after {
    transform: rotate(180deg);
}

.woocommerce-checkout .amalabs-billing-accordion .woocommerce-billing-fields,
.woocommerce-checkout .amalabs-billing-accordion .woocommerce-billing-fields__field-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

.woocommerce-checkout .amalabs-billing-accordion .amalabs-edit-billing-link {
    padding: 0 1.5rem 1rem;
}

/* Seção Detalhes de cobrança: conteúdo dentro do acordeão */
.woocommerce-checkout .amalabs-billing-accordion .woocommerce-billing-fields {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.woocommerce-checkout .amalabs-billing-accordion .woocommerce-billing-fields h3 {
    display: none;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row {
    margin-bottom: 1rem;
}

/* Formulário checkout: uma coluna (evitar layout em 3 colunas dos form-row) */
.woocommerce-checkout #customer_details .form-row {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-right: 0;
    margin-left: 0;
}

.woocommerce-checkout #customer_details .form-row.form-row-first,
.woocommerce-checkout #customer_details .form-row.form-row-last {
    width: 100%;
}

/* Seção Endereço de entrega: bloco visual distinto */
.woocommerce-checkout .woocommerce-shipping-fields {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.woocommerce-checkout .woocommerce-shipping-fields h3 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    border-bottom: 1px solid #e9ecef;
}

.woocommerce-checkout .woocommerce-shipping-fields .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-shipping-fields .form-row.form-row-first,
.woocommerce-checkout .woocommerce-shipping-fields .form-row.form-row-last {
    width: 100%;
}

/* Resumo do pedido: card */
.woocommerce-checkout #order_review {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1rem;
}

.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table th,
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td {
    padding: 0.5rem 0;
    vertical-align: top;
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 2px solid #e9ecef;
}

/* Feedback visual quando frete/total são atualizados */
.checkout-totals-updated {
    animation: amalabs-checkout-totals-flash 0.6s ease;
}

@keyframes amalabs-checkout-totals-flash {
    0% { background-color: transparent; }
    30% { background-color: rgba(0, 184, 148, 0.08); }
    100% { background-color: transparent; }
}

/* Seção de cobrança somente leitura */
.woocommerce-checkout .woocommerce-billing-fields input[readonly],
.woocommerce-checkout .woocommerce-billing-fields select:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.95;
}

.woocommerce-checkout .amalabs-edit-billing-link {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.woocommerce-checkout .amalabs-edit-billing-link a {
    color: var(--secondary-color);
}

.woocommerce-checkout .amalabs-edit-billing-link a:hover {
    color: var(--primary-color);
}

/* Opções de pagamento: contraste e espaçamento */
.woocommerce-checkout .woocommerce-checkout-payment {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.woocommerce-checkout .woocommerce-checkout-payment .wc_payment_methods {
    margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-checkout-payment .payment_method_pix label,
.woocommerce-checkout .woocommerce-checkout-payment .payment_methods label {
    font-weight: 600;
    cursor: pointer;
}

/* Botão Finalizar pedido */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.woocommerce-checkout #place_order:hover {
    background: var(--secondary-color);
}

.woocommerce-checkout #place_order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Termos e condições: manter visíveis e legíveis (Passo 6) */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-link {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-top: 1rem;
    color: var(--text-color);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    text-decoration: underline;
}

/* Checkout Amway: ocultar cupom em destaque no topo (classe adicionada via JS; cupom vai abaixo do Total) */
body.checkout-amway-coupon-hidden .woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Texto discreto de cupom abaixo do Total do pedido */
.checkout-amway-coupon-link {
    margin: 1rem 0 0 0;
    font-size: 0.8125rem;
    color: var(--text-light);
}
.checkout-amway-coupon-link .checkout-amway-coupon-trigger {
    color: var(--secondary-color);
    text-decoration: none;
}
.checkout-amway-coupon-link .checkout-amway-coupon-trigger:hover {
    text-decoration: underline;
}
.checkout-amway-coupon-box {
    margin-top: 0.75rem;
    display: none; /* oculto por padrão; "Clique aqui." expande */
}
.checkout-amway-coupon-box[aria-hidden="false"] {
    display: block;
}
.checkout-amway-coupon-box .woocommerce-form-coupon-toggle {
    display: none !important;
}
.checkout-amway-coupon-box .woocommerce-form-coupon {
    display: block !important;
}
.checkout-amway-coupon-box .form-row {
    margin-bottom: 0.5rem;
}
.checkout-amway-coupon-box input.input-text {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Cupom e observações: espaçamento (checkout não-Amway) */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-additional-fields .form-row {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .woocommerce-checkout form.checkout:not(.checkout-amway-form) {
        gap: 1.5rem;
    }

    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields {
        padding: 1rem;
    }
}

/* Checkout Amway: responsivo (mobile: fluxo em cima, Total do pedido embaixo) */
@media (max-width: 1024px) {
    .checkout-amway-wrap {
        grid-template-columns: 1fr;
    }

    .checkout-amway-right {
        position: static;
        /* Sem order: -1 para manter ordem do DOM: fluxo (left) em cima, Total (right) embaixo */
    }
}

@media (max-width: 640px) {
    .checkout-amway-progress__label {
        display: none;
    }

    .checkout-amway-progress__list {
        gap: 0.25rem;
    }

    .woocommerce-checkout .site-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Minha Conta - Dashboard (layout, notificações, banners, cards)
   ========================================================================== */
.woocommerce-account .site-main,
.woocommerce-account .amalabs_woocommerce_wrapper_before + .site-main {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.myaccount-dashboard-wrap {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

.myaccount-dashboard-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .myaccount-dashboard-layout {
        grid-template-columns: minmax(220px, 220px) 1fr;
        gap: 2rem;
        align-items: start;
    }
}

.myaccount-nav-wrap {
    width: 100%;
    min-width: 0;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation {
    width: 100%;
    min-width: 100%;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    overflow: hidden;
    width: 100%;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 15px;
    min-height: 44px;
    box-sizing: border-box;
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--primary-color);
}

.myaccount-nav-wrap .woocommerce-MyAccount-navigation .is-active a {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.myaccount-content {
    min-width: 0;
}

/* ==========================================================================
   Minha Conta - Tela de login (não logado)
   ========================================================================== */
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce .entry-title {
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.woocommerce-account .woocommerce-form.woocommerce-form-login {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 24px;
    background: var(--bg-light);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}

.woocommerce-account .woocommerce-form-login .form-row label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9375rem;
}

.woocommerce-account .woocommerce-form-login .form-row input[type="text"],
.woocommerce-account .woocommerce-form-login .form-row input[type="password"] {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    font-size: 0.98rem;
    font-family: inherit;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.woocommerce-account .woocommerce-form-login .form-row input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.12);
    outline: none;
}

.woocommerce-account .woocommerce-form-login .form-row-wide {
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-form-login .form-row.form-row-wide + .form-row {
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit {
    display: inline-block;
    padding: 12px 20px;
    background: var(--text-color);
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__submit:hover {
    background: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.woocommerce-account .woocommerce-form-login .woocommerce-LostPassword {
    margin-top: 1rem;
}

.woocommerce-account .woocommerce-form-login .woocommerce-LostPassword a {
    color: var(--secondary-color);
}

.woocommerce-account .woocommerce-form-login .woocommerce-LostPassword a:hover {
    color: var(--primary-color);
}

.woocommerce-account .woocommerce-form-login .form-row.woocommerce-form-login__remember {
    accent-color: var(--primary-color);
}

.woocommerce-account .woocommerce-form-login .form-row.woocommerce-form-login__remember label {
    font-weight: 500;
    color: var(--text-color);
}

/* Ocultar separador "OU" na página Minha conta (social-sep ou parágrafo após o form) */
.woocommerce-account .woocommerce form.woocommerce-form-login .social-sep,
.woocommerce-account .woocommerce form.woocommerce-form-login + p {
    display: none !important;
}

/* Dashboard: notificações */
.dashboard-notifications {
    background: #e8f4fd;
    border: 1px solid rgba(9, 132, 227, 0.2);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: 0;
}

.dashboard-notifications__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-notifications__title {
    font-size: 1rem;
    margin: 0;
    color: var(--secondary-color);
}

.dashboard-notifications__count {
    font-weight: 400;
    color: var(--text-light);
}

.dashboard-notifications__toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
    padding: 6px 10px;
    min-height: 44px;
    text-decoration: underline;
}

.dashboard-notifications__list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.dashboard-notifications[data-collapsed="true"] .dashboard-notifications__list,
.dashboard-notifications__list[aria-hidden="true"] {
    display: none;
}

.dashboard-notifications__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.dashboard-notifications__icon {
    flex-shrink: 0;
    color: var(--secondary-color);
}

.dashboard-notifications__text,
.dashboard-notifications__link {
    color: var(--text-color);
}

.dashboard-notifications__link:hover {
    color: var(--primary-color);
}

/* Dashboard: carrossel de banners - Largura total, altura proporcional (2000×600) */
.dashboard-banners {
    width: 100%;
    margin: 20px 0 20px 0;
    padding-top: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dashboard-banners-carousel {
    width: 100%;
    position: relative;
    aspect-ratio: 2000 / 600;
    padding: 0;
    margin: 0;
}

.dashboard-banners-carousel .swiper-slide {
    height: 100%;
    width: 100% !important;
}

.dashboard-banners-carousel .swiper-wrapper {
    align-items: stretch;
}

.dashboard-banners__slide {
    position: relative;
    aspect-ratio: 2000 / 600;
    height: 100%;
    background: var(--bg-light);
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.dashboard-banners__image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.dashboard-banners__image {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.dashboard-banners__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
}

.dashboard-banners__title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: #fff;
}

.dashboard-banners__text {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.95;
}

.dashboard-banners__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.dashboard-banners-carousel-pagination {
    position: relative;
    margin-top: 8px;
}

.dashboard-banners-carousel-prev,
.dashboard-banners-carousel-next {
    margin-top: 0;
}

@media (max-width: 640px) {
    /* Em telas estreitas mantém proporção 2000×600 mas garante altura mínima legível */
    .dashboard-banners-carousel {
        aspect-ratio: 2000 / 600;
        min-height: 180px;
    }

    .dashboard-banners__slide {
        aspect-ratio: 2000 / 600;
        min-height: 180px;
    }

    .dashboard-banners__caption {
        padding: 12px 14px;
    }

    .dashboard-banners__title {
        font-size: 1rem;
    }

    .dashboard-banners__text {
        font-size: 0.8rem;
    }
}

/* Dashboard: boas-vindas */
.dashboard-welcome {
    margin-bottom: 1.75rem;
}

.dashboard-welcome__text {
    font-size: 1.25rem;
    margin: 0 0 4px;
    color: var(--text-color);
}

.dashboard-welcome__sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Dashboard: cards */
.dashboard-cards {
    margin-bottom: 1.5rem;
}

.dashboard-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 480px) {
    .dashboard-cards__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .dashboard-cards__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

.myaccount-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.myaccount-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.myaccount-card__inner {
    padding: 28px 24px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.myaccount-card__title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--secondary-color);
}

.myaccount-card__meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 14px;
}

.myaccount-card__link {
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 480px) {
    .myaccount-card__inner {
        padding: 22px 18px;
    }
}

/* Dashboard: últimos pedidos */
.dashboard-recent-orders {
    margin-top: 2rem;
}

.dashboard-recent-orders__title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--secondary-color);
}

.dashboard-recent-orders__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
}

.dashboard-recent-orders__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard-recent-orders__table th,
.dashboard-recent-orders__table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-recent-orders__table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.dashboard-recent-orders__table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-recent-orders__table a {
    color: var(--secondary-color);
}

.dashboard-recent-orders__link-wrap {
    margin-top: 12px;
    margin-bottom: 24px;
}

.dashboard-recent-orders__link-wrap a {
    font-weight: 600;
}

@media (max-width: 640px) {
    .dashboard-recent-orders__table th,
    .dashboard-recent-orders__table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dashboard-recent-orders__table thead {
        display: none;
    }

    .dashboard-recent-orders__table tbody tr {
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 10px 0;
    }

    .dashboard-recent-orders__table tbody tr:last-child {
        border-bottom: none;
    }

    .dashboard-recent-orders__table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 6px 0;
    }

    .dashboard-recent-orders__table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        margin-right: 8px;
    }

    .dashboard-recent-orders__table td:last-child {
        justify-content: flex-end;
    }
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.button--small {
    padding: 6px 12px;
    font-size: 13px;
}