/* ATENDIA Menú Premium Original — presentación móvil independiente V4.
   Sólo CSS. No altera main.js ni su flujo comercial.
   A diferencia de Experience V2, aquí NO hay barra de cuatro etapas,
   ni pantallas de encabezado de etapa ni checkout a pantalla completa.
   El carrito se presenta como una hoja deslizante, como extensión de la interfaz
   redondeada y sobria del Premium Original de escritorio. */
@media (max-width: 700px) {
  html.urban-editorial[data-plantilla="premium"] .cart-overlay:not(.hidden) {
    background: rgba(16, 24, 24, .58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel:not(.hidden) {
    position: fixed;
    left: 50%; right: auto; top: auto; bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%; max-width: 560px;
    height: min(91dvh, 850px); max-height: 91dvh;
    min-height: 0;
    transform: translateX(-50%);
    background: #fffaf2;
    border: 1px solid rgba(39, 52, 44, .14);
    border-bottom: 0;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -16px 60px rgba(7, 24, 18, .27);
    overflow: hidden;
    z-index: 101;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-header {
    position: relative;
    flex: 0 0 auto;
    gap: 14px;
    padding: 24px 19px 15px;
    background: #fffaf2;
    border-bottom: 1px solid #e4dbcd;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-header::before {
    content: "";
    position: absolute;
    top: 8px; left: calc(50% - 19px);
    width: 38px; height: 4px;
    border-radius: 8px;
    background: #d6cbba;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-label {
    margin: 0 0 6px;
    font: 600 12px/1.35 'DM Sans', system-ui, sans-serif;
    color: #857e72;
    letter-spacing: .015em;
    text-transform: none;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-header h2 {
    font: 900 clamp(26px, 8vw, 33px)/1 'Barlow Condensed', Impact, sans-serif;
    color: #1e2924;
    text-transform: none;
    letter-spacing: -.02em;
  }
  html.urban-editorial[data-plantilla="premium"] .close-cart {
    width: 45px; height: 45px; flex: 0 0 45px;
    border: 1px solid #e1dfd8;
    border-radius: 50%;
    background: #f4f5f4;
    color: #19211d;
    font: 500 28px/1 'DM Sans', sans-serif;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-detail {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 19px 30px;
    background: #fffaf2;
    scrollbar-width: thin;
    color: #26372e;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-footer:not(.hidden) {
    flex: 0 0 auto;
    padding: 14px 19px calc(17px + env(safe-area-inset-bottom, 0px));
    background: #fffefb;
    border-top: 1px solid #e7ddd0;
    box-shadow: 0 -6px 20px rgba(36, 29, 18, .04);
  }
  html.urban-editorial[data-plantilla="premium"] .cart-summary {
    margin-bottom: 12px;
    font: 600 14px 'DM Sans', sans-serif;
    color: #38473c;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-summary strong {
    font: 900 25px 'Barlow Condensed', Impact, sans-serif;
    color: #21372b;
  }
  html.urban-editorial[data-plantilla="premium"] .continue-order {
    width: 100%; min-height: 52px;
    border-radius: 10px;
    border: 0;
    background: #183b2d !important;
    color: #fff !important;
    font: 800 14px 'DM Sans', system-ui, sans-serif;
    box-shadow: none;
  }
  /* Producto y variantes — estructura ligera, sin pantalla de etapas. */
  html.urban-editorial[data-plantilla="premium"] .product-selector { gap: 18px; }
  html.urban-editorial[data-plantilla="premium"] .selector-product-top {
    display: grid;
    grid-template-columns: 91px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-product-image {
    width: 91px; height: 91px;
    border-radius: 15px;
    background: #efe9dd;
    overflow: hidden;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-product-image :is(img,.product-photo) {
    width: 100%; height: 100%; object-fit: cover;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-product-info { min-width: 0; }
  html.urban-editorial[data-plantilla="premium"] .selector-product-info .product-category {
    color: #b6462b;
    font: 800 11px/1.35 'DM Sans', sans-serif;
    letter-spacing: .04em;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-product-info h3 {
    margin: 5px 0;
    font: 900 clamp(23px, 7vw, 29px)/1.04 'Barlow Condensed', Impact, sans-serif;
    color: #25382d;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-product-info p {
    font: 500 13px/1.52 'DM Sans', sans-serif;
    color: #6c776e;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-label {
    font: 700 14px/1.3 'DM Sans', sans-serif;
    color: #243d31;
    text-transform: none;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-section { gap: 11px; }
  html.urban-editorial[data-plantilla="premium"] .ingredient-list span {
    background: #f3f0e7;
    border: 1px solid #dad7cb;
    border-radius: 999px;
    color: #33473a;
    font-size: 12px;
  }
  html.urban-editorial[data-plantilla="premium"] .size-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  }
  html.urban-editorial[data-plantilla="premium"] .size-option {
    min-width: 0; min-height: 67px;
    padding: 12px 13px;
    border: 1px solid #e0e2de;
    border-radius: 15px;
    background: #fffdf9;
    box-shadow: none;
    color: #273c30;
    gap: 8px;
  }
  html.urban-editorial[data-plantilla="premium"] .size-option.active {
    border-color: #b79257;
    background: #f4eddf;
    box-shadow: 0 0 0 1px #b79257 inset;
  }
  html.urban-editorial[data-plantilla="premium"] .size-option>span {
    font: 500 14px 'DM Sans', sans-serif; color: #415247;
  }
  html.urban-editorial[data-plantilla="premium"] .size-option>strong {
    font: 800 15px 'DM Sans', sans-serif; color: #223b2e;
  }
  html.urban-editorial[data-plantilla="premium"] .selector-quantity-section { gap: 14px; }
  html.urban-editorial[data-plantilla="premium"] .selector-quantity button,
  html.urban-editorial[data-plantilla="premium"] .quantity-button {
    min-width: 43px; min-height: 43px; width: 43px; height: 43px;
    border: 1px solid #d8dad3;
    border-radius: 50%;
    background: #f8f7f3;
    color: #263b2e;
  }
  html.urban-editorial[data-plantilla="premium"] .product-selector>.add-configurable-product,
  html.urban-editorial[data-plantilla="premium"] .promotion-selector>.add-promotion {
    width: 100%; min-height: 55px;
    padding: 11px 14px;
    margin: 5px 0 0;
    background: #183b2d !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font: 800 14px/1.4 'DM Sans', sans-serif !important;
    box-shadow: none;
  }
  html.urban-editorial[data-plantilla="premium"] .back-to-menu {
    min-height: 46px;
    color: #657469;
    font-size: 13px;
    font-weight: 600;
  }
  /* Carrito y tipo de entrega: sencillos, sin progreso ni recibo V2. */
  html.urban-editorial[data-plantilla="premium"] .cart-item {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 15px 0;
    margin: 0;
    border-bottom: 1px solid #e5ded5;
    background: transparent;
    box-shadow: none;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-item-image {
    width: 60px; height: 60px; border-radius: 12px; overflow: hidden;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-item-image :is(img,.product-photo) { width: 100%; height: 100%; object-fit: cover; }
  html.urban-editorial[data-plantilla="premium"] .cart-item-info h3 {
    font: 900 21px/1.1 'Barlow Condensed', Impact, sans-serif;
    color: #21382b;
  }
  html.urban-editorial[data-plantilla="premium"] .cart-item-price { color: #6a756c; }
  html.urban-editorial[data-plantilla="premium"] .cart-item-subtotal {
    font: 900 20px 'Barlow Condensed', Impact, sans-serif;
    color: #243f32;
  }
  html.urban-editorial[data-plantilla="premium"] .remove-product { color: #a3442d; font-weight: 700; }
  html.urban-editorial[data-plantilla="premium"] .order-type { padding: 15px 0 20px; }
  html.urban-editorial[data-plantilla="premium"] .order-type-button {
    min-height: 92px;
    gap: 13px;
    border: 1px solid #e1e2dc;
    border-radius: 14px;
    background: #fffdfa;
    padding: 13px;
    margin-bottom: 11px;
    box-shadow: none;
  }
  html.urban-editorial[data-plantilla="premium"] .order-type-icon {
    width: 54px; height: 54px;
    border-radius: 13px;
    background: #f8f0df;
    font-size: 25px;
  }
  html.urban-editorial[data-plantilla="premium"] .order-type-button strong {
    font: 800 15px 'DM Sans',sans-serif; color: #263b2e;
  }
  html.urban-editorial[data-plantilla="premium"] .order-type-button small {
    font: 500 12px/1.5 'DM Sans',sans-serif; color: #788077;
  }
  /* Datos del usuario y revisión legibles en móviles pequeños. */
  html.urban-editorial[data-plantilla="premium"] .form-group :is(input,select,textarea) {
    font-size: 16px;
    min-height: 48px;
    border-radius: 10px;
  }
  html.urban-editorial[data-plantilla="premium"] .saved-data-list { min-width: 0; overflow-wrap: anywhere; }
  html.urban-editorial[data-plantilla="premium"] .saved-data-list strong { overflow-wrap: anywhere; }
}
@media (max-width: 355px) {
  html.urban-editorial[data-plantilla="premium"] .cart-detail { padding-inline: 14px; }
  html.urban-editorial[data-plantilla="premium"] .cart-panel-header { padding-inline: 14px; }
  html.urban-editorial[data-plantilla="premium"] .selector-product-top { grid-template-columns: 75px minmax(0, 1fr); }
  html.urban-editorial[data-plantilla="premium"] .selector-product-image { width: 75px; height: 75px; }
  html.urban-editorial[data-plantilla="premium"] .size-option { padding: 10px; }
  html.urban-editorial[data-plantilla="premium"] .cart-item { grid-template-columns: 53px minmax(0,1fr) auto; }
  html.urban-editorial[data-plantilla="premium"] .cart-item-image { width: 53px; height: 53px; }
}
