/* =========================
   RESET / BASE
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    overflow-x:hidden;
    -webkit-text-size-adjust:100%;
}

body{
    font-family:'Inter',sans-serif;
    background:#f8fafc;
    color:#0f172a;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 24px;
}

/* =========================
   HEADER FIXO
========================= */

.site-header{
    position:sticky;
    top:0;
    z-index:9999;
    background:linear-gradient(135deg,#061b4f,#073b8e);
    border-bottom:none;
    box-shadow:0 8px 25px rgba(0,0,0,.10);
}

.header-inner{
    min-height:120px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
    max-width:520px;
    height:110px;
    overflow:visible;
    font-size:34px;
    font-weight:800;
    color:#fff;
    white-space:nowrap;
}

.logo-image{
    display:block;
    width:auto;
    height:auto;
    max-width:500px;
    max-height:96px;
    object-fit:contain;
}

.main-menu{
    display:flex;
    align-items:center;
    gap:40px;
}

.main-menu a{
    color:#fff;
    font-weight:700;
    transition:.2s;
}

.main-menu a:hover{
    opacity:.8;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:14px;
}

.icon-btn{
    width:56px;
    height:56px;
    border-radius:18px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.22);
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    transition:.2s;
    cursor:pointer;
    color:#fff;
}

.icon-btn:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.18);
}

.icon-btn i{
    font-size:22px;
    color:#fff;
}

.cart-count{
    position:absolute;
    top:-5px;
    right:-5px;
    min-width:24px;
    height:24px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:12px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* =========================
   COMPONENTES GERAIS
========================= */

.btn{border:none;cursor:pointer;transition:.25s;}

.btn-primary{
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    color:#fff;
    padding:16px 26px;
    border-radius:18px;
    font-weight:700;
    font-size:15px;
    box-shadow:0 14px 30px rgba(79,70,229,.18);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.btn-primary:hover{transform:translateY(-2px);}

.btn-light{
    background:#fff;
    color:#0f172a;
    border:1px solid #e5e7eb;
    padding:16px 26px;
    border-radius:18px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.btn-light:hover{background:#f8fafc;}

.card{
    background:#fff;
    border-radius:30px;
    box-shadow:0 14px 40px rgba(15,23,42,.05);
}

.section-title{
    font-size:38px;
    font-weight:800;
    margin-bottom:10px;
    line-height:1.15;
}

.section-subtitle{color:#64748b;font-size:17px;line-height:1.6;}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:800;
}

.badge-pendente{background:#fef3c7;color:#92400e;box-shadow:0 8px 18px rgba(146,64,14,.12);}
.badge-pago{background:#dcfce7;color:#166534;box-shadow:0 8px 18px rgba(22,101,52,.12);}
.badge-enviado{background:#dbeafe;color:#1d4ed8;box-shadow:0 8px 18px rgba(29,78,216,.12);}
.badge-cancelado{background:#fee2e2;color:#991b1b;box-shadow:0 8px 18px rgba(153,27,27,.12);}

.form-group{margin-bottom:18px;}

.input{
    width:100%;
    padding:18px;
    border-radius:18px;
    border:1px solid #dbe3ef;
    font-size:16px;
    outline:none;
    transition:.2s;
    background:#fff;
}

.input:focus{border-color:#4f46e5;box-shadow:0 0 0 4px rgba(79,70,229,.08);}

.table-wrapper{overflow-x:auto;}
table{width:100%;border-collapse:collapse;}
th,td{padding:18px;border-bottom:1px solid #e5e7eb;text-align:left;}
th{color:#64748b;font-size:14px;}

/* =========================
   HERO / BANNERS
========================= */

.hero-slider{padding:24px 0 10px;overflow:hidden;}

.heroSwiper{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 24px;
    overflow:hidden;
}

.heroSwiper .swiper-wrapper{overflow:visible;}

.heroSwiper .swiper-slide{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    overflow:hidden;
    border-radius:34px;
}

.heroSwiper .swiper-slide-active,
.heroSwiper .swiper-slide:only-child{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
}

.heroSwiper .swiper-slide-prev,
.heroSwiper .swiper-slide-next{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
}

.hero-slide-link{
    display:block;
    width:100%;
    height:420px;
    border-radius:34px;
    overflow:hidden;
}

.hero-slide-link picture,
.hero-slide-link img{width:100%;height:100%;display:block;}
.hero-slide-link img{object-fit:cover;}
.heroSwiper .swiper-button-next,.heroSwiper .swiper-button-prev{color:#fff;}
.heroSwiper .swiper-pagination-bullet{background:#fff;opacity:.6;}
.heroSwiper .swiper-pagination-bullet-active{opacity:1;}

/* =========================
   HOME
========================= */

.home-hero{padding:34px 0 10px;}

.home-hero-box{
    position:relative;
    overflow:hidden;
    border-radius:42px;
    min-height:560px;
    padding:80px;
    display:flex;
    align-items:center;
    background:radial-gradient(circle at top right,#7c3aed 0,#4f46e5 42%,#111827 100%);
}

.home-hero-content{position:relative;z-index:2;max-width:680px;}
.home-hero-tag{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:rgba(255,255,255,.15);backdrop-filter:blur(10px);color:#fff;font-weight:700;margin-bottom:26px;}
.home-hero h1{font-size:72px;line-height:1.02;color:#fff;margin-bottom:24px;}
.home-hero p{font-size:20px;line-height:1.8;color:rgba(255,255,255,.86);margin-bottom:34px;}
.home-hero-buttons{display:flex;flex-wrap:wrap;gap:16px;}
.home-hero-light{background:rgba(255,255,255,.12);color:#fff;border:none;backdrop-filter:blur(10px);}

.home-floating-card{position:absolute;background:#fff;border-radius:28px;padding:24px;width:260px;box-shadow:0 30px 60px rgba(0,0,0,.18);z-index:2;}
.home-floating-card strong{display:block;margin-bottom:10px;font-size:18px;}
.home-floating-card p{margin:0;font-size:15px;color:#64748b;line-height:1.7;}
.home-card-1{top:70px;right:90px;}
.home-card-2{bottom:70px;right:240px;}

.home-benefits{padding:30px 0 10px;}
.home-benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.home-benefit{padding:30px;}
.home-benefit i{width:62px;height:62px;border-radius:20px;background:#eef2ff;color:#4f46e5;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:18px;}
.home-benefit h3{font-size:20px;margin-bottom:10px;}
.home-benefit p{color:#64748b;line-height:1.7;}

.home-section{padding:44px 0;}
.home-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;}
.home-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;}

.home-product-card{position:relative;overflow:hidden;transition:.25s;border-radius:22px;display:flex;flex-direction:column;height:100%;}
.home-product-card:hover{transform:translateY(-6px);}
.home-product-badge{position:absolute;top:18px;left:18px;z-index:2;background:#4f46e5;color:#fff;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;}
.home-product-image{height:200px;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:14px;}
.home-product-image img{width:100%;height:100%;object-fit:contain;transition:.35s;}
.home-product-card:hover img{transform:scale(1.03);}
.home-product-image i{font-size:50px;color:#94a3b8;}
.home-product-info{padding:18px;display:flex;flex-direction:column;flex:1;}
.home-product-info h3{font-size:17px;line-height:1.35;min-height:46px;max-height:46px;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.home-product-price{font-size:24px;font-weight:800;color:#4f46e5;margin:12px 0 16px;margin-top:auto;}
.home-product-btn{display:flex;align-items:center;justify-content:center;width:100%;height:44px;border-radius:14px;background:#4f46e5;color:#fff;font-weight:700;font-size:14px;transition:.25s;}
.home-product-btn:hover{background:#4338ca;}
.home-empty{padding:60px;text-align:center;color:#64748b;font-size:18px;}

/* =========================
   PRODUTO.PHP
========================= */

.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;}
.gallery{background:#fff;border-radius:32px;padding:24px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.05);}
.main-image{width:100%;background:#fff;border-radius:24px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:20px;}
.main-image img{width:100%;height:auto;max-height:700px;object-fit:contain !important;display:block;}
.thumbs{display:flex;gap:14px;margin-top:18px;overflow-x:auto;padding-bottom:6px;}
.thumb{min-width:90px;width:90px;height:90px;border-radius:18px;border:2px solid #e5e7eb;overflow:hidden;cursor:pointer;background:#fff;transition:.2s;}
.thumb.active{border-color:#4f46e5;}
.thumb img{width:100%;height:100%;object-fit:contain !important;background:#fff;}

.product-info{background:#fff;border-radius:32px;padding:32px;box-shadow:0 10px 30px rgba(15,23,42,.05);}
.product-badge{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:700;font-size:15px;margin-bottom:24px;}
.product-title{font-size:clamp(28px,3.2vw,44px);line-height:1.12;font-weight:800;letter-spacing:-1px;margin-bottom:24px;color:#0f172a;word-break:break-word;}
.product-price{font-size:clamp(32px,4vw,46px);font-weight:800;color:#4f46e5;margin-bottom:24px;}
.product-description{font-size:15px;line-height:1.7;color:#475569;margin-bottom:30px;word-break:break-word;}
.stock{display:flex;align-items:center;gap:12px;margin-bottom:30px;font-size:18px;font-weight:700;color:#0f172a;}
.stock-dot{width:16px;height:16px;border-radius:50%;background:#22c55e;}
.buy-form{display:flex;flex-direction:column;gap:16px;}
.qty-input{width:100%;height:60px;border-radius:18px;border:1px solid #dbe3ef;padding:0 20px;font-size:18px;outline:none;}
.buy-button{width:100%;height:62px;border:none;border-radius:20px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;font-size:18px;font-weight:800;cursor:pointer;transition:.2s;box-shadow:0 15px 30px rgba(79,70,229,.25);}
.buy-button:hover{transform:translateY(-2px);}

.related-products{margin-top:60px;}
.related-title{font-size:clamp(28px,4vw,42px);font-weight:800;margin-bottom:28px;color:#0f172a;}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px;}
.product-card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.05);transition:.25s;}
.product-card:hover{transform:translateY(-6px);}
.product-card-image{height:220px;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden;}
.product-card-image img{width:100%;height:100%;object-fit:contain !important;display:block;}
.product-card-info{padding:18px;}
.product-card-title{font-size:17px;font-weight:700;margin-bottom:12px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px;max-height:46px;}
.product-card-price{font-size:24px;font-weight:800;color:#4f46e5;margin-bottom:16px;}
.product-card-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;background:#4f46e5;color:#fff;text-decoration:none;padding:12px;border-radius:14px;font-weight:700;font-size:14px;}

/* =========================
   CARRINHO.PHP
========================= */

.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:28px;align-items:start;}
.cart-layout > .card,.cart-layout form.card{padding:28px;}
.cart-item{display:grid;grid-template-columns:96px 1fr 110px 140px 120px;gap:18px;align-items:center;padding:22px 0;border-bottom:1px solid #e5e7eb;}
.cart-item:last-child{border-bottom:none;}
.cart-item-image,.cart-placeholder{width:96px;height:96px;border-radius:18px;object-fit:contain;background:#eef2ff;}
.cart-item-info strong{display:block;font-size:18px;line-height:1.3;margin-bottom:6px;}
.cart-item-info small{color:#64748b;font-size:14px;}
.cart-qty{width:100%;height:50px;border-radius:16px;border:1px solid #dbe3ef;padding:0 14px;font-size:16px;}
.cart-price{color:#4f46e5;font-weight:800;font-size:20px;white-space:nowrap;}
.remove-cart{height:44px;border-radius:16px;background:#fee2e2;color:#dc2626;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 16px;}
.cart-update-btn{width:100%;min-height:54px;margin-top:24px;background:#e5e7eb;color:#111827;border:none;border-radius:18px;font-size:15px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.summary{padding:32px;height:fit-content;}
.summary h2{font-size:30px;margin-bottom:26px;}
.total-line{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:22px;font-weight:800;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid #e5e7eb;}
.summary-actions{display:flex;flex-direction:column;gap:14px;}
.summary-actions .btn-primary,.summary-actions .btn-light{width:100%;min-height:54px;}

/* =========================
   CHECKOUT
========================= */

.checkout-grid{display:grid;grid-template-columns:1fr 420px;gap:30px;align-items:start;}
.checkout-card,.checkout-summary{padding:30px;}
.checkout-title{font-size:28px;margin-bottom:24px;}
.checkout-address-title{margin-top:40px;}
.checkout-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.checkout-full{grid-column:1 / -1;}
.checkout-input{width:100%;padding:18px;border-radius:18px;border:1px solid #dbe3ef;font-size:16px;outline:none;}
.checkout-login-box{background:#eef2ff;color:#334155;border-radius:20px;padding:18px;margin-bottom:26px;}
.checkout-login-box a{color:#4f46e5;font-weight:800;}
.checkout-alert{background:#fee2e2;color:#991b1b;padding:16px;border-radius:16px;margin-bottom:24px;font-weight:700;}
.checkout-alert a{color:#991b1b;font-weight:800;}
.checkout-address-select-box{margin-bottom:24px;}
.checkout-address-select-box label{display:block;margin-bottom:10px;font-weight:700;}
.checkout-order-item{display:flex;gap:16px;align-items:center;margin-bottom:20px;}
.checkout-order-item img{width:80px;height:80px;border-radius:18px;object-fit:contain;background:#fff;}
.checkout-order-item strong{display:block;margin-bottom:6px;}
.checkout-order-item span{color:#64748b;}
.checkout-total{display:flex;justify-content:space-between;gap:18px;font-size:30px;font-weight:800;margin-top:30px;padding-top:24px;border-top:1px solid #e5e7eb;}
.checkout-submit-btn{width:100%;margin-top:30px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;padding:18px;border-radius:18px;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 14px 30px rgba(79,70,229,.18);}

/* =========================
   PEDIDO CLIENTE / CONTA / ENDEREÇOS
========================= */

.pedido-head,.meus-pedidos-head,.enderecos-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:34px;}
.pedido-grid{display:grid;grid-template-columns:1fr 380px;gap:30px;align-items:start;}
.pedido-card{padding:30px;margin-bottom:30px;}
.pedido-card-title{font-size:28px;font-weight:800;margin-bottom:24px;}
.pedido-status-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px;}
.pedido-date{color:#64748b;font-size:14px;}
.pedido-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.pedido-step{background:#f8fafc;border-radius:22px;padding:22px;text-align:center;color:#94a3b8;}
.pedido-step.active{background:#eef2ff;color:#4f46e5;}
.pedido-step-icon{width:54px;height:54px;margin:0 auto 14px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;}
.pedido-step-label{font-weight:800;font-size:14px;}
.pedido-cancelado-box{display:flex;gap:16px;background:#fee2e2;color:#991b1b;border-radius:22px;padding:22px;}
.pedido-cancelado-box i{font-size:28px;}
.pedido-cancelado-box p{margin-top:6px;line-height:1.6;}
.pedido-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.pedido-info-item{background:#f8fafc;border-radius:20px;padding:20px;}
.pedido-info-item strong{display:block;margin-bottom:10px;}
.pedido-item{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e5e7eb;}
.pedido-item:last-child{border-bottom:none;}
.pedido-item-name{font-weight:800;margin-bottom:6px;}
.pedido-item-qtd{color:#64748b;}
.pedido-item-price{font-size:20px;font-weight:800;color:#4f46e5;white-space:nowrap;}
.pedido-total-box{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border-radius:30px;padding:34px;}
.pedido-total-box h3{font-size:22px;margin-bottom:24px;}
.pedido-total-line{display:flex;justify-content:space-between;margin-bottom:14px;}
.pedido-total-final{display:flex;justify-content:space-between;gap:16px;margin-top:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,.2);font-size:30px;font-weight:800;}

.meus-pedidos-back,.enderecos-back-btn{min-width:180px;}
.meus-pedidos-card{padding:30px;}
.meus-pedidos-list{display:flex;flex-direction:column;gap:18px;}
.meus-pedidos-item{display:grid;grid-template-columns:1.2fr 1fr 180px;gap:24px;align-items:center;padding:24px;border:1px solid #e5e7eb;border-radius:24px;background:#fff;}
.meus-pedidos-main{display:flex;align-items:center;gap:18px;justify-content:space-between;}
.meus-pedidos-label,.meus-pedidos-info span{display:block;color:#64748b;font-size:13px;font-weight:700;margin-bottom:6px;}
.meus-pedidos-number{font-size:24px;}
.meus-pedidos-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.meus-pedidos-info strong{font-size:17px;}
.meus-pedidos-btn{height:52px;border-radius:16px;background:#4f46e5;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;text-align:center;}
.meus-pedidos-empty{padding:60px 30px;text-align:center;}
.meus-pedidos-empty i{font-size:54px;color:#4f46e5;margin-bottom:18px;}
.meus-pedidos-empty h2{margin-bottom:10px;}
.meus-pedidos-empty p{color:#64748b;margin-bottom:26px;}

.account-hero{margin-bottom:34px;}
.account-hero-box{background:radial-gradient(circle at top right,#7c3aed 0,#4f46e5 40%,#111827 100%);border-radius:36px;padding:50px;color:#fff;}
.account-hero-box h1{font-size:52px;margin-bottom:16px;}
.account-hero-box p{font-size:20px;opacity:.9;}
.account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;}
.account-card{background:#fff;border-radius:30px;padding:34px;box-shadow:0 14px 40px rgba(15,23,42,.05);transition:.25s;text-decoration:none;color:#0f172a;}
.account-card:hover{transform:translateY(-6px);}
.account-card-icon{width:74px;height:74px;border-radius:24px;background:#eef2ff;color:#4f46e5;display:flex;align-items:center;justify-content:center;font-size:30px;margin-bottom:24px;}
.account-card-icon.danger{background:#fee2e2;color:#dc2626;}
.account-card h2{font-size:28px;margin-bottom:14px;}
.account-card p{color:#64748b;line-height:1.8;}
.account-card-danger{border:2px solid #fee2e2;}

.enderecos-grid{display:grid;grid-template-columns:1fr 420px;gap:30px;align-items:start;}
.enderecos-card,.enderecos-form-card{padding:30px;}
.enderecos-card-title{font-size:28px;font-weight:800;margin-bottom:24px;}
.enderecos-list{display:flex;flex-direction:column;gap:20px;}
.endereco-item{border:1px solid #e5e7eb;border-radius:24px;padding:24px;background:#fff;}
.endereco-top{margin-bottom:14px;}
.endereco-content{display:flex;flex-direction:column;gap:8px;color:#334155;line-height:1.5;}
.endereco-content strong{color:#0f172a;font-size:18px;}
.endereco-actions{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap;}
.endereco-btn,.endereco-btn-danger{min-height:48px;padding:0 18px;border-radius:16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.endereco-btn-danger{background:#fee2e2;color:#dc2626;border:none;}
.enderecos-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.enderecos-full{grid-column:1 / -1;}
.enderecos-submit-btn{width:100%;margin-top:20px;min-height:56px;}
.enderecos-empty{text-align:center;padding:50px 20px;}
.enderecos-empty i{font-size:48px;color:#4f46e5;margin-bottom:18px;}
.enderecos-empty h2{margin-bottom:10px;}
.enderecos-empty p{color:#64748b;}

/* =========================
   AUTH / LOGIN
========================= */

.auth-page{min-height:calc(100vh - 84px);display:flex;align-items:center;justify-content:center;padding:50px 16px;}
.auth-card{width:100%;max-width:480px;background:#fff;border-radius:34px;padding:40px;box-shadow:0 20px 50px rgba(15,23,42,.08);}
.auth-logo{text-align:center;font-size:38px;font-weight:800;color:#4f46e5;margin-bottom:18px;}
.auth-card h1{text-align:center;font-size:32px;margin-bottom:10px;}
.auth-card p{text-align:center;color:#64748b;line-height:1.6;margin-bottom:30px;}
.auth-alert{background:#fee2e2;color:#991b1b;padding:16px;border-radius:16px;margin-bottom:20px;font-weight:700;}
.auth-alert.success{background:#dcfce7;color:#166534;}
.auth-submit{width:100%;min-height:56px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;border:none;border-radius:18px;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 14px 30px rgba(79,70,229,.18);}
.auth-link{text-align:center;margin-top:24px;color:#64748b;}
.auth-link a{color:#4f46e5;font-weight:800;}

/* =========================
   FOOTER NORMAL COM COR
========================= */

.site-footer{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:auto;
    margin-top:60px;
    background:linear-gradient(135deg,#061b4f,#073b8e);
    color:#fff;
    border-top:none;
    padding:50px 0 24px;
}

.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;margin-bottom:34px;}
.footer-brand{font-size:28px;font-weight:800;color:#fff;margin-bottom:14px;}
.footer-logo{max-width:180px;max-height:70px;object-fit:contain;}
.footer-description{color:#fff;line-height:1.7;max-width:420px;opacity:.9;}
.footer-title{font-size:18px;margin-bottom:16px;color:#fff;}
.footer-links,.footer-contact{display:flex;flex-direction:column;gap:12px;}
.footer-links a{color:#fff;font-weight:700;text-decoration:none;opacity:.9;}
.footer-links a:hover{opacity:1;}
.footer-contact div{color:#fff;display:flex;align-items:center;gap:10px;font-weight:700;opacity:.9;}
.footer-contact i{color:#facc15;width:18px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);padding-top:22px;color:#fff;font-weight:600;text-align:center;}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:1200px){
    .home-benefits-grid{grid-template-columns:repeat(2,1fr);}
    .cart-item{grid-template-columns:90px 1fr 100px 130px 100px;}
}

@media(max-width:1000px){
    .main-menu{display:none;}
    .product-grid,.cart-layout,.checkout-grid,.pedido-grid,.enderecos-grid{grid-template-columns:1fr;}
}

@media(max-width:900px){
    .account-grid{grid-template-columns:1fr;}
    .home-floating-card{display:none;}
    .home-hero-box{min-height:auto;padding:50px;}
    .home-hero h1{font-size:52px;}
}

@media(max-width:800px){
    .footer-grid{grid-template-columns:1fr;gap:28px;}
    .site-footer{padding:38px 0 22px;}
}

@media(max-width:700px){
    .container{max-width:100%;width:100%;padding-left:16px;padding-right:16px;}
    .header-inner{min-height:88px;gap:14px;}
    .logo{max-width:240px;height:78px;}
    .logo-image{max-width:230px;max-height:68px;}
    .icon-btn{width:48px;height:48px;border-radius:15px;}
    .hero-slider{padding:16px 0 8px;}
    .heroSwiper{padding:0 16px;}
    .hero-slide-link{height:380px;border-radius:26px;}
    .heroSwiper .swiper-button-next,.heroSwiper .swiper-button-prev{display:none;}
    .section-title{font-size:30px;}
    .section-subtitle{font-size:15px;}
    .home-products-grid,.products-grid,.home-benefits-grid{grid-template-columns:1fr;}
    .home-products-grid{gap:18px;}
    .home-product-image{height:190px;}
    .home-product-info h3{font-size:16px;}
    .home-product-price{font-size:24px;}
    .gallery,.product-info{border-radius:24px;padding:20px;}
    .main-image{border-radius:20px;padding:10px;}
    .main-image img{max-height:none;width:100%;height:auto;object-fit:contain !important;}
    .product-badge{font-size:13px;padding:8px 13px;margin-bottom:16px;}
    .product-title{font-size:30px;line-height:1.15;margin-bottom:14px;letter-spacing:-.5px;}
    .product-price{font-size:34px;line-height:1.1;margin-bottom:18px;}
    .product-description{font-size:15px;line-height:1.65;margin-bottom:20px;color:#475569;}
    .stock{font-size:15px;margin-bottom:22px;}
    .thumb{min-width:74px;width:74px;height:74px;border-radius:14px;}
    .product-card-image{height:240px;}
    .product-card-title{font-size:16px;}
    .product-card-price{font-size:24px;}
    .cart-layout{display:block;}
    .cart-layout form.card,.cart-layout > .card{padding:22px;border-radius:26px;margin-bottom:24px;}
    .cart-item{display:grid;grid-template-columns:88px 1fr;grid-template-areas:"img info" "img qty" "img price" "img remove";gap:10px 14px;align-items:start;padding:22px 0;border-bottom:1px solid #e5e7eb;}
    .cart-item-image,.cart-placeholder{grid-area:img;width:88px;height:88px;border-radius:18px;}
    .cart-item-info{grid-area:info;}
    .cart-qty{grid-area:qty;width:100%;height:46px;margin-top:6px;font-size:15px;border-radius:14px;}
    .cart-price{grid-area:price;font-size:22px;margin-top:4px;}
    .remove-cart{grid-area:remove;width:100%;height:44px;border-radius:14px;font-size:14px;margin-top:8px;}
    .checkout-card,.checkout-summary,.pedido-card,.enderecos-card,.enderecos-form-card{padding:22px;border-radius:26px;}
    .checkout-form-grid,.pedido-info-grid,.enderecos-form-grid{grid-template-columns:1fr;}
    .pedido-head,.meus-pedidos-head,.enderecos-head{flex-direction:column;align-items:flex-start;}
    .pedido-timeline,.meus-pedidos-item{grid-template-columns:1fr;}
    .account-hero-box{padding:34px;border-radius:28px;}
    .account-hero-box h1{font-size:38px;}
    .account-hero-box p{font-size:16px;}
    .account-card{padding:26px;border-radius:26px;}
    .auth-page{min-height:auto;padding:32px 16px;}
    .auth-card{padding:28px;border-radius:28px;}
    .auth-logo{font-size:30px;}
    .auth-card h1{font-size:26px;}
}
/* AJUSTE DEFINITIVO - PÁGINA INDIVIDUAL DO PRODUTO */

.product-title{
    font-size:32px !important;
    line-height:1.18 !important;
    letter-spacing:-0.5px !important;
    margin-bottom:18px !important;
}

.product-price{
    font-size:34px !important;
    line-height:1.1 !important;
    margin-bottom:18px !important;
}

.product-description{
    font-size:15px !important;
    line-height:1.65 !important;
}

.product-badge{
    font-size:14px !important;
    padding:9px 16px !important;
    margin-bottom:18px !important;
}

.product-info{
    padding:28px !important;
}

/* MOBILE */
@media(max-width:700px){

    .product-title{
        font-size:24px !important;
        line-height:1.22 !important;
        letter-spacing:-0.3px !important;
    }

    .product-price{
        font-size:28px !important;
    }

    .product-description{
        font-size:14px !important;
        line-height:1.6 !important;
    }

    .product-info{
        padding:22px !important;
    }

    .product-badge{
        font-size:13px !important;
    }
}
/* CABEÇALHO FIXO DEFINITIVO */

.site-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:999999 !important;

    background:linear-gradient(135deg,#061b4f,#073b8e) !important;
    box-shadow:0 8px 25px rgba(0,0,0,.12) !important;
}

body{
    padding-top:130px !important;
}

@media(max-width:700px){
    body{
        padding-top:100px !important;
    }
}
/* PRODUTO INDIVIDUAL MAIS PROPORCIONAL */

.product-title{
    font-size:32px !important;
    line-height:1.18 !important;
}

.product-price{
    font-size:34px !important;
}

@media(max-width:700px){
    .product-title{
        font-size:24px !important;
    }

    .product-price{
        font-size:28px !important;
    }
}
/* =========================================================
   AJUSTES FINAIS
========================================================= */

/* CABEÇALHO FIXO */

.site-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:999999 !important;

    background:var(--cor-header) !important;

    box-shadow:0 8px 25px rgba(0,0,0,.12) !important;
}

body{
    padding-top:130px !important;
}

/* PRODUTO MAIS PROPORCIONAL */

.product-title{
    font-size:32px !important;
    line-height:1.18 !important;
    letter-spacing:-0.5px !important;
    margin-bottom:18px !important;
}

.product-price{
    font-size:34px !important;
    line-height:1.1 !important;
    margin-bottom:18px !important;
}

/* CORES DINÂMICAS */

body{
    background:var(--cor-fundo) !important;
}

.site-footer{
    background:var(--cor-footer) !important;
}

.btn-primary,
.home-product-btn,
.product-card-btn,
.buy-button,
.checkout-submit-btn,
.meus-pedidos-btn,
.auth-submit{
    background:var(--cor-botao) !important;
    color:var(--cor-botao-texto) !important;
}

.home-product-btn:hover,
.product-card-btn:hover,
.buy-button:hover,
.btn-primary:hover{
    background:var(--cor-secundaria) !important;
}

.product-price,
.home-product-price,
.product-card-price,
.cart-price,
.pedido-item-price{
    color:var(--cor-preco) !important;
}

.product-badge,
.home-product-badge{
    background:var(--cor-primaria) !important;
    color:#fff !important;
}

/* MOBILE */

@media(max-width:700px){

    body{
        padding-top:100px !important;
    }

    .product-title{
        font-size:24px !important;
        line-height:1.22 !important;
    }

    .product-price{
        font-size:28px !important;
    }
}
/* =========================
   CUPOM NO CHECKOUT
========================= */

.checkout-coupon-box{
    margin:22px 0 26px;
    padding:16px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
}

.checkout-coupon-form{
    display:flex;
    gap:10px;
    align-items:center;
}

.checkout-coupon-form input{
    flex:1;
    min-width:0;
    height:46px;
    border:1px solid #dbe3ef;
    border-radius:14px;
    padding:0 15px;
    font-size:14px;
    outline:none;
    background:#fff;
}

.checkout-coupon-form button{
    height:46px;
    padding:0 20px;
    border:none;
    border-radius:14px;
    background:var(--cor-botao, #4f46e5);
    color:var(--cor-botao-texto, #fff);
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
    box-shadow:0 10px 20px rgba(79,70,229,.18);
    transition:.2s ease;
}

.checkout-coupon-form button:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 24px rgba(79,70,229,.24);
}

.checkout-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
    font-size:16px;
}

.checkout-total span{
    color:#64748b;
    font-size:15px;
    font-weight:600;
}

.checkout-total strong{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
    white-space:nowrap;
}

.checkout-total.final span,
.checkout-total.final strong{
    font-size:22px;
    color:#020617;
}

/* =========================
   MEUS PEDIDOS - AJUSTE LIMPO
========================= */

.meus-pedidos-data{
    display:flex;
    flex-direction:column;
    gap:4px;
    line-height:1.1;
    white-space:nowrap;
}

.meus-pedidos-data span{
    font-size:20px;
    font-weight:800;
    color:#0f172a;
    white-space:nowrap;
}

.meus-pedidos-data small{
    font-size:14px;
    color:#64748b;
    font-weight:600;
    line-height:1.1;
}

.meus-pedidos-total,
.meus-pedidos-info strong{
    white-space:nowrap;
}

/* =========================
   DETALHE DO PEDIDO - TOTAL
========================= */

.pedido-total-final{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:24px;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,.2);
    font-size:30px;
    font-weight:800;
}

.pedido-total-final span,
.pedido-total-final strong{
    color:#fff;
    white-space:nowrap;
}

/* =========================
   MOBILE - CHECKOUT / PEDIDOS
========================= */

@media(max-width:700px){

    .checkout-coupon-form{
        flex-direction:column;
    }

    .checkout-coupon-form input,
    .checkout-coupon-form button{
        width:100%;
    }

    .checkout-total{
        font-size:15px;
    }

    .checkout-total span{
        font-size:14px;
    }

    .checkout-total strong{
        font-size:16px;
    }

    .checkout-total.final span,
    .checkout-total.final strong{
        font-size:20px;
    }

    .meus-pedidos-card{
        padding:22px 14px !important;
        border-radius:32px;
    }

    .meus-pedidos-list{
        width:100%;
    }

    .meus-pedidos-item{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
        padding:26px 22px !important;
        overflow:hidden;
        grid-template-columns:1fr !important;
        gap:22px;
    }

    .meus-pedidos-main{
        width:100%;
    }

    .meus-pedidos-info-grid{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:22px 16px;
        width:100%;
        max-width:100%;
    }

    .meus-pedidos-info{
        min-width:0;
    }

    .meus-pedidos-data span{
        font-size:22px !important;
        letter-spacing:-.5px;
    }

    .meus-pedidos-data small{
        font-size:17px !important;
    }

    .meus-pedidos-total{
        font-size:20px !important;
        letter-spacing:-.4px;
    }

    .meus-pedidos-btn{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
        margin-top:4px;
    }

    .pedido-total-box{
        padding:28px 24px;
        border-radius:28px;
    }

    .pedido-total-line{
        display:flex;
        justify-content:space-between;
        align-items:center;
        gap:12px;
        font-size:17px;
    }

    .pedido-total-line span,
    .pedido-total-line strong{
        white-space:nowrap;
    }

    .pedido-total-final{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:10px !important;
        width:100% !important;
        font-size:0;
    }

    .pedido-total-final span{
        display:block !important;
        flex:0 0 auto !important;
        font-size:27px !important;
        line-height:1 !important;
        margin:0 !important;
        white-space:nowrap !important;
    }

    .pedido-total-final strong{
        display:block !important;
        flex:0 1 auto !important;
        min-width:0 !important;
        margin-left:auto !important;
        text-align:right !important;
        font-size:27px !important;
        line-height:1 !important;
        white-space:nowrap !important;
        letter-spacing:-1.2px;
    }

    .pedido-status-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .pedido-date{
        max-width:100%;
        overflow-wrap:break-word;
    }
}

@media(max-width:380px){

    .meus-pedidos-data span{
        font-size:20px !important;
    }

    .meus-pedidos-total{
        font-size:18px !important;
    }

    .pedido-total-final strong{
        font-size:28px !important;
    }
}

/* =========================
   CORREÇÃO MOBILE - TOTAL DO PEDIDO
   Mantém "Total" e valor na mesma linha apenas no celular
========================= */

@media(max-width:600px){

    .pedido-total-box{
        overflow:hidden;
    }

    .pedido-total-final{
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
        flex-wrap:nowrap !important;
        gap:8px !important;
        width:100% !important;
    }

    .pedido-total-final span{
        display:block !important;
        flex:0 0 auto !important;
        font-size:27px !important;
        line-height:1 !important;
        margin:0 !important;
        padding:0 !important;
        white-space:nowrap !important;
    }

    .pedido-total-final strong{
        display:block !important;
        flex:0 1 auto !important;
        min-width:0 !important;
        margin-left:auto !important;
        text-align:right !important;
        font-size:27px !important;
        line-height:1 !important;
        padding:0 !important;
        white-space:nowrap !important;
        letter-spacing:-1.2px;
    }

}

@media(max-width:380px){

    .pedido-total-final span,
    .pedido-total-final strong{
        font-size:24px !important;
        letter-spacing:-1.4px;
    }

}


/* Mercado Pago PIX */
.badge-aguardando_pix{background:#e0f2fe;color:#075985;box-shadow:0 8px 18px rgba(7,89,133,.12);}


/* Garante que o primeiro banner apareça antes do Swiper inicializar */
.heroSwiper .swiper-slide:first-child{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
}
