@media (max-width: 768px) {
    .vr {
        display: none;
    }

    .col-md-2 h4 {
        position: static;
        margin-top: 20px;
    }
}

:root {
    --primary: #00c896;
    --bg-light: #f9fafb;
    --card-bg: #ffffff;
    --text: #111827;
    --border: #e5e7eb;
}

body .swal2-container .swal2-title {
    color: #545454 !important;
}

#payment .card-container {
    width: 40%;
    height: 250px;
    perspective: 1000px;
}

#payment .card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

#payment .card-front,
#payment .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    background: linear-gradient(45deg, #323232, #565656);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#payment .card-back {
    transform: rotateY(180deg);
}

#payment .flipped {
    transform: rotateY(180deg);
}

#payment input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.payment-option {
    flex: 1 1 30%;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.payment-option:hover,
.payment-option input:checked+label {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 200, 150, 0.15);
}

.payment-option.active {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 200, 150, 0.15);
}

.payment-option input {
    display: none;
}

.payment-option i,
.payment-option img {
    font-size: 2rem;
    margin-bottom: 10px;
}

.payment-label {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card-logos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-logos img {
    height: 24px;
}

#credit-card-form {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

/* Estiliza o dropdown como um balão */
.contact_field .dropdown-menu {
    z-index: 1001;
    ;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* mesmo tamanho da div pai */
    background-color: #000;
    /* fundo escuro */
    color: #fff;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 10px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.contact_field:hover .dropdown-menu,
.contact_field .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Triângulo estilo “balãozinho” */
.contact_field .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
}

/* Estilo dos links do menu */
.contact_field .dropdown-menu a.dropdown-item {
    color: #fff;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.contact_field .dropdown-menu a.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .contact_field .dropdown-menu {
        width: 100vw;
        left: -15px;
        /* centraliza melhor em telas pequenas */
        border-radius: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   Star Rating Interactive Input (Produto)
   ================================================ */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-pick {
    cursor: pointer;
    color: #ccc;
    transition: color .15s;
    font-size: 1.4rem;
    line-height: 1;
}

.star-pick.hovered,
.star-pick.selected {
    color: #f5a623;
}

.star-rating-label {
    font-size: .875rem;
    font-weight: 500;
    color: #999;
    min-width: 70px;
}

/* ================================================
   Checkout / Finalizar Compra
   ================================================ */
.checkout-wrap {
    padding: 40px 0 60px;
}

/* Progress Steps (Checkout) */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85em;
    color: #bbb;
    font-weight: 500;
}

.checkout-step.active {
    color: #333;
}

.checkout-step.done {
    color: #27ae60;
}

.checkout-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8em;
}

.checkout-step.active .step-num {
    background: #333;
    color: #fff;
}

.checkout-step.done .step-num {
    background: #27ae60;
    color: #fff;
}

.checkout-step-divider {
    width: 40px;
    height: 1px;
    background: #ddd;
    margin: 0 12px;
    align-self: center;
}

/* Checkout Layout */
.checkout-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.checkout-main {
    flex: 1;
    min-width: 0;
}

.checkout-sidebar {
    width: 360px;
    flex-shrink: 0;
}

/* Checkout Sections */
.checkout-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.checkout-section-title i {
    color: #666;
    font-size: .95em;
}

.checkout-section-title .step-badge {
    background: #333;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7em;
    font-weight: 700;
}

/* Customer info (readonly) */
.customer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.customer-info-item .ci-label {
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    margin-bottom: 2px;
}

.customer-info-item .ci-value {
    font-size: .95em;
    font-weight: 600;
    color: #333;
}

/* Checkout form fields */
.checkout-section label {
    font-size: .85em;
    color: #555;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.checkout-section label abbr {
    color: #e74c3c;
    text-decoration: none;
}

.checkout-section .form-control,
.checkout-section .input-text {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: .9em;
    transition: border-color .2s;
    width: 100%;
}

.checkout-section .form-control:focus,
.checkout-section .input-text:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .05);
}

.checkout-section .is-invalid {
    border-color: #e74c3c !important;
}

/* Address tabs */
.address-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.address-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: .85em;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.address-tab-btn.active {
    color: #333;
    border-bottom-color: #333;
}

.address-tab-content {
    display: none;
}

.address-tab-content.active {
    display: block;
}

/* Shipping placeholder */
.shipping-placeholder {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: .9em;
}

.shipping-placeholder i {
    font-size: 1.5em;
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

/* Order Summary Sidebar */
.order-summary-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.order-summary-box h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.order-summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.order-summary-box .shop_table {
    width: 100%;
    border: none;
}

.order-summary-box .shop_table th,
.order-summary-box .shop_table td {
    padding: 8px 0;
    border: none;
    font-size: .85em;
}

.order-summary-box .shop_table thead th {
    font-size: .75em;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.order-summary-box .shop_table tbody td {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.order-summary-box .shop_table tfoot tr {
    border: none;
}

.order-summary-box .shop_table tfoot th,
.order-summary-box .shop_table tfoot td {
    padding: 10px 0;
    font-size: .9em;
}

.order-summary-box .shop_table tfoot .order-total th,
.order-summary-box .shop_table tfoot .order-total td {
    border-top: 2px solid #ddd;
    padding-top: 14px;
    font-size: 1.1em;
    font-weight: 700;
}

.order-summary-box .btn-finalizar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85em;
    font-weight: 600;
}

.order-summary-box .btn-voltar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    font-size: .8em;
    color: #666;
    text-decoration: none;
}

.order-summary-box .btn-voltar:hover {
    color: #333;
}

/* Trust badges (checkout) */
.checkout-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78em;
    color: #666;
}

.checkout-trust-item i {
    color: #27ae60;
    font-size: 1.1em;
}

/* Payment overrides (checkout section) */
.checkout-section .payment-methods {
    gap: 12px;
    margin-bottom: 0;
}

.checkout-section .payment-option {
    border-radius: 8px;
    padding: 0;
}

.checkout-section .payment-label {
    padding: 16px 12px;
}

/* PIX card */
.pix-payment-card {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
}

.pix-payment-card .card-header {
    padding: 14px 20px;
}

.pix-payment-card .card-body {
    padding: 20px;
}

.pix-payment-card .card-body h3 {
    font-size: 1.1em;
}

/* Credit card form (checkout section) */
.checkout-section #credit-card-form {
    margin-top: 16px;
    border-radius: 8px;
}

/* ===== Auth Page (Login / Cadastro) ===== */
.auth-page {
    padding: 40px 0 60px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    height: 100%;
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-card-icon {
    font-size: 1.6em;
    color: var(--primary, #00c896);
    background: rgba(0, 200, 150, .08);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.auth-card-header h3 {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;
}

.auth-card-header p {
    font-size: .85em;
    color: #888;
    margin: 0;
}

/* Auth Fields */
.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: .82em;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.auth-field label small {
    text-transform: none;
    font-weight: 400;
    color: #999;
    letter-spacing: 0;
}

.auth-input-wrap {
    position: relative;
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input-wrap:focus-within {
    border-color: var(--primary, #00c896);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, .1);
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.05em;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary, #00c896);
}

/* Especificidade 0,2,0 — supera input[type] do style.css (0,1,1) e garante padding-left correto para o ícone */
.auth-input-wrap .auth-input {
    display: block;
    width: 100%;
    border: none;
    outline: none;
    padding: 11px 12px 11px 40px;
    font-size: .92em;
    background: transparent;
    color: #333;
    border-radius: 8px;
    box-sizing: border-box;
}

.auth-input-wrap .auth-input::placeholder {
    color: #bbb;
}

/* Quando há toggle de senha à direita, reservar espaço */
.auth-input-wrap:has(.auth-toggle-pw) .auth-input {
    padding-right: 44px;
}

/* Password toggle */
.auth-toggle-pw {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #aaa;
    font-size: 1.05em;
    z-index: 2;
}

.auth-toggle-pw:hover {
    color: #555;
}

/* Auth Buttons */
.auth-card .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    font-size: .95em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 6px;
    transition: background .2s, transform .1s;
}

.auth-card .button:active {
    transform: scale(.98);
}

/* PF/PJ Type Selector */
.auth-type-selector {
    display: flex;
    gap: 10px;
}

.auth-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    font-size: .88em;
    font-weight: 500;
    color: #666;
    transition: all .2s;
    flex: 1;
    justify-content: center;
}

.auth-type-option input[type="radio"] {
    display: none;
}

.auth-type-option.active,
.auth-type-option:has(input:checked) {
    border-color: var(--primary, #00c896);
    background: rgba(0, 200, 150, .05);
    color: #222;
    font-weight: 600;
}

/* Divider */
.auth-divider-col {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.auth-divider-line {
    flex: 1;
    width: 1px;
    background: #e0e0e0;
}

.auth-divider-text {
    background: #f5f5f5;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    font-size: .82em;
    flex-shrink: 0;
    margin: 12px 0;
}

.auth-divider-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
}

.auth-divider-mobile::before,
.auth-divider-mobile::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Trust badges */
.auth-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78em;
    color: #999;
}

.auth-trust-item span[class^="icon-"] {
    font-size: 1.1em;
}

/* Checkout unavailable */
.checkout-unavailable {
    text-align: center;
    padding: 40px 20px;
}

.checkout-unavailable i {
    font-size: 2.5em;
    color: #e74c3c;
    margin-bottom: 12px;
}

.checkout-unavailable p {
    font-size: 1em;
    color: #666;
}

@media (max-width: 991px) {
    .checkout-layout {
        flex-direction: column;
        gap: 24px;
    }

    .checkout-sidebar {
        width: 100%;
    }

    .order-summary-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-steps {
        gap: 0;
    }

    .checkout-step span:not(.step-num) {
        display: none;
    }

    .checkout-step-divider {
        width: 24px;
        margin: 0 6px;
    }

    .customer-info-grid {
        grid-template-columns: 1fr;
    }

    .auth-page {
        padding: 24px 0 40px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-type-selector {
        flex-direction: column;
        gap: 8px;
    }

    .auth-trust {
        gap: 16px;
    }
}

.cart-page-wrap {
    padding: 40px 0 60px;
}

/* Progress Steps */
.cart-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.cart-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85em;
    color: #bbb;
    font-weight: 500;
}

.cart-step.active {
    color: #333;
}

.cart-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8em;
}

.cart-step.active .step-num {
    background: #333;
    color: #fff;
}

.cart-step-divider {
    width: 40px;
    height: 1px;
    background: #ddd;
    margin: 0 12px;
    align-self: center;
}

/* Cart Table */
.cart-table-modern {
    width: 100%;
    border-collapse: collapse;
}

.cart-table-modern thead th {
    font-size: .8em;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    font-weight: 500;
    padding: 0 12px 14px;
    border-bottom: 2px solid #eee;
}

.cart-table-modern thead th:first-child {
    padding-left: 0;
}

.cart-table-modern tbody {
    /* rendered by JS */
}

/* Cart Totals Sidebar */
.cart-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.cart-layout .cart-items-col {
    flex: 1;
    min-width: 0;
}

.cart-layout .cart-summary-col {
    width: 340px;
    flex-shrink: 0;
}

.cart-summary-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.cart-summary-box h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: .9em;
}

.cart-summary-row.total {
    border-top: 2px solid #ddd;
    margin-top: 8px;
    padding-top: 16px;
}

.cart-summary-row.total span:last-child {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}

.cart-summary-box .btn-finalizar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85em;
    font-weight: 600;
}

.cart-summary-box .btn-continuar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    font-size: .8em;
    color: #666;
    text-decoration: none;
}

.cart-summary-box .btn-continuar:hover {
    color: #333;
}

/* Trust */
.cart-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78em;
    color: #666;
}

.cart-trust-item i {
    color: #27ae60;
    font-size: 1.1em;
}

/* Empty state */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-state .empty-icon {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 16px;
}

.cart-empty-state h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.cart-empty-state p {
    color: #999;
    font-size: .95em;
    margin: 0 0 24px;
}

/* Loading */
.cart-loading-state {
    text-align: center;
    padding: 80px 20px;
}

.cart-loading-state .spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cart-loading-state p {
    color: #999;
    font-size: .9em;
    margin: 12px 0 0;
}

@media (max-width: 991px) {
    .cart-layout {
        flex-direction: column;
        gap: 24px;
    }

    .cart-layout .cart-summary-col {
        width: 100%;
    }

    .cart-summary-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page-wrap {
        padding: 20px 0 40px;
    }

    /* Steps: só números */
    .cart-steps {
        gap: 0;
    }

    .cart-step span:not(.step-num) {
        display: none;
    }

    .cart-step-divider {
        width: 24px;
        margin: 0 6px;
    }

    /* ==============================
       Table → Card Layout (Mobile)
       ============================== */
    .cart-table-modern {
        display: block;
        border: none;
    }

    .cart-table-modern thead {
        display: none;
    }

    .cart-table-modern tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Cada item como card (grid) */
    .cart-table-modern tbody tr.cart_item {
        display: grid;
        grid-template-columns: 72px 1fr 30px;
        grid-template-rows: auto;
        gap: 0 12px;
        align-items: center;
        padding: 16px;
        border: 1px solid #eee;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    }

    /* Botão remover → coluna 3, linha 1 */
    .cart-table-modern td.product-remove {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        padding: 0;
        border: none;
        justify-self: end;
        align-self: start;
    }

    .cart-table-modern td.product-remove .remove {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        text-decoration: none;
        color: #999;
        font-size: 1.2em;
        line-height: 1;
        transition: all .2s;
    }

    .cart-table-modern td.product-remove .remove:hover {
        background: #fee;
        color: #e74c3c;
    }

    /* Thumbnail → coluna 1, linha 1 */
    .cart-table-modern td.product-thumbnail {
        grid-column: 1;
        grid-row: 1;
        width: 72px;
        padding: 0;
        border: none;
        align-self: start;
    }

    .cart-table-modern td.product-thumbnail a {
        display: block;
    }

    .cart-table-modern td.product-thumbnail img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Nome → coluna 2, linha 1 */
    .cart-table-modern td.product-name {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        border: none;
        min-width: 0;
        align-self: center;
    }

    .cart-table-modern td.product-name::before {
        display: none !important;
    }

    .cart-table-modern td.product-name a {
        font-size: .9em;
        font-weight: 500;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    /* Campos: Preço, Quantidade, Subtotal — empilhados, largura total */
    .cart-table-modern td.product-price,
    .cart-table-modern td.product-quantity,
    .cart-table-modern td.product-subtotal {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }

    /* Labels via data-title */
    .cart-table-modern td[data-title]::before {
        content: attr(data-title);
        font-size: .85em;
        color: #777;
        font-weight: 500;
    }

    .cart-table-modern td.product-price .woocommerce-Price-amount {
        font-size: .9em;
        color: #555;
    }

    .cart-table-modern td.product-subtotal .woocommerce-Price-amount {
        font-size: 1em;
        font-weight: 600;
        color: #333;
    }

    /* Input quantidade compacto */
    .cart-table-modern .quantity {
        display: inline-flex;
    }

    .cart-table-modern .quantity input {
        width: 56px;
        padding: 6px 4px;
        text-align: center;
        font-size: .9em;
        border: 1px solid #ddd;
        border-radius: 6px;
        -moz-appearance: textfield;
    }

    .cart-table-modern .quantity input::-webkit-inner-spin-button,
    .cart-table-modern .quantity input::-webkit-outer-spin-button {
        opacity: 1;
        height: 28px;
    }

    /* Linha de cupom */
    .cart-table-modern tbody tr:not(.cart_item) {
        display: block;
        grid-column: 1 / -1;
        border: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .cart-table-modern .actions {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
    }

    .cart-table-modern .coupon {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .cart-table-modern .coupon label {
        font-size: .85em;
        font-weight: 500;
        color: #555;
    }

    .cart-table-modern .coupon input[type="text"] {
        width: 100%;
        border-radius: 6px;
    }

    .cart-table-modern .coupon .button {
        width: 100%;
        text-align: center;
    }

    /* Resumo do pedido (mobile) */
    .cart-summary-box {
        padding: 20px;
    }

    .cart-summary-box h3 {
        font-size: 1em;
    }

    .cart-summary-row {
        font-size: .85em;
    }

    .cart-summary-row.total span:last-child {
        font-size: 1.15em;
    }

    .cart-summary-box .btn-finalizar {
        padding: 16px;
        font-size: .9em;
    }

    /* Estado vazio (mobile) */
    .cart-empty-state {
        padding: 40px 16px;
    }

    .cart-empty-state .empty-icon {
        font-size: 3em;
    }

    .cart-empty-state h2 {
        font-size: 1.2em;
    }

    /* Loading (mobile) */
    .cart-loading-state {
        padding: 50px 16px;
    }
}

.product-tabs-custom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #eee;
    gap: 0;
}

.product-tabs-custom li {
    margin: 0;
}

.product-tabs-custom li a {
    display: block;
    padding: 12px 24px;
    font-size: .9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.product-tabs-custom li a:hover {
    color: #333;
}

.product-tabs-custom li.active a {
    color: #333;
    border-bottom-color: currentColor;
}

.product-tab-panel {
    display: none;
    padding: 30px 0 10px;
}

.product-tab-panel.active {
    display: block;
}

.product-tab-panel h3.tab-heading {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table th {
    width: 35%;
    padding: 10px 15px 10px 0;
    font-weight: 500;
    color: #555;
    font-size: .9em;
    vertical-align: top;
}

.spec-table td {
    padding: 10px 0;
    font-size: .9em;
    color: #333;
}

.reviews-summary-box {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.reviews-score {
    text-align: center;
    min-width: 100px;
    padding-right: 30px;
    border-right: 1px solid #ddd;
}

.reviews-score .score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.reviews-score .score-label {
    font-size: .8rem;
    color: #999;
    margin-top: 4px;
}

.reviews-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8em;
}

.reviews-bar-row .bar-label {
    min-width: 12px;
    text-align: right;
    color: #666;
    font-weight: 500;
}

.reviews-bar-row .bar-star {
    color: #f5a623;
    font-size: .7em;
}

.reviews-bar-row .bar-track {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.reviews-bar-row .bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
    transition: width .3s;
}

.reviews-bar-row .bar-count {
    min-width: 20px;
    color: #999;
    font-size: .85em;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #888;
    font-size: .9em;
    flex-shrink: 0;
}

.review-meta-info .review-author {
    font-weight: 600;
    font-size: .95em;
}

.review-meta-info .review-date {
    font-size: .8em;
    color: #999;
}

.review-body {
    margin-left: 52px;
}

.review-body .review-title {
    font-weight: 600;
    margin: 0 0 4px;
    font-size: .95em;
}

.review-body .review-text {
    color: #555;
    font-size: .9em;
    line-height: 1.6;
    margin: 0;
}

@media (max-width:600px) {
    .product-tabs-custom li a {
        padding: 10px 14px;
        font-size: .8em;
    }

    .reviews-summary-box {
        flex-direction: column;
        gap: 15px;
    }

    .reviews-score {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 0 0 15px;
    }

    .review-body {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* =========================================
   MINI-CART (Header Dropdown) — Desktop + Mobile
   ========================================= */

/* Dropdown container */
.sidebar_cart {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    min-width: 320px;
}

.sidebar_cart .widget_shopping_cart_content {
    padding: 12px 0 0;
}

/* Cart item list */
.sidebar_cart .cart_list.product_list_widget {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 16px;
    margin: 0;
    list-style: none;
}

.sidebar_cart .cart_list.product_list_widget::-webkit-scrollbar {
    width: 4px;
}

.sidebar_cart .cart_list.product_list_widget::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Individual cart item */
.sidebar_cart .mini_cart_item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 28px 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar_cart .mini_cart_item:last-child {
    border-bottom: none;
}

/* Product thumbnail */
.sidebar_cart .minicart-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

/* Product link */
.sidebar_cart .minicart-product-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #333;
    text-decoration: none;
}

.sidebar_cart .minicart-product-link:hover {
    color: var(--primary, #00c896);
}

/* Quantity & price */
.sidebar_cart .mini_cart_item .quantity {
    display: block;
    width: 100%;
    padding-left: 66px;
    font-size: 12.5px;
    color: #777;
    margin-top: -4px;
}

.sidebar_cart .mini_cart_item .quantity .amount {
    font-weight: 600;
    color: #333;
}

/* Remove button */
.sidebar_cart .mini_cart_item > a.remove {
    position: absolute;
    top: 12px;
    right: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #999;
    background: #f5f5f5;
    border-radius: 50%;
    text-decoration: none;
    transition: all .2s;
}

.sidebar_cart .mini_cart_item > a.remove:hover {
    background: #e74c3c;
    color: #fff;
}

/* Subtotal section */
.sidebar_cart .total {
    margin: 0;
    padding: 12px 16px;
    border-top: 2px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar_cart .total .amount {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

/* Mini-cart buttons — corrigir overflow do template */
.sidebar_cart .buttons {
    padding: 0 16px 16px;
    overflow: hidden;
}

.sidebar_cart .buttons a.button {
    display: inline-block;
    max-width: none;
    white-space: nowrap;
}

.sidebar_cart .buttons a.button.checkout {
    float: right;
}

/* Empty cart state */
.sidebar_cart .empty {
    text-align: center;
    padding: 30px 16px;
    color: #999;
}

.sidebar_cart .empty small {
    font-size: 13px;
}

/* Badge counter */
.cart_item {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    border-radius: 50%;
}

/* Desktop dropdown position override */
.top_panel_middle .sidebar_cart {
    border: none;
}

/* --- Mobile-specific cart adjustments --- */
.header_mobile .sidebar_cart {
    min-width: 280px;
    width: 300px !important;
    padding: 0 !important;
    border-radius: 6px;
    background: #fff !important;
    border: 1px solid #eee;
}

.header_mobile .sidebar_cart .cart_list.product_list_widget {
    max-height: 250px;
}

.header_mobile .sidebar_cart .minicart-thumb {
    width: 46px;
    height: 46px;
}

.header_mobile .sidebar_cart .minicart-product-link {
    font-size: 12px;
}

.header_mobile .sidebar_cart .mini_cart_item .quantity {
    padding-left: 56px;
    font-size: 12px;
}

.header_mobile .sidebar_cart .total {
    font-size: 13px;
}

.header_mobile .sidebar_cart .buttons {
    padding: 0 12px 12px;
}

.header_mobile .sidebar_cart .buttons a.button {
    font-size: 12px;
    padding: 8px 10px;
    max-width: none;
}

/* Fix mobile cart color inside dark side_wrap */
.header_mobile .sidebar_cart,
.header_mobile .sidebar_cart * {
    color: #333;
}

.header_mobile .sidebar_cart .mini_cart_item > a.remove {
    color: #999;
}

.header_mobile .sidebar_cart .mini_cart_item > a.remove:hover {
    color: #fff;
}
}
/* ===== Account Page (Minha Conta) ===== */
/* ============================================
   MINHA CONTA — Account Page Styles
   ============================================ */

.account-page {
    padding: 40px 0 60px;
}

/* ---------- Sidebar ---------- */
.account-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    background: linear-gradient(135deg, var(--primary, #00c896) 0%, #00a87a 100%);
    color: #fff;
}

.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.3);
}

.account-user-info {
    min-width: 0;
}

.account-user-info strong {
    display: block;
    font-size: .92em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-user-info small {
    font-size: .78em;
    opacity: .85;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Navigation ---------- */
.account-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: .88em;
    color: #333 !important;
    text-decoration: none !important;
    transition: all .2s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f8f8f8;
}

.account-nav-item:last-child {
    border-bottom: none;
}

.account-nav-item span[class^="icon-"] {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
    color: #aaa;
    transition: color .2s;
}

.account-nav-item:hover {
    background: #f9fafb;
    color: #222;
}

.account-nav-item:hover span[class^="icon-"] {
    color: var(--primary, #00c896);
}

.account-nav-item.active {
    background: rgba(0, 200, 150, .06);
    color: var(--primary, #00c896);
    font-weight: 600;
    border-left-color: var(--primary, #00c896);
}

.account-nav-item.active span[class^="icon-"] {
    color: var(--primary, #00c896);
}

.account-nav-logout:hover {
    color: #e74c3c;
}

.account-nav-logout:hover span[class^="icon-"] {
    color: #e74c3c;
}

/* ---------- Section Header ---------- */
.account-section-header {
    margin-bottom: 24px;
}

.account-section-header h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-section-header h2 span[class^="icon-"] {
    color: var(--primary, #00c896);
    font-size: .85em;
}

.account-section-header p {
    color: #888;
    font-size: .88em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.account-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    transition: box-shadow .2s;
}

.account-card-flush {
    padding: 0;
    overflow: hidden;
}

.account-card-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.account-card-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

/* ---------- Info Grid (Perfil) ---------- */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid var(--primary, #00c896);
    transition: all .2s ease;
}

.account-info-item:hover {
    background: #f0faf6;
    box-shadow: 0 2px 8px rgba(0, 200, 150, .08);
}

.account-info-label {
    font-size: .72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #999;
}

.account-info-value {
    font-size: .95em;
    color: #333;
    font-weight: 500;
}

/* ---------- Form Actions ---------- */
.account-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.account-form-actions .button.alt {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
}

.account-form-actions .button.alt:hover {
    background: #eee;
}

/* ---------- Table (Pedidos) ---------- */
.account-table {
    width: 100%;
    border-collapse: collapse;
}

.account-table thead th {
    background: #f9fafb;
    padding: 14px 20px;
    font-size: .78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #777;
    border-bottom: 2px solid #eee;
    text-align: left;
}

.account-table tbody td {
    padding: 16px 20px;
    font-size: .9em;
    color: #444;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: middle;
}

.account-table tbody tr:last-child td {
    border-bottom: none;
}

.account-table tbody tr {
    transition: background .15s ease;
}

.account-table tbody tr:hover {
    background: #f7fdfb;
}

/* ---------- Badges ---------- */
.account-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78em;
    font-weight: 600;
    letter-spacing: .3px;
}

.badge-success { background: #e8f8f0; color: #27ae60; }
.badge-warning { background: #fef9e7; color: #f39c12; }
.badge-info    { background: #eaf4fe; color: #3498db; }
.badge-primary { background: #e8f8f0; color: var(--primary, #00c896); }
.badge-danger  { background: #fdecea; color: #e74c3c; }
.badge-secondary { background: #f0f0f0; color: #888; }

/* ---------- Address Items ---------- */
.account-address-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f2f2f2;
    transition: background .15s ease;
}

.account-address-item:last-child {
    border-bottom: none;
}

.account-address-item:hover {
    background: #fafcfb;
}

.account-address-content {
    display: flex;
    gap: 14px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}

.account-address-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 200, 150, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #00c896);
    font-size: .95em;
    flex-shrink: 0;
    margin-top: 2px;
}

.account-address-details {
    flex: 1;
    min-width: 0;
}

.account-address-line {
    margin: 0 0 2px;
    font-size: .9em;
    color: #444;
    line-height: 1.5;
}

.account-address-cep {
    margin: 4px 0 0;
    font-size: .82em;
    color: #888;
}

.account-address-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.account-address-actions button {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all .2s;
}

.account-address-actions .btn-edit-address:hover {
    color: var(--primary, #00c896);
    border-color: var(--primary, #00c896);
    background: rgba(0, 200, 150, .05);
}

.account-address-actions .btn-remove-address:hover {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, .05);
}

/* ---------- Add Button ---------- */
.account-btn-add {
    margin-top: 20px;
}

/* ---------- Security Tips (Password) ---------- */
.account-security-tips {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.account-security-tips-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 200, 150, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #00c896);
    font-size: 1.3em;
    margin: 0 auto 14px;
}

.account-security-tips h6 {
    font-size: .9em;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

.account-security-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.account-security-tips ul li {
    font-size: .84em;
    color: #666;
    padding: 7px 0 7px 22px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.account-security-tips ul li:last-child {
    border-bottom: none;
}

.account-security-tips ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary, #00c896);
    font-weight: 700;
}

/* ---------- Empty State ---------- */
.account-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.account-empty > span[class^="icon-"] {
    font-size: 2.2em;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto 18px;
}

.account-empty h4 {
    font-size: 1.15em;
    font-weight: 600;
    color: #444;
    margin: 0 0 8px;
}

.account-empty p {
    font-size: .9em;
    color: #999;
    margin: 0 0 24px;
}

/* ---------- Form Toggle Animation ---------- */
.account-fade-in {
    animation: accountFadeSlideIn .3s ease;
}

@keyframes accountFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 991px) {
    .account-page {
        padding: 20px 0 40px;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        gap: 0;
    }

    .account-nav-item {
        white-space: nowrap;
        border-left: none;
        padding: 12px 16px;
        font-size: .82em;
        border-bottom: 3px solid transparent;
    }

    .account-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary, #00c896);
    }

    .account-user-card {
        display: none;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-security-tips {
        margin-top: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .account-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .account-table thead {
        display: none;
    }

    .account-table tbody tr {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .account-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
    }

    .account-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: .8em;
        text-transform: uppercase;
        color: #999;
    }

    .account-address-item {
        flex-direction: column;
        padding: 16px;
    }

    .account-address-actions {
        align-self: flex-end;
    }

    .account-address-icon {
        display: none;
    }

    .account-form-actions {
        flex-direction: column;
    }

    .account-form-actions .button {
        width: 100%;
        text-align: center;
    }

    .account-info-item {
        padding: 12px 14px;
    }
}

/* =============================================
   Galeria de Produto — Miniaturas Quadradas
   Força todas as thumbnails (FlexSlider) a
   manterem aspect-ratio 1:1 com object-fit
   cover, independente da proporção original
   da imagem (retangular ou quadrada).
   ============================================= */

/* Thumbnail container: quadrado com padding para espaçamento */
.woocommerce-product-gallery .flex-control-thumbs li {
    padding: 4px;
    box-sizing: border-box;
}

/* Thumbnail imagem: forçar quadrado */
.woocommerce-product-gallery .flex-control-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

/* Thumbnail ativa e hover: borda destaque */
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
    opacity: 1;
    border-color: var(--primary, #00c896);
}

/* Imagem principal do produto: quadrada e centralizada */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
}
