/* Pedido online mobile app/listado and category menu iteration.
   Extraído de site.css para poder mantener la web por bloques. */

/* Pedido online tipo app móvil: listado único + menú hamburguesa por secciones */
.pedido-phone-layout {
    --pedido-accent: #ff4b2f;
    --pedido-muted: #777;
    --pedido-bg: #f3f3f3;
    background: #f3f3f3 !important;
    padding: 0 !important;
    color: #202020;
}

.pedido-phone-layout .pedido-menu-shell {
    width: min(820px, 100%) !important;
    min-height: 100dvh;
    margin: 0 auto;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    background: #fff;
}

.pedido-store-head {
    padding: max(18px, env(safe-area-inset-top)) 18px 0;
    background: linear-gradient(180deg, #eeeeee 0%, #f7f7f7 62%, #fff 100%);
}

.pedido-store-topbar {
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.pedido-logo-box {
    width: 210px;
    height: 82px;
    border-radius: 0 0 10px 10px;
    background: #f8f8f8;
}

.pedido-store-info h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 46px);
    line-height: 1.02;
    font-weight: 650;
    letter-spacing: -.8px;
}

.pedido-store-info p {
    margin: 18px 0 0;
    color: #777;
    font-size: clamp(16px, 4vw, 21px);
    font-weight: 650;
    line-height: 1.3;
}

.pedido-store-info p span {
    display: inline-block;
    width: 1px;
    height: 24px;
    margin: 0 16px;
    background: #e1e1e1;
    vertical-align: middle;
}

.pedido-phone-layout .pedido-mode-tabs {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 24px 0 0;
    padding: 7px;
    border-radius: 18px;
    background: #eeeeee;
}

.pedido-phone-layout .pedido-mode-tabs button {
    min-height: 58px;
    border-radius: 15px;
    background: transparent;
    color: #222;
    font-size: 0;
    box-shadow: none;
}

.pedido-phone-layout .pedido-mode-tabs button span {
    font-size: 0;
}

.pedido-phone-layout .pedido-mode-tabs button:first-child::before { content: "🛵"; font-size: 30px; }
.pedido-phone-layout .pedido-mode-tabs button:last-child::before { content: "▣"; font-size: 32px; line-height: 1; }

.pedido-phone-layout .pedido-mode-tabs button.active {
    background: #1f1f1f;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

.pedido-open-row {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
}

.pedido-open-row > strong {
    font-size: clamp(22px, 5.4vw, 32px);
    font-weight: 620;
}

.pedido-phone-layout .pedido-open-state {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #777;
    font-size: clamp(19px, 4.8vw, 28px);
    font-weight: 600;
}

.pedido-phone-layout .pedido-open-state i {
    width: 14px;
    height: 14px;
    border-width: 6px;
}

.pedido-category-stick {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #eeeeee;
    backdrop-filter: blur(14px);
}

.pedido-menu-button {
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    border-radius: 9px;
    display: grid;
    place-content: center;
    gap: 7px;
    background: #1d1d1d;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    cursor: pointer;
}

.pedido-menu-button span {
    display: block;
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: #bdbdbd;
}

.pedido-category-stick > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 850;
    letter-spacing: 1.5px;
}

.pedido-phone-layout .pedido-one-list {
    display: block !important;
    padding: 0 0 calc(112px + env(safe-area-inset-bottom)) !important;
    background: #fff;
}

.pedido-section {
    scroll-margin-top: 104px;
}

.pedido-section > h2 {
    margin: 0;
    padding: 28px 18px;
    background: #f3f3f3;
    font-size: clamp(23px, 5.6vw, 32px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: .7px;
}

.pedido-phone-layout .pedido-product {
    min-height: 170px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 22px 18px;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    box-shadow: none !important;
    background: #fff;
}

.pedido-phone-layout .pedido-product-main-button {
    display: grid;
    grid-template-columns: 166px minmax(0, 1fr) !important;
    gap: 28px;
    align-items: center;
}

.pedido-phone-layout .pedido-product-img {
    width: 166px !important;
    height: 122px !important;
    border-radius: 9px !important;
    background: #f3f3f3;
    font-size: 0 !important;
}

.pedido-phone-layout .pedido-product-img span {
    display: none;
}

.pedido-phone-layout .pedido-product h3 {
    margin: 0;
    font-size: clamp(25px, 6.2vw, 34px) !important;
    line-height: 1.18;
    font-weight: 520;
    letter-spacing: 1.3px;
}

.pedido-phone-layout .pedido-product p {
    margin: 12px 0 18px;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #777;
    font-size: clamp(18px, 4.4vw, 26px) !important;
    line-height: 1.25;
    font-weight: 520;
    letter-spacing: .7px;
}

.pedido-phone-layout .pedido-product strong {
    font-family: Consolas, ui-monospace, monospace;
    font-size: clamp(25px, 5.9vw, 32px) !important;
    font-weight: 500;
    letter-spacing: 2px;
}

.pedido-phone-layout .pedido-add {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #fff;
    border: 0;
    color: var(--pedido-accent);
    font-size: 34px !important;
    font-weight: 300;
    box-shadow: 0 4px 16px rgba(0,0,0,.13);
}

.pedido-search-fab {
    position: fixed;
    z-index: 34;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 130px;
    height: 130px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--pedido-accent);
    font-size: 62px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.pedido-phone-layout .pedido-mobile-cart {
    left: 166px;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-height: 78px;
    border-radius: 22px;
    background: #009b52;
}

.pedido-category-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.pedido-category-menu.is-open { display: block; }

.pedido-category-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}

.pedido-category-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(820px, 100%);
    max-height: 76dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-50%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: #fff;
    box-shadow: 0 -18px 54px rgba(0,0,0,.18);
}

.pedido-category-panel header {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 34px;
    border-bottom: 1px solid #eeeeee;
}

.pedido-category-panel h2 {
    margin: 0;
    font-size: clamp(32px, 7vw, 40px);
    line-height: 1;
    font-weight: 780;
    letter-spacing: 1.3px;
}

.pedido-category-panel header button {
    width: 54px;
    height: 54px;
    background: transparent;
    font-size: 54px;
    line-height: .8;
    font-weight: 260;
    cursor: pointer;
}

.pedido-category-panel nav {
    overflow: auto;
    padding: 12px 32px 20px;
}

.pedido-category-panel nav a {
    min-height: 74px;
    display: flex;
    align-items: center;
    padding: 0 34px;
    border-radius: 9px;
    color: #202020;
    font-size: clamp(25px, 6vw, 34px);
    font-weight: 850;
    letter-spacing: 1.8px;
}

.pedido-category-panel nav a.active {
    background: var(--pedido-accent);
    color: #fff;
}

.pedido-category-panel footer {
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid #eeeeee;
}

.pedido-category-panel footer button {
    width: 100%;
    min-height: 82px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid #1e1e1e;
    color: #1e1e1e;
    font-size: clamp(25px, 6vw, 34px);
    font-weight: 850;
    cursor: pointer;
}

.pedido-phone-layout .pedido-sheet-panel {
    width: min(820px, 100%);
    max-height: 75dvh;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.pedido-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 18px 18px;
}

.pedido-config-head h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(34px, 7vw, 46px);
    font-weight: 520;
    letter-spacing: 1px;
}

.pedido-config-head strong {
    flex: 0 0 auto;
    font-family: Consolas, ui-monospace, monospace;
    font-size: clamp(30px, 6vw, 42px);
    font-weight: 500;
    letter-spacing: 2px;
}

.pedido-qty-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px 18px 28px;
}

.pedido-qty-row button,
.pedido-qty-row strong {
    width: 92px;
    height: 62px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    color: var(--pedido-accent);
    font-size: 34px;
    font-weight: 400;
}

.pedido-qty-row button:disabled {
    color: #ffc4ba;
    box-shadow: none;
}

.pedido-qty-row strong {
    color: #222;
    font-size: 28px;
    font-weight: 850;
}

.pedido-config-subtitle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pedido-phone-layout .pedido-options-body {
    padding: 0 18px 118px;
}

.pedido-phone-layout .pedido-option-group {
    padding: 18px 0 28px;
}

.pedido-phone-layout .pedido-option-group + .pedido-option-group {
    border-top: 0;
}

.pedido-phone-layout .pedido-option-group-head {
    margin-bottom: 16px;
}

.pedido-phone-layout .pedido-option-group-head small {
    font-size: clamp(17px, 4vw, 24px);
    color: #777;
    font-weight: 500;
}

.pedido-phone-layout .pedido-option-group-head h3 {
    font-size: clamp(20px, 5vw, 29px);
    letter-spacing: 5px;
    font-weight: 620;
}

.pedido-phone-layout .pedido-option-group-head span {
    padding-top: 28px;
    font-size: clamp(17px, 4vw, 25px);
    font-weight: 520;
}

.pedido-phone-layout .pedido-option-row {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 10px;
}

.pedido-phone-layout .pedido-option-row strong {
    font-size: clamp(23px, 5.5vw, 31px);
    letter-spacing: 3px;
    font-weight: 520;
}

.pedido-phone-layout .pedido-option-row em {
    color: #009b52;
    font-size: clamp(22px, 5vw, 29px);
    letter-spacing: 2px;
}

.pedido-phone-layout .pedido-option-box {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 4px solid #eeeeee;
}

.pedido-phone-layout .pedido-option-row.is-selected .pedido-option-box::before {
    content: "✓";
}

.pedido-phone-layout .pedido-config-footer {
    grid-template-columns: .9fr 1.2fr;
    padding: 16px 18px max(16px, env(safe-area-inset-bottom));
}

.pedido-phone-layout .pedido-sheet-footer button {
    min-height: 82px;
    border-radius: 22px;
    font-size: clamp(22px, 5.4vw, 31px);
}

.pedido-phone-layout .pedido-sheet-footer .primary {
    background: #009b52;
}

@media (min-width: 821px) {
    .pedido-phone-layout .pedido-menu-shell,
    .pedido-category-panel,
    .pedido-phone-layout .pedido-sheet-panel {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}

@media (max-width: 560px) {
    .pedido-store-topbar { min-height: 168px; }
    .pedido-logo-box { width: 208px; max-width: 56vw; height: 76px; }
    .pedido-store-head { padding-left: 17px; padding-right: 17px; }
    .pedido-phone-layout .pedido-product { min-height: 148px; padding: 18px 17px; grid-template-columns: minmax(0, 1fr) 54px !important; }
    .pedido-phone-layout .pedido-product-main-button { grid-template-columns: 166px minmax(0,1fr) !important; gap: 18px; }
    .pedido-phone-layout .pedido-product-img { width: 166px !important; height: 118px !important; }
    .pedido-menu-button { width: 82px; height: 82px; }
    .pedido-search-fab { width: 130px; height: 130px; }
}

@media (max-width: 430px) {
    .pedido-store-topbar { min-height: 152px; }
    .pedido-logo-box { width: 170px; height: 68px; }
    .pedido-store-info p span { display: none; }
    .pedido-store-info p { display: block; }
    .pedido-category-stick { min-height: 78px; padding: 10px 16px; }
    .pedido-menu-button { width: 58px; height: 58px; gap: 5px; }
    .pedido-menu-button span { width: 22px; }
    .pedido-phone-layout .pedido-product { min-height: 126px; padding: 14px 16px; grid-template-columns: minmax(0,1fr) 46px !important; }
    .pedido-phone-layout .pedido-product-main-button { grid-template-columns: 84px minmax(0,1fr) !important; gap: 16px; }
    .pedido-phone-layout .pedido-product-img { width: 84px !important; height: 84px !important; }
    .pedido-phone-layout .pedido-add { width: 44px !important; height: 44px !important; font-size: 29px !important; }
    .pedido-section > h2 { padding: 22px 16px; }
    .pedido-search-fab { width: 66px; height: 66px; border-radius: 18px; font-size: 42px; }
    .pedido-phone-layout .pedido-mobile-cart { left: 98px; min-height: 64px; }
    .pedido-category-panel header { min-height: 88px; padding: 0 18px; }
    .pedido-category-panel nav { padding: 10px 16px 18px; }
    .pedido-category-panel nav a { min-height: 58px; padding: 0 18px; }
    .pedido-category-panel footer button { min-height: 64px; }
    .pedido-config-head { padding-top: 28px; }
    .pedido-qty-row button, .pedido-qty-row strong { width: 78px; height: 54px; }
}

