/* ============================================
   MELHORIAS COMPLETAS NA LOJA
   ============================================ */

/* Box Body e Box Title */
.box-body {
    background: linear-gradient(135deg, #151515 0%, #1a1a1a 100%);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.6), rgba(245, 166, 35, 0.3), rgba(245, 166, 35, 0.6));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box-body:hover::before {
    opacity: 1;
}

.box-title {
    color: #f5a623;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.box-title i {
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5));
}

/* Tabela do Carrinho */
.table {
    background: transparent;
    color: #e8e8e8;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(245, 166, 35, 0.05) 100%);
    border-radius: 12px 12px 0 0;
}

.table thead th {
    color: #f5a623;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 1.2rem 1rem;
    border: none;
    border-bottom: 2px solid rgba(245, 166, 35, 0.3);
}

.table tbody tr {
    background: rgba(245, 166, 35, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(245, 166, 35, 0.08);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border: none;
    overflow: visible;
    position: relative;
}

.table tbody td.text-center {
    overflow: visible !important;
    min-width: 140px;
}

.table tbody td strong {
    color: #f5a623;
    font-weight: 700;
}

/* Quantity Selector no Carrinho */
.quantity-selector-cart {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 120px;
}

.quantity-selector-cart .input-group {
    border-radius: 8px;
    overflow: visible !important;
    border: 1px solid rgba(245, 166, 35, 0.3);
    background: rgba(245, 166, 35, 0.05);
    min-width: 120px;
    max-width: 150px;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    box-sizing: border-box;
    position: relative;
}

.quantity-selector-cart .input-group * {
    overflow: visible !important;
}

.quantity-selector-cart .input-group-prepend,
.quantity-selector-cart .input-group-append {
    display: flex;
    flex-shrink: 0;
    overflow: visible !important;
}

.quantity-selector-cart .input-group-prepend .btn,
.quantity-selector-cart .input-group-append .btn {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}

.quantity-selector-cart .form-control {
    background: rgba(245, 166, 35, 0.1);
    border: none;
    color: #f5a623;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem 0.25rem;
    flex: 1 1 auto;
    min-width: 40px;
    box-sizing: border-box;
}

.quantity-selector-cart .btn {
    background: rgba(245, 166, 35, 0.2);
    border: none;
    color: #f5a623;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    min-width: 38px;
    width: 38px;
    flex: 0 0 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.quantity-selector-cart .btn i {
    font-size: 0.75rem;
    display: inline-block;
    line-height: 1;
}

.quantity-selector-cart .btn:hover {
    background: rgba(245, 166, 35, 0.4);
    color: #ffd93d;
    transform: scale(1.05);
}

/* Botões de Ação */
.btn-info,
.btn-danger {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    border: none;
    font-weight: 600;
}

.btn-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.btn-info:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Formas de Pagamento */
.gateway {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gateway img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.gateway:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.2);
}

.gateway input[type="radio"]:checked + img {
    border: 2px solid #f5a623;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
    filter: brightness(1.1);
}

.gateway:has(input[type="radio"]:checked) {
    border: 2px solid #f5a623;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.gateway:has(input[type="radio"]:checked) img {
    filter: brightness(1.1);
}

/* Inputs e Formulários */
.form-control {
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 8px;
    color: #e8e8e8;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    background: rgba(245, 166, 35, 0.1);
    border-color: #f5a623;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

.form-group label {
    color: #e8e8e8;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Resumo do Pedido */
.d-flex.justify-content-between {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.d-flex.justify-content-between:last-child {
    border-bottom: none;
}

.valorTotal {
    color: #f5a623 !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
}

/* Cupom de Desconto */
#cupom {
    width: 100%;
    margin-top: 1rem;
}

/* Checkbox de Termos */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f5a623;
    margin-right: 0.5rem;
}

input[type="checkbox"]:checked {
    background-color: #f5a623;
    border-color: #f5a623;
}

/* Botão Finalizar Compra */
.btn-primary,
#btn-checkout {
    background: linear-gradient(135deg, #f5a623 0%, #d4920a 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-primary::before,
#btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
#btn-checkout:hover::before {
    left: 100%;
}

.btn-primary:hover,
#btn-checkout:hover {
    background: linear-gradient(135deg, #ffd93d 0%, #f5a623 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 166, 35, 0.4);
    color: #1a1a1a;
}

.btn-primary:active,
#btn-checkout:active {
    transform: translateY(-1px);
}

/* Links */
a {
    color: #dc2626;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #f5a623;
    text-decoration: underline;
}

/* Títulos de Seção */
h6 {
    color: #f5a623;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

h6 i {
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5));
}

/* Carrinho Vazio */
.box-body .box-title.text-center {
    color: #999;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Item Total */
.item-total {
    color: #f5a623 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* Labels */
.form-group label {
    color: #e8e8e8;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-group label span {
    color: #ef4444;
}

/* Valor Desconto */
.valorDesconto {
    color: #999 !important;
}

/* Subtotal */
.d-flex.justify-content-between span:first-child {
    color: #e8e8e8;
}

.d-flex.justify-content-between strong {
    color: #f5a623;
    font-weight: 700;
}

/* Gap para botões */
.gap-2 {
    gap: 0.5rem;
}

.d-flex.gap-2 {
    display: flex;
    gap: 0.5rem;
}

/* Responsivo */
@media (max-width: 992px) {
    section#home {
        padding: 2rem 0 !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col-lg-8,
    .col-lg-4,
    .col-md-8,
    .col-md-4 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .box-body {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .box-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    section#home {
        padding: 1.5rem 0 !important;
    }
    
    .box-body {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .box-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    /* Tabela Responsiva */
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        margin: -1rem;
        padding: 1rem;
    }
    
    .table-responsive .table {
        overflow: visible;
    }
    
    .table-responsive .table tbody td {
        overflow: visible !important;
    }
    
    .table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .table tbody td:first-child {
        min-width: 120px;
    }
    
    .table tbody td.text-center {
        overflow: visible !important;
        min-width: 130px;
        padding: 0.75rem 0.5rem;
    }
    
    .quantity-selector-cart {
        overflow: visible !important;
    }
    
    .quantity-selector-cart .input-group {
        overflow: visible !important;
    }
    
    /* Quantity Selector Mobile */
    .quantity-selector-cart {
        min-width: 110px;
        max-width: 140px;
        margin: 0 auto;
    }
    
    .quantity-selector-cart .input-group {
        min-width: 110px;
        max-width: 140px;
        width: 100%;
    }
    
    .quantity-selector-cart .btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        min-width: 35px;
        width: 35px;
        flex: 0 0 35px;
    }
    
    .quantity-selector-cart .btn i {
        font-size: 0.7rem;
    }
    
    .quantity-selector-cart .form-control {
        padding: 0.4rem 0.2rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
    
    /* Botões de Ação Mobile */
    .btn-info,
    .btn-danger {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    /* Formas de Pagamento Mobile */
    .gateway {
        margin-bottom: 1rem;
    }
    
    .gateway img {
        width: 100%;
        height: auto;
    }
    
    /* Inputs Mobile */
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Resumo Mobile */
    .d-flex.justify-content-between {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .valorTotal {
        font-size: 1.3rem !important;
    }
    
    /* Botão Finalizar Mobile */
    .btn-primary,
    #btn-checkout {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 12px;
        box-sizing: border-box !important;
        display: block;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    .btn-primary i,
    #btn-checkout i {
        margin-right: 0.5rem;
    }
    
    /* Checkbox Mobile */
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
    }
    
    /* Links Mobile */
    a {
        word-break: break-word;
    }
    
    /* Títulos Mobile */
    h6 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    section#home {
        padding: 1rem 0 !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .box-body {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .box-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .box-title i {
        font-size: 0.9rem;
    }
    
    /* Tabela Extra Pequena */
    .table-responsive {
        margin: -0.5rem;
        padding: 0.5rem;
    }
    
    .table {
        font-size: 0.75rem;
        min-width: 550px;
    }
    
    .table thead th {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .table tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Quantity Selector Extra Pequeno */
    .quantity-selector-cart {
        min-width: 100px;
        max-width: 130px;
    }
    
    .quantity-selector-cart .input-group {
        min-width: 100px;
        max-width: 130px;
        width: 100%;
    }
    
    .quantity-selector-cart .btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.7rem;
        min-width: 32px;
        width: 32px;
        flex: 0 0 32px;
    }
    
    .quantity-selector-cart .btn i {
        font-size: 0.65rem;
    }
    
    .quantity-selector-cart .form-control {
        padding: 0.35rem 0.15rem;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    /* Botões Extra Pequenos */
    .btn-info,
    .btn-danger {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Inputs Extra Pequenos */
    .form-control {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    /* Resumo Extra Pequeno */
    .d-flex.justify-content-between {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .valorTotal {
        font-size: 1.2rem !important;
    }
    
    /* Botão Finalizar Extra Pequeno */
    .btn-primary,
    #btn-checkout {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: block;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    .btn-primary i,
    #btn-checkout i {
        margin-right: 0.4rem;
        font-size: 0.85rem;
    }
    
    /* Checkbox Extra Pequeno */
    input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    /* Títulos Extra Pequenos */
    h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    h6 i {
        font-size: 0.85rem;
    }
    
    /* Gateway Extra Pequeno */
    .gateway {
        margin-bottom: 0.75rem;
    }
}

/* Animações */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   RESPONSIVIDADE EXTRA - GARANTIR QUE NADA CORTE
   ============================================ */

/* Garantir que body e html não tenham overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Garantir que todas as colunas sejam 100% em mobile */
@media (max-width: 991px) {
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Garantir que box-body não ultrapasse a largura */
.box-body {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Garantir que o botão não seja cortado */
.btn-primary,
#btn-checkout {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Garantir que a tabela seja scrollável em mobile */
@media (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    
    .table {
        width: 100%;
        display: table;
    }
    
    /* Garantir que colunas não quebrem */
    .col-md-8,
    .col-md-4,
    .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Garantir que o container não ultrapasse */
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Garantir que row não ultrapasse */
    .row {
        margin-left: -10px;
        margin-right: -10px;
        max-width: 100%;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    section#home {
        padding: 1rem 0 !important;
    }
    
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .col-lg-8,
    .col-lg-4,
    .col-md-8,
    .col-md-4,
    .col-md-12 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .box-body {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary,
    #btn-checkout {
        padding: 0.875rem 1rem !important;
        font-size: 0.875rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}
