html {
    height: 100% !important;
}

body {

    display: grid;
    /* Ativa o CSS Grid */
    grid-template-rows: auto 1fr auto;
    /* Define 3 linhas: cabeçalho(auto), conteúdo(1fr), rodapé(auto) */
    min-height: 100% !important;
}

.containter {

    flex-grow: 1 !important;
}

.product-card {
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620));
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    color: #fff;
    overflow: hidden;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.variations-container .variation-btn {
    background-color: rgba(255, 255, 255, 0.06);
    color: #F2F2F2;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.variations-container .variation-btn.active {
    background-color: var(--u3d-primary, #2f7cff);
    /* Cor de destaque quando ativo */
    color: white;
    /* Texto escuro para contrastar com o botão ativo */
    border-color: var(--u3d-primary-strong, #69a2ff);
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.2), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    filter: drop-shadow(0 0 10px rgba(47, 124, 255, 0.32));
    outline: 3px solid var(--u3d-glow, rgba(47, 124, 255, 0.24));
    outline-offset: 0;
}

.variations-container .variation-btn:hover {
    background-color: rgba(47, 124, 255, 0.28);
    border-color: var(--u3d-primary-strong, #69a2ff);
}

.product-card .variation-btn {
    background-color: rgba(255, 255, 255, 0.06);
    color: #F2F2F2;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}


.product-card .variation-btn.active {
    background-color: var(--u3d-primary, #2f7cff);
    /* Cor de destaque quando ativo */
    color: white;
    /* Texto escuro para contrastar com o botão ativo */
    border-color: var(--u3d-primary-strong, #69a2ff);
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.2), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    filter: drop-shadow(0 0 10px rgba(47, 124, 255, 0.32));
    outline: 3px solid var(--u3d-glow, rgba(47, 124, 255, 0.24));
    outline-offset: 0;
}

.product-card .variation-btn:hover {
    background-color: rgba(47, 124, 255, 0.28);
    border-color: var(--u3d-primary-strong, #69a2ff);
}


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(105, 162, 255, 0.2);
    background: linear-gradient(180deg, #1d2533, #111620);
    border-color: rgba(105, 162, 255, 0.28) !important;
}

.product-card img {
    width: 100%;
    height: clamp(260px, 23vw, 380px);
    object-fit: cover;
    border-radius: 8px;
    background: #080b11;
    transition: transform 0.24s ease, filter 0.24s ease;
}

#productGrid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.perf-skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(105, 162, 255, 0.14) 38%, rgba(255, 255, 255, 0.06) 63%);
    background-size: 240% 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: perfSkeletonPulse 1.25s ease-in-out infinite;
}

.perf-skeleton-card {
    min-height: 460px;
    pointer-events: none;
}

.perf-skeleton-image {
    aspect-ratio: 1 / 1.1;
    min-height: 260px;
    width: 100%;
}

.perf-skeleton-line {
    height: 14px;
    margin-top: 14px;
}

.perf-skeleton-line.short {
    width: 54%;
}

.perf-skeleton-line.medium {
    width: 76%;
}

.produto-skeleton-shell {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.produto-skeleton-media {
    min-height: clamp(420px, 58vh, 680px);
}

.produto-skeleton-panel {
    min-height: clamp(420px, 58vh, 680px);
}

.checkout-loading-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
}

.checkout-loading-row .perf-skeleton-line {
    flex: 1;
    margin-top: 0;
}

@keyframes perfSkeletonPulse {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@media (max-width: 991.98px) {
    .produto-skeleton-shell {
        grid-template-columns: 1fr;
    }

    .produto-skeleton-media,
    .produto-skeleton-panel {
        min-height: 280px;
    }
}

.product-card:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.025);
}

#cartCount {
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    display: none;

    line-height: 1;
}

.product-card .fw-bold {

    color: white !important;
}

.product-price-display {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    justify-content: center;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.product-price-prefix {
    color: rgba(244, 247, 251, 0.62);
    font-size: 0.66em;
    font-weight: 600;
}

.product-price-value {
    color: var(--u3d-primary-strong, #69a2ff);
    filter: drop-shadow(0 0 8px rgba(47, 124, 255, 0.38));
    text-shadow: 0 0 14px rgba(47, 124, 255, 0.52), 0 0 24px rgba(105, 162, 255, 0.26);
}

.product-price-placeholder {
    color: rgba(244, 247, 251, 0.68);
    font-size: 0.82em;
}

.product-card .add-to-cart-btn,
#modalProdutoBtnAdd {
    background: linear-gradient(135deg, var(--u3d-success, #198754), var(--u3d-success-strong, #22b66f)) !important;
    border: 1px solid rgba(90, 238, 160, 0.72) !important;
    box-shadow: 0 10px 24px rgba(34, 182, 111, 0.18), 0 0 0 1px rgba(90, 238, 160, 0.2);
    color: #fff !important;
}

.product-card .add-to-cart-btn:hover,
.product-card .add-to-cart-btn:focus,
#modalProdutoBtnAdd:hover,
#modalProdutoBtnAdd:focus {
    background: linear-gradient(135deg, #1f9e62, #28c77d) !important;
    border-color: rgba(136, 255, 190, 0.86) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--u3d-success-glow, rgba(34, 182, 111, 0.28));
    filter: drop-shadow(0 0 10px rgba(34, 182, 111, 0.3));
    color: #fff !important;
}

.product-card .add-to-cart-btn:disabled,
.product-card .add-to-cart-btn.disabled,
#modalProdutoBtnAdd:disabled,
#modalProdutoBtnAdd.disabled {
    background-color: #26364f !important;
    border-color: #375781 !important;
    color: rgba(255, 255, 255, 0.62) !important;
}


.filter-bar {
    background: var(--u3d-surface, #111620);
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-bar button {
    border-radius: 30px;
    padding: 6px 18px;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
}

.btn-check:checked+.btn-outline-light,
.btn-outline-light.active,
.btn-outline-light.dropdown-toggle.show {
    color: black;
    background-color: #d6d6d6;
    border-color: #d6d6d6;
}

#cardbox {
    margin: 0;
}

.variations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}


.mySwiperModal img {
    opacity: 1;
    border-radius: 10px;
}

.modal-loja {
    background: var(--u3d-surface, #111620);
    color: #fff;
    max-height: 100%;
}

.btn-close-white {
    opacity: 0.85;
    font-size: x-large;
}

.btn-success:disabled,
.btn-success.disabled {
    background-color: #101722;
    border-color: rgba(255, 255, 255, 0.12);
    /* opacity: 1; */
}

/* Estilo para a thumbnail da imagem no resumo do pedido */
.resumo-item-img {
    width: 60px;
    /* Largura da miniatura */
    height: 60px;
    /* Altura da miniatura */
    object-fit: cover;
    /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: 8px;
    /* Bordas arredondadas */
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    margin: auto;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}


/*
  Força a estilização correta do spinner de frete,
  evitando conflitos com outros estilos.
*/
#shippingResults .spinner-border,
#resumo-calculos .spinner-border {
    /* Define a cor da maior parte do círculo como transparente */
    border-color: rgba(255, 255, 255, 0.2);

    /* Define a cor do pequeno arco que gira (use sua cor de destaque) */
    border-right-color: #00ffff;
    /* Ciano/Azul claro, para bom contraste */
}

#payment_method_options {
    margin-top: 0 !important;

}

#checkoutbox {
    max-width: min(1240px, calc(100vw - 28px)) !important;
}

.checkout-page {
    background:
        radial-gradient(circle at top left, rgba(47, 124, 255, 0.12), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(34, 182, 111, 0.08), transparent 28rem),
        var(--u3d-bg, #0b1018) !important;
}

.checkout-heading {
    align-items: flex-start;
    display: grid;
    gap: 0.35rem;
    max-width: min(1240px, calc(100vw - 28px));
}

.checkout-heading h2 {
    color: var(--u3d-text, #f5f7fb);
    font-weight: 800;
}

.checkout-back-link,
.checkout-edit-cart {
    align-items: center;
    color: var(--u3d-primary-strong, #69a2ff);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.4rem;
    text-decoration: none;
}

.checkout-back-link:hover,
.checkout-edit-cart:hover {
    color: #9fc0ff;
    text-decoration: underline;
}

.checkout-layout {
    align-items: flex-start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
}

.checkout-main {
    align-self: flex-start;
    display: grid;
    gap: 1rem;
    margin-top: 0;
    min-width: 0;
}

.checkout-stepper {
    background: rgba(17, 22, 32, 0.74);
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
}

.checkout-step-trigger {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(245, 247, 251, 0.7);
    display: flex;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.55rem 0.75rem;
    text-align: left;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.checkout-step-trigger span {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 30px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.checkout-step-trigger strong {
    font-size: 0.95rem;
}

.checkout-step-trigger.active {
    background: linear-gradient(135deg, var(--u3d-primary, #2f7cff), var(--u3d-primary-strong, #69a2ff));
    border-color: rgba(105, 162, 255, 0.72);
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.2), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff;
}

.checkout-step-trigger.active span {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
}

.checkout-page .checkout-panel {
    background: linear-gradient(180deg, rgba(23, 29, 41, 0.98), rgba(17, 22, 32, 0.98));
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    color: var(--u3d-text, #f5f7fb);
    padding: clamp(1rem, 2vw, 1.45rem);
}

.checkout-step-panel {
    display: none;
}

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

.checkout-summary {
    align-self: flex-start;
    margin-top: 0;
    position: sticky;
    top: 1rem;
}

.checkout-page .checkout-panel h4,
.checkout-page .checkout-panel h5 {
    color: var(--u3d-text, #f5f7fb);
    font-weight: 700;
}

.checkout-section-head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
}

.checkout-section-head h4 {
    margin: 0;
}

.checkout-section-head small {
    color: var(--u3d-muted, #aab4c2);
    display: block;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.checkout-section-head i {
    align-items: center;
    background: rgba(47, 124, 255, 0.13);
    border: 1px solid rgba(105, 162, 255, 0.26);
    border-radius: 999px;
    color: var(--u3d-primary-strong, #69a2ff);
    display: inline-flex;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.checkout-form-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.checkout-form-grid .field {
    grid-column: span 2;
    min-width: 0;
}

.checkout-form-grid .field-wide {
    grid-column: span 3;
}

.checkout-form-grid .field-street {
    grid-column: span 3;
}

.checkout-form-grid .field-cep {
    grid-column: span 2;
}

.checkout-form-grid .field-number,
.checkout-form-grid .field-uf {
    grid-column: span 1;
}

.checkout-panel-actions {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1.15rem;
    padding-top: 1rem;
}

.checkout-page .list-group {
    gap: 0.55rem;
}

.checkout-page .list-group-item {
    background: rgba(255, 255, 255, 0.045) !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: var(--u3d-text, #f5f7fb) !important;
}

.checkout-summary-item {
    align-items: start;
    display: grid !important;
    gap: 0.75rem;
    grid-template-columns: 72px minmax(0, 1fr);
    justify-content: start !important;
    line-height: 1.25;
}

.checkout-summary-media {
    align-items: stretch;
    display: grid;
    gap: 0.35rem;
    justify-items: stretch;
}

.checkout-summary-media .resumo-item-img {
    margin: 0 !important;
    width: 72px;
    height: 72px;
}

.checkout-summary-price {
    color: var(--u3d-primary-strong, #69a2ff);
    filter: drop-shadow(0 0 8px rgba(47, 124, 255, 0.38));
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 0 14px rgba(47, 124, 255, 0.52), 0 0 24px rgba(105, 162, 255, 0.26);
}

.checkout-summary-remove {
    font-size: 0.72rem !important;
    line-height: 1.1;
    margin: 0 !important;
    min-height: 1.7rem;
    padding: 0.25rem 0.35rem !important;
    width: 100%;
}

.checkout-summary-info {
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
}

.checkout-summary-info h6 {
    font-size: 0.92rem;
    line-height: 1.25;
    margin-bottom: 0.2rem !important;
    overflow-wrap: anywhere;
}

.checkout-summary-info small {
    display: block;
    line-height: 1.25;
}

.checkout-summary-quantity-row {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
}

.checkout-summary-quantity-row > span {
    color: rgba(245, 247, 251, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.checkout-summary-quantity-control {
    align-items: center;
    background: rgba(8, 11, 17, 0.58);
    border: 1px solid rgba(105, 162, 255, 0.22);
    border-radius: 999px;
    display: inline-grid;
    gap: 0.15rem;
    grid-template-columns: 28px minmax(22px, auto) 28px;
    min-height: 30px;
    padding: 0.12rem;
}

.checkout-summary-quantity-control button {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 26px;
}

.checkout-summary-quantity-control button:hover,
.checkout-summary-quantity-control button:focus {
    background: linear-gradient(135deg, rgba(47, 124, 255, 0.96), rgba(87, 167, 255, 0.92));
    border-color: rgba(125, 195, 255, 0.9);
    box-shadow: 0 0 0 0.18rem rgba(47, 124, 255, 0.16), 0 0 15px rgba(47, 124, 255, 0.32);
}

.checkout-summary-quantity-control strong {
    color: var(--u3d-primary-strong, #69a2ff);
    font-size: 0.9rem;
    line-height: 1;
    min-width: 1.35rem;
    text-align: center;
    text-shadow: 0 0 12px rgba(47, 124, 255, 0.48);
}

.checkout-page .list-group-item .text-muted,
.checkout-page .form-text,
.checkout-page .text-muted {
    color: rgba(245, 247, 251, 0.68) !important;
}

.checkout-page .form-label {
    color: rgba(245, 247, 251, 0.86);
    font-weight: 600;
}

.checkout-page .form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--u3d-text, #f5f7fb);
}

.checkout-page .form-control:focus {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: var(--u3d-primary-strong, #69a2ff);
    box-shadow: 0 0 0 0.25rem var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: var(--u3d-text, #f5f7fb);
}

.checkout-page .form-control::placeholder {
    color: rgba(245, 247, 251, 0.48);
}

.checkout-page .payment-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.checkout-page .payment-security-badges span {
    align-items: center;
    background: rgba(34, 182, 111, 0.1);
    border: 1px solid rgba(90, 238, 160, 0.28);
    border-radius: 999px;
    color: rgba(235, 255, 244, 0.94);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.35rem;
    line-height: 1;
    padding: 0.45rem 0.65rem;
}

.checkout-page .payment-security-badges i {
    color: var(--u3d-success-strong, #22b66f);
}

.checkout-page .coupon-box {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.9rem;
}

.checkout-page #btn_aplicar_cupom {
    background: linear-gradient(135deg, var(--u3d-primary, #2f7cff), var(--u3d-primary-strong, #69a2ff)) !important;
    border-color: rgba(105, 162, 255, 0.72) !important;
    color: #fff !important;
}

.checkout-page #btn_aplicar_cupom:hover,
.checkout-page #btn_aplicar_cupom:focus {
    box-shadow: 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
}

.checkout-page .btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, var(--u3d-primary, #2f7cff), var(--u3d-primary-strong, #69a2ff)) !important;
    border-color: rgba(105, 162, 255, 0.86) !important;
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.2), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
}


.checkout-page .payment-method-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-page .payment-method-grid .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
    min-height: 52px;
}

.checkout-step-panel[data-checkout-step="pagamento"] .checkout-pay-method-btn {
    background: rgba(47, 124, 255, 0.16) !important;
    border: 1px solid rgba(105, 162, 255, 0.38) !important;
    box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.12) !important;
    color: #fff !important;
}

.checkout-step-panel[data-checkout-step="pagamento"] .checkout-pay-method-btn:focus,
.checkout-step-panel[data-checkout-step="pagamento"] .checkout-pay-method-btn:active {
    background: rgba(47, 124, 255, 0.2) !important;
    border-color: var(--u3d-primary-strong, #69a2ff) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
}

.checkout-step-panel[data-checkout-step="pagamento"] .checkout-pay-method-btn:hover {
    background: linear-gradient(135deg, #3f87ff, var(--u3d-primary-strong, #69a2ff)) !important;
    border-color: #9fc0ff !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24)), 0 0 22px rgba(47, 124, 255, 0.22);
    color: #fff !important;
}

.checkout-step-panel[data-checkout-step="pagamento"] .btn-check:checked + .checkout-pay-method-btn {
    background: rgba(47, 124, 255, 0.2) !important;
    border-color: var(--u3d-primary-strong, #69a2ff) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
}

.checkout-page .payment-option {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.checkout-page .selectfrete {
    align-items: center;
    min-height: 54px;
    outline: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkout-page .selectfrete:hover,
.checkout-page .selectfrete:focus-visible,
.checkout-page .selectfrete:has(.form-check-input:checked) {
    background-color: rgba(47, 124, 255, 0.16) !important;
    border-color: rgba(105, 162, 255, 0.38);
    box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.12);
}

.checkout-page .selectfrete .form-check {
    margin-bottom: 0;
}

.checkout-page .selectfrete .form-check-label {
    cursor: pointer;
    font-weight: 700;
}

.checkout-page .selectfrete .form-check-input {
    cursor: pointer;
}

.checkout-page .selectfrete strong,
.checkout-page #total-valor {
    color: #fff;
}

.checkout-page #generatePixButton {
    background: linear-gradient(135deg, var(--u3d-success, #198754), var(--u3d-success-strong, #22b66f)) !important;
    border-color: rgba(90, 238, 160, 0.72) !important;
    box-shadow: 0 10px 24px rgba(34, 182, 111, 0.18);
}

.checkout-step-panel[data-checkout-step="pagamento"] .btn-primary {
    background: rgba(47, 124, 255, 0.2) !important;
    border-color: var(--u3d-primary-strong, #69a2ff) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
}

.checkout-step-panel[data-checkout-step="pagamento"] .btn-primary:hover,
.checkout-step-panel[data-checkout-step="pagamento"] .btn-primary:focus,
.checkout-step-panel[data-checkout-step="pagamento"] .btn-primary:active {
    background: rgba(47, 124, 255, 0.25) !important;
    border-color: #9fc0ff !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
}

.shipping-calculator .input-group .btn-primary {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

#cartModal .modal-dialog {
    margin-left: auto;
    margin-right: auto;
    max-width: min(760px, calc(100vw - 24px));
}

#cartModal .modal-content {
    background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620)) !important;
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

#cartModal .modal-header,
#cartModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}

#cartModal .modal-body {
    padding: 1.15rem 1.25rem;
}

#cartModal .cart-controls-body {
    padding-bottom: 0.85rem;
}

#cartModal .cart-items-body {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

#cartModal #cartItems {
    display: grid;
    gap: 0.65rem;
    max-height: min(38vh, 320px);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-color: var(--u3d-primary, #2f7cff) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

#cartModal #cartItems::-webkit-scrollbar {
    width: 8px;
}

#cartModal #cartItems::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

#cartModal #cartItems::-webkit-scrollbar-thumb {
    background: var(--u3d-primary, #2f7cff);
    border-radius: 999px;
}

#cartModal #cartItems > .d-flex {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    gap: 0.75rem;
    padding: 0.85rem !important;
}

#cartModal #cartItems strong {
    color: #fff;
}

#cartModal #cartItems small,
#cartModal .cart-item-variation {
    color: var(--u3d-muted, #aab4c2);
}

#cartModal .shipping-calculator {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    margin-top: 0 !important;
    padding: 1rem;
}

#cartModal .shipping-calculator .input-group {
    margin-top: 0.65rem;
}

#cartModal #shippingResults {
    display: grid;
    gap: 0.55rem;
}

#cartModal #shippingResults .form-check {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin: 0;
    padding: 0.7rem 0.85rem 0.7rem 2.25rem;
}

#cartModal .modal-footer {
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

@media (max-width: 575px) {
    #cartModal .modal-dialog {
        margin: 0.75rem auto;
        max-width: calc(100vw - 18px);
    }

    #cartModal .modal-header,
    #cartModal .modal-body,
    #cartModal .modal-footer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    #cartModal #cartItems {
        max-height: 34vh;
    }

    #cartModal #cartItems > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    #cartModal #cartItems .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    #cartModal .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    #cartModal .modal-footer .btn {
        width: 100%;
    }
}


.selectfrete:hover {
    background-color: rgba(47, 124, 255, 0.14);
    /* Cinza claro, mas você pode escolher a cor que preferir */
    cursor: pointer;
    /* Muda o cursor para uma "mãozinha" para indicar que é clicável */
}


.btn-outline-primary:hover {
    background-color: var(--u3d-primary, #2f7cff) !important;
    /* Cor de sua preferência */
    cursor: pointer;
}


#carrinho-btn.btn-success {
    background: linear-gradient(135deg, var(--u3d-success, #198754), var(--u3d-success-strong, #22b66f)) !important;
    border-color: rgba(90, 238, 160, 0.72) !important;
    color: #fff !important;
}

#carrinho-btn.btn-success:hover,
#carrinho-btn.btn-success:focus,
#carrinho-btn.btn-success:active {
    background: linear-gradient(135deg, #1f9e62, #28c77d) !important;
    /* cor oficial do hover */
    border-color: rgba(136, 255, 190, 0.86) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 0 3px var(--u3d-success-glow, rgba(34, 182, 111, 0.28));
    color: #fff !important;
}

.btn-product-details {
    background: linear-gradient(135deg, var(--u3d-primary, #2f7cff), #5c93ff) !important;
    border: 1px solid var(--u3d-primary-strong, #69a2ff) !important;
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.22), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    color: #fff !important;
    filter: drop-shadow(0 0 10px rgba(47, 124, 255, 0.3));
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
    opacity: 0.92;
    z-index: 10;
}

.btn-product-details i {
    font-size: 0.9rem;
}

.product-card:hover .btn-product-details {
    opacity: 1;
    box-shadow: 0 12px 26px rgba(47, 124, 255, 0.28), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    z-index: 20;
}


/* botão flutuante mobile */
#carrinho-btn-mobile-loja {
    top: 30px;
    right: 15px;
    width: 60px;
    height: 60px;
    background-color: var(--bs-success);
    border: none;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carrinho-btn-mobile-loja i {
    font-size: 1.5rem;
    color: #fff;
}

/* Botão "Limpar filtros" da loja */
.btn-clear-filters {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.btn-clear-filters:hover {
    background-color: #e0a800 !important;
    border-color: #e0a800 !important;
    color: #111 !important;
}

#modalProdutoDescription {
    white-space: pre-line;
}

.modal-custom {
    max-width: min(1680px, 98vw);
}

.modal-loja {
    background: var(--u3d-surface, #111620);
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    color: #fff;
    overflow: hidden;
}

.modal-loja-header {
    border-bottom-color: var(--u3d-border, rgba(255, 255, 255, 0.1));
    padding: 0.65rem 0.9rem;
}

.modal-produto-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(300px, 0.65fr);
    gap: 0;
    min-height: min(840px, 84vh);
}

.modal-produto-media {
    min-width: 0;
    background: #080b11;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0.65rem;
}

.modal-produto-media-main {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 78px minmax(0, 1fr);
    min-width: 0;
}

.modal-produto-media .mySwiperModal {
    width: 100%;
    height: min(780px, 74vh);
}

.modal-produto-media .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.modal-produto-media .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: min(760px, 72vh);
    object-fit: contain;
    border-radius: 8px;
}

.modal-produto-video {
    background: #05070b;
    border: 0;
    border-radius: 8px;
    height: 100%;
    max-height: min(760px, 72vh);
    object-fit: contain;
    width: 100%;
}

.produto-video-shell {
    align-items: center;
    background: #05070b;
    border-radius: 8px;
    display: flex;
    height: 100%;
    isolation: isolate;
    justify-content: center;
    max-height: min(760px, 72vh);
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.produto-video-shell .modal-produto-video {
    display: block;
    height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.produto-video-controls {
    display: none;
    z-index: 30;
}

.produto-video-shell:fullscreen,
.produto-video-shell:-webkit-full-screen {
    align-items: center;
    background: #000;
    border-radius: 0;
    display: flex;
    height: 100vh;
    justify-content: center;
    max-height: none;
    max-width: none;
    overflow: hidden;
    width: 100vw;
}

.produto-video-shell:fullscreen .modal-produto-video,
.produto-video-shell:fullscreen .produto-gallery-video,
.produto-video-shell:-webkit-full-screen .modal-produto-video,
.produto-video-shell:-webkit-full-screen .produto-gallery-video {
    border-radius: 0;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: contain;
    width: 100%;
}

.produto-video-shell:fullscreen .produto-video-controls,
.produto-video-shell:-webkit-full-screen .produto-video-controls {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    display: flex;
    left: 50%;
    max-width: calc(100% - 32px);
    position: absolute;
    transform: translateX(-50%);
    z-index: 2147483647;
}

.modal-produto-media .swiper-button-next,
.modal-produto-media .swiper-button-prev {
    z-index: 12;
}

.modal-produto-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: min(780px, 74vh);
    overflow-y: auto;
    padding: 0.1rem 0.25rem 0.1rem 0;
    scrollbar-width: thin;
}

.modal-produto-thumb {
    background: var(--u3d-surface, #111620);
    border: 2px solid transparent;
    border-radius: 8px;
    flex: 0 0 58px;
    height: 58px;
    opacity: 0.72;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
    width: 58px;
}

.modal-produto-thumb:hover,
.modal-produto-thumb.active {
    border-color: var(--u3d-primary-strong, #69a2ff);
    box-shadow: 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24)), 0 0 18px rgba(47, 124, 255, 0.34);
    opacity: 1;
}

.modal-produto-thumb:hover {
    transform: translateY(-1px);
}

.modal-produto-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.modal-produto-thumb-video {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.5rem;
    justify-content: center;
}

.modal-produto-info {
    display: grid;
    gap: 0.75rem;
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding: 0.85rem;
    background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620));
    border-left: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    max-height: min(840px, 84vh);
    min-height: min(680px, 84vh);
    overflow: hidden;
}

.modal-produto-copy {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
}

.modal-produto-copy h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 0.55rem;
}

.modal-produto-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    height: 100%;
    line-height: 1.48;
    margin-bottom: 0;
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding-right: 0.25rem;
    scrollbar-color: var(--u3d-primary, #2f7cff) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    text-align: justify;
}

.modal-produto-copy p::-webkit-scrollbar {
    width: 8px;
}

.modal-produto-copy p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.modal-produto-copy p::-webkit-scrollbar-thumb {
    background: var(--u3d-primary, #2f7cff);
    border-radius: 999px;
}

.descricao-colapsavel {
    position: relative;
}

.descricao-colapsavel.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    max-height: 7.8em;
    mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}

.modal-produto-copy .descricao-colapsavel:not(.is-collapsed) {
    max-height: 100%;
}

.modal-produto-copy .descricao-colapsavel.is-collapsed {
    display: block;
    -webkit-line-clamp: unset;
    height: 100%;
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    max-height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.descricao-toggle {
    align-self: start;
    background: transparent;
    border: 0;
    color: var(--u3d-primary-strong, #69a2ff);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    justify-self: start;
    line-height: 1.2;
    margin-top: 0.4rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.descricao-toggle:hover,
.descricao-toggle:focus {
    color: #9fc0ff;
    text-decoration: underline;
}

.modal-produto-options {
    border-top: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    margin-top: 0;
    padding-top: 0.6rem;
}

.modal-produto-options h5 {
    font-size: 0.84rem;
    margin-bottom: 0.4rem;
}

.modal-produto-options .variations-container {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
}

.modal-produto-options .variation-btn {
    font-size: 0.82rem;
    line-height: 1.15;
    min-height: 2rem;
    overflow: hidden;
    padding: 0.35rem 0.45rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-produto-actions {
    border-top: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    display: grid;
    gap: 0.55rem;
    margin-top: 0;
    padding-top: 0.65rem;
}

#searchInput {
    border-left: none;
}

.input-group-text {
    border-right: none;
}

.info-highlight {
    background: rgba(47, 124, 255, 0.09);
    border-left: 4px solid var(--u3d-primary, #2f7cff);
    border-right: 4px solid var(--u3d-primary, #2f7cff);
    /* azul bootstrap */
    padding: .75rem 1rem;
    border-radius: .5rem;
    color: #fff;
}

.loja-catalog-shell {
    max-width: min(1480px, calc(100vw - 32px));
    padding-left: 0;
    padding-right: 0;
}

.loja-catalog-header {
    align-items: center;
    background: rgba(17, 22, 32, 0.92);
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
    padding: 18px;
    position: sticky;
    top: 10px;
    z-index: 40;
}

.loja-catalog-copy {
    max-width: none;
    min-width: 0;
}

.loja-catalog-copy .info-highlight {
    text-align: center !important;
    width: 100%;
}

.loja-catalog-tools {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: end;
}

.loja-search-group {
    justify-self: end;
    max-width: 360px;
    width: 100%;
}

.loja-catalog-tools #searchHelp {
    display: none !important;
}

.loja-search-group .form-control,
.loja-search-group .input-group-text,
.loja-search-group .btn,
.loja-category-trigger,
.loja-cart-action .btn {
    min-height: 42px;
}

.loja-catalog-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 260px minmax(0, 1fr);
}

.loja-category-panel,
.loja-products-panel {
    background: rgba(17, 22, 32, 0.92);
    border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.loja-category-sidebar {
    align-self: start;
    position: sticky;
    top: 102px;
}

.loja-category-panel {
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding: 14px;
}

.loja-category-head,
.loja-products-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    text-align: left;
}

.loja-products-head > div {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.loja-category-head {
    border-bottom: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.loja-category-head span,
.loja-products-head span:first-child {
    color: var(--u3d-muted, #aab4c2);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.loja-category-head h2,
.loja-products-head h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.loja-category-list {
    display: grid;
    gap: 8px;
}

.loja-category-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f3f3f3;
    display: flex;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 10px;
    text-align: left;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    width: 100%;
}

.loja-category-item:hover {
    background: rgba(47, 124, 255, 0.14);
    border-color: rgba(105, 162, 255, 0.28);
}

.loja-category-item.active {
    background: linear-gradient(135deg, var(--u3d-primary, #2f7cff), #5c93ff);
    border-color: var(--u3d-primary-strong, #69a2ff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.2), 0 0 0 3px var(--u3d-glow, rgba(47, 124, 255, 0.24));
    filter: drop-shadow(0 0 10px rgba(47, 124, 255, 0.32));
}

.loja-category-name {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loja-category-count {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 30px;
    padding: 2px 8px;
    text-align: center;
}

.loja-category-item.active .loja-category-count {
    background: rgba(0, 0, 0, 0.18);
}

.loja-products-panel {
    min-height: 560px;
    padding: 16px;
}

.loja-products-head {
    border-bottom: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.loja-result-count {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #d7dce2;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 6px 10px;
}

.loja-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.loja-active-filter-chip {
    align-items: center;
    background: rgba(47, 124, 255, 0.16);
    border: 1px solid rgba(105, 162, 255, 0.34);
    border-radius: 999px;
    color: #edf4ff;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 6px;
    padding: 5px 9px;
}

.loja-category-offcanvas .loja-category-item {
    min-height: 46px;
}


@media (min-width: 991px) {

    #res-itens {

        padding-right: clamp(1rem, 2vw, 1.45rem);
    }

    .modal-body {
        width: 100%;
        padding: 0;

    }

}

@media (max-width: 575px) {
    .cart-container {
        width: auto;
        display: flex;
        justify-content: center;
    }

    #checkout-form .form-control {
        max-width: none;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    #checkout-form label {
        font-size: 0.9rem;
        text-align: left;
        width: 100%;
        display: block;
    }

    #separaresumo {
        margin-top: 0;
    }

    #pg {
        margin: auto;
    }


}

@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .checkout-form-grid .field,
    .checkout-form-grid .field-wide,
    .checkout-form-grid .field-street,
    .checkout-form-grid .field-cep {
        grid-column: span 2;
    }

    .checkout-form-grid .field-number,
    .checkout-form-grid .field-uf {
        grid-column: span 1;
    }

    .loja-catalog-header,
    .loja-catalog-layout {
        grid-template-columns: 1fr;
    }

    .loja-catalog-header {
        position: static;
    }

    .loja-catalog-tools {
        align-items: center;
        display: grid;
        gap: 10px;
        grid-template-columns: auto minmax(240px, 1fr) auto;
        justify-content: stretch;
    }

    .loja-search-group {
        grid-column: 2;
        justify-self: stretch;
        max-width: none;
        min-width: 0;
        width: 100%;
    }

    .loja-category-trigger {
        grid-column: 1;
        min-width: 0;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        white-space: nowrap;
    }

    .loja-cart-action {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 575px) {
    #checkoutbox,
    .checkout-heading {
        max-width: calc(100vw - 20px) !important;
    }

    .checkout-layout {
        gap: 0.9rem;
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-stepper {
        grid-template-columns: 1fr;
    }

    .checkout-step-trigger {
        min-height: 44px;
    }

    .checkout-page .checkout-panel {
        padding: 0.95rem;
    }

    .checkout-section-head {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .checkout-form-grid {
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-form-grid .field,
    .checkout-form-grid .field-wide,
    .checkout-form-grid .field-street,
    .checkout-form-grid .field-cep {
        grid-column: span 2;
    }

    .checkout-form-grid .field-number,
    .checkout-form-grid .field-uf {
        grid-column: span 1;
    }

    .checkout-panel-actions,
    .checkout-page .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .checkout-panel-actions {
        align-items: stretch;
        display: grid;
    }

    .checkout-panel-actions .btn {
        width: 100%;
    }

    .loja-catalog-shell {
        max-width: calc(100vw - 20px);
    }

    .loja-catalog-header,
    .loja-products-panel {
        padding: 14px;
    }

    .loja-products-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .loja-catalog-tools {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .loja-search-group {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
    }

    .loja-category-trigger {
        grid-column: 1;
        grid-row: 1;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .loja-cart-action {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .loja-cart-action .btn {
        width: 100%;
    }

}

@media (max-width: 768px),
       ((hover: none) and (pointer: coarse)),
       ((max-height: 575px) and (orientation: landscape) and (max-width: 1024px)) {
    .modal-custom {
        max-width: 100vw;
        margin: 0.5rem;
    }

    .modal-loja {
        border-radius: 8px;
        max-height: calc(100vh - 1rem);
        min-height: 0;
    }

    .modal-loja-header {
        padding: 0.45rem 0.75rem;
    }

    .modal-produto-layout {
        display: block;
        min-height: 0;
    }

    .modal-produto-media .mySwiperModal {
        height: min(68vh, 560px);
        max-height: 68vh;
        order: 1;
        overflow: hidden !important;
        width: 100%;
    }

    .modal-produto-media {
        padding: 0.5rem;
    }

    .modal-produto-media-main {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .modal-produto-media .swiper-slide {
        align-items: center;
        box-sizing: border-box;
        display: flex;
        flex: 0 0 100%;
        justify-content: center;
        min-height: min(68vh, 560px);
        max-width: 100% !important;
        min-width: 100% !important;
        overflow: hidden !important;
        padding: 0.25rem;
        width: 100% !important;
    }

    .modal-produto-media .swiper-slide img {
        border-radius: 6px;
        height: auto;
        max-height: 66vh;
        width: auto;
    }

    .modal-produto-media .produto-video-shell {
        height: 100%;
        max-height: 66vh;
        max-width: 100%;
        width: 100%;
    }

    .modal-produto-video {
        height: 100%;
        max-height: 66vh;
        width: 100%;
    }

    .modal-produto-media .produto-video-shell {
        position: relative;
        z-index: 1;
    }

    .produto-video-controls {
        align-items: center;
        bottom: clamp(0.55rem, 2.8vw, 0.9rem);
        display: flex;
        gap: clamp(0.35rem, 2vw, 0.55rem);
        left: 50%;
        pointer-events: auto;
        position: absolute;
        transform: translateX(-50%);
        max-width: calc(100% - 6.75rem);
        z-index: 1200;
    }

    .produto-video-control {
        align-items: center;
        background: rgba(8, 11, 17, 0.72);
        border: 1px solid rgba(105, 162, 255, 0.36);
        border-radius: 999px;
        box-shadow: 0 0 0 3px rgba(47, 124, 255, 0.12), 0 0 16px rgba(47, 124, 255, 0.28);
        color: #fff;
        display: inline-flex;
        flex: 0 0 auto;
        height: clamp(34px, 9.5vw, 42px);
        justify-content: center;
        padding: 0;
        pointer-events: auto;
        position: relative;
        touch-action: manipulation;
        z-index: 31;
        width: clamp(34px, 9.5vw, 42px);
    }

    .produto-video-control:hover,
    .produto-video-control:focus {
        background: linear-gradient(135deg, rgba(47, 124, 255, 0.96), rgba(87, 167, 255, 0.92));
        border-color: rgba(125, 195, 255, 0.9);
        color: #fff;
    }

    .produto-video-control i {
        font-size: clamp(0.9rem, 4vw, 1.08rem);
        line-height: 1;
    }

    .modal-produto-media .swiper-button-next,
    .modal-produto-media .swiper-button-prev {
        background: rgba(8, 11, 17, 0.62);
        border: 1px solid rgba(105, 162, 255, 0.28);
        border-radius: 999px;
        color: var(--u3d-primary-strong, #69a2ff);
        height: 46px;
        pointer-events: auto !important;
        touch-action: manipulation;
        width: 46px;
        z-index: 999 !important;
    }

    .modal-produto-media .swiper-button-prev {
        left: 0.55rem;
    }

    .modal-produto-media .swiper-button-next {
        right: 0.55rem;
    }

    .modal-produto-media .swiper-button-next::after,
    .modal-produto-media .swiper-button-prev::after {
        font-size: 1rem;
        font-weight: 800;
    }

    .modal-produto-media .swiper-button-next::before,
    .modal-produto-media .swiper-button-prev::before {
        content: "";
        inset: -14px;
        position: absolute;
    }

    .modal-produto-thumb {
        flex-basis: 48px;
        height: 48px;
        width: 48px;
        scroll-snap-align: center;
    }

    .modal-produto-thumbs {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: flex-start;
        max-height: none;
        order: 2;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.45rem 0.25rem 0.1rem;
        scroll-behavior: smooth;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .modal-produto-thumbs::-webkit-scrollbar {
        display: none;
    }

    .modal-produto-info {
        border-left: 0;
        max-height: none;
        min-height: 0;
        overflow: visible;
        padding: 0.85rem;
    }

    .modal-produto-options {
        margin-top: 0;
    }

    .modal-produto-options .variations-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modal-produto-copy .descricao-colapsavel.is-collapsed {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        height: auto;
        mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
        max-height: 7.8em;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
    }

    .modal-produto-copy .descricao-colapsavel:not(.is-collapsed) {
        height: auto;
        max-height: 32vh;
        mask-image: none;
        overflow: auto;
        text-align: justify;
        -webkit-mask-image: none;
    }

    .modal-produto-copy .descricao-colapsavel {
        text-align: justify;
    }

    .modal-produto-actions {
        background: var(--u3d-surface, #111620);
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
    }
}

@media ((hover: none) and (pointer: coarse) and (orientation: landscape)),
       ((max-height: 575px) and (orientation: landscape) and (max-width: 1024px)) {
    .landscape-menu-float {
        right: 82px;
    }

    #carrinho-btn-mobile-loja {
        height: 46px;
        right: 15px;
        top: calc(env(safe-area-inset-top, 0px) + 12px);
        width: 46px;
        z-index: 1030;
    }

    #carrinho-btn-mobile-loja i {
        font-size: 1.15rem;
    }

    #modalProduto .modal-custom {
        height: calc(100dvh - 0.3rem);
        margin-bottom: 0.15rem;
        margin-top: 0.15rem;
        max-height: calc(100dvh - 0.3rem);
        max-width: calc(100vw - 0.5rem);
        width: calc(100vw - 0.5rem);
    }

    .modal-loja {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: calc(100dvh - 0.3rem);
    }

    #modalProduto .modal-body {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow: auto;
        padding: 0.35rem;
    }

    .modal-produto-layout {
        display: grid;
        gap: 0.5rem;
        grid-template-areas:
            "media options"
            "media actions"
            "copy copy";
        grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 230px);
        grid-template-rows: auto 1fr auto;
        height: auto;
        min-height: 0;
    }

    .modal-produto-info {
        border-left: 0;
        display: contents;
        max-height: none;
        min-height: 0;
    }

    .modal-produto-media {
        grid-area: media;
        padding: 0.45rem;
    }

    .modal-produto-copy {
        background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620));
        border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        display: grid;
        grid-area: copy;
        grid-template-rows: auto minmax(0, auto) auto;
        padding: 0.65rem;
    }

    .modal-produto-options {
        align-self: start;
        background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620));
        border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        grid-area: options;
        margin-top: 0;
        max-height: min(45vh, 210px);
        overflow: auto;
        padding: 5px 0.65rem;
    }

    .modal-produto-actions {
        align-self: end;
        background: linear-gradient(180deg, var(--u3d-surface-2, #171d29), var(--u3d-surface, #111620));
        border: 1px solid var(--u3d-border, rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        grid-area: actions;
        margin: 0;
        padding: 0.65rem;
    }

    .modal-produto-options .variations-container {
        grid-template-columns: 1fr;
        padding: 5px 0.65rem;
    }

    .modal-produto-actions .fs-4 {
        font-size: 1.05rem !important;
    }

    .modal-produto-actions .btn {
        font-size: 0.82rem;
        min-height: 2rem;
        padding: 0.4rem 0.55rem;
    }

    .modal-produto-media .mySwiperModal {
        height: min(76vh, 460px);
        max-height: 76vh;
    }

    .modal-produto-media .swiper-slide {
        min-height: min(76vh, 460px);
    }

    .modal-produto-media .swiper-slide img,
    .modal-produto-video,
    .modal-produto-media .produto-video-shell {
        max-height: 74vh;
    }

    .modal-produto-media-main {
        display: grid;
        gap: 0.45rem;
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .modal-produto-media .swiper-slide img {
        height: auto;
        object-fit: contain;
        width: auto;
    }

    .modal-produto-thumbs {
        align-items: center;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.35rem;
        justify-content: flex-start;
        max-height: min(76vh, 460px);
        order: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0.15rem 0.25rem 0.15rem 0;
        scroll-snap-type: y mandatory;
    }

    .modal-produto-thumb {
        flex-basis: 44px;
        height: 44px;
        width: 44px;
    }

    .produto-video-controls {
        bottom: clamp(0.35rem, 2.2vw, 0.65rem);
    }

    .produto-video-control {
        height: clamp(32px, 8vh, 38px);
        width: clamp(32px, 8vh, 38px);
    }

    .modal-produto-media .swiper-button-next {
        right: 1.25rem !important;
    }

    .modal-produto-media .swiper-button-prev {
        left: 1.25rem !important;
    }

    .modal-produto-media .swiper-button-next,
    .modal-produto-media .swiper-button-prev {
        height: 54px;
        z-index: 1500 !important;
        width: 54px;
    }

    .modal-produto-media .swiper-button-next::before,
    .modal-produto-media .swiper-button-prev::before {
        inset: -18px;
    }

    .modal-produto-media .produto-video-shell .modal-produto-video {
        pointer-events: none;
    }
}
