/**
 * BUZZ Theme - WooCommerce CSS
 *
 * Estilos para paginas do WooCommerce.
 *
 * @package Buzz
 * @version 1.0.0
 */

/* ==========================================================================
   1. Wrapper WooCommerce
   ========================================================================== */

.buzz-wc-content {
    padding: var(--buzz-space-md) 0;
}

/* ==========================================================================
   2. Loja / Categoria - Layout com sidebar
   ========================================================================== */

/* Layout loja: sidebar + produtos */
.buzz-shop-page .buzz-wc-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--buzz-space-lg);
}

/* Botao abrir filtros mobile */
.buzz-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--buzz-gray-300);
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    color: var(--buzz-gray-700);
    background: var(--buzz-white);
    cursor: pointer;
    transition: all var(--buzz-transition);
    grid-column: 1 / -1;
}

.buzz-filter-toggle:hover {
    border-color: var(--buzz-primary);
    color: var(--buzz-primary);
}

/* Sidebar filtros - mobile: offcanvas */
.buzz-shop-filters {
    display: none;
}

.buzz-shop-filters.is-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    z-index: 10000;
    background: var(--buzz-white);
    overflow-y: auto;
    padding: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    animation: buzz-slide-in 0.3s ease;
}

@keyframes buzz-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Overlay mobile */
.buzz-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    animation: buzz-fade-in 0.3s ease;
}

@keyframes buzz-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header dos filtros */
.buzz-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--buzz-gray-200);
    background: var(--buzz-gray-50);
    position: sticky;
    top: 0;
    z-index: 1;
}

.buzz-filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--buzz-font-heading);
    font-size: 1rem;
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    margin: 0;
}

.buzz-filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--buzz-gray-500);
    cursor: pointer;
    border-radius: var(--buzz-radius-full);
    transition: all var(--buzz-transition);
}

.buzz-filters-close:hover {
    background: var(--buzz-gray-100);
    color: var(--buzz-gray-800);
}

/* Grupos de filtros */
.buzz-filter-group {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--buzz-gray-100);
}

.buzz-filter-group__title {
    font-family: var(--buzz-font-heading);
    font-size: 0.8125rem;
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
}

/* Lista de filtros */
.buzz-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buzz-filter-list li {
    margin-bottom: 2px;
}

.buzz-filter-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--buzz-gray-600);
    text-decoration: none;
    border-radius: var(--buzz-radius-sm);
    transition: all var(--buzz-transition);
    line-height: 1.4;
}

.buzz-filter-link:hover {
    background: var(--buzz-gray-50);
    color: var(--buzz-primary);
}

.buzz-filter-link.is-active {
    color: var(--buzz-primary);
    font-weight: var(--buzz-font-weight-semibold);
    background: rgba(37, 99, 235, 0.05);
}

/* Radio visual */
.buzz-filter-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid var(--buzz-gray-300);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--buzz-transition);
}

.buzz-filter-radio.is-checked {
    border-color: var(--buzz-primary);
    background: var(--buzz-primary);
    box-shadow: inset 0 0 0 3px var(--buzz-white);
}

.buzz-filter-link:hover .buzz-filter-radio {
    border-color: var(--buzz-primary);
}

/* Contagem da categoria */
.buzz-filter-count {
    margin-left: auto;
    font-size: 0.6875rem;
    color: var(--buzz-gray-400);
    font-weight: var(--buzz-font-weight-normal);
}

/* Esconder ordenacao e contagem padrao do WooCommerce */
.buzz-shop-page .woocommerce-ordering,
.buzz-shop-page .woocommerce-result-count {
    display: none !important;
}

/* ==========================================================================
   Titulo da pagina - ajustado para foco nos produtos
   ========================================================================== */
.woocommerce-products-header__title.page-title {
    font-family: var(--buzz-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--buzz-titles);
    margin: 0 0 var(--buzz-space-xs) 0;
    padding: 0;
    line-height: 1.3;
}

.term-description,
.woocommerce-products-header p {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-500);
    margin-bottom: var(--buzz-space-md);
    line-height: var(--buzz-line-height-normal);
}

/* ==========================================================================
   Toolbar: contagem + ordenacao (estilo marketplace)
   ========================================================================== */
.buzz-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--buzz-space-md);
    padding: var(--buzz-space-sm) 0;
    margin-bottom: var(--buzz-space-md);
    border-bottom: 1px solid var(--buzz-gray-200);
    flex-wrap: wrap;
}

.buzz-shop-toolbar__count {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-500);
    white-space: nowrap;
}

.buzz-shop-toolbar__sort {
    position: relative;
    display: flex;
    align-items: center;
}

.buzz-shop-toolbar__sort-label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--buzz-gray-400);
    z-index: 1;
    display: flex;
}

.buzz-shop-toolbar__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--buzz-white);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    padding: 8px 36px 8px 14px;
    font-size: var(--buzz-font-size-sm);
    font-family: var(--buzz-font-body);
    color: var(--buzz-text);
    cursor: pointer;
    min-width: 180px;
    transition: border-color var(--buzz-transition), box-shadow var(--buzz-transition);
    line-height: 1.4;
}

.buzz-shop-toolbar__select:hover {
    border-color: var(--buzz-gray-300);
}

.buzz-shop-toolbar__select:focus {
    outline: none;
    border-color: var(--buzz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile: toolbar empilhada */
@media (max-width: 479px) {
    .buzz-shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--buzz-space-sm);
    }

    .buzz-shop-toolbar__count {
        text-align: center;
    }

    .buzz-shop-toolbar__select {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   2.5 Price Slider - Estilo marketplace
   ========================================================================== */
.buzz-price-slider {
    padding: 0 var(--buzz-space-xs);
}

/* Valores min/max exibidos */
.buzz-price-slider__values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--buzz-space-sm);
    margin-bottom: var(--buzz-space-md);
}

.buzz-price-slider__value {
    display: inline-flex;
    align-items: center;
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    color: var(--buzz-text);
    background: var(--buzz-gray-50);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-sm);
    padding: 4px 10px;
    min-width: 72px;
    justify-content: center;
}

.buzz-price-slider__separator {
    color: var(--buzz-gray-400);
    font-size: var(--buzz-font-size-sm);
}

/* Track container - posiciona inputs sobrepostos */
.buzz-price-slider__track-wrap {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    margin-bottom: var(--buzz-space-sm);
}

/* Track base (fundo cinza) */
.buzz-price-slider__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--buzz-gray-200);
    border-radius: 2px;
    pointer-events: none;
}

/* Range preenchido (cor primaria) */
.buzz-price-slider__range {
    position: absolute;
    height: 100%;
    background: var(--buzz-primary);
    border-radius: 2px;
    transition: left 0.05s, right 0.05s;
}

/* Inputs range - sobrepostos e transparentes */
.buzz-price-slider__input {
    position: absolute;
    left: 0;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    z-index: 2;
}

.buzz-price-slider__input--max {
    z-index: 3;
}

/* Thumb - WebKit (Chrome, Safari, Edge) */
.buzz-price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--buzz-white);
    border: 2px solid var(--buzz-primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buzz-price-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.buzz-price-slider__input::-webkit-slider-thumb:active {
    transform: scale(1.2);
    background: var(--buzz-primary);
    border-color: var(--buzz-primary);
}

/* Thumb - Firefox */
.buzz-price-slider__input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--buzz-white);
    border: 2px solid var(--buzz-primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.buzz-price-slider__input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Track transparente nos browsers */
.buzz-price-slider__input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.buzz-price-slider__input::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

/* Botoes de acao */
.buzz-price-slider__actions {
    display: flex;
    align-items: center;
    gap: var(--buzz-space-sm);
}

.buzz-price-slider__apply {
    flex: 1;
    padding: 8px 16px;
    background: var(--buzz-primary);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    font-family: var(--buzz-font-body);
    cursor: pointer;
    transition: background var(--buzz-transition);
    text-align: center;
}

.buzz-price-slider__apply:hover {
    background: var(--buzz-primary-hover);
}

.buzz-price-slider__clear {
    font-size: var(--buzz-font-size-xs);
    color: var(--buzz-gray-500);
    text-decoration: underline;
    white-space: nowrap;
    transition: color var(--buzz-transition);
}

.buzz-price-slider__clear:hover {
    color: var(--buzz-error);
}

/* ==========================================================================
   3. Produto Loop (listagem)
   ========================================================================== */

ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--buzz-space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products li.product {
    background: var(--buzz-white);
    border-radius: var(--buzz-radius-md);
    border: 1px solid var(--buzz-gray-200);
    overflow: hidden;
    transition: box-shadow var(--buzz-transition);
}

ul.products li.product:hover {
    box-shadow: var(--buzz-shadow-md);
}

ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    padding: var(--buzz-space-sm) var(--buzz-space-sm) 0;
    color: var(--buzz-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.products li.product .price {
    padding: var(--buzz-space-xs) var(--buzz-space-sm);
    font-size: var(--buzz-font-size-base);
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
}

ul.products li.product .price del {
    font-size: var(--buzz-font-size-xs);
    color: var(--buzz-gray-400);
    font-weight: var(--buzz-font-weight-normal);
}

ul.products li.product .price ins {
    text-decoration: none;
}

ul.products li.product .buzz-installment {
    padding: 0 var(--buzz-space-sm) var(--buzz-space-sm);
}

ul.products li.product .button,
ul.products li.product .add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: calc(100% - var(--buzz-space-md));
    margin: 0 var(--buzz-space-sm) var(--buzz-space-sm);
    padding: 0.5rem 0.75rem;
    text-align: center;
    background: var(--buzz-buttons);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-xs);
    font-weight: var(--buzz-font-weight-semibold);
    cursor: pointer;
    transition: background var(--buzz-transition);
    height: 38px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    box-sizing: border-box;
}

ul.products li.product .button:hover {
    background: var(--buzz-buttons-hover);
}

/* Sale badge */
ul.products li.product .onsale {
    position: absolute;
    top: var(--buzz-space-sm);
    left: var(--buzz-space-sm);
    background: var(--buzz-error);
    color: var(--buzz-white);
    font-size: var(--buzz-font-size-xs);
    font-weight: var(--buzz-font-weight-bold);
    padding: 2px 8px;
    border-radius: var(--buzz-radius-sm);
    z-index: 1;
}

ul.products li.product {
    position: relative;
}

/* ==========================================================================
   4. Produto Single - Layout profissional marketplace
   ========================================================================== */

.buzz-product-page .product {
    background: var(--buzz-white);
    border-radius: var(--buzz-radius-lg);
    padding: var(--buzz-space-md);
    box-shadow: var(--buzz-shadow-sm);
    position: relative;
}

/* Badge de oferta no single - posicionar fora do grid flow */
.buzz-product-page .product > .onsale {
    position: absolute;
    top: var(--buzz-space-md);
    left: var(--buzz-space-md);
    z-index: 10;
    background: var(--buzz-error);
    color: var(--buzz-white);
    font-size: var(--buzz-font-size-xs);
    font-weight: var(--buzz-font-weight-bold);
    padding: 2px 8px;
    border-radius: var(--buzz-radius-sm);
}

/* Galeria - zoom ao passar mouse */
.woocommerce-product-gallery {
    margin-bottom: var(--buzz-space-lg);
    overflow: hidden;
    border-radius: var(--buzz-radius-md);
}

.woocommerce-product-gallery__wrapper {
    overflow: hidden;
    border-radius: var(--buzz-radius-md);
}

.woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: var(--buzz-radius-md);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    border-radius: var(--buzz-radius-md);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
}

.woocommerce-product-gallery__image:hover img {
    transform: scale(1.15);
}

/* Trigger de zoom (lupa) */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    position: absolute;
    top: var(--buzz-space-sm);
    left: var(--buzz-space-sm);
    z-index: 5;
    width: 36px;
    height: 36px;
    background: var(--buzz-white);
    border-radius: var(--buzz-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--buzz-shadow-md);
    font-size: 0;
    text-decoration: none;
    transition: background var(--buzz-transition);
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    background: var(--buzz-gray-50);
}

.woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cline x1='11' x2='11' y1='8' y2='14'/%3E%3Cline x1='8' x2='14' y1='11' y2='11'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Thumbnails da galeria */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: var(--buzz-space-xs);
    margin-top: var(--buzz-space-sm);
    list-style: none;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: var(--buzz-radius-md);
    overflow: hidden;
    border: 2px solid var(--buzz-gray-200);
    cursor: pointer;
    transition: border-color var(--buzz-transition);
}

.woocommerce-product-gallery .flex-control-thumbs li:hover,
.woocommerce-product-gallery .flex-control-thumbs li .flex-active {
    border-color: var(--buzz-primary);
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Summary - Informacoes do produto */
.product .product_title {
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-xl);
    font-weight: var(--buzz-font-weight-bold);
    margin-bottom: var(--buzz-space-sm);
    line-height: 1.3;
}

.product .price {
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-2xl);
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    margin-bottom: var(--buzz-space-xs);
}

.product .price del {
    font-size: var(--buzz-font-size-base);
    color: var(--buzz-gray-400);
    font-weight: var(--buzz-font-weight-normal);
}

.product .price ins {
    text-decoration: none;
}

/* Parcelamento */
.buzz-product-installment {
    margin-bottom: var(--buzz-space-md);
    padding: var(--buzz-space-sm) var(--buzz-space-md);
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    color: #065f46;
    font-weight: var(--buzz-font-weight-semibold);
}

/* Descricao curta */
.product .woocommerce-product-details__short-description {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-600);
    line-height: var(--buzz-line-height-relaxed);
    margin-bottom: var(--buzz-space-md);
    padding-bottom: var(--buzz-space-md);
    border-bottom: 1px solid var(--buzz-gray-100);
}

/* Simulacao de frete - card harmonioso */
.product .woocommerce-shipping-calculator,
.product .cfwc-shipping-simulator,
.product [class*="shipping-simulator"],
.product [class*="frete"],
.product [class*="shipping-calc"],
.product .calculo-frete,
.product .simulacao-frete {
    background: var(--buzz-gray-50);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    padding: var(--buzz-space-md);
    margin-bottom: var(--buzz-space-md);
}

.product .woocommerce-shipping-calculator h4,
.product [class*="shipping-simulator"] h4,
.product [class*="shipping-simulator"] label,
.product [class*="frete"] h4,
.product [class*="frete"] label,
.product .calculo-frete h4,
.product .simulacao-frete h4 {
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    color: var(--buzz-titles);
    margin-bottom: var(--buzz-space-sm);
}

.product [class*="shipping-simulator"] input[type="text"],
.product [class*="frete"] input[type="text"],
.product .calculo-frete input[type="text"],
.product .simulacao-frete input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--buzz-gray-300);
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    transition: border-color var(--buzz-transition);
}

.product [class*="shipping-simulator"] input[type="text"]:focus,
.product [class*="frete"] input[type="text"]:focus {
    border-color: var(--buzz-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.product [class*="shipping-simulator"] button,
.product [class*="shipping-simulator"] input[type="submit"],
.product [class*="frete"] button,
.product [class*="frete"] input[type="submit"],
.product .calculo-frete button,
.product .simulacao-frete button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--buzz-gray-700);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    cursor: pointer;
    transition: background var(--buzz-transition);
    margin-top: var(--buzz-space-sm);
}

.product [class*="shipping-simulator"] button:hover,
.product [class*="frete"] button:hover,
.product .calculo-frete button:hover,
.product .simulacao-frete button:hover {
    background: var(--buzz-gray-800);
}

/* Quantidade + Botao comprar - BLOCO PRINCIPAL */
.product .cart,
.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--buzz-space-sm);
    align-items: center;
    margin-top: var(--buzz-space-md);
    margin-bottom: var(--buzz-space-lg);
    visibility: visible !important;
    opacity: 1 !important;
}

.product .quantity {
    display: flex;
    align-items: center;
    background: var(--buzz-gray-50);
    border: 1px solid var(--buzz-gray-300);
    border-radius: var(--buzz-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    height: 48px;
}

.product .quantity .qty {
    width: 52px;
    text-align: center;
    padding: 0.625rem 0.25rem;
    border: none;
    background: transparent;
    font-size: var(--buzz-font-size-base);
    font-weight: var(--buzz-font-weight-semibold);
    -moz-appearance: textfield;
    height: 100%;
}

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

/* Botao Adicionar ao Carrinho - Single Product */
.product .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--buzz-buttons) 0%, var(--buzz-buttons-hover) 100%);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-base);
    font-weight: var(--buzz-font-weight-bold);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.product .single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Meta do produto (categoria, tags) */
.product_meta {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-500);
    padding-top: var(--buzz-space-md);
    border-top: 1px solid var(--buzz-gray-100);
}

.product_meta > span {
    display: block;
    margin-bottom: var(--buzz-space-xs);
}

.product_meta a {
    color: var(--buzz-primary);
    font-weight: var(--buzz-font-weight-medium);
}

/* Variacoes */
.variations {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--buzz-space-sm);
}

.variations td,
.variations th {
    padding: 0;
}

.variations .label label {
    font-weight: var(--buzz-font-weight-semibold);
    font-size: var(--buzz-font-size-sm);
}

.variations select {
    padding: 0.5rem;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: var(--buzz-space-xl);
    border-top: 1px solid var(--buzz-gray-200);
    padding-top: var(--buzz-space-lg);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--buzz-gray-200);
    margin-bottom: var(--buzz-space-lg);
    list-style: none;
    padding: 0;
}

.woocommerce-tabs ul.tabs li {
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--buzz-space-sm) var(--buzz-space-md);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    color: var(--buzz-gray-500);
    border-bottom: 2px solid transparent;
    transition: all var(--buzz-transition);
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--buzz-primary);
    border-bottom-color: var(--buzz-primary);
}

.woocommerce-tabs .panel {
    line-height: var(--buzz-line-height-relaxed);
}

.woocommerce-tabs .panel h2 {
    font-size: var(--buzz-font-size-lg);
    margin-bottom: var(--buzz-space-md);
}

/* Avaliacoes */
.woocommerce-Reviews .comment-form {
    margin-top: var(--buzz-space-lg);
}

.woocommerce-Reviews .comment-form label {
    display: block;
    font-weight: var(--buzz-font-weight-medium);
    margin-bottom: var(--buzz-space-xs);
    font-size: var(--buzz-font-size-sm);
}

.woocommerce-Reviews .comment-form textarea,
.woocommerce-Reviews .comment-form input[type="text"],
.woocommerce-Reviews .comment-form input[type="email"] {
    margin-bottom: var(--buzz-space-md);
}

/* ==========================================================================
   5. Carrinho — Estilo Mercado Livre
   ========================================================================== */

/* Container — centralizado */
.buzz-cart-page .buzz-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Fundo da pagina */
.buzz-cart-page {
    background: #ebebeb !important;
}

.buzz-cart-page .buzz-page__content {
    background: #ebebeb;
    max-width: 100%;
    width: 100%;
}

.buzz-cart-page .buzz-page {
    max-width: 100%;
    width: 100%;
}

/* Titulo */
.buzz-cart-page .buzz-page__title {
    margin-bottom: 16px !important;
    margin-top: 16px !important;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #333;
}

/* Layout principal */
.buzz-cart-page .woocommerce {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Esconder mensagem padrao WooCommerce */
.buzz-cart-page .woocommerce-notices-wrapper .woocommerce-message,
.buzz-cart-page .woocommerce-notices-wrapper .woocommerce-info {
    display: none;
}

/* --- Card de itens (estilo ML) --- */
.buzz-cart-page .woocommerce-cart-form {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
}

.buzz-cart-page .shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: none;
}

/* Thead — visivel mas discreto estilo ML */
.buzz-cart-page .shop_table thead {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.buzz-cart-page .shop_table thead th {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-transform: none;
    letter-spacing: 0;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.buzz-cart-page .shop_table thead th.product-remove,
.buzz-cart-page .shop_table thead th.product-thumbnail {
    width: 0;
    padding: 0;
}

/* Tabela responsiva — forcar display table */
.buzz-cart-page .shop_table,
.buzz-cart-page .shop_table thead,
.buzz-cart-page .shop_table tbody,
.buzz-cart-page .shop_table tr,
.buzz-cart-page .shop_table th,
.buzz-cart-page .shop_table td {
    display: revert !important;
}

.buzz-cart-page .shop_table {
    table-layout: auto !important;
}

.buzz-cart-page .shop_table td {
    padding: 16px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

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

/* Remover — compact */
.buzz-cart-page .shop_table .product-remove {
    width: 36px;
    padding: 12px 4px 12px 12px !important;
}

.buzz-cart-page .shop_table .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #3483fa;
    font-size: 16px;
    transition: all 0.15s;
    text-decoration: none;
}

.buzz-cart-page .shop_table .product-remove a:hover {
    color: #fff;
    background: #3483fa;
}

/* Thumbnail — ML style */
.buzz-cart-page .shop_table .product-thumbnail {
    width: 72px;
    padding: 12px 4px 12px 8px !important;
}

.buzz-cart-page .shop_table .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #fff;
}

/* Nome — ML style */
.buzz-cart-page .shop_table .product-name {
    min-width: 120px;
}

.buzz-cart-page .shop_table .product-name a {
    color: #333;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.35;
}

.buzz-cart-page .shop_table .product-name a:hover {
    color: #3483fa;
}

/* Preco unitario — discreto */
.buzz-cart-page .shop_table .product-price {
    white-space: nowrap;
}

.buzz-cart-page .shop_table .product-price .amount {
    font-weight: 400;
    color: #999;
    font-size: 14px;
}

/* Quantidade — estilo ML */
.buzz-cart-page .shop_table .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.buzz-cart-page .shop_table .product-quantity .qty {
    width: 44px;
    height: 34px;
    text-align: center;
    border: none;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    -moz-appearance: textfield;
}

.buzz-cart-page .shop_table .product-quantity .qty::-webkit-outer-spin-button,
.buzz-cart-page .shop_table .product-quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal — destaque */
.buzz-cart-page .shop_table .product-subtotal {
    white-space: nowrap;
}

.buzz-cart-page .shop_table .product-subtotal .amount {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* --- Acoes (cupom + atualizar) — estilo ML --- */
.buzz-cart-page .actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px !important;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Cupom — ML style */
.buzz-cart-page .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

.buzz-cart-page .coupon label {
    display: none;
}

.buzz-cart-page .coupon input[type="text"] {
    flex: 1;
    min-width: 160px;
    max-width: 240px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s;
    color: #333;
}

.buzz-cart-page .coupon input[type="text"]::placeholder {
    color: #aaa;
}

.buzz-cart-page .coupon input[type="text"]:focus {
    border-color: #3483fa;
    box-shadow: 0 0 0 2px rgba(52, 131, 250, 0.1);
    outline: none;
}

.buzz-cart-page .coupon .button {
    padding: 9px 16px;
    background: #fff;
    color: #3483fa;
    border: 1px solid #3483fa;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.buzz-cart-page .coupon .button:hover {
    background: #3483fa;
    color: #fff;
}

/* Botao atualizar — ML style */
.buzz-cart-page button[name="update_cart"] {
    padding: 9px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #3483fa;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.buzz-cart-page button[name="update_cart"]:hover {
    text-decoration: underline;
}

.buzz-cart-page button[name="update_cart"]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: none;
}

/* --- Card de Totais (estilo ML) --- */
.buzz-cart-page .cart-collaterals {
    margin-top: 0;
}

/* Titulo */
.buzz-cart-page .cart_totals h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 20px 20px 8px;
    color: #333;
}

/* Card — corpo */
.buzz-cart-page .cart_totals {
    background: #fff;
    padding: 0;
    border-radius: 6px;
    border: none;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.buzz-cart-page .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.buzz-cart-page .cart_totals table,
.buzz-cart-page .cart_totals tbody {
    border: none;
}

.buzz-cart-page .cart_totals th {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    padding: 8px 20px;
    border: none;
    background: #fff;
}

.buzz-cart-page .cart_totals td {
    text-align: right;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding: 8px 20px;
    border: none;
    white-space: nowrap;
    background: #fff;
}

/* Total — ML destaque */
.buzz-cart-page .cart_totals .order-total th {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding: 16px 20px 4px;
    border-top: 1px solid #eee;
    border-bottom: none;
    background: #fff;
}

.buzz-cart-page .cart_totals .order-total td {
    font-size: 24px;
    font-weight: 600;
    padding: 16px 20px 4px;
    border-top: 1px solid #eee;
    border-bottom: none;
    background: #fff;
}

.buzz-cart-page .cart_totals .order-total .amount {
    color: #333;
    font-size: 24px;
}

/* Botao e area abaixo */
.buzz-cart-page .wc-proceed-to-checkout {
    padding: 16px 20px 20px;
    border: none;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

/* --- Botao Finalizar — estilo ML azul --- */
.buzz-cart-page .wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: #3483fa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 0;
    transition: all 0.15s;
    letter-spacing: 0;
    text-decoration: none;
}

.buzz-cart-page .wc-proceed-to-checkout .button:hover {
    background: #2968c8;
}

.buzz-cart-page .wc-proceed-to-checkout .button:active {
    background: #1f5bab;
}

/* --- Link continuar comprando --- */
.buzz-cart-page .wc-proceed-to-checkout a.button.wc-forward:not(.checkout-button) {
    background: #fff;
    color: var(--buzz-primary);
    box-shadow: none;
    border: 1px solid var(--buzz-primary);
    margin-top: 8px;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 8px;
}

.buzz-cart-page .wc-proceed-to-checkout a.button.wc-forward:not(.checkout-button):hover {
    background: rgba(37, 99, 235, 0.04);
    transform: none;
    box-shadow: none;
}

/* --- Parcelas no card de totais --- */
.buzz-cart-installment th {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    padding: 6px 20px 0 !important;
    border: none !important;
    background: #f9fafb;
}

.buzz-cart-installment td {
    text-align: right;
    padding: 6px 20px 0 !important;
    border: none !important;
    background: #f9fafb;
}

.buzz-installment-highlight {
    font-size: 13px;
    font-weight: 700;
    color: #066135;
}

/* --- Texto de seguranca abaixo do botao --- */
.buzz-cart-page .wc-proceed-to-checkout::after {
    content: '\1F512  Compra 100% segura';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.buzz-checkout-page .wc-proceed-to-checkout::after {
    content: '\1F512  Compra 100% segura';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* ==========================================================================
   6. Checkout - Refinado estilo marketplace
   ========================================================================== */

.buzz-checkout-page .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--buzz-space-lg);
}

/* --- Container centralizado --- */
.buzz-checkout-page .buzz-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.buzz-checkout-page .buzz-page__content {
    max-width: 100%;
    width: 100%;
}

.buzz-checkout-page .buzz-page {
    max-width: 100%;
    width: 100%;
}

/* Titulo da pagina */
.buzz-checkout-page .buzz-page__title {
    margin-bottom: 12px !important;
    margin-top: 8px !important;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #111827;
}

/* Card de dados — estilo marketplace */
.buzz-checkout-page .col2-set {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Campos lado a lado — Nome + Sobrenome, CEP + Numero, Cidade + Estado */
.buzz-checkout-page .col2-set .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.buzz-checkout-page .col2-set #billing_first_name_field,
.buzz-checkout-page .col2-set #billing_last_name_field {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}

.buzz-checkout-page .col2-set #billing_postcode_field,
.buzz-checkout-page .col2-set #billing_number_field {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
}

.buzz-checkout-page .col2-set #billing_city_field,
.buzz-checkout-page .col2-set #billing_state_field {
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}

/* Campos que devem ser full-width */
.buzz-checkout-page .col2-set #billing_email_field,
.buzz-checkout-page .col2-set #billing_phone_field,
.buzz-checkout-page .col2-set #billing_address_1_field,
.buzz-checkout-page .col2-set #billing_address_2_field,
.buzz-checkout-page .col2-set #billing_neighborhood_field,
.buzz-checkout-page .col2-set #billing_country_field,
.buzz-checkout-page .col2-set #billing_persontype_field,
.buzz-checkout-page .col2-set #billing_cpf_field,
.buzz-checkout-page .col2-set #billing_cnpj_field,
.buzz-checkout-page .col2-set #billing_company_field {
    flex: 0 0 100%;
}

.buzz-checkout-page h3 {
    font-family: var(--buzz-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: -0.2px;
}

.buzz-checkout-page .form-row {
    margin-bottom: 14px;
}

.buzz-checkout-page .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.buzz-checkout-page .form-row .required {
    color: #ef4444;
}

.buzz-checkout-page .form-row input,
.buzz-checkout-page .form-row textarea,
.buzz-checkout-page .form-row select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.buzz-checkout-page .form-row input:focus,
.buzz-checkout-page .form-row select:focus,
.buzz-checkout-page .form-row textarea:focus {
    border-color: var(--buzz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
    outline: none;
}

.buzz-checkout-page .form-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ======= Seu Pedido — Card unificado premium ======= */

/* Titulo — parte superior do card */
.buzz-checkout-page #order_review_heading {
    font-family: var(--buzz-font-heading);
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 16px 24px;
    color: #111827;
    letter-spacing: -0.3px;
}

/* Card — corpo */
.buzz-checkout-page #order_review {
    background: #fff;
    padding: 0;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e5e7eb;
    border-top: none;
    position: sticky;
    top: 75px;
    overflow: hidden;
}

/* Tabela */
.buzz-checkout-page #order_review table {
    width: 100%;
    border-collapse: collapse;
}

/* Header PRODUTO / SUBTOTAL */
.buzz-checkout-page #order_review thead th {
    font-family: var(--buzz-font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0c0d0e;
    padding: 12px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.buzz-checkout-page #order_review thead th.product-name {
    text-align: left;
}

.buzz-checkout-page #order_review thead th.product-total {
    text-align: right;
    white-space: nowrap;
}

/* Linhas de produto */
.buzz-checkout-page #order_review tbody td {
    padding: 14px 24px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.buzz-checkout-page #order_review tbody tr:last-child td {
    border-bottom: none;
}

/* Nome do produto */
.buzz-checkout-page #order_review td.product-name {
    text-align: left;
    color: #374151;
    line-height: 1.4;
    font-weight: 500;
    padding-right: 10px;
}

/* Quantidade (x 4) — discreto */
.buzz-checkout-page #order_review td.product-name .product-quantity,
.buzz-checkout-page #order_review td.product-name strong.product-quantity {
    color: #9ca3af;
    font-weight: 500;
    font-size: 12px;
    margin-left: 2px;
}

/* Valor — alinhado direita */
.buzz-checkout-page #order_review td.product-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: #111827;
    font-size: 13px;
    min-width: 90px;
}

/* --- Footer: Subtotal / Frete / Total --- */
.buzz-checkout-page #order_review tfoot th {
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    padding: 14px 24px;
    border-top: 1px solid #f3f4f6;
    border-bottom: none;
    background: #fff;
}

.buzz-checkout-page #order_review tfoot td {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding: 14px 24px;
    border-top: 1px solid #f3f4f6;
    border-bottom: none;
    white-space: nowrap;
    background: #fff;
}

/* Subtotal */
.buzz-checkout-page #order_review .cart-subtotal th,
.buzz-checkout-page #order_review .cart-subtotal td {
    border-top: 1px solid #e5e7eb;
}

/* Total — destaque maximo */
.buzz-checkout-page #order_review .order-total th {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    padding: 18px 24px;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.buzz-checkout-page #order_review .order-total td {
    font-size: 20px;
    font-weight: 800;
    padding: 18px 24px;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.buzz-checkout-page #order_review .order-total .amount {
    color: #0c0d0e;
    font-size: 20px;
}

/* Imagem do produto */
.buzz-checkout-page #order_review .product-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buzz-checkout-page #order_review .product-name img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* Metodos pagamento + politica — padding interno */
.buzz-checkout-page #order_review .woocommerce-checkout-payment {
    padding: 0 24px 24px;
}

.buzz-checkout-page #order_review .woocommerce-privacy-policy-text {
    padding: 0 24px 16px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

.buzz-checkout-page #order_review .woocommerce-info {
    margin: 0 20px 16px;
    border-radius: 8px;
    font-size: 13px;
    padding: 12px 14px;
}

/* Botao finalizar no checkout */
.buzz-checkout-page #place_order {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #066135;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--buzz-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.buzz-checkout-page #place_order:hover {
    background: #054d2a;
    box-shadow: 0 2px 8px rgba(6, 97, 53, 0.3);
}

/* Metodos de pagamento */
.buzz-checkout-page .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: var(--buzz-space-md) 0;
}

.buzz-checkout-page .wc_payment_method {
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    margin-bottom: var(--buzz-space-sm);
    overflow: hidden;
    transition: border-color var(--buzz-transition);
}

.buzz-checkout-page .wc_payment_method:has(input:checked) {
    border-color: var(--buzz-primary);
    box-shadow: 0 0 0 1px var(--buzz-primary);
}

.buzz-checkout-page .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: var(--buzz-space-sm);
    padding: var(--buzz-space-md);
    cursor: pointer;
    font-weight: var(--buzz-font-weight-medium);
}

.buzz-checkout-page .wc_payment_method label img {
    max-height: 28px;
    width: auto;
}

.buzz-checkout-page .payment_box {
    padding: var(--buzz-space-md);
    background: var(--buzz-gray-50);
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-600);
    border-top: 1px solid var(--buzz-gray-100);
}

/* Simulacao de frete - card refinado */
.buzz-checkout-page .shipping-calculator-form,
.buzz-cart-page .shipping-calculator-form {
    background: var(--buzz-gray-50);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    padding: var(--buzz-space-md);
    margin-top: var(--buzz-space-sm);
}

.buzz-checkout-page .shipping-calculator-form p,
.buzz-cart-page .shipping-calculator-form p {
    margin-bottom: var(--buzz-space-sm);
}

.buzz-checkout-page .shipping-calculator-form .button,
.buzz-cart-page .shipping-calculator-form .button {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--buzz-gray-700);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    cursor: pointer;
    text-align: center;
    transition: background var(--buzz-transition);
}

.buzz-checkout-page .shipping-calculator-form .button:hover,
.buzz-cart-page .shipping-calculator-form .button:hover {
    background: var(--buzz-gray-800);
}

/* Opcoes de envio */
.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-shipping-methods li {
    padding: var(--buzz-space-xs) 0;
}

.woocommerce-shipping-methods label {
    display: flex;
    align-items: center;
    gap: var(--buzz-space-sm);
    font-size: var(--buzz-font-size-sm);
    cursor: pointer;
}

/* Botao finalizar compra */
.buzz-checkout-page #place_order {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--buzz-success);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-lg);
    font-weight: var(--buzz-font-weight-bold);
    cursor: pointer;
    margin-top: var(--buzz-space-lg);
    transition: background var(--buzz-transition), transform var(--buzz-transition);
    letter-spacing: 0.02em;
}

.buzz-checkout-page #place_order:hover {
    background: #059669;
    transform: translateY(-1px);
}

.buzz-checkout-page #place_order:active {
    transform: translateY(0);
}

/* ==========================================================================
   7. Minha Conta - Layout moderno estilo marketplace
   ========================================================================== */

/* Titulo da pagina — discreto, estilo ML/Amazon */
.buzz-account-page .buzz-page__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--buzz-titles);
    margin-bottom: var(--buzz-space-md);
    padding-bottom: var(--buzz-space-sm);
    border-bottom: 1px solid var(--buzz-gray-200);
}

/* Navegacao por tabs */
.buzz-account-page .woocommerce-MyAccount-navigation {
    margin-bottom: var(--buzz-space-lg);
}

.buzz-account-page .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--buzz-space-xs);
    list-style: none;
    padding: 0;
    border-bottom: 2px solid var(--buzz-gray-200);
    padding-bottom: var(--buzz-space-sm);
}

.buzz-account-page .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 16px;
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    color: var(--buzz-gray-600);
    border-radius: var(--buzz-radius-md);
    transition: all var(--buzz-transition);
    white-space: nowrap;
}

.buzz-account-page .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--buzz-gray-100);
    color: var(--buzz-text);
}

.buzz-account-page .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--buzz-primary);
    color: var(--buzz-white);
}

/* Conteudo da conta */
.buzz-account-page .woocommerce-MyAccount-content {
    background: var(--buzz-white);
    padding: var(--buzz-space-lg);
    border-radius: var(--buzz-radius-md);
    border: 1px solid var(--buzz-gray-200);
}

/* Dashboard - cards de boas-vindas */
.buzz-account-welcome__greeting {
    margin-bottom: var(--buzz-space-lg);
}

.buzz-account-welcome__greeting h2 {
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-xl);
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    margin: 0 0 var(--buzz-space-xs) 0;
}

.buzz-account-welcome__greeting p {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-500);
    margin: 0;
}

.buzz-account-welcome__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--buzz-space-md);
}

.buzz-account-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--buzz-space-sm);
    padding: var(--buzz-space-lg) var(--buzz-space-md);
    background: var(--buzz-gray-50);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    text-align: center;
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    color: var(--buzz-text);
    transition: all var(--buzz-transition);
}

.buzz-account-card svg {
    color: var(--buzz-primary);
}

.buzz-account-card:hover {
    border-color: var(--buzz-primary);
    background: var(--buzz-white);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Esconder mensagem padrao do dashboard do WC */
.buzz-account-page .woocommerce-MyAccount-content > p:first-child {
    display: none;
}

/* Tabela de pedidos */
.buzz-account-page .woocommerce-orders-table {
    font-size: var(--buzz-font-size-sm);
}

.buzz-account-page .woocommerce-orders-table th {
    font-weight: var(--buzz-font-weight-semibold);
    color: var(--buzz-titles);
    padding: 12px 8px;
    border-bottom: 2px solid var(--buzz-gray-200);
}

.buzz-account-page .woocommerce-orders-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--buzz-gray-100);
    vertical-align: middle;
}

.buzz-account-page .woocommerce-orders-table .button {
    padding: 6px 14px;
    font-size: var(--buzz-font-size-xs);
    border-radius: var(--buzz-radius-sm);
}

/* Login / Cadastro */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--buzz-white);
    padding: var(--buzz-space-xl);
    border-radius: var(--buzz-radius-lg);
    border: 1px solid var(--buzz-gray-200);
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-xl);
    font-weight: var(--buzz-font-weight-bold);
    text-align: center;
    margin-bottom: var(--buzz-space-lg);
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: var(--buzz-space-md);
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-medium);
    margin-bottom: var(--buzz-space-xs);
    color: var(--buzz-gray-700);
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--buzz-gray-300);
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    transition: border-color var(--buzz-transition), box-shadow var(--buzz-transition);
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: var(--buzz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--buzz-buttons);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-base);
    font-weight: var(--buzz-font-weight-bold);
    cursor: pointer;
    transition: background var(--buzz-transition);
    margin-top: var(--buzz-space-sm);
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: var(--buzz-buttons-hover);
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: var(--buzz-space-xs);
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-gray-600);
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: var(--buzz-space-md);
}

.woocommerce-LostPassword a {
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-primary);
    transition: color var(--buzz-transition);
}

.woocommerce-LostPassword a:hover {
    color: var(--buzz-primary-hover);
}

/* Mensagens WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--buzz-space-md);
    margin-bottom: var(--buzz-space-md);
    border-radius: var(--buzz-radius-md);
    font-size: var(--buzz-font-size-sm);
    list-style: none;
}

.woocommerce-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.woocommerce-message a,
.woocommerce-info a {
    font-weight: var(--buzz-font-weight-semibold);
}

/* Ordenacao e count nativos do WC - escondidos, usamos o toolbar customizado */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none !important;
}

/* ==========================================================================
   PRODUTO SINGLE - Mobile-first refinamentos
   ========================================================================== */

/* Summary: conter overflow */
.buzz-product-page .product .entry-summary,
.buzz-product-page .product .summary {
    overflow: hidden;
    max-width: 100%;
}

/* Titulo do produto - mobile */
.product .product_title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

/* Preco - mobile */
.product > .summary .price,
.product > .entry-summary .price {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

/* Form cart - empilhar no mobile */
@media (max-width: 479px) {
    .product .cart,
    .product form.cart {
        flex-direction: column;
        align-items: stretch !important;
    }

    .product .quantity {
        width: 100%;
        justify-content: center;
        height: 44px;
    }

    .product .single_add_to_cart_button {
        width: 100%;
        height: 48px;
        font-size: var(--buzz-font-size-base);
    }
}

/* Produtos relacionados - titulo harmonico */
.related.products > h2,
.upsells.products > h2 {
    font-family: var(--buzz-font-heading);
    font-size: 1.25rem;
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    margin-bottom: var(--buzz-space-md);
    padding-bottom: var(--buzz-space-sm);
    border-bottom: 2px solid var(--buzz-gray-100);
}

/* Produtos relacionados - grid corrigido */
.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--buzz-space-sm);
}

/* Loop product - conter conteudo */
ul.products li.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--buzz-gray-50);
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0.5rem 0.625rem 0;
    margin: 0;
}

ul.products li.product .price {
    font-size: 0.9375rem;
    padding: 0.25rem 0.625rem;
}

/* Parcelamento nos relacionados */
ul.products li.product .buzz-installment {
    font-size: 0.6875rem;
    padding: 0 0.625rem 0.5rem;
    color: var(--buzz-success);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs no mobile */
.woocommerce-tabs ul.tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0;
}

.woocommerce-tabs ul.tabs li a {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
    white-space: nowrap;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.125rem;
}

/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--buzz-space-md);
    }

    .buzz-shop-page .buzz-wc-content {
        grid-template-columns: 240px 1fr;
    }

    /* Titulo da pagina - desktop */
    .woocommerce-products-header__title.page-title {
        font-size: 1.375rem;
    }

    /* Sidebar visivel no desktop */
    .buzz-shop-page .buzz-shop-filters {
        display: block;
        position: static;
        width: auto;
        height: auto;
        max-width: none;
        overflow: visible;
        box-shadow: none;
        background: var(--buzz-white);
        border: 1px solid var(--buzz-gray-200);
        border-radius: var(--buzz-radius-md);
        align-self: start;
        position: sticky;
        top: 70px;
    }

    .buzz-shop-page .buzz-filters-close {
        display: none;
    }

    .buzz-filter-toggle {
        display: none;
    }

    .buzz-checkout-page .woocommerce-checkout {
        grid-template-columns: 1fr 1fr;
    }

    /* Carrinho desktop: 2 colunas estilo ML */
    .buzz-cart-page .woocommerce {
        display: grid !important;
        grid-template-columns: 1fr 340px;
        gap: 0 24px;
        align-items: start;
    }

    /* Notices full-width */
    .buzz-cart-page .woocommerce > .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }

    /* Itens do carrinho — coluna esquerda */
    .buzz-cart-page .woocommerce-cart-form {
        grid-column: 1;
        grid-row: 2;
    }

    /* Totais — coluna direita sticky */
    .buzz-cart-page .cart-collaterals {
        grid-column: 2;
        grid-row: 2;
    }

    .buzz-cart-page .cart_totals {
        position: sticky;
        top: 75px;
    }

    .buzz-product-page .product {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--buzz-space-2xl);
        align-items: start;
        padding: var(--buzz-space-xl);
    }

    .buzz-product-page .woocommerce-tabs {
        grid-column: 1 / -1;
    }

    .buzz-product-page .related.products {
        grid-column: 1 / -1;
    }

    .product .product_title {
        font-size: 1.75rem;
    }

    .product > .summary .price,
    .product > .entry-summary .price {
        font-size: 1.75rem;
    }

    .product .single_add_to_cart_button {
        font-size: var(--buzz-font-size-base);
        padding: 0.75rem 1.5rem;
        height: 50px;
    }

    .related.products > h2,
    .upsells.products > h2 {
        font-size: 1.5rem;
    }

    ul.products li.product .woocommerce-loop-product__title {
        font-size: var(--buzz-font-size-sm);
    }

    ul.products li.product .button,
    ul.products li.product .add_to_cart_button {
        font-size: var(--buzz-font-size-xs);
        height: 40px;
    }

    /* Galeria maior no desktop */
    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr);
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(4, 1fr);
    }

    ul.products li.product .button,
    ul.products li.product .add_to_cart_button {
        font-size: var(--buzz-font-size-sm);
        height: 42px;
    }
}

/* ==========================================================================
   Checkout - Simulacao de Frete Profissional
   ========================================================================== */

/* Card de frete no checkout e carrinho */
.buzz-checkout-page .woocommerce-shipping-totals,
.buzz-cart-page .woocommerce-shipping-totals {
    background: var(--buzz-gray-50);
    border-radius: var(--buzz-radius-md);
    padding: var(--buzz-space-sm);
}

.buzz-checkout-page .woocommerce-shipping-totals th,
.buzz-cart-page .woocommerce-shipping-totals th {
    font-family: var(--buzz-font-heading);
    font-weight: var(--buzz-font-weight-semibold);
    color: var(--buzz-titles);
    vertical-align: top;
    padding-top: var(--buzz-space-md);
}

/* Icone de frete */
.buzz-checkout-page .woocommerce-shipping-totals th::before,
.buzz-cart-page .woocommerce-shipping-totals th::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Metodos de envio - estilo card */
.buzz-checkout-page .woocommerce-shipping-methods li,
.buzz-cart-page .woocommerce-shipping-methods li {
    background: var(--buzz-white);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    padding: var(--buzz-space-sm) var(--buzz-space-md);
    margin-bottom: var(--buzz-space-xs);
    transition: border-color var(--buzz-transition), box-shadow var(--buzz-transition);
}

.buzz-checkout-page .woocommerce-shipping-methods li:hover,
.buzz-cart-page .woocommerce-shipping-methods li:hover {
    border-color: var(--buzz-primary);
}

.buzz-checkout-page .woocommerce-shipping-methods li:has(input:checked),
.buzz-cart-page .woocommerce-shipping-methods li:has(input:checked) {
    border-color: var(--buzz-primary);
    background: rgba(37, 99, 235, 0.03);
    box-shadow: 0 0 0 1px var(--buzz-primary);
}

.buzz-checkout-page .woocommerce-shipping-methods label,
.buzz-cart-page .woocommerce-shipping-methods label {
    display: flex;
    align-items: center;
    gap: var(--buzz-space-sm);
    font-size: var(--buzz-font-size-sm);
    cursor: pointer;
    padding: 0;
    font-weight: var(--buzz-font-weight-medium);
}

.buzz-checkout-page .woocommerce-shipping-methods .amount,
.buzz-cart-page .woocommerce-shipping-methods .amount {
    font-weight: var(--buzz-font-weight-bold);
    color: var(--buzz-titles);
    margin-left: auto;
}

/* Link calcular frete */
.buzz-checkout-page .shipping-calculator-button,
.buzz-cart-page .shipping-calculator-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--buzz-font-size-sm);
    color: var(--buzz-primary);
    font-weight: var(--buzz-font-weight-medium);
    margin-top: var(--buzz-space-sm);
    transition: color var(--buzz-transition);
}

.buzz-checkout-page .shipping-calculator-button:hover,
.buzz-cart-page .shipping-calculator-button:hover {
    color: var(--buzz-primary-hover);
}

/* Form de calculo de frete refinado */
.buzz-checkout-page .shipping-calculator-form,
.buzz-cart-page .shipping-calculator-form {
    background: var(--buzz-white);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-lg);
    padding: var(--buzz-space-lg);
    margin-top: var(--buzz-space-md);
    box-shadow: var(--buzz-shadow-sm);
}

.buzz-checkout-page .shipping-calculator-form select,
.buzz-cart-page .shipping-calculator-form select,
.buzz-checkout-page .shipping-calculator-form input,
.buzz-cart-page .shipping-calculator-form input {
    border-radius: var(--buzz-radius-md);
    border: 1px solid var(--buzz-gray-300);
    padding: 0.75rem 1rem;
    font-size: var(--buzz-font-size-sm);
    transition: border-color var(--buzz-transition), box-shadow var(--buzz-transition);
}

.buzz-checkout-page .shipping-calculator-form select:focus,
.buzz-cart-page .shipping-calculator-form select:focus,
.buzz-checkout-page .shipping-calculator-form input:focus,
.buzz-cart-page .shipping-calculator-form input:focus {
    border-color: var(--buzz-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

.buzz-checkout-page .shipping-calculator-form .button,
.buzz-cart-page .shipping-calculator-form .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--buzz-primary);
    color: var(--buzz-white);
    border: none;
    border-radius: var(--buzz-radius-md);
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    cursor: pointer;
    text-align: center;
    transition: background var(--buzz-transition), transform var(--buzz-transition);
    margin-top: var(--buzz-space-md);
}

.buzz-checkout-page .shipping-calculator-form .button:hover,
.buzz-cart-page .shipping-calculator-form .button:hover {
    background: var(--buzz-primary-hover);
    transform: translateY(-1px);
}

/* Imagem do frete (plugin de simulacao) */
.product [class*="shipping-simulator"] img,
.product [class*="frete"] img,
.product .calculo-frete img,
.product .simulacao-frete img {
    max-width: 200px;
    height: auto;
    margin: 0 auto var(--buzz-space-md);
    display: block;
    border-radius: var(--buzz-radius-md);
}

/* Resultados de simulacao de frete */
.product [class*="shipping-simulator"] table,
.product [class*="frete"] table,
.product .calculo-frete table,
.product .simulacao-frete table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--buzz-space-md);
}

.product [class*="shipping-simulator"] table td,
.product [class*="frete"] table td {
    padding: var(--buzz-space-sm);
    border-bottom: 1px solid var(--buzz-gray-100);
    font-size: var(--buzz-font-size-sm);
}

.product [class*="shipping-simulator"] table tr:last-child td,
.product [class*="frete"] table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Checkout - Responsividade mobile
   ========================================================================== */

@media (min-width: 768px) {
    .buzz-checkout-page .woocommerce-checkout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        align-items: start;
    }

    /* Tudo na coluna esquerda por default */
    .buzz-checkout-page .woocommerce-checkout > * {
        grid-column: 1;
    }

    /* Notices full-width */
    .buzz-checkout-page .woocommerce-checkout > .woocommerce-info,
    .buzz-checkout-page .woocommerce-checkout > .woocommerce-notices-wrapper,
    .buzz-checkout-page .woocommerce-checkout > .woocommerce-message,
    .buzz-checkout-page .woocommerce-checkout > .woocommerce-error {
        grid-column: 1 / -1;
    }

    /* Titulo "Seu pedido" + card: coluna direita */
    .buzz-checkout-page #order_review_heading {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }

    .buzz-checkout-page #order_review {
        grid-column: 2;
        grid-row: 3 / span 20;
        position: sticky;
        top: 75px;
    }

    /* Formulario ocupa esquerda inteira */
    .buzz-checkout-page .col2-set {
        grid-column: 1;
        grid-row: 2 / span 20;
    }

    .buzz-checkout-page .woocommerce-additional-fields {
        grid-column: 1;
    }

    /* Telas grandes — mesma proporção */
    @media (min-width: 1500px) {
        .buzz-checkout-page .woocommerce-checkout {
            grid-template-columns: 1fr 1fr;
        }
    }
}

/* ==========================================================================
   AJUSTES UI/UX — Paginacao profissional
   ========================================================================== */

/* Paginacao WooCommerce */
.woocommerce nav.woocommerce-pagination {
    margin: var(--buzz-space-xl) 0;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    display: inline-flex;
    border: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--buzz-gray-200);
    color: var(--buzz-gray-600);
    background: var(--buzz-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--buzz-primary);
    border-color: var(--buzz-primary);
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--buzz-primary);
    border-color: var(--buzz-primary);
    color: #fff;
    font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li .prev,
.woocommerce nav.woocommerce-pagination ul li .next {
    font-size: 18px;
    font-weight: 400;
}

.woocommerce nav.woocommerce-pagination ul li .dots {
    border: none;
    background: none;
    color: var(--buzz-gray-400);
    min-width: 24px;
}

/* Carrinho desktop duplicado removido — unificado acima */

/* ==========================================================================
   AJUSTES UI/UX — Cupom de desconto (carrinho)
   ========================================================================== */

.buzz-cart-page .coupon {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: var(--buzz-space-md);
    border: 1px solid var(--buzz-gray-200);
    border-radius: var(--buzz-radius-md);
    overflow: hidden;
    background: var(--buzz-white);
}

.buzz-cart-page .coupon input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: none;
    border-right: 1px solid var(--buzz-gray-200);
    font-size: var(--buzz-font-size-sm);
    outline: none;
    background: transparent;
}

.buzz-cart-page .coupon input[type="text"]:focus {
    box-shadow: inset 0 0 0 2px var(--buzz-primary);
}

.buzz-cart-page .coupon input[type="text"]::placeholder {
    color: var(--buzz-gray-400);
}

.buzz-cart-page .coupon .button {
    padding: 0.75rem 1.25rem;
    background: var(--buzz-primary);
    color: var(--buzz-white);
    border: none;
    border-radius: 0;
    font-family: var(--buzz-font-heading);
    font-size: var(--buzz-font-size-sm);
    font-weight: var(--buzz-font-weight-semibold);
    cursor: pointer;
    transition: background var(--buzz-transition);
    white-space: nowrap;
}

.buzz-cart-page .coupon .button:hover {
    background: var(--buzz-primary-hover);
}

/* ==========================================================================
   AJUSTES UI/UX — Simulacao de frete na pagina do produto
   ========================================================================== */

.product .woocommerce-shipping-calculator,
.product .cfwc-shipping-simulator,
.product [class*="shipping-simulator"],
.product [class*="frete"],
.product [class*="shipping-calc"],
.product .calculo-frete,
.product .simulacao-frete {
    background: var(--buzz-white);
    border: 1px solid var(--buzz-gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: var(--buzz-space-lg);
    box-shadow: var(--buzz-shadow-sm);
}

.product [class*="shipping-simulator"] h4,
.product [class*="frete"] h4,
.product .calculo-frete h4,
.product .simulacao-frete h4 {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product [class*="shipping-simulator"] .shipping-form,
.product [class*="frete"] form,
.product .calculo-frete form,
.product .simulacao-frete form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: var(--buzz-space-sm);
}

.product [class*="shipping-simulator"] input[type="text"],
.product [class*="frete"] input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--buzz-gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.product [class*="shipping-simulator"] button,
.product [class*="frete"] button,
.product .calculo-frete button,
.product .simulacao-frete button {
    padding: 0.75rem 1.5rem;
    background: var(--buzz-primary);
    margin-top: 0;
    border-radius: 8px;
    font-size: 14px;
}

.product [class*="shipping-simulator"] button:hover,
.product [class*="frete"] button:hover {
    background: var(--buzz-primary-hover);
}

/* Resultados de frete estilo card */
.product [class*="shipping-simulator"] table td,
.product [class*="frete"] table td {
    padding: 10px 12px;
    font-size: 14px;
}

/* ==========================================================================
   AJUSTES UI/UX — Botao relacionados (mobile)
   ========================================================================== */

@media (max-width: 767px) {
    .buzz-cart-page .buzz-container,
    .buzz-checkout-page .buzz-container {
        padding: 0 16px;
    }

    ul.products li.product .button,
    ul.products li.product .add_to_cart_button {
        font-size: 11px;
        padding: 0.4rem 0.5rem;
        height: 36px;
        white-space: normal;
        line-height: 1.2;
        text-overflow: initial;
        overflow: visible;
    }

    /* Parcelamento legivel no mobile */
    ul.products li.product .buzz-installment {
        font-size: 11px;
    }

    /* ======= CARRINHO MOBILE — Estilo ML/Amazon ======= */

    .buzz-cart-page .buzz-page__title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        margin-top: 6px !important;
    }

    .buzz-cart-page .woocommerce {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Tabela: layout card por item */
    .buzz-cart-page .shop_table thead {
        display: none;
    }

    .buzz-cart-page .shop_table {
        border: none;
        border-radius: 10px;
    }

    .buzz-cart-page .shop_table,
    .buzz-cart-page .shop_table tbody {
        display: block;
        width: 100%;
    }

    .buzz-cart-page .shop_table tr {
        position: relative;
        padding: 12px;
        border-bottom: 1px solid #f3f4f6;
        display: grid;
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: auto auto;
        gap: 2px 10px;
        align-items: center;
    }

    .buzz-cart-page .shop_table tr td {
        padding: 0;
        border: none;
    }

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

    .buzz-cart-page .shop_table .product-thumbnail {
        grid-row: 1 / 3;
        grid-column: 1;
    }

    .buzz-cart-page .shop_table .product-thumbnail img {
        width: 52px;
        height: 52px;
        border-radius: 6px;
    }

    .buzz-cart-page .shop_table .product-name {
        grid-column: 2;
        grid-row: 1;
    }

    .buzz-cart-page .shop_table .product-name a {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .buzz-cart-page .shop_table .product-price {
        display: none;
    }

    .buzz-cart-page .shop_table .product-quantity {
        grid-column: 2;
        grid-row: 2;
    }

    .buzz-cart-page .shop_table .product-quantity .qty {
        width: 36px;
        height: 30px;
        font-size: 12px;
    }

    .buzz-cart-page .shop_table .product-subtotal {
        grid-column: 3;
        grid-row: 1 / 3;
        text-align: right;
    }

    .buzz-cart-page .shop_table .product-subtotal .amount {
        font-size: 13px;
        font-weight: 700;
    }

    .buzz-cart-page .shop_table .product-remove {
        position: absolute;
        top: 6px;
        right: 6px;
    }

    .buzz-cart-page .shop_table .product-remove a {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    /* Acoes mobile compact */
    .buzz-cart-page .actions {
        flex-direction: column;
        gap: 8px;
        padding: 10px 12px !important;
    }

    .buzz-cart-page .coupon {
        width: 100%;
    }

    .buzz-cart-page .coupon input[type="text"] {
        min-width: 0;
        max-width: none;
        flex: 1;
        font-size: 12px;
        padding: 8px 10px;
    }

    .buzz-cart-page .coupon .button {
        padding: 8px 12px;
        font-size: 11px;
    }

    .buzz-cart-page button[name="update_cart"] {
        width: 100%;
        text-align: center;
        padding: 8px;
        font-size: 12px;
    }

    /* Totais mobile */
    .buzz-cart-page .cart_totals {
        padding: 16px;
        border-radius: 10px;
    }

    .buzz-cart-page .cart_totals h2 {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .buzz-cart-page .wc-proceed-to-checkout .button {
        padding: 12px;
        font-size: 14px;
    }
}

/* ==========================================================================
   AJUSTES UI/UX — Espaçamento titulos e subtitulos padronizado
   ========================================================================== */

/* Titulos de secao WooCommerce - consistentes */
.woocommerce h1.page-title,
.woocommerce-products-header__title.page-title {
    font-family: var(--buzz-font-heading);
    font-weight: var(--buzz-font-weight-bold);
    margin-bottom: 16px;
}

.woocommerce h2 {
    font-family: var(--buzz-font-heading);
    margin-top: 0;
    margin-bottom: 16px;
}

.woocommerce h3 {
    font-family: var(--buzz-font-heading);
    margin-top: 0;
    margin-bottom: 12px;
}

/* Espaco consistente entre titulo e conteudo */
.related.products,
.upsells.products {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--buzz-gray-100);
}

.related.products > h2,
.upsells.products > h2 {
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.cart_totals h2 {
    margin-bottom: 16px !important;
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Carrinho Premium
   Targets: .wp-block-woocommerce-cart (Block-based Cart)
   ========================================================================== */

/* --- Page background --- */
.buzz-cart-page {
    background: #f5f5f5 !important;
}

.buzz-cart-page .buzz-page__content {
    background: transparent;
}

/* --- Page title --- */
.buzz-cart-page .buzz-page__title {
    font-family: var(--buzz-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 16px 0 !important;
}

/* --- Overall layout: reset alignwide negative margin to center --- */
.wp-block-woocommerce-cart {
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wc-block-cart .wc-block-components-sidebar-layout {
    gap: 24px;
    flex-wrap: nowrap !important;
}

/* --- Cart main area --- */
.wc-block-cart .wc-block-components-main {
    flex: 1 1 0% !important;
    min-width: 0;
}

/* --- Cart items card --- */
.wc-block-cart .wc-block-components-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Table header */
.wc-block-cart .wc-block-cart-items__header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.wc-block-cart .wc-block-cart-items__header th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    padding: 12px 20px;
}

/* Cart item rows */
.wc-block-cart .wc-block-cart-items__row {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.wc-block-cart .wc-block-cart-items__row:last-child {
    border-bottom: none;
}

.wc-block-cart .wc-block-cart-items__row:hover {
    background: #fafbfc;
}

/* Product image */
.wc-block-cart .wc-block-cart-item__image {
    padding: 16px 8px 16px 20px;
}

.wc-block-cart .wc-block-cart-item__image img {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    background: #fafafa;
}

/* Product name */
.wc-block-cart .wc-block-components-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.wc-block-cart .wc-block-components-product-name:hover {
    color: var(--buzz-primary);
}

/* Product metadata (short description) */
.wc-block-cart .wc-block-components-product-metadata {
    margin-top: 4px;
}

.wc-block-cart .wc-block-components-product-metadata__description p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Product price */
.wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price__regular {
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 12px;
}

/* Sale badge */
.wc-block-cart .wc-block-components-sale-badge {
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* Quantity selector */
.wc-block-cart .wc-block-components-quantity-selector {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 38px;
    transition: border-color 0.15s;
}

.wc-block-cart .wc-block-components-quantity-selector:hover {
    border-color: var(--buzz-primary);
}

.wc-block-cart .wc-block-components-quantity-selector input {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
}

.wc-block-cart .wc-block-components-quantity-selector button {
    background: transparent;
    border: none;
    color: #374151;
    width: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.wc-block-cart .wc-block-components-quantity-selector button:hover {
    background: #f3f4f6;
    color: var(--buzz-primary);
}

/* Remove item link */
.wc-block-cart .wc-block-cart-item__remove-link {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}

.wc-block-cart .wc-block-cart-item__remove-link:hover {
    color: #ef4444;
}

/* Total column */
.wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* --- Sidebar totals card --- */
.wc-block-cart .wc-block-components-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 0;
    overflow: hidden;
    flex: 0 0 360px !important;
    max-width: 360px;
}

/* Totals title */
.wc-block-cart .wc-block-cart__totals-title {
    font-family: var(--buzz-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    padding: 20px 24px 12px;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Coupon toggle */
.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-size: 13px;
    color: var(--buzz-primary);
    font-weight: 600;
    padding: 0 24px 12px;
}

/* Coupon form */
.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__content {
    padding: 0 24px 16px;
}

.wc-block-cart .wc-block-components-totals-coupon__content {
    display: flex;
    gap: 8px;
}

/* Totals items */
.wc-block-cart .wc-block-components-totals-wrapper {
    padding: 0 24px;
}

.wc-block-cart .wc-block-components-totals-item {
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}

.wc-block-cart .wc-block-components-totals-item__label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.wc-block-cart .wc-block-components-totals-item__value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Footer total */
.wc-block-cart .wc-block-components-totals-footer-item {
    padding: 16px 0 !important;
    border-top: 2px solid #e5e7eb !important;
    margin-top: 4px;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value .wc-block-formatted-money-amount {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* --- Proceed to checkout button --- */
.wc-block-cart .wc-block-cart__submit-container {
    padding: 16px 24px 20px;
}

.wc-block-cart .wc-block-cart__submit-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--buzz-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--buzz-font-heading);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.01em;
    text-decoration: none;
    line-height: 1.4;
}

.wc-block-cart .wc-block-cart__submit-button:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.wc-block-cart .wc-block-cart__submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

/* Security text after button */
.wc-block-cart .wc-block-cart__submit-container::after {
    content: '\1F512  Compra 100% segura';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Payment icons area */
.wc-block-cart .wc-block-cart__payment-options {
    padding: 0 24px 20px;
    text-align: center;
}

.wc-block-cart .wc-block-components-payment-method-icons {
    justify-content: center;
}

/* --- Empty cart --- */
.wc-block-cart .wc-block-cart__empty-cart__title {
    font-family: var(--buzz-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Carrinho Mobile
   ========================================================================== */

@media (max-width: 767px) {
    .buzz-cart-page .buzz-page__title {
        font-size: 1.25rem !important;
        margin: 12px 0 8px !important;
    }

    .buzz-cart-page .buzz-container {
        padding: 0 12px;
    }

    .wc-block-cart .wc-block-components-sidebar-layout {
        flex-direction: column;
        flex-wrap: wrap !important;
        gap: 16px;
    }

    .wc-block-cart .wc-block-components-main,
    .wc-block-cart .wc-block-components-sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /* Item rows - tighter on mobile */
    .wc-block-cart .wc-block-cart-item__image {
        padding: 12px 8px 12px 14px;
    }

    .wc-block-cart .wc-block-cart-item__image img {
        width: 64px !important;
        height: 64px !important;
        border-radius: 8px;
    }

    .wc-block-cart .wc-block-components-product-name {
        font-size: 13px;
    }

    .wc-block-cart .wc-block-components-product-metadata__description p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price {
        font-size: 14px;
    }

    .wc-block-cart .wc-block-components-quantity-selector {
        height: 34px;
        border-radius: 8px;
    }

    .wc-block-cart .wc-block-components-quantity-selector input {
        font-size: 13px;
        width: 38px;
    }

    .wc-block-cart .wc-block-components-quantity-selector button {
        width: 32px;
        font-size: 16px;
    }

    .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 14px;
    }

    /* Sidebar mobile */
    .wc-block-cart .wc-block-cart__totals-title {
        font-size: 15px;
        padding: 16px 16px 10px;
    }

    .wc-block-cart .wc-block-components-totals-wrapper {
        padding: 0 16px;
    }

    .wc-block-cart .wc-block-cart__submit-container {
        padding: 12px 16px 16px;
    }

    .wc-block-cart .wc-block-cart__submit-button {
        padding: 13px 20px;
        font-size: 14px;
        border-radius: 10px;
    }

    .wc-block-cart .wc-block-cart__payment-options {
        padding: 0 16px 16px;
    }

    /* Table header hidden on mobile */
    .wc-block-cart .wc-block-cart-items__header {
        display: none;
    }
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Checkout Premium
   Targets: .wp-block-woocommerce-checkout (Block-based Checkout)
   ========================================================================== */

/* --- Page background --- */
.buzz-checkout-page {
    background: #f5f5f5 !important;
}

.buzz-checkout-page .buzz-page__content {
    background: transparent;
}

/* --- Page title --- */
.buzz-checkout-page .buzz-page__title {
    font-family: var(--buzz-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 16px 0 12px !important;
}

/* --- Overall layout: reset alignwide negative margin to center --- */
.wp-block-woocommerce-checkout {
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.wc-block-checkout .wc-block-components-sidebar-layout {
    gap: 24px;
    flex-wrap: nowrap !important;
}

/* --- Hide country field (Brazil only) --- */
.wc-block-checkout .wc-block-components-country-input,
.wc-block-checkout #billing-country,
.wc-block-checkout #shipping-country,
.wc-block-checkout [id*="country"] {
    display: none !important;
}

/* Also hide on cart */
.wc-block-cart .wc-block-components-country-input,
.wc-block-cart [id*="country"] {
    display: none !important;
}

/* --- Main form area --- */
.wc-block-checkout .wc-block-components-main {
    padding-right: 24px !important;
    flex: 1 1 0% !important;
    min-width: 0;
}

/* --- Checkout steps --- */
.wc-block-checkout .wc-block-components-checkout-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 24px !important;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

/* Step heading */
.wc-block-checkout .wc-block-components-checkout-step__heading {
    font-family: var(--buzz-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

/* Step number */
.wc-block-checkout .wc-block-components-checkout-step::before {
    display: none;
}

.wc-block-checkout .wc-block-components-checkout-step__heading-container {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

/* Step description */
.wc-block-checkout .wc-block-components-checkout-step__description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* --- Form inputs --- */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea {
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    height: auto !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-text-input textarea:focus {
    border-color: var(--buzz-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

.wc-block-checkout .wc-block-components-text-input label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Select dropdowns */
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
.wc-block-checkout select {
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    color: #111827 !important;
    background: #fff !important;
}

.wc-block-checkout .wc-block-components-combobox .components-combobox-control input:focus,
.wc-block-checkout select:focus {
    border-color: var(--buzz-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* Checkbox styling */
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
    width: 18px;
    height: 18px;
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background: var(--buzz-primary);
    border-color: var(--buzz-primary);
}

.wc-block-checkout .wc-block-components-checkbox__label {
    font-size: 13px;
    color: #374151;
}

/* --- Order summary sidebar --- */
.wc-block-checkout .wc-block-components-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    flex: 0 0 380px !important;
    max-width: 380px;
}

/* Order summary title */
.wc-block-checkout .wc-block-components-checkout-order-summary__title {
    padding: 18px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.wc-block-checkout .wc-block-components-checkout-order-summary__title-text {
    font-family: var(--buzz-font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
}

.wc-block-checkout .wc-block-components-checkout-order-summary__title-price {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* Order summary content */
.wc-block-checkout .wc-block-components-checkout-order-summary__content {
    padding: 0;
}

/* Order summary items — image left, description + price right */
.wc-block-checkout .wc-block-components-order-summary-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 4px 8px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #f3f4f6;
    box-sizing: border-box !important;
}

.wc-block-checkout .wc-block-components-order-summary-item:last-child {
    border-bottom: none;
}

/* Image — fixed 60px */
.wc-block-checkout .wc-block-components-order-summary-item__image {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    flex: 0 0 60px !important;
    box-sizing: border-box !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    background: #fafafa;
}

/* Description — fills remaining space next to image */
.wc-block-checkout .wc-block-components-order-summary-item__description {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box !important;
}

.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
}

/* Total price — sits to the right of description */
.wc-block-checkout .wc-block-components-order-summary-item__total-price {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap;
}

.wc-block-checkout .wc-block-components-order-summary-item__individual-price {
    font-size: 12px;
    color: #9ca3af;
}

/* Sale badge in checkout */
.wc-block-checkout .wc-block-components-sale-badge {
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

/* Totals section */
.wc-block-checkout .wc-block-components-totals-wrapper {
    padding: 0 4px;
}

.wc-block-checkout .wc-block-components-totals-item {
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}

.wc-block-checkout .wc-block-components-totals-item__label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.wc-block-checkout .wc-block-components-totals-item__value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Order total */
.wc-block-checkout .wc-block-components-totals-footer-item {
    padding: 18px 0 !important;
    border-top: 2px solid #e5e7eb !important;
    margin-top: 4px;
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* Coupon section */
.wc-block-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button {
    font-size: 13px;
    color: var(--buzz-primary);
    font-weight: 600;
}

/* --- Payment methods --- */
.wc-block-checkout .wc-block-components-radio-control {
    margin: 0;
}

.wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option:hover {
    border-color: #a5b4fc;
}

.wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option--checked {
    border-color: var(--buzz-primary) !important;
    box-shadow: 0 0 0 1px var(--buzz-primary);
    background: #f0f5ff;
}

.wc-block-checkout .wc-block-components-radio-control__label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.wc-block-checkout .wc-block-components-radio-control__description {
    font-size: 12px;
    color: #6b7280;
}

.wc-block-checkout .wc-block-components-radio-control__secondary-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Payment method content area */
.wc-block-checkout .wc-block-components-radio-control-accordion-content {
    background: #f9fafb;
    padding: 14px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 13px;
    color: #6b7280;
    margin: -8px -16px -14px;
    margin-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* --- Place order button --- */
.wc-block-checkout .wc-block-components-checkout-place-order-button {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: #059669;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--buzz-font-heading);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(5,150,105,0.3);
    transform: translateY(-1px);
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(5,150,105,0.2);
}

/* Security text */
.wc-block-checkout .wp-block-woocommerce-checkout-actions-block::after {
    content: '\1F512  Compra 100% segura • Seus dados estão protegidos';
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* --- Privacy policy text --- */
.wc-block-checkout .wc-block-components-checkout-policies {
    text-align: center;
    padding: 8px 0 0;
}

.wc-block-checkout .wc-block-components-checkout-policies__text {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}

/* --- Error/Info notices --- */
.wc-block-checkout .wc-block-components-notice-banner,
.wc-block-cart .wc-block-components-notice-banner {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    border: none;
}

.wc-block-checkout .wc-block-components-notice-banner.is-error,
.wc-block-cart .wc-block-components-notice-banner.is-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.wc-block-checkout .wc-block-components-notice-banner.is-success,
.wc-block-cart .wc-block-components-notice-banner.is-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.wc-block-checkout .wc-block-components-notice-banner.is-info,
.wc-block-cart .wc-block-components-notice-banner.is-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* --- Shipping methods --- */
.wc-block-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.wc-block-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked {
    border-color: var(--buzz-primary);
    background: #f0f5ff;
    box-shadow: 0 0 0 1px var(--buzz-primary);
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Checkout Mobile
   ========================================================================== */

@media (max-width: 767px) {
    .buzz-checkout-page .buzz-page__title {
        font-size: 1.25rem !important;
        margin: 12px 0 8px !important;
    }

    .buzz-checkout-page .buzz-container {
        padding: 0 12px;
    }

    .wc-block-checkout .wc-block-components-sidebar-layout {
        flex-direction: column;
        flex-wrap: wrap !important;
        gap: 16px;
    }

    .wc-block-checkout .wc-block-components-main,
    .wc-block-checkout .wc-block-components-sidebar {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /* Sidebar non-sticky on mobile */
    .wc-block-checkout .wc-block-components-sidebar {
        position: static !important;
    }

    /* Steps tighter on mobile */
    .wc-block-checkout .wc-block-components-checkout-step {
        padding: 18px 16px !important;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .wc-block-checkout .wc-block-components-checkout-step__heading {
        font-size: 15px;
    }

    .wc-block-checkout .wc-block-components-text-input input,
    .wc-block-checkout .wc-block-components-text-input textarea {
        padding: 11px 12px !important;
        font-size: 16px !important; /* prevents zoom on iOS */
        border-radius: 8px !important;
    }

    .wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
    .wc-block-checkout select {
        padding: 11px 12px !important;
        font-size: 16px !important; /* prevents zoom on iOS */
        border-radius: 8px !important;
    }

    /* Order summary mobile */
    .wc-block-checkout .wc-block-components-checkout-order-summary__title {
        padding: 14px 16px;
    }

    .wc-block-checkout .wc-block-components-checkout-order-summary__title-text {
        font-size: 14px;
    }

    .wc-block-checkout .wc-block-components-order-summary-item {
        padding: 8px 10px !important;
    }

    .wc-block-checkout .wc-block-components-totals-wrapper {
        padding: 0 4px;
    }

    /* Place order button mobile */
    .wc-block-checkout .wc-block-components-checkout-place-order-button {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* Payment methods mobile */
    .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__option {
        padding: 12px 14px;
        border-radius: 8px;
    }

    /* Total in sidebar mobile */
    .wc-block-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
        font-size: 20px;
    }
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS — Shared / Tablet (768-1024)
   ========================================================================== */

@media (min-width: 768px) {
    .wc-block-cart .wc-block-components-sidebar-layout,
    .wc-block-checkout .wc-block-components-sidebar-layout {
        gap: 32px;
    }

    .wc-block-cart .wc-block-components-sidebar {
        position: sticky;
        top: 80px;
    }
}

@media (min-width: 1024px) {
    .wc-block-cart .wc-block-components-sidebar-layout,
    .wc-block-checkout .wc-block-components-sidebar-layout {
        gap: 40px;
    }
}
