/* ================================================================
   PILAR ONLINE — RESTAURANTES E DELIVERY | DETALHE DO PRODUTO
   Extensão visual de /loja/_css/catalogo.css.
   Não altera o CSS compartilhado das lojas tradicionais.
   ================================================================ */
.po-delivery-product-page {
    --po-d-red: #C1272D;
    --po-d-orange: #F47016;
    --po-d-ink: #26313D;
    --po-d-muted: #657180;
    --po-d-border: #E6E9EE;
    font-family: Poppins, Arial, sans-serif;
}
.po-delivery-product-page,
.po-delivery-product-page * {box-sizing:border-box}
.po-delivery-product-page .product-detail-page {padding-top:24px}
.po-delivery-product-page .product-breadcrumb {flex-wrap:wrap;white-space:normal;gap:8px;margin-bottom:22px;font-size:12px;line-height:1.6}
.po-delivery-product-page .product-breadcrumb a {color:var(--po-d-muted);text-decoration:none}
.po-delivery-product-page .product-breadcrumb a:hover {color:var(--po-d-red)}
.po-delivery-product-page .product-breadcrumb strong {font-weight:600}
.po-delivery-product-page .product-detail-layout-v2 {gap:clamp(19px,3vw,42px);border-radius:20px;border:1px solid var(--po-d-border);box-shadow:0 14px 40px rgba(23,32,45,.055)}
.po-delivery-product-page .product-gallery-v2 {min-width:0}
.po-delivery-product-page .product-gallery-shell {border-radius:16px;overflow:hidden}
.po-delivery-product-page .product-main-stage {background:#F9FAFB}
.po-delivery-product-page .product-main-image-v2 {background:#F9FAFB}
.po-delivery-product-page .product-detail-info-v2 {min-width:0}
.po-delivery-product-page .product-detail-info h1 {font-size:clamp(26px,3vw,38px);font-weight:700;line-height:1.22;letter-spacing:-.025em;color:var(--po-d-ink);overflow-wrap:anywhere}
.po-delivery-product-page .detail-store-name {transition:background .2s ease,border-color .2s ease}
.po-delivery-product-page .detail-store-copy .detail-store-label {color:var(--po-d-muted)}
.po-delivery-product-page .detail-price {margin:20px 0 14px}
.po-delivery-product-page .detail-price strong {color:var(--po-d-red);font-weight:700;font-size:clamp(28px,4vw,37px)}
.po-delivery-product-page .detail-price small {font-size:13px}
.po-delivery-product-page .detail-price span {color:var(--po-d-orange);font-size:12px;font-weight:700}
.po-delivery-product-page .detail-brand,.po-delivery-product-page .detail-availability {font-size:12px}
.po-delivery-product-page .detail-category {font-size:11px}
.po-delivery-product-page .product-payment-summary {margin:13px 0 19px}
.po-delivery-product-page .product-payment-summary button {font-size:11px}
.po-delivery-product-page .add-cart-box-v2 {border:1px solid var(--po-d-border);border-radius:15px;background:#FFF;padding:clamp(13px,2.2vw,20px)}
.po-delivery-product-page .detail-label {font-size:12px;font-weight:700}
.po-delivery-product-page .variation-list {gap:10px}
.po-delivery-product-page .variation-chip {border-radius:12px;min-width:0}
.po-delivery-product-page .variation-chip:hover {border-color:var(--po-d-orange)}
.po-delivery-product-page .po-variation-title {font-size:12px}
.po-delivery-product-page .po-variation-copy strong {font-size:13px}
.po-delivery-product-page .po-variation-copy small {font-size:11px}
.po-delivery-product-page .add-cart-quantity > span {font-size:12px;font-weight:600}
.po-delivery-product-page .add-to-cart-button {background:var(--po-d-red);font-size:13px;font-weight:700;border-radius:11px;transition:filter .2s ease}
.po-delivery-product-page .add-to-cart-button:not(:disabled):hover {filter:brightness(.94)}
.po-delivery-product-page .add-to-cart-button:disabled {cursor:not-allowed;opacity:.62}
.po-delivery-product-page .product-detail-actions {display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;margin:20px 0}
.po-delivery-product-page .product-detail-actions > * {min-width:0}
.po-delivery-product-page .product-detail-actions .primary-product-action,
.po-delivery-product-page .product-detail-actions .secondary-product-action,
.po-delivery-product-page .po-delivery-back-menu {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 14px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:600}
.po-delivery-product-page .po-delivery-back-menu {border:1px solid var(--po-d-border);color:var(--po-d-ink);background:#FFF}
.po-delivery-product-page .po-delivery-back-menu:hover {border-color:var(--po-d-red);color:var(--po-d-red)}
.po-delivery-product-page .product-description-text {font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.po-delivery-product-page .product-description-card h2,
.po-delivery-product-page .product-specs-card h2 {font-size:20px}
.po-delivery-product-page .po-product-shipping {border-radius:16px}
.po-delivery-product-page .po-product-shipping-heading h2 {font-size:18px}
.po-delivery-product-page .related-products-head h2 {font-size:clamp(20px,2.5vw,26px)}

/* Status real: espelha o cálculo em /includes/horarios.php. */
.po-delivery-product-page .po-delivery-product-hours {margin:15px 0 16px;padding:15px 17px;border:1px solid var(--po-d-border);border-radius:14px;background:linear-gradient(145deg,#FFF,#FCFDFE)}
.po-delivery-product-page .po-delivery-product-hours-top {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.po-delivery-product-page .po-delivery-product-status {display:inline-flex;align-items:center;gap:10px;min-height:36px;padding:7px 13px;border:1px solid #F0CED2;border-radius:100px;background:#FFF2F3;color:#9B2931;font-size:12px;font-weight:700;line-height:1.35}
.po-delivery-product-page .po-delivery-product-status i {width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#C73E49}
.po-delivery-product-page .po-delivery-product-status.is-open {color:#147449;border-color:#C2E8D1;background:#EDF9F1}
.po-delivery-product-page .po-delivery-product-status.is-open i {background:#18A363;box-shadow:0 0 0 3px #D1F1DF}
.po-delivery-product-page .po-delivery-product-next {font-size:12px;color:var(--po-d-orange);font-weight:700}
.po-delivery-product-page .po-delivery-product-hours > p {margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--po-d-muted)}
.po-delivery-product-page .po-delivery-product-schedule {margin-top:13px;border-top:1px solid #EBEEF2;padding-top:10px}
.po-delivery-product-page .po-delivery-product-schedule summary {display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;list-style:none;color:var(--po-d-red);font-size:12px;font-weight:700}
.po-delivery-product-page .po-delivery-product-schedule summary::-webkit-details-marker {display:none}
.po-delivery-product-page .po-delivery-product-schedule[open] summary span {transform:rotate(180deg)}
.po-delivery-product-page .po-delivery-product-week {margin:12px 0 6px}
.po-delivery-product-page .po-delivery-product-day {display:grid;grid-template-columns:minmax(110px,.55fr) minmax(0,1fr);gap:12px;padding:9px 7px;border-bottom:1px solid #EFF1F3;font-size:11px}
.po-delivery-product-page .po-delivery-product-day span {color:#667281}
.po-delivery-product-page .po-delivery-product-day strong {font-weight:600;color:var(--po-d-ink);overflow-wrap:anywhere}
.po-delivery-product-page .po-delivery-product-day.is-today {border-radius:7px;background:#FFF8F0}
.po-delivery-product-page .po-delivery-product-schedule > small {display:block;margin-top:9px;color:#7B8795;font-size:10px;line-height:1.5}
.po-delivery-product-page .po-delivery-product-blocked {display:flex;align-items:flex-start;gap:12px;margin:14px 0;padding:15px;border:1px solid #F0D7BE;border-radius:13px;background:#FFF8F0}
.po-delivery-product-page .po-delivery-product-blocked > span {display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#FCE9D6;color:#A96224;font-size:20px}
.po-delivery-product-page .po-delivery-product-blocked strong {display:block;font-size:13px;font-weight:700;color:#875121}
.po-delivery-product-page .po-delivery-product-blocked p {font-size:12px;line-height:1.65;margin:4px 0 0;color:#795C42}
.po-delivery-product-page .po-delivery-product-disabled-cta {display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;border:1px solid #DDE2E8;border-radius:11px;background:#F1F3F6;color:#697786;font-size:13px;font-weight:700;cursor:not-allowed;text-align:center}
.po-delivery-product-page .po-delivery-product-cart-shortcuts {display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.po-delivery-product-page .po-delivery-product-cart-shortcuts a {min-height:39px;display:inline-flex;justify-content:center;align-items:center;padding:8px 13px;border:1px solid #F0CBCF;border-radius:10px;color:var(--po-d-red);text-decoration:none;font-size:12px;font-weight:700;background:#FFF8F8}
.po-delivery-product-page .po-delivery-product-cart-shortcuts a.is-primary {border-color:var(--po-d-red);background:var(--po-d-red);color:#FFF}
.po-delivery-product-page .po-delivery-product-cart-shortcuts a:hover {filter:brightness(.96)}
.po-delivery-product-page.po-delivery-closed .store-cart-button {display:none !important}

@media(max-width:820px) {
    .po-delivery-product-page .product-detail-layout-v2 {gap:18px}
    .po-delivery-product-page .po-delivery-product-hours {margin-top:14px}
}
@media(max-width:600px) {
    .po-delivery-product-page .product-detail-page {padding-top:12px}
    .po-delivery-product-page .product-detail-layout-v2 {padding:12px;border-radius:14px}
    .po-delivery-product-page .product-breadcrumb {font-size:11px;line-height:1.5;margin:4px 0 13px}
    .po-delivery-product-page .product-detail-info h1 {font-size:26px}
    .po-delivery-product-page .po-delivery-product-hours {padding:12px;border-radius:12px}
    .po-delivery-product-page .po-delivery-product-day {grid-template-columns:95px minmax(0,1fr);gap:8px;font-size:10px}
    .po-delivery-product-page .product-detail-actions {display:grid;grid-template-columns:1fr 1fr}
    .po-delivery-product-page .product-detail-actions > * {width:100%}
    .po-delivery-product-page .product-detail-actions .primary-product-action {grid-column:1/-1}
    .po-delivery-product-page .product-detail-actions .secondary-product-action {min-width:0}
    .po-delivery-product-page .po-delivery-product-cart-shortcuts a {flex:1 1 auto}
    .po-delivery-product-page .po-product-shipping {padding:14px}
    .po-delivery-product-page .product-description-card,.po-delivery-product-page .product-specs-card {padding:16px}
}
@media (max-width:380px) {
    .po-delivery-product-page .product-detail-actions {grid-template-columns:1fr}
    .po-delivery-product-page .product-detail-actions .primary-product-action {grid-column:auto}
}
@media (prefers-reduced-motion:reduce) {
    .po-delivery-product-page * {scroll-behavior:auto !important;transition:none !important}
}


/* Adicionais opcionais do Cardápio Digital */
.po-delivery-product-page .po-extras{margin:0 0 18px;padding:18px;border:1px solid #e8d7d7;border-radius:15px;background:#fff}
.po-extras-head{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:15px}
.po-extras-head span:first-child{font-size:10px;font-weight:700;letter-spacing:.07em;color:#c1272d}
.po-extras-head h2{font-size:18px;color:#26313d;margin:4px 0}
.po-extras-head p{margin:3px 0 0;font-size:12px;color:#677480;line-height:1.55}
.po-extras-optional{padding:6px 10px;border-radius:99px;background:#fff1f1;color:#a12c31;font-size:11px;font-weight:700;white-space:nowrap}
.po-extras-options{display:grid;gap:9px}
.po-extras-option{position:relative;display:flex;align-items:center;gap:12px;min-height:59px;padding:12px 13px;border:1px solid #e3e7ec;border-radius:11px;background:#fff;cursor:pointer;transition:border-color .16s,background .16s}
.po-extras-option input{position:absolute;opacity:0;width:1px;height:1px}
.po-extras-option:focus-within{outline:3px solid rgba(193,39,45,.18)}
.po-extras-check{display:grid;place-items:center;width:23px;height:23px;border:2px solid #cbd3dc;border-radius:7px;color:transparent;flex:0 0 23px;font-size:14px;font-weight:700}
.po-extras-option.is-selected{border-color:#c1272d;background:#fff8f8}
.po-extras-option.is-selected .po-extras-check{border-color:#c1272d;background:#c1272d;color:#fff}
.po-extras-option strong{flex:1;min-width:0;font-size:13px;font-weight:600;color:#303946}
.po-extras-price{color:#a52b31;font-size:13px;font-weight:700;white-space:nowrap}
.po-extras-total{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-top:15px;padding-top:14px;border-top:1px solid #eceef1}
.po-extras-total>div{display:grid;gap:5px}.po-extras-total small{font-size:11px;color:#687480}.po-extras-total strong{font-size:20px;color:#c1272d}
.po-extras-warning{margin:12px 0 0;font-size:10px;line-height:1.55;color:#7b6a54}
.po-extras-readonly .po-extras-option{cursor:default}
@media(max-width:600px){.po-delivery-product-page .po-extras{padding:13px}.po-extras-head h2{font-size:16px}.po-extras-option{min-height:57px}.po-extras-total strong{font-size:18px}}
