/* ========================================
   DALLAVECHIA PRODUCT EXTRAS — PDP
   Layout inspirado na Avelar Shop
   ======================================== */

/* --- Payment Info --- */
.dallavechia-payment-info {
    margin: 16px 0;
    font-family: inherit;
}

.dallavechia-pix-box {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dallavechia-pix-price {
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
}

.dallavechia-pix-badge {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    background: #c8e6c9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.dallavechia-installment-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.dallavechia-installment-icon {
    font-size: 18px;
}

.dallavechia-more-payments {
    font-size: 13px;
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}

/* --- Shipping Calculator --- */
.dallavechia-shipping-calculator {
    margin: 16px 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.dallavechia-shipping-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dallavechia-shipping-icon {
    font-size: 20px;
}

.dallavechia-shipping-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dallavechia-shipping-input {
    display: flex;
    gap: 8px;
}

.dallavechia-cep-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.dallavechia-cep-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
}

.dallavechia-shipping-result {
    margin-top: 12px;
}

.dallavechia-shipping-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dallavechia-shipping-options li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.dallavechia-shipping-error {
    color: #c62828;
    font-size: 13px;
}

/* --- Recent Purchases Toast --- */
.dallavechia-recent-purchase {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    z-index: 9999;
    font-size: 13px;
    line-height: 1.4;
    animation: dallavechia-slide-in 0.4s ease-out;
}

@keyframes dallavechia-slide-in {
    from { transform: translateX(-120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.dallavechia-recent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1565c0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.dallavechia-recent-text {
    color: #333;
}

.dallavechia-recent-time {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.dallavechia-recent-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.dallavechia-recent-close:hover {
    color: #555;
}

/* Bloco D — CTA WhatsApp produto esgotado */
.dallavechia-outofstock-cta {
    margin: 12px 0;
    padding: 14px 16px;
    background: #FFF4EC;
    border: 1px solid #FF6B00;
    border-radius: 6px;
    text-align: left;
}
.dallavechia-outofstock-text {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #0D0D0D;
}
.dallavechia-outofstock-whatsapp-btn {
    display: inline-block;
    background: #FF6B00;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.dallavechia-outofstock-whatsapp-btn:hover {
    background: #e05f00;
}

/* Remove grayscale de produtos esgotados nas categorias quando ativo */
.color-original-outofstock .product-item-info:has(.stock.unavailable) {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}
.color-original-outofstock .product-item-info:has(.stock.unavailable) .product-item-name {
    color: inherit !important;
}/* ═══════════════════════════════════════════
   Dallavechia Breeze Loja — customizações mínimas
═══════════════════════════════════════════ */

/* BOTÃO FLUTUANTE WHATSAPP */
#db-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#db-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
#db-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

/* SLIDESHOW — home page */
.slideshow-container { width: 100%; overflow: hidden; }
.slideshow           { list-style: none; margin: 0; padding: 0; }
.slideshow li        { display: none; width: 100%; }
.slideshow li.active { display: block; }
.slideshow li a      { display: block; width: 100%; }
.slideshow li img    { width: 100%; height: auto; display: block; }
.slideshow-pager     { display: none; }

/* FOOTER LINKS — 4 colunas */
.db-footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}
.db-footer-col { flex: 1; min-width: 160px; }
.db-footer-col strong {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.db-footer-col ul { list-style: none; margin: 0; padding: 0; }
.db-footer-col ul li a {
    font-size: 12px;
    line-height: 2.2;
    text-decoration: none;
    text-transform: uppercase;
}
.db-footer-contact address {
    font-style: normal;
    font-size: 12px;
    line-height: 2;
}
@media (max-width: 767px) {
    .db-footer-cols { flex-direction: column; gap: 20px; }
}

/* PREÇO — ocultar em produtos esgotados (listing + produto) */
.product-item-details:has(.stock.unavailable) .price-box,
.product-item-details:has(.stock.unavailable) .price-container,
.product-details:has(.stock.unavailable) .price-box,
.product-info-main:has(.stock.unavailable) .price-box,
.product-info-price:has(.stock.unavailable) .price-box,
.product-item:has(.stock.unavailable) .price-box,
.product-item-info:has(.stock.unavailable) .price-box {
    display: none !important;
}

/* Visualizados recentemente — sem stock.unavailable no HTML */
.widget-viewed .product-item .price-box,
.widget-recent .product-item .price-box,
.block-viewed-products-grid .price-box,
.block-viewed-products-list .price-box,
.block.widget.block-viewed-products .price-box,
.block-recentlyviewed .price-box {
    display: none !important;
}

/* Compre junto (upsell) e Veja também (related) — sem stock.unavailable no HTML */
.block.upsell .price-box,
.block.related .price-box,
.products-upsell .price-box,
.products-related .price-box {
    display: none !important;
}
