/**
 * Theme Name:     Divi Child
 * Author:         Elegant Themes
 * Template:       Divi
 * Text Domain:	   Divi Child
 * Description:    Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
 */

/* Esconde o título/checkbox "Entregar em um endereço diferente?" */
#ship-to-different-address {
    display: none !important;
}
/* Garante que os campos de entrega fiquem sempre visíveis */
.woocommerce-shipping-fields .shipping_address {
    display: block !important;
} 



/* ===== Cardápio estilo app de pedidos ===== */

/* Menu de categorias */
body .cdp-nav{display:flex;gap:8px;overflow-x:auto;padding:10px 0;position:sticky;top:0;background:#fff;z-index:50;scrollbar-width:none}
body .cdp-nav a{white-space:nowrap;padding:8px 16px;border:1px solid #e3e3e3;border-radius:999px;font-weight:600;font-size:14px;color:#333;text-decoration:none}
body .cdp-nav a:hover{background:#c64566;color:#fff;border-color:#c64566}

/* Títulos das seções */
body .cdp-cat{scroll-margin-top:70px;margin-bottom:36px}
body .cdp-titulo{font-size:26px;font-weight:700;margin:0 0 14px;padding:0}

/* Grade: 2 colunas no desktop, 1 no celular */
body .cdp-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:767px){body .cdp-grid{grid-template-columns:1fr}}

/* Card: texto à esquerda, foto à direita */
body .cdp-card{display:flex;flex-direction:row;justify-content:space-between;gap:14px;padding:16px;border:1px solid #e6e6e6;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}
body .cdp-info{flex:1;display:flex;flex-direction:column;min-width:0}
body .cdp-info h3{font-size:18px;font-weight:600;margin:0 0 4px;padding:0;line-height:1.3}
body .cdp-desc{font-size:14px;line-height:1.4;margin:0 0 8px;padding:0}
body .cdp-preco{font-size:20px;font-weight:700;margin-top:auto}
body .cdp-preco del{font-size:13px;font-weight:400;opacity:.6;margin-right:6px}
body .cdp-preco ins{text-decoration:none}

/* Foto */
body .cdp-foto{flex:0 0 96px}
body .cdp-foto img{width:96px;height:96px;max-width:none;object-fit:cover;border-radius:10px;display:block}
@media(min-width:768px){body .cdp-foto{flex-basis:110px}body .cdp-foto img{width:110px;height:110px}}

/* Quantidade + botão */
body .cdp-acoes{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
body .cdp-qty{display:inline-flex;align-items:center;border:1px solid #ddd;border-radius:999px;overflow:hidden}
body .cdp-qty button{width:32px;height:32px;border:0;background:#f6f6f6;font-size:18px;cursor:pointer;padding:0}
body .cdp-qty input{width:34px;text-align:center;border:0;background:#fff;padding:0;font-weight:600}
body .cdp-add.button{background:#c64566!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:8px 18px!important;font-size:14px!important;line-height:1.4!important}
body .cdp-add.button:after{display:none!important}
body .cdp-add.added{background:#3c8d40!important}
body a.added_to_cart{display:none!important}
body .cdp-esgotado{color:#b33;font-weight:600;font-size:14px}

/* Card inteiro clicável */
body .cdp-card{position:relative;cursor:pointer;transition:border-color .2s, box-shadow .2s}
body .cdp-card:hover{border-color:#c64566;box-shadow:0 2px 8px rgba(0,0,0,.08)}
body .cdp-info h3 a.cdp-link{color:inherit;text-decoration:none}
body .cdp-info h3 a.cdp-link::after{content:"";position:absolute;inset:0;z-index:1}
body .cdp-foto a{display:block}

/* Controles ficam por cima do link, para continuarem clicáveis */
body .cdp-qty,
body .cdp-add,
body .cdp-esgotado{position:relative;z-index:2}

/* ===== Fim Cardápio ===== */
