/* =====================================================
   KMR Amazon-style Store Overrides
   Aplica layout estilo marketplace em todas as páginas
   exceto a homepage (is_front_page).
   ===================================================== */

/* ===== Variáveis Amazon-like ===== */
:root {
    --amz-dark: #0d1b2a;
    --amz-light: #1b3a5f;
    --amz-yellow: #ffd814;
    --amz-yellow-hover: #f7ca00;
    --amz-orange: #ffa41c;
    --amz-orange-hover: #fa8900;
    --amz-blue: #007185;
    --amz-green: #007600;
    --amz-text: #0f1111;
    --amz-text-secondary: #565959;
    --amz-border: #d5d9d9;
    --amz-bg: #ffffff;
    --amz-bg-gray: #f3f3f3;
    --amz-radius: 8px;
    --amz-font: Arial, Helvetica, sans-serif;
}

/* ===== Reset básico para páginas internas ===== */
body:not(.home):not(.front-page) {
    font-family: var(--amz-font);
    color: var(--amz-text);
    background: var(--amz-bg);
}

body:not(.home):not(.front-page) .site-header,
body:not(.home):not(.front-page) #site-header,
body:not(.home):not(.front-page) header.site-header {
    display: none !important;
}

/* ===== Header Amazon ===== */
.kmr-amz-header {
    background: var(--amz-dark);
    color: #fff;
    font-family: var(--amz-font);
    position: relative;
    z-index: 1000;
}

.kmr-amz-header a {
    color: #fff;
    text-decoration: none;
}

.kmr-amz-topbar {
    max-width: 1500px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.kmr-amz-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    line-height: 1;
}

.kmr-amz-logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.kmr-amz-logo:hover {
    border-color: #fff;
}

.kmr-amz-location {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.kmr-amz-location:hover {
    border-color: #fff;
}

.kmr-amz-location strong {
    display: block;
    font-size: 14px;
}

.kmr-amz-search {
    flex: 1;
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    max-width: 800px;
    background: #fff;
    border: 1px solid #fff;
}

.kmr-amz-search select {
    background: #f3f3f3;
    border: none;
    border-right: 1px solid #cdcdcd;
    padding: 0 8px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}

.kmr-amz-search input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
    border-right: 2px solid #fff;
}

.kmr-amz-search button {
    background: var(--amz-orange);
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmr-amz-search button:hover {
    background: var(--amz-orange-hover);
}

.kmr-amz-nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.kmr-amz-nav-right .kmr-amz-location {
    margin-right: 4px;
    white-space: nowrap;
}

.kmr-amz-nav-item {
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.kmr-amz-nav-item:hover {
    border-color: #fff;
}

.kmr-amz-nav-item strong {
    display: block;
    font-size: 14px;
}

.kmr-amz-cart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    min-width: 44px;
}

.kmr-amz-cart:hover {
    border-color: #fff;
}

.kmr-amz-cart > span:first-child {
    position: relative;
    font-size: 22px;
    line-height: 1;
}

.kmr-amz-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--amz-orange);
    color: #0f1111;
    font-size: 12px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-sizing: border-box;
}

/* ===== Submenu Amazon ===== */
.kmr-amz-submenu {
    background: var(--amz-light);
    color: #fff;
    font-size: 14px;
}

.kmr-amz-submenu-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
}

.kmr-amz-submenu a {
    color: #fff;
    padding: 4px 0;
    white-space: nowrap;
    font-size: 14px;
}

.kmr-amz-submenu a:hover {
    text-decoration: underline;
}

/* ===== Language switcher ===== */
.kmr-amz-language {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.kmr-amz-language-current {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent;
    border-radius: 2px;
    color: #fff !important;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    box-shadow: none !important;
}

.kmr-amz-language-current:hover,
.kmr-amz-language-current:focus {
    border-color: #fff;
    background: none !important;
    background-color: transparent !important;
}

.kmr-amz-language-flag {
    font-size: 16px;
    line-height: 1;
}

.kmr-amz-language-code {
    text-transform: uppercase;
}

.kmr-amz-language-current::after {
    content: '▾';
    font-size: 10px;
    margin-left: 2px;
}

.kmr-amz-language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    min-width: 160px;
    padding: 8px 0;
    z-index: 10001;
}

.kmr-amz-language-dropdown.active {
    display: block;
}

.kmr-amz-language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.kmr-amz-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #0f1111;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.kmr-amz-language-option:hover {
    background: #f3f3f3;
}

/* ===== Layout geral ===== */
body:not(.home):not(.front-page) .site-main,
body:not(.home):not(.front-page) main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px;
}

body:not(.home):not(.front-page) .elementor-location-header,
body:not(.home):not(.front-page) .elementor-location-footer {
    display: none !important;
}

/* ===== Breadcrumb ===== */
body:not(.home):not(.front-page) .woocommerce-breadcrumb {
    color: var(--amz-blue);
    font-size: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
}

body:not(.home):not(.front-page) .woocommerce-breadcrumb a {
    color: var(--amz-blue);
}

body:not(.home):not(.front-page) .woocommerce-breadcrumb a:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* ===== Página de produto (single) ===== */
.kmr-amz-product {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.9fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .kmr-amz-product {
        grid-template-columns: 1fr 1fr;
    }
    .kmr-amz-buybox {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .kmr-amz-product {
        grid-template-columns: 1fr;
    }
}

/* Galeria estilo Amazon */
.kmr-amz-gallery {
    display: flex;
    flex-direction: row;
    gap: 16px;
    position: sticky;
    top: 16px;
    align-items: flex-start;
}

.kmr-amz-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.kmr-amz-gallery-thumbs img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    background: transparent;
    transition: opacity .15s, transform .15s;
}

.kmr-amz-gallery-thumbs img:hover,
.kmr-amz-gallery-thumbs img.active {
    opacity: 0.75;
    transform: scale(1.05);
}

.kmr-amz-gallery-main {
    flex: 1;
    border: 1px solid var(--amz-border);
    border-radius: var(--amz-radius);
    padding: 16px;
    background: #fff;
    text-align: center;
    cursor: zoom-in;
}

.kmr-amz-gallery-main img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.kmr-amz-gallery-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #565959;
}

@media (max-width: 768px) {
    .kmr-amz-gallery {
        flex-direction: column-reverse;
    }
    .kmr-amz-gallery-thumbs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Modal de galeria */
.kmr-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.kmr-gallery-modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    font-size: 32px !important;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none !important;
    text-decoration: none !important;
}

.kmr-gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

.kmr-gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #d5d9d9 !important;
    color: #0f1111 !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.kmr-gallery-modal-nav:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.kmr-gallery-modal-prev { left: 16px; }
.kmr-gallery-modal-next { right: 16px; }

.kmr-gallery-modal-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 24px;
}

.kmr-gallery-modal-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.kmr-gallery-modal-main img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.kmr-gallery-modal-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 72px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 80vh;
}

.kmr-gallery-modal-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.kmr-gallery-modal-thumbs img.active,
.kmr-gallery-modal-thumbs img:hover {
    border-color: var(--amz-orange);
    box-shadow: 0 0 0 2px var(--amz-orange);
}

@media (max-width: 768px) {
    .kmr-gallery-modal-content {
        flex-direction: column;
        padding: 16px;
    }
    .kmr-gallery-modal-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .kmr-gallery-modal-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Info central */
.kmr-amz-info {
    padding-right: 16px;
}

.kmr-amz-info h1.product_title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--amz-text);
}

.kmr-amz-brand {
    color: var(--amz-blue);
    font-size: 14px;
    margin-bottom: 8px;
    display: inline-block;
}

.kmr-amz-brand:hover {
    color: #c7511f;
    text-decoration: underline;
}

.kmr-amz-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.kmr-amz-stars {
    color: var(--amz-orange);
    font-size: 16px;
    letter-spacing: -2px;
}

.kmr-amz-rating a {
    color: var(--amz-blue);
    font-size: 14px;
}

.kmr-amz-rating a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.kmr-amz-bestseller {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.kmr-amz-bestseller span {
    background: var(--amz-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.kmr-amz-bestseller a {
    color: var(--amz-blue);
    font-size: 14px;
}

.kmr-amz-price {
    margin: 16px 0;
}

.kmr-amz-price-old {
    color: var(--amz-text-secondary);
    text-decoration: line-through;
    font-size: 14px;
}

.kmr-amz-price-discount {
    color: #cc0c39;
    font-size: 14px;
    margin-left: 8px;
}

.kmr-amz-price-current {
    font-size: 28px;
    color: var(--amz-text);
    font-weight: 400;
    margin-top: 4px;
}

.kmr-amz-price-current sup {
    font-size: 14px;
    top: -0.5em;
}

.kmr-amz-price-note {
    font-size: 12px;
    color: var(--amz-text-secondary);
    margin-top: 4px;
}

.kmr-amz-format {
    margin: 16px 0;
}

.kmr-amz-format-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.kmr-amz-format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kmr-amz-format-option {
    border: 1px solid var(--amz-border) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    background: #fff !important;
    color: var(--amz-text) !important;
    box-shadow: none !important;
    outline: none !important;
}

.kmr-amz-format-option:hover {
    border-color: var(--amz-blue) !important;
    background: #fff !important;
    color: var(--amz-text) !important;
}

.kmr-amz-format-option.selected {
    border-color: var(--amz-orange) !important;
    background: #fef8f0 !important;
    box-shadow: 0 0 0 1px var(--amz-orange) !important;
    color: var(--amz-text) !important;
}

.kmr-amz-features {
    margin: 16px 0;
}

.kmr-amz-features h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.kmr-amz-features ul {
    list-style: disc;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--amz-text);
}

/* Buy box */
.kmr-amz-buybox {
    border: 1px solid var(--amz-border);
    border-radius: var(--amz-radius);
    padding: 16px;
    background: #fff;
    position: sticky;
    top: 16px;
}

.kmr-amz-buybox-price {
    font-size: 28px;
    color: var(--amz-text);
    margin-bottom: 4px;
}

.kmr-amz-buybox-price sup {
    font-size: 13px;
}

.kmr-amz-buybox-condition {
    font-size: 14px;
    color: var(--amz-text-secondary);
    margin-bottom: 12px;
}

.kmr-amz-delivery {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.kmr-amz-delivery strong {
    color: var(--amz-green);
}

.kmr-amz-availability {
    color: var(--amz-green);
    font-size: 18px;
    margin-bottom: 12px;
}

.kmr-amz-qty {
    margin-bottom: 12px;
}

.kmr-amz-qty label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.kmr-amz-qty select {
    width: 100%;
    height: 32px;
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    padding: 0 8px;
    background: #f0f2f2;
}

.kmr-amz-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.kmr-amz-btn-yellow {
    background: var(--amz-yellow);
    border-color: #fcd200;
}

.kmr-amz-btn-yellow:hover {
    background: var(--amz-yellow-hover);
}

.kmr-amz-btn-orange {
    background: var(--amz-orange);
    border-color: #ff8f00;
}

.kmr-amz-btn-orange:hover {
    background: var(--amz-orange-hover);
}

.kmr-amz-buybox-info {
    font-size: 12px;
    color: var(--amz-text-secondary);
    border-top: 1px solid var(--amz-border);
    padding-top: 12px;
    margin-top: 12px;
}

.kmr-amz-buybox-info div {
    margin-bottom: 6px;
}

/* ===== Descrição e detalhes ===== */
.kmr-amz-section {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--amz-border);
}

.kmr-amz-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.kmr-amz-description p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.kmr-amz-details-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    font-size: 14px;
}

.kmr-amz-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.kmr-amz-details-table td:first-child {
    color: var(--amz-text-secondary);
    width: 30%;
}

/* ===== Cards de produto (shop, archive, related) ===== */
body:not(.home):not(.front-page) ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
}

body:not(.home):not(.front-page) ul.products li.product,
body:not(.home):not(.front-page) .product {
    border: 1px solid transparent;
    border-radius: var(--amz-radius);
    padding: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

body:not(.home):not(.front-page) ul.products li.product:hover,
body:not(.home):not(.front-page) .product:hover {
    border-color: var(--amz-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body:not(.home):not(.front-page) ul.products li.product a.woocommerce-LoopProduct-link {
    text-decoration: none;
    color: var(--amz-text);
}

body:not(.home):not(.front-page) ul.products li.product img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 8px;
}

body:not(.home):not(.front-page) ul.products li.product .woocommerce-loop-product__title,
body:not(.home):not(.front-page) ul.products li.product a .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: var(--amz-text) !important;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

body:not(.home):not(.front-page) ul.products li.product .woocommerce-loop-product__title:hover,
body:not(.home):not(.front-page) ul.products li.product a:hover .woocommerce-loop-product__title {
    color: var(--amz-orange) !important;
}

body:not(.home):not(.front-page) ul.products li.product .price {
    color: var(--amz-text) !important;
}

body:not(.home):not(.front-page) ul.products li.product .price .woocommerce-Price-amount {
    color: var(--amz-text) !important;
}

body:not(.home):not(.front-page) ul.products li.product .star-rating {
    color: var(--amz-orange);
    font-size: 13px;
    margin-bottom: 6px;
}

body:not(.home):not(.front-page) ul.products li.product .price {
    font-size: 18px;
    color: var(--amz-text);
    font-weight: 500;
    margin-bottom: 6px;
}

body:not(.home):not(.front-page) ul.products li.product .price del {
    color: var(--amz-text-secondary);
    font-size: 13px;
    margin-right: 6px;
}

body:not(.home):not(.front-page) ul.products li.product .price ins {
    text-decoration: none;
}

body:not(.home):not(.front-page) ul.products li.product .kmr-product-category,
body:not(.home):not(.front-page) ul.products li.product .kmr-product-excerpt,
body:not(.home):not(.front-page) ul.products li.product .kmr-badge-freeship {
    display: none !important;
}

body:not(.home):not(.front-page) ul.products li.product .kmr-badge-sale {
    top: 8px;
    left: 8px;
    background: #cc0c39;
    border-radius: 2px;
    font-size: 12px;
    padding: 4px 8px;
}

body:not(.home):not(.front-page) ul.products li.product .add_to_cart_button {
    width: 100%;
    background: var(--amz-yellow) !important;
    color: var(--amz-text) !important;
    border: 1px solid #fcd200 !important;
    border-radius: 20px !important;
    padding: 8px !important;
    font-size: 13px !important;
    text-align: center;
    margin-top: 8px;
}

body:not(.home):not(.front-page) ul.products li.product .add_to_cart_button:hover {
    background: var(--amz-yellow-hover) !important;
}

/* ===== Botões gerais ===== */
body:not(.home):not(.front-page) .woocommerce .button,
body:not(.home):not(.front-page) .woocommerce button.button,
body:not(.home):not(.front-page) .woocommerce a.button,
body:not(.home):not(.front-page) .woocommerce input.button {
    background: var(--amz-yellow) !important;
    color: var(--amz-text) !important;
    border: 1px solid #fcd200 !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

body:not(.home):not(.front-page) .woocommerce .button:hover,
body:not(.home):not(.front-page) .woocommerce button.button:hover,
body:not(.home):not(.front-page) .woocommerce a.button:hover {
    background: var(--amz-yellow-hover) !important;
}

body:not(.home):not(.front-page) .woocommerce .button.alt,
body:not(.home):not(.front-page) .woocommerce .checkout-button,
body:not(.home):not(.front-page) .woocommerce .single_add_to_cart_button {
    background: var(--amz-yellow) !important;
    color: var(--amz-text) !important;
    border-color: #fcd200 !important;
    border-radius: 20px !important;
}

body:not(.home):not(.front-page) .woocommerce .button.alt:hover,
body:not(.home):not(.front-page) .woocommerce .checkout-button:hover,
body:not(.home):not(.front-page) .woocommerce .single_add_to_cart_button:hover {
    background: var(--amz-yellow-hover) !important;
}

/* ===== Carrinho e Checkout ===== */
body:not(.home):not(.front-page) .woocommerce-cart .woocommerce,
body:not(.home):not(.front-page) .woocommerce-checkout .woocommerce {
    font-family: var(--amz-font);
}

body:not(.home):not(.front-page) .woocommerce table.shop_table {
    border: 1px solid var(--amz-border);
    border-radius: var(--amz-radius);
}

body:not(.home):not(.front-page) .woocommerce table.shop_table th {
    background: var(--amz-bg-gray);
    font-weight: 700;
}

/* ===== Footer Amazon ===== */
.kmr-amz-footer {
    background: var(--amz-light);
    color: #fff;
    font-family: var(--amz-font);
    margin-top: 40px;
}

.kmr-amz-footer-backtop {
    background: var(--amz-light) !important;
    color: #fff !important;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    border: none !important;
    width: 100%;
    border-radius: 0 !important;
}

.kmr-amz-footer-backtop:hover {
    background: #2a4a73 !important;
}

.kmr-amz-footer-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .kmr-amz-footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kmr-amz-footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.kmr-amz-footer-col a {
    display: block;
    color: #ddd;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
}

.kmr-amz-footer-col a:hover {
    text-decoration: underline;
}

.kmr-amz-footer-bottom {
    border-top: 1px solid #3a4553;
    padding: 20px 16px;
    text-align: center;
    font-size: 12px;
    color: #ddd;
}

/* ===== Esconde elementos do Elementor/header/footer padrão em páginas internas ===== */
body:not(.home):not(.front-page) .elementor-location-header,
body:not(.home):not(.front-page) .elementor-location-footer {
    display: none !important;
}

/* Esconde footer padrão do Hello Elementor / Elementor */
body:not(.home):not(.front-page) .elementor-section-wrap > section[data-elementor-type="footer"],
body:not(.home):not(.front-page) .elementor-section-wrap > div[data-elementor-type="footer"] {
    display: none !important;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .kmr-amz-topbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .kmr-amz-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .kmr-amz-nav-item span,
    .kmr-amz-location span {
        display: none;
    }

    .kmr-amz-submenu-inner {
        gap: 12px;
    }

    body:not(.home):not(.front-page) .site-main,
    body:not(.home):not(.front-page) main {
        padding: 12px;
    }

    body:not(.home):not(.front-page) ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    body:not(.home):not(.front-page) ul.products li.product img {
        height: 160px;
    }
}

/* ===== Forçar botão single product amarelo ===== */
html body.woocommerce-page:not(.home):not(.front-page) .kmr-amz-buybox .single_add_to_cart_button.button.alt,
html body.woocommerce-page:not(.home):not(.front-page) div.product.type-product .single_add_to_cart_button.button.alt,
html body.woocommerce-page:not(.home):not(.front-page) .woocommerce div.product form.cart .button.single_add_to_cart_button.alt {
    background-color: #ffd814 !important;
    background: #ffd814 !important;
    color: #0f1111 !important;
    border: 1px solid #fcd200 !important;
    border-radius: 20px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

html body.woocommerce-page:not(.home):not(.front-page) .kmr-amz-buybox .single_add_to_cart_button.button.alt:hover,
html body.woocommerce-page:not(.home):not(.front-page) div.product.type-product .single_add_to_cart_button.button.alt:hover {
    background-color: #f7ca00 !important;
    background: #f7ca00 !important;
}

/* ===== Ajustes finos ===== */

/* Remove hero banner em páginas internas (ex: /loja) */
body:not(.home):not(.front-page) .kmr-hero-banner,
body:not(.home):not(.front-page) .kmr-categories {
    display: none !important;
}

/* Ajusta header mobile */
@media (max-width: 768px) {
    .kmr-amz-topbar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
    }
    .kmr-amz-logo {
        font-size: 18px;
        max-width: 110px;
    }
    .kmr-amz-logo img {
        max-width: 110px;
        height: 28px;
    }
    .kmr-amz-nav-right {
        gap: 2px;
        margin-left: auto;
    }
    .kmr-amz-nav-item span {
        display: none;
    }
    .kmr-amz-nav-item strong {
        font-size: 11px;
    }
    .kmr-amz-location {
        font-size: 11px;
        padding: 4px 6px;
    }
    .kmr-amz-location strong {
        font-size: 12px;
    }
    .kmr-amz-cart {
        font-size: 12px;
        padding: 4px 6px;
    }
    .kmr-amz-language-current {
        padding: 4px 6px;
    }
}

/* Compacta cards na loja */
body:not(.home):not(.front-page) ul.products li.product {
    padding: 8px;
}

body:not(.home):not(.front-page) ul.products li.product img {
    height: 180px;
    margin-bottom: 4px;
}

body:not(.home):not(.front-page) ul.products li.product .woocommerce-loop-product__title {
    min-height: 42px;
    -webkit-line-clamp: 2;
}

/* Remove espaçamentos excessivos do Elementor na shop */
body:not(.home):not(.front-page).woocommerce-shop .elementor-section-wrap > .elementor-section:first-child {
    display: none !important;
}

/* ===== Carrinho ===== */
body:not(.home):not(.front-page).woocommerce-cart .entry-title,
body:not(.home):not(.front-page).woocommerce-cart .page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

body:not(.home):not(.front-page).woocommerce-cart .woocommerce {
    overflow: auto;
}

body:not(.home):not(.front-page).woocommerce-cart .cart-collaterals {
    margin-top: 24px;
    clear: both;
}

body:not(.home):not(.front-page).woocommerce-cart .cart_totals,
body:not(.home):not(.front-page).woocommerce-cart .cart-collaterals .cart_totals {
    border: 1px solid var(--amz-border);
    border-radius: var(--amz-radius);
    padding: 16px;
    background: #fff;
}

body:not(.home):not(.front-page).woocommerce-cart .shop_table .amount,
body:not(.home):not(.front-page).woocommerce-cart .cart_totals .amount,
body:not(.home):not(.front-page).woocommerce-checkout .shop_table .amount {
    color: var(--amz-text) !important;
}


/* =====================================================
   Carrinho estilo Amazon
   ===================================================== */

body.woocommerce-cart {
    background: #eaeded !important;
}

body.woocommerce-cart .woocommerce {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.kmr-amz-cart-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.kmr-amz-cart-title {
    font-size: 28px;
    font-weight: 400;
    color: #0f1111;
    margin: 0 0 16px;
    padding: 0;
}

.kmr-amz-cart-box,
.kmr-amz-cart-summary,
.kmr-amz-cart-recommendations {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kmr-amz-cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 13px;
    color: #565959;
    margin-bottom: 16px;
}

.kmr-amz-cart-header .kmr-amz-cart-col-price,
.kmr-amz-cart-header .kmr-amz-cart-col-subtotal {
    text-align: right;
}

.kmr-amz-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f2;
}

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

.kmr-amz-cart-product {
    display: flex;
    gap: 16px;
}

.kmr-amz-cart-thumb img {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.kmr-amz-cart-info {
    flex: 1;
}

.kmr-amz-cart-product-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 8px;
}

.kmr-amz-cart-product-name a {
    color: #0f1111;
    text-decoration: none;
}

.kmr-amz-cart-product-name a:hover {
    color: #007185;
    text-decoration: underline;
}

.kmr-amz-cart-stock {
    margin: 0 0 4px;
    font-size: 13px;
}

.kmr-amz-in-stock {
    color: #007600;
}

.kmr-amz-out-stock {
    color: #b12704;
}

.kmr-amz-cart-shipping {
    color: #007185;
    font-size: 13px;
    margin: 0 0 8px;
}

.kmr-amz-cart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
}

.kmr-amz-cart-actions a {
    color: #007185;
    text-decoration: none;
}

.kmr-amz-cart-actions a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.kmr-amz-cart-action-sep {
    color: #d5d9d9;
}

.kmr-amz-cart-price,
.kmr-amz-cart-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: #0f1111;
    text-align: right;
}

.kmr-amz-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    background: #f0f2f2;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kmr-amz-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f2f2;
    color: #0f1111;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmr-amz-qty-btn:hover {
    background: #e3e6e6;
}

.kmr-amz-qty-input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid #d5d9d9;
    border-right: 1px solid #d5d9d9;
    text-align: center;
    font-size: 14px;
    background: #fff;
    color: #0f1111;
    outline: none;
    -moz-appearance: textfield;
}

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

.kmr-amz-cart-subtotal-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e7e7e7;
    font-size: 18px;
    color: #0f1111;
}

.kmr-amz-cart-subtotal-line strong {
    font-size: 20px;
}

.kmr-amz-cart-footer-note {
    margin-top: 16px;
    font-size: 12px;
    color: #565959;
    line-height: 1.5;
}

/* Sidebar */
.kmr-amz-cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kmr-amz-cart-free-shipping {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f2;
}

.kmr-amz-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.kmr-amz-cart-free-shipping strong {
    font-size: 14px;
    color: #0f1111;
    display: block;
    margin-bottom: 4px;
}

.kmr-amz-cart-free-shipping p {
    margin: 0;
    font-size: 12px;
    color: #565959;
}

.kmr-amz-cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #0f1111;
    margin-bottom: 12px;
}

.kmr-amz-cart-subtotal-row strong {
    font-size: 20px;
}

.kmr-amz-cart-gift {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f1111;
    margin-bottom: 16px;
    cursor: pointer;
}

.kmr-amz-cart-gift input {
    width: 16px;
    height: 16px;
    accent-color: #007185;
}

.kmr-amz-btn-proceed {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 999px;
    color: #0f1111;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.kmr-amz-btn-proceed:hover {
    background: #f7ca00;
}

.kmr-amz-cart-recommendations h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 12px;
}

/* Responsivo */
@media (max-width: 1024px) {
    .kmr-amz-cart-wrap {
        grid-template-columns: 1fr;
    }

    .kmr-amz-cart-header {
        display: none;
    }

    .kmr-amz-cart-item {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .kmr-amz-cart-col-product {
        grid-column: 1 / -1;
    }

    .kmr-amz-cart-price,
    .kmr-amz-cart-subtotal {
        text-align: left;
    }
}

@media (max-width: 600px) {
    body.woocommerce-cart .woocommerce {
        padding: 12px;
    }

    .kmr-amz-cart-box,
    .kmr-amz-cart-summary,
    .kmr-amz-cart-recommendations {
        padding: 16px;
    }

    .kmr-amz-cart-thumb img {
        width: 80px;
    }

    .kmr-amz-cart-product {
        flex-direction: column;
    }

    .kmr-amz-cart-item {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   Ajustes finos no carrinho Amazon
   ===================================================== */

/* Esconde o título da página do WordPress na página do carrinho */
body.woocommerce-cart .page-header,
body.woocommerce-cart .site-main .page-header,
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart h1.page-title,
body.woocommerce-cart .page-content .entry-title,
body.woocommerce-cart main .entry-title {
    display: none !important;
}

/* Força botões de quantidade cinza (sobrescreve verde do Elementor) */
.kmr-amz-qty-btn,
.kmr-amz-qty-btn:hover,
.kmr-amz-qty-btn:focus {
    background: #f0f2f2 !important;
    color: #0f1111 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove underline do botão Proceder al pago */
.kmr-amz-btn-proceed,
.kmr-amz-btn-proceed:hover,
.kmr-amz-btn-proceed:focus {
    text-decoration: none !important;
}

/* Corrige espaçamento do título duplicado */
.kmr-amz-cart-title {
    margin-top: 0;
}

/* ===== Produtos relacionados na pagina do produto (compacto e elegante) ===== */
.kmr-amz-related {
    background: #fff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    padding: 28px 0 22px;
    margin-top: 32px;
}

.kmr-amz-related h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.kmr-amz-related-sub {
    font-size: 13px;
    color: #565959;
    margin: 0 0 18px;
}

.kmr-amz-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.kmr-amz-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #0f1111;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 12px 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kmr-amz-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.kmr-amz-related-card:hover .kmr-amz-related-title {
    color: #c7511f;
}

.kmr-amz-related-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.kmr-amz-related-img img {
    max-height: 92%;
    max-width: 92%;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.kmr-amz-related-card:hover .kmr-amz-related-img img {
    transform: scale(1.04);
}

.kmr-amz-related-info {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.kmr-amz-related-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #565959;
    margin-bottom: 5px;
}

.kmr-amz-related-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: #007185;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 35px;
}

.kmr-amz-related-price {
    font-size: 14px;
    font-weight: 700;
    color: #0f1111;
    margin-top: auto;
}

.kmr-amz-related-price .woocommerce-Price-amount {
    font-size: 14px;
}

.kmr-amz-related-price del {
    display: none;
}

.kmr-amz-related-price ins {
    text-decoration: none;
}

.kmr-amz-related-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    background: #cc0c39;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    width: fit-content;
}

.kmr-amz-related-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .kmr-amz-related {
        padding: 22px 0 18px;
        margin-top: 24px;
    }

    .kmr-amz-related h2 {
        font-size: 17px;
    }

    .kmr-amz-related-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        padding: 4px 4px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .kmr-amz-related-grid::-webkit-scrollbar {
        display: none;
    }

    .kmr-amz-related-card {
        flex: 0 0 auto;
        width: 132px;
        padding: 10px;
        scroll-snap-align: start;
    }

    .kmr-amz-related-card:hover {
        transform: none;
    }

    .kmr-amz-related-img {
        aspect-ratio: 1 / 1;
    }

    .kmr-amz-related-title {
        font-size: 11px;
        min-height: 32px;
    }

    .kmr-amz-related-price {
        font-size: 13px;
    }

    .kmr-amz-related-price .woocommerce-Price-amount {
        font-size: 13px;
    }
}

/* ===== Popup de localização estilo Amazon ===== */
.kmr-amz-location-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kmr-amz-location-popup-overlay.active {
    display: block;
    opacity: 1;
}

.kmr-amz-location-popup {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 24px;
    max-width: 420px;
    width: calc(100% - 32px);
    margin: 0;
    animation: kmrPopupSlideIn 0.25s ease;
}

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

.kmr-amz-location-popup::before {
    content: '';
    position: absolute;
    top: -10px;
    left: var(--kmr-popup-arrow-left, 120px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

.kmr-amz-location-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.kmr-amz-location-popup-close:hover {
    background: #f0f2f2;
    color: #0f1111;
}

.kmr-amz-location-popup h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 12px;
}

.kmr-amz-location-popup p {
    font-size: 14px;
    line-height: 1.5;
    color: #0f1111;
    margin: 0 0 20px;
}

.kmr-amz-location-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.kmr-amz-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    border: 1px solid #d5d9d9;
    background-image: none !important;
    box-shadow: none !important;
}

.kmr-amz-location-btn-continue {
    background: #fff !important;
    background-color: #fff !important;
    color: #0f1111 !important;
}

.kmr-amz-location-btn-continue:hover {
    background: #f7fafa !important;
    background-color: #f7fafa !important;
}

.kmr-amz-location-btn-change {
    background: #ffd814;
    border-color: #fcd200;
    color: #0f1111;
}

.kmr-amz-location-btn-change:hover {
    background: #f7ca00;
    border-color: #f2c200;
}

@media (max-width: 768px) {
    .kmr-amz-location-popup-actions {
        flex-direction: column;
    }

    .kmr-amz-location-btn {
        width: 100%;
    }
}

/* ===== Empty cart (modern Amazon style) ===== */
.kmr-amz-empty-cart {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    color: #0f1111;
}

.kmr-amz-empty-cart__icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
}

.kmr-amz-empty-cart h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.kmr-amz-empty-cart p {
    font-size: 15px;
    color: #565959;
    margin-bottom: 24px;
    line-height: 1.5;
}

.kmr-amz-empty-cart__btn {
    display: inline-block;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 8px;
    color: #0f1111;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.kmr-amz-empty-cart__btn:hover {
    background: #f7ca00;
    border-color: #f2c200;
}

@media (max-width: 768px) {
    .kmr-amz-empty-cart {
        padding: 40px 16px;
    }

    .kmr-amz-empty-cart__icon {
        font-size: 48px;
    }

    .kmr-amz-empty-cart h2 {
        font-size: 20px;
    }
}

/* ===== Checkout payment methods: radio + label on same line ===== */
.wc_payment_methods .wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}

.wc_payment_methods .wc_payment_method > input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.wc_payment_methods .wc_payment_method > label {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    cursor: pointer;
    line-height: 1.3;
}

.wc_payment_methods .wc_payment_method .payment_box {
    flex-basis: 100%;
    margin-top: 8px;
    width: 100%;
}

.wc_payment_methods .wc_payment_method .payment_box p:first-child {
    margin-top: 0;
}


/* ===== KMR Payment Receipt Upload (checkout) ===== */
.kmr-payment-receipt-upload {
    margin-top: 18px;
    padding: 18px;
    background: #f7f8fa;
    border: 1px dashed #c1c7d0;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.kmr-payment-receipt-upload.has-success {
    border-color: #2e7d32;
    background: #f1f8f4;
}

.kmr-payment-receipt-upload.has-error {
    border-color: #c62828;
    background: #fdf2f2;
}

.kmr-receipt-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    cursor: pointer;
}

.kmr-receipt-title {
    font-weight: 700;
    font-size: 15px;
    color: #232f3e;
}

.kmr-receipt-hint {
    font-size: 12px;
    color: #5f6b7a;
}

.kmr-receipt-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border: 2px dashed #b8c0cc;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.kmr-receipt-dropzone:hover,
.kmr-receipt-dropzone.dragover {
    border-color: #ff9900;
    background: #fff8f0;
}

.kmr-payment-receipt-upload.has-success .kmr-receipt-dropzone {
    border-color: #2e7d32;
}

.kmr-payment-receipt-upload.has-error .kmr-receipt-dropzone {
    border-color: #c62828;
}

.kmr-receipt-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.kmr-receipt-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.kmr-receipt-icon {
    font-size: 28px;
    line-height: 1;
}

.kmr-receipt-text {
    font-size: 13px;
    color: #4a5568;
}

.kmr-receipt-filename {
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
    word-break: break-all;
}

.kmr-receipt-msg {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}

.kmr-receipt-msg.uploading {
    color: #f57c00;
}

.kmr-receipt-msg.success {
    color: #2e7d32;
}

.kmr-receipt-msg.error {
    color: #c62828;
}

/* ===== Thank-you page receipt ===== */
.kmr-payment-receipt-thankyou {
    margin-top: 18px;
    padding: 18px;
    background: #f1f8f4;
    border: 1px solid #2e7d32;
    border-radius: 10px;
}

.kmr-payment-receipt-thankyou .kmr-receipt-thumb {
    max-width: 220px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ===== My Account receipts table ===== */
.kmr-my-account-receipts {
    margin-top: 20px;
}

.kmr-receipts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.kmr-receipts-table th,
.kmr-receipts-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.kmr-receipts-table th {
    background: #f7f8fa;
    font-weight: 700;
    font-size: 13px;
    color: #232f3e;
}

.kmr-receipts-table .kmr-receipt-thumb {
    max-width: 70px;
    max-height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.kmr-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.kmr-status-badge.status-awaiting {
    background: #fff8e1;
    color: #f57c00;
}

.kmr-status-badge.status-approved {
    background: #f1f8f4;
    color: #2e7d32;
}

.kmr-status-badge.status-rejected {
    background: #fdf2f2;
    color: #c62828;
}

.kmr-receipt-reupload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.kmr-receipt-reupload input[type="file"] {
    max-width: 180px;
    font-size: 12px;
}

.kmr-approved-text {
    color: #2e7d32;
    font-weight: 700;
}

.kmr-rejected-text {
    color: #c62828;
    font-weight: 700;
}

@media (max-width: 768px) {
    .kmr-receipts-table thead {
        display: none;
    }
    .kmr-receipts-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px;
    }
    .kmr-receipts-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .kmr-receipts-table td::before {
        content: attr(data-title);
        font-weight: 700;
        margin-right: 10px;
        color: #232f3e;
    }
    .kmr-receipt-reupload {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== Oculta o rodapé padrão do Hello Elementor/Astra em todas as páginas ===== */
/* O rodapé estilo Amazon (list-bands, logo-row, columns, newsletter) não usa essas classes. */
#site-footer,
.site-footer,
footer.site-footer {
    display: none !important;
}


/* ===== SEÇÃO MAIS VENDIDOS (override para cache agressivo) ===== */
.kmr-loja-bestsellers {
    padding-bottom: 50px !important;
}

.kmr-loja-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
}

.kmr-loja-section-header h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f1111 !important;
    margin: 0 !important;
    letter-spacing: -0.3px !important;
}

.kmr-loja-top10 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 24px !important;
    border: 2px solid #fed700 !important;
    background: #fff !important;
    color: #0f1111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.kmr-loja-bestsellers-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.kmr-loja-bestseller-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    text-decoration: none !important;
    color: #0f1111 !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 14px !important;
    padding: 14px !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.kmr-loja-bestseller-rank {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0f1111 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    z-index: 2 !important;
}

.kmr-loja-bestseller-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    height: 150px !important;
    margin-bottom: 12px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.kmr-loja-bestseller-img img {
    max-height: 92% !important;
    max-width: 92% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.kmr-loja-bestseller-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
}

.kmr-loja-bestseller-cat {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: #565959 !important;
    margin-bottom: 4px !important;
    min-height: 14px !important;
    line-height: 14px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.kmr-loja-bestseller-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #0f1111 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 35px !important;
    max-height: 35px !important;
}

.kmr-loja-bestseller-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f1111 !important;
    margin-top: auto !important;
    padding-top: 4px !important;
}

.kmr-loja-bestseller-price del {
    font-size: 12px !important;
    color: #999 !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
}

.kmr-loja-bestseller-price ins {
    text-decoration: none !important;
}

@media (max-width: 1200px) {
    .kmr-loja-bestsellers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .kmr-loja-bestsellers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .kmr-loja-bestsellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .kmr-loja-bestseller-card {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .kmr-loja-bestseller-img {
        height: 130px !important;
        margin-bottom: 10px !important;
    }

    .kmr-loja-bestseller-title {
        font-size: 12px !important;
        min-height: 32px !important;
        max-height: 32px !important;
    }

    .kmr-loja-bestseller-price {
        font-size: 14px !important;
    }

    .kmr-loja-top10 {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
}


/* =====================================================
   BOTAO FLUTUANTE "IR PARA A LOJA" - HOMEPAGE
   ===================================================== */
.kmr-floating-store-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #fed700 0%, #ff9800 100%);
    color: #1a3a5c;
    font-family: var(--amz-font, Arial, Helvetica, sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(254, 215, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    white-space: nowrap;
}

.kmr-floating-store-btn__icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.kmr-floating-store-btn__label {
    line-height: 1;
}

.kmr-floating-store-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 28px rgba(254, 215, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #0d1b2a;
    text-decoration: none;
}

.kmr-floating-store-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Pulse sutil ao redor do botao */
.kmr-floating-store-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(254, 215, 0, 0.35);
    animation: kmr-pulse-ring 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes kmr-pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Responsivo - mobile */
@media (max-width: 768px) {
    .kmr-floating-store-btn {
        bottom: 18px;
        right: 18px;
        padding: 12px 18px;
        font-size: 14px;
        gap: 8px;
    }

    .kmr-floating-store-btn__icon {
        font-size: 18px;
    }
}

/* Esconde em telas muito pequenas se necessario */
@media (max-width: 360px) {
    .kmr-floating-store-btn__label {
        display: none;
    }

    .kmr-floating-store-btn {
        padding: 14px;
        border-radius: 50%;
    }

    .kmr-floating-store-btn::after {
        border-radius: 50%;
    }
}
