:root {
    --shop-bg: #05070b;
    --shop-panel: #101620;
    --shop-ink: #ffffff;
    --shop-muted: #cbd5e1;
    --shop-soft: rgba(255, 255, 255, 0.12);
    --shop-accent: #11d7c5;
    --shop-danger: #ff365f;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--shop-ink);
    background: var(--shop-bg);
}

button,
a {
    font: inherit;
}

.shop-topbar {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0));
    pointer-events: none;
}

.shop-brand,
.shop-back,
.shop-tab {
    pointer-events: auto;
}

.shop-brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.shop-brand-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.shop-brand-icon img {
    width: 40px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 255, 255, 0.2));
}

.shop-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--shop-soft);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(18px);
}

.shop-tab {
    min-width: 76px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--shop-muted);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.shop-tab.is-active {
    color: #071117;
    background: #fff;
}

.shop-back {
    justify-self: end;
    max-width: 190px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--shop-soft);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.56);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.shop-cart-link {
    gap: 0.45rem;
}

.shop-cart-link i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.current-business-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-count-badge {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: #071117;
    background: var(--shop-accent);
    font-size: 0.72rem;
    font-weight: 950;
}

.shop-cart-link.cart-pulse {
    animation: cartPulse 420ms ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
        border-color: var(--shop-accent);
        box-shadow: 0 0 0 8px rgba(17, 215, 197, 0.16);
    }

    100% {
        transform: scale(1);
    }
}

.kedpos-floating {
    position: fixed;
    z-index: 40;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kedpos-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.45);
}

.kedpos-floating img {
    width: 46px;
    height: 46px;
    display: block;
}

.shop-shell {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    background: radial-gradient(circle at 15% 15%, rgba(17, 215, 197, 0.16), transparent 28%), #05070b;
}

.feed-panel {
    min-width: 0;
    height: 100vh;
}

.feed-track {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.feed-track::-webkit-scrollbar {
    display: none;
}

.product-post {
    position: relative;
    width: min(100%, 620px);
    height: 100vh;
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    align-items: end;
    overflow: hidden;
    scroll-snap-align: start;
    background: #111827;
}

.media-frame {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: start;
    background: #0f172a;
}

.media-frame img,
.media-frame video {
    width: 100%;
    height: 64%;
    object-fit: cover;
    background: #111827;
}

.post-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 11, 0.05) 0%, rgba(5, 7, 11, 0.25) 48%, rgba(5, 7, 11, 0.96) 78%),
        linear-gradient(90deg, rgba(5, 7, 11, 0.52), rgba(5, 7, 11, 0) 45%);
}

.post-content {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 112px);
    padding: 0 1.25rem 2rem;
}

.business-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 100%;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--shop-soft);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 850;
    cursor: pointer;
}

.product-name {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: 0;
    font-weight: 950;
}

.product-description {
    display: -webkit-box;
    max-width: 36rem;
    margin: 0.8rem 0 1rem;
    overflow: hidden;
    color: var(--shop-muted);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-price {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: #051012;
    background: var(--shop-accent);
    font-size: 1.15rem;
    font-weight: 950;
}

.post-actions {
    position: absolute;
    z-index: 3;
    right: 1rem;
    bottom: 2rem;
    display: grid;
    gap: 0.9rem;
    justify-items: center;
}

.action-button,
.profile-button,
.profile-close {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.action-button {
    width: 66px;
    min-height: 66px;
    display: grid;
    place-items: center;
    gap: 0.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.action-button i {
    font-size: 1.55rem;
    line-height: 1;
}

.action-button span,
.profile-button small {
    max-width: 58px;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.favorite-button.is-active {
    color: #fff;
    background: var(--shop-danger);
}

.cart-button.is-active {
    color: #071117;
    background: var(--shop-accent);
}

.profile-button {
    width: 70px;
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    background: transparent;
}

.profile-avatar,
.profile-avatar-large {
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #071117;
    background: linear-gradient(135deg, #ffffff, var(--shop-accent));
    font-weight: 950;
}

.profile-avatar {
    width: 54px;
    height: 54px;
}

.profile-panel {
    height: 100vh;
    overflow: auto;
    border-left: 1px solid var(--shop-soft);
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
}

.profile-empty {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 0.7rem;
    padding: 2rem;
    text-align: center;
}

.profile-empty i {
    color: var(--shop-accent);
    font-size: 2.5rem;
}

.profile-empty h2,
.profile-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 950;
}

.profile-empty p,
.profile-header p {
    margin: 0;
    color: var(--shop-muted);
    line-height: 1.55;
}

.profile-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: center;
    padding: 5rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--shop-soft);
    background: rgba(15, 23, 42, 0.94);
}

.profile-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
}

.cart-header .profile-avatar-large {
    color: #071117;
    background: var(--shop-accent);
}

.profile-tools {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1rem 0.35rem;
    background: rgba(15, 23, 42, 0.78);
}

.profile-search {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.75rem;
    border: 1px solid var(--shop-soft);
    border-radius: 8px;
    color: var(--shop-muted);
    background: rgba(255, 255, 255, 0.08);
}

.profile-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
}

.profile-search input::placeholder {
    color: rgba(203, 213, 225, 0.78);
}

.profile-categories {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.profile-categories::-webkit-scrollbar {
    display: none;
}

.profile-category {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--shop-soft);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.profile-category.is-active {
    color: #071117;
    border-color: var(--shop-accent);
    background: var(--shop-accent);
}

.profile-products {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.profile-no-results {
    margin: 0;
    padding: 1rem;
    border: 1px dashed var(--shop-soft);
    border-radius: 8px;
    color: var(--shop-muted);
    text-align: center;
}

.profile-product {
    width: 100%;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0.8rem;
    align-items: center;
    min-height: 96px;
    padding: 0.5rem;
    border: 1px solid var(--shop-soft);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.profile-product:hover,
.profile-product.is-added {
    border-color: rgba(17, 215, 197, 0.7);
    background: rgba(17, 215, 197, 0.12);
}

.profile-product.is-added {
    transform: translateY(-2px);
}

.profile-product img {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    object-fit: cover;
}

.profile-product span {
    display: grid;
    gap: 0.4rem;
}

.profile-product strong {
    font-size: 0.96rem;
    line-height: 1.25;
}

.profile-product small {
    color: var(--shop-accent);
    font-weight: 950;
}

.cart-products {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.cart-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 88px;
    padding: 0.5rem;
    border: 1px solid var(--shop-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.cart-product img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-product span {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.cart-product strong {
    overflow: hidden;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-product small {
    color: var(--shop-accent);
    font-weight: 850;
}

.cart-quantity {
    display: grid;
    grid-template-columns: 30px 28px 30px;
    align-items: center;
    justify-items: center;
    gap: 0.15rem;
}

.cart-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--shop-soft);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 950;
    cursor: pointer;
}

.cart-summary {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--shop-soft);
    background: rgba(15, 23, 42, 0.96);
}

.cart-summary span {
    color: var(--shop-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.cart-summary strong {
    color: var(--shop-accent);
    font-size: 1.05rem;
}

.cart-summary button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 950;
    cursor: pointer;
}

.cart-more-button {
    grid-column: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.cart-checkout-button {
    grid-column: 2;
    color: #071117;
    background: var(--shop-accent);
}

.cart-checkout-button:disabled {
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    cursor: not-allowed;
}

.cart-flyer {
    position: fixed;
    z-index: 10000;
    border: 2px solid #fff;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    transition:
        left 620ms cubic-bezier(0.2, 0.78, 0.2, 1),
        top 620ms cubic-bezier(0.2, 0.78, 0.2, 1),
        width 620ms cubic-bezier(0.2, 0.78, 0.2, 1),
        height 620ms cubic-bezier(0.2, 0.78, 0.2, 1),
        opacity 620ms ease,
        transform 620ms ease;
}

.checkout-modal {
    position: fixed;
    z-index: 10001;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 7, 11, 0.72);
    backdrop-filter: blur(12px);
}

.checkout-modal.is-open {
    display: flex;
}

.checkout-card {
    position: relative;
    width: min(94vw, 520px);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid var(--shop-soft);
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.checkout-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.checkout-heading {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 1.25rem 3.8rem 1rem 1.25rem;
    border-bottom: 1px solid var(--shop-soft);
}

.checkout-heading span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #071117;
    background: var(--shop-accent);
    font-size: 1.45rem;
}

.checkout-heading h2,
.checkout-heading p {
    margin: 0;
}

.checkout-heading h2 {
    font-size: 1.25rem;
    font-weight: 950;
}

.checkout-heading p,
.checkout-muted,
.checkout-location-row span {
    color: var(--shop-muted);
}

.checkout-alert {
    margin: 1rem 1.25rem 0;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
}

.checkout-alert[data-type="success"] {
    color: #042f2e;
    background: #99f6e4;
}

.checkout-alert[data-type="danger"] {
    color: #fff;
    background: rgba(255, 54, 95, 0.75);
}

.checkout-step {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem;
}

.checkout-step[hidden] {
    display: none;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.checkout-step label {
    display: grid;
    gap: 0.38rem;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 850;
}

.checkout-step input,
.checkout-step select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--shop-soft);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 0 0.75rem;
    outline: 0;
}

.checkout-primary,
.checkout-secondary {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 950;
    cursor: pointer;
}

.checkout-primary {
    color: #071117;
    background: var(--shop-accent);
}

.checkout-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.checkout-primary:disabled {
    opacity: 0.65;
    cursor: progress;
}

.checkout-location-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.checkout-map {
    min-height: 190px;
    border: 1px solid var(--shop-soft);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

#recaptcha-container {
    min-height: 1px;
}

@media (max-width: 560px) {
    .checkout-grid,
    .checkout-location-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1020px) {
    .shop-shell {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        position: fixed;
        z-index: 30;
        inset: 0 0 0 auto;
        width: min(92vw, 420px);
        transform: translateX(105%);
        transition: transform 180ms ease;
    }

    .profile-panel.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 680px) {
    .shop-topbar {
        height: 62px;
        grid-template-columns: auto 1fr auto;
        padding: 0 0.8rem;
    }

    .shop-brand span {
        display: none;
    }

    .shop-tabs {
        justify-self: center;
    }

    .shop-back {
        max-width: 112px;
        min-height: 34px;
        padding: 0.3rem 0.65rem;
        font-size: 0.78rem;
    }

    .shop-tab {
        min-width: 68px;
        min-height: 34px;
        font-size: 0.82rem;
    }

    .product-post {
        width: 100%;
        min-height: 100vh;
    }

    .media-frame img,
    .media-frame video {
        height: 62%;
    }

    .post-content {
        max-width: calc(100% - 92px);
        padding: 0 1rem 1.4rem;
    }

    .post-actions {
        right: 0.7rem;
        bottom: 1.35rem;
        gap: 0.7rem;
    }

    .action-button {
        width: 58px;
        min-height: 58px;
        border-radius: 16px;
    }

    .profile-avatar {
        width: 48px;
        height: 48px;
    }
}

/* Barra de alerta en el pie de página (fija abajo) */
.banner-desarrollo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffc107; /* Amarillo de advertencia */
    color: #212529; /* Texto oscuro para que contraste bien */
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Sombra hacia arriba */
    z-index: 9999; /* Se asegura de quedar por encima de todo el contenido */
}