/* ============================================================
   carrinho.css — Azulik Acessórios e Semijoias
   Drawer de carrinho global — compartilhado pelos 3 arquivos
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
.az-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,14,6,.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
}
.az-cart-overlay.on {
    opacity: 1;
    pointer-events: all;
}

/* ── Drawer ──────────────────────────────────────────────── */
.az-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 380px;
    max-width: 96vw;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 40px rgba(0,0,0,.15);
}
.az-cart-drawer.on {
    transform: translateX(0);
}

/* ── Header ──────────────────────────────────────────────── */
.az-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 18px;
    border-bottom: 1px solid #EDE8E0;
    flex-shrink: 0;
}
.az-cart-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.az-cart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .06em;
    color: #3D2B1F;
}
.az-cart-count {
    font-size: .72rem;
    color: #9A7050;
    background: #FAF7F2;
    padding: 3px 10px;
    border-radius: 20px;
}
.az-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9A7050;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.az-cart-close:hover {
    background: #FAF7F2;
    color: #3D2B1F;
}

/* ── Lista de itens ──────────────────────────────────────── */
.az-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* ── Item vazio ──────────────────────────────────────────── */
.az-drempty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 11px;
    color: #C9A882;
    font-size: .85rem;
    text-align: center;
}
.az-drempty i {
    font-size: 2.8rem;
    opacity: .45;
}
.az-drempty small {
    font-size: .72rem;
    color: #C9A882;
}

/* ── Item do carrinho ────────────────────────────────────── */
.az-dritem {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #EDE8E0;
    border-radius: 4px;
    background: #FDFAF7;
}
.az-dii {
    width: 68px;
    height: 102px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F0EDE8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.az-dii img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.az-diiph {
    font-size: 1.8rem;
    opacity: .28;
}
.az-diinfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.az-dinome {
    font-size: .82rem;
    font-weight: 600;
    color: #3D2B1F;
    line-height: 1.3;
    margin-bottom: 3px;
}
.az-disub {
    font-size: .7rem;
    color: #9A7050;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.az-dipreco {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #8B6145;
    font-weight: 500;
}
.az-dibot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.az-diqty {
    display: flex;
    align-items: center;
    gap: 5px;
}
.az-diqbtn {
    width: 26px;
    height: 26px;
    border: 1px solid #EDE8E0;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    color: #3D2B1F;
    transition: background .2s;
}
.az-diqbtn:hover {
    background: #FAF7F2;
    border-color: #8B6145;
}
.az-diqn {
    font-size: .82rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #3D2B1F;
}
.az-didel {
    background: none;
    border: none;
    color: #C9A882;
    cursor: pointer;
    font-size: .85rem;
    padding: 4px;
    transition: color .2s;
}
.az-didel:hover {
    color: #dc3545;
}

/* ── Footer ──────────────────────────────────────────────── */
.az-cart-footer {
    flex-shrink: 0;
    border-top: 1px solid #EDE8E0;
    padding: 18px 22px 22px;
    background: #fff;
}
.az-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.az-cart-total-lbl {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9A7050;
}
.az-cart-total-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #3D2B1F;
    font-weight: 500;
}

/* ── Botões do footer ────────────────────────────────────── */
.az-cart-btn-fin {
    width: 100%;
    background: #8B6145;
    color: #fff;
    border: none;
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background .25s, transform .15s;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.az-cart-btn-fin:hover:not(:disabled) {
    background: #6B4A32;
    transform: translateY(-1px);
}
.az-cart-btn-fin:disabled {
    background: #C9A882;
    cursor: not-allowed;
    transform: none;
}
.az-cart-btn-cont {
    width: 100%;
    background: transparent;
    color: #8B6145;
    border: 1.5px solid #8B6145;
    padding: 11px;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.az-cart-btn-cont:hover {
    background: #FAF7F2;
}

/* ── Badge do header ─────────────────────────────────────── */
.az-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #8B6145;
    color: #fff;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: .6rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}
.az-cart-badge.vis {
    display: flex;
}

/* ── WhatsApp fixo (abaixo do drawer) ────────────────────── */
.az-wppfx {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900; /* abaixo do drawer (1001) e overlay (1000) */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.az-wppbtn {
    width: 50px;
    height: 50px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: transform .2s;
}
.az-wppbtn:hover { transform: scale(1.08); }
.az-wppmenu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.az-wppmenu.on {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.az-wppmenu a {
    background: #fff;
    border: 1px solid #E8D5C0;
    border-radius: 24px;
    padding: 8px 16px 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-family: 'Montserrat', sans-serif;
    color: #3D2B1F;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: background .2s;
}
.az-wppmenu a:hover { background: #FAF7F2; }
.az-wppmenu a i { color: #25D366; font-size: 1rem; }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .az-cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}
