:root {
    --bg: #0a0a0a;
    --card: #111118;
    --accent: #00ffff;
    --accent-2: #b2568e;
    --accent-3: #ffffff;
    --muted: #cccccc;
    --glass: rgba(0,255,255,0.05);
    --radius: 12px;
    --gap: 10px;
    --safe-bottom: 78px;
    --text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

html, body, #app {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: rgb(255, 255, 255);
    background: white;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-size: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: rgb(255, 255, 255);
}

.brand .logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.brand .logo.round {
    border-radius: 50%;
}

input, textarea, select {
    font-size: 16px;
    line-height: 1.4;
    color: white;
    margin-right: 4px;
}

input::placeholder {
    color: white;
    opacity: 0.4;
}

h3 {
    color: rgb(255, 255, 255);
    font-size: 15px;
    padding-bottom: 5px;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: black;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 12px;
    background: rgb(252, 120, 201);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.7px;
    color: var(--accent);
    text-transform: uppercase;
}

.icon-btn {
    background: transparent;
    border: 0px;
    color: rgb(255, 252, 252);
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
}

#menu-btn {
    background: transparent;
    border: 0px;
    color: rgb(255, 255, 255);
    font-size: 18px;
    padding: 8px;
    border-radius: 8px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgb(255, 255, 255), rgb(252, 120, 201));
    border: 1px solid rgb(255, 210, 210);
    padding: 6px 10px;
    border-radius: 10px;
}

.cart-count {
    background: rgb(255, 242, 242);
    padding: 2px 8px;
    border-radius: 999px;
    color: rgb(0, 0, 0);
    font-weight: 700;
}

.content {
    flex: 1 1 0%;
    overflow: auto;
    padding: 10px 12px calc(var(--safe-bottom) + 12px);
}

.search-row {
    margin-bottom: 8px;
}

#search {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgb(252, 120, 201);
    background: transparent;
    color: rgb(0 0 0);
}

#search::placeholder {
    color: rgb(161, 139, 139);
    opacity: 1;
}

.categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow: auto;
    padding-bottom: 6px;
}

.categories button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 10, 10, 0.05);
    color: var(--bg);
    font-weight: 600;
    transition: 0.25s;
    border: 1px solid rgb(252, 120, 201);
}

.categories button.active {
    background: linear-gradient(90deg, rgb(255, 255, 255), rgb(252, 120, 201));
    color: rgb(0, 0, 0);
}

.catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card {
    background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    padding: 10px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(255 255 255);
    gap: 8px;
    min-height: 180px;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: rgba(255, 79, 139, 0.08) 0px 0px 14px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(209, 255, 0, 0.18) 0px 0px 18px;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    display: block;
    margin: 0px auto;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.04);
}

.card .title {
    font-weight: 800;
    font-size: 14px;
    color: rgb(0, 0, 0);
}

.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price {
    font-weight: 900;
    color: rgb(135, 135, 135);
}

.add {
    background: linear-gradient(90deg, rgb(255, 255, 255), rgb(255, 89, 89));
    color: rgb(0, 0, 0);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgb(255, 0, 0);
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s;
}

.add:hover {
    opacity: 0.9;
}

.bottom-nav {
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px;
    z-index: 40;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
    background: transparent;
    border: 0px;
    color: var(--muted);
    font-weight: 700;
    transition: color 0.25s;
}

.nav-btn.active {
    color: var(--accent-2);
}

.modal {
    position: fixed;
    inset: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 60;
}

.modal.hidden {
    display: none;
}

.modal-panel {
    width: 90%;
    max-width: 300px;
    background: rgb(0, 0, 0);
    border-radius: 16px;
    padding: 14px 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 6px 24px;
    transform: translateY(0px);
    animation: 0.25s ease-out 0s 1 normal none running modalIn;
}

@keyframes modalIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

.modal-panel img {
    width: 130px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 6px auto 10px;
    box-shadow: rgba(255, 213, 79, 0.25) 0px 0px 10px;
}

.modal-panel h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: center;
    color: rgb(255, 255, 255);
}

.modal-panel p {
    font-size: 0.82rem;
    color: var(--muted, #ccc);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
}

.modal-panel h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 4px;
    color: var(--text, #fff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3px;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px 0px;
}

.option-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text, #fff);
    padding: 4px 0px;
}

.option-list input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-3);
    cursor: pointer;
    flex-shrink: 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0px;
}

.qty-controls button {
    min-width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 0px;
    background: rgb(48, 200, 160);
    color: rgb(0, 0, 0);
    transition: background 0.2s;
}

.qty-controls button:hover {
    background: rgb(35, 108, 89);
}

.qty-controls button:active {
    background: rgb(35, 108, 89);
}

.total {
    font-size: 0.9rem;
    text-align: right;
    margin: 6px 0px;
    color: var(--accent-3);
    font-weight: 600;
}

.btn-primary {
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 8px;
    display: block;
    width: 100%;
    border: none;
    background: var(--accent-3);
    color: rgb(17, 17, 17);
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: rgb(255 255 255 / 40%) 0px 0px 10px;
}

.modal-close {
    position: absolute;
    right: 8px;
    top: 6px;
    background: transparent;
    border: 0px;
    color: var(--muted, #aaa);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: rgb(255, 217, 0);
}

.cart-drawer {
    position: fixed;
    right: 12px;
    bottom: 80px;
    width: 92%;
    max-width: 420px;
    background: rgb(252, 120, 201);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgb(252, 120, 201);
    color: white;
    box-shadow: rgba(0, 0, 0, 0.6) 0px 12px 30px;
    z-index: 50;
}

.cart-drawer.hidden {
    display: none;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    max-height: 320px;
    overflow: auto;
    padding-right: 7px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    align-items: center;
}

.cart-item .info {
    flex: 1 1 0%;
}

.cart-item .muted {
    color: rgb(64, 255, 168);
    font-size: 12px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0px;
}

.row.total {
    font-weight: 900;
    color: rgb(255, 255, 255);
}

.cart-summary {
    margin-top: 10px;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgb(255, 255, 255), rgb(251, 240, 238));
    border: 0px;
    color: rgb(0, 0, 0);
    font-weight: 900;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgb(255, 255, 255);
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    color: var(--muted);
    margin: 10px 0px;
}

.btn-clear {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgb(242, 255, 255);
    color: var(--muted);
}

#checkout-form label {
    display: block;
    margin: 8px 0px;
}

#checkout-form input, #checkout-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgb(255, 237, 237);
    background: rgba(0, 0, 0, 0);
    color: rgb(255, 255, 255);
}

.radio-row {
    display: flex;
    gap: 12px;
}

.hidden {
    display: none;
}

.fade-in {
    animation: 0.28s ease 0s 1 normal both running fadeIn;
}

.fade-out {
    animation: 0.18s ease 0s 1 normal both running fadeOut;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (min-width: 900px) {
    .catalog {
        grid-template-columns: repeat(3, 1fr);
    }

    .bottom-nav {
        display: none;
    }

    body {
        font-size: 16px;
    }
}

.side-menu {
    position: fixed;
    inset: 0px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px) saturate(160%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.side-menu.show {
    opacity: 1;
    pointer-events: all;
}

.side-menu-panel {
    width: 78%;
    max-width: 340px;
    background: rgb(247, 157, 219);
    border-right: 2px solid rgba(38, 132, 199, 0.08);
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 36px 24px;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: rgba(255, 151, 0, 0.15) 12px 0px 30px;
    position: relative;
    overflow: hidden;
}

.side-menu.show .side-menu-panel {
    transform: translateX(0px);
}

.side-menu-panel::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: radial-gradient(circle at left top, rgba(0, 0, 0, 0.15), transparent 70%), radial-gradient(circle at right bottom, rgba(0, 0, 0, 0.12), transparent 70%);
    pointer-events: none;
}

.menu-logo {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 50px;
}

.menu-logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(rgba(255, 255, 255, 0.4) 0px 0px 10px);
    border-radius: 12px;
}

.social-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0px;
    margin: 0px;
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.4px;
    transition: transform 0.3s, color 0.3s;
}

.social-links li a:hover {
    transform: translateX(8px);
    color: var(--accent-3);
}

.social-links li a i {
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
    color: rgb(255, 255, 255) !important;
}

.social-links li a:hover i {
    transform: scale(1.2) rotate(-6deg);
    color: rgb(17, 17, 17);
    filter: drop-shadow(rgba(13, 2, 140, 0.7) 0px 0px 10px);
}

.close-menu {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s, transform 0.3s;
}

.close-menu:hover {
    color: var(--accent-3);
    transform: rotate(90deg) scale(1.15);
}

.app-footer {
    position: relative;
    bottom: 0px;
    left: 0px;
    width: 100%;
    background: linear-gradient(145deg, rgb(252, 120, 201), rgb(255, 255, 255));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 10px 8px 12px;
    color: rgb(255, 255, 255);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    z-index: 100;
    box-shadow: rgba(0, 0, 0, 0.6) 0px -2px 10px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-logo {
    width: 58px;
    height: auto;
    animation: 3.5s ease-in-out 0s infinite normal none running pulseGlow;
    filter: drop-shadow(rgba(0, 64, 255, 0.55) 0px 0px 8px);
    transition: transform 0.4s, filter 0.4s;
}

.footer-logo:hover {
    transform: scale(1.12) rotate(2deg);
    filter: drop-shadow(rgba(255, 215, 0, 0.9) 0px 0px 15px) drop-shadow(rgba(255, 223, 70, 0.6) 0px 0px 25px);
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(rgba(255, 255, 255, 0.4) 0px 0px 6px) drop-shadow(rgba(255, 255, 255, 0.25) 0px 0px 12px);
    }

    50% {
        filter: drop-shadow(rgba(255, 255, 255, 0.9) 0px 0px 18px) drop-shadow(rgba(255, 255, 255, 0.6) 0px 0px 30px);
    }

    100% {
        filter: drop-shadow(rgba(255, 255, 255, 0.4) 0px 0px 6px) drop-shadow(rgba(255, 255, 255, 0.25) 0px 0px 12px);
    }
}

.footer-social {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 5px 0px 2px;
    padding: 0px;
}

.footer-social a {
    color: rgb(245, 197, 66);
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.2);
}

.app-footer p {
    color: rgb(144, 111, 111);
    margin: 0px;
    font-weight: 500;
    font-family: Poppins, sans-serif;
    font-size: 0.8rem;
}

.radio-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
}

.radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0px 10px;
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

#payment-method {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: rgb(26 200 146);
    color: rgb(255, 255, 255);
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
}

#payment-method option {
    background: rgb(17, 17, 17);
    color: rgb(255, 255, 255);
}

.hidden {
    display: none !important;
}

.transfer-box {
    background: rgb(0 0 0 / 30%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    animation: 0.3s ease 0s 1 normal both running fadeIn;
}

.transfer-box p {
    margin: 5px 0px;
}

.copy-btn {
    background: linear-gradient(90deg, rgb(255 249 250), rgb(252 127 204));
    color: rgb(255, 255, 255);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--accent-3);
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: rgba(255, 251, 0, 0.4) 0px 0px 10px;
}

.copy-btn.copied {
    background: var(--accent-2);
    color: rgb(0, 0, 0);
}

.qr-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}

.qr-item {
    flex: 1 1 0%;
    text-align: center;
}

.qr-item img {
    width: 100%;
    max-width: 140px;
    border-radius: 8px;
}

.qr-item p {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.8;
}

.section {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.section-header {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.section-body {
    max-height: 250px;
    overflow-y: auto;
    transition: max-height 0.4s, padding 0.3s;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
}

.section.collapsed .section-body {
    max-height: 0px;
    padding: 0px 10px;
}

.checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgb(221, 221, 221);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    transition: background 0.2s, transform 0.15s;
    min-height: 36px;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: rgb(223, 120, 120);
    cursor: pointer;
}

.section-body::-webkit-scrollbar {
    width: 6px;
}

.section-body::-webkit-scrollbar-thumb {
    background-color: rgba(238, 118, 118, 0.6);
    border-radius: 3px;
}

.section-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.extra-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.extra-qty button {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgb(255, 255, 255);
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.extra-qty button:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.1);
}

.extra-qty .ex-val {
    min-width: 18px;
    text-align: center;
    color: rgb(55, 170, 212);
    font-weight: 600;
    font-size: 14px;
}

#price-breakdown {
    font-size: 13px;
    line-height: 1.4;
    color: rgb(204, 204, 204);
}

#price-breakdown div {
    margin-bottom: 3px;
}

#price-breakdown strong {
    font-size: 13px;
    color: rgb(255, 255, 255);
}

#price-breakdown span {
    font-weight: 500;
}

.checkout-step {
    display: none;
    animation: 0.3s ease 0s 1 normal forwards running fadeIn;
}

.checkout-step.active {
    display: block;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.client-summary {
    background: rgb(26 200 146);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 10px;
}

.card {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(252, 120, 201);
    box-shadow: rgba(255, 192, 203, 0.25) 0px 4px 14px;
    transition: 0.25s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(255, 182, 193, 0.35) 0px 6px 20px;
}

.card img {
    width: 80%;
    height: 120px;
    object-fit: contain;
    background: rgb(252, 120, 201);
    margin: 14px auto 8px;
    border-radius: 12px;
    padding: 10px;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.card .title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgb(0 0 0);
    text-align: center;
    margin-top: 4px;
}

.card .desc {
    font-size: 0.8rem;
    color: rgb(179, 177, 177);
    text-align: center;
    margin: 4px 8px;
    line-height: 1.3;
    min-height: 36px;
}

.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 12px;
    margin-top: auto;
}

.price {
    font-weight: 800;
    color: rgb(0, 0, 0);
    font-size: 0.9rem;
}

.add {
    background: linear-gradient(90deg, rgb(255, 253, 253), rgb(252, 120, 201));
    color: rgb(255, 255, 255);
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: rgba(255, 255, 255, 0.5) 0px 2px 6px;
    border: 1px solid #fc78c9;
    transition: 0.25s;
}

.add:hover {
    transform: scale(1.05);
    box-shadow: rgba(255, 182, 193, 0.6) 0px 4px 10px;
}

body {
    background: rgb(255, 245, 248);
}

.content {
    background: rgb(255, 255, 255);
    padding: 14px;
}

@media (min-width: 768px) {
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .card img {
        height: 140px;
    }
}

.product-overlay {
    position: fixed;
    inset: 0px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 9999;
    animation: 0.25s ease 0s 1 normal none running fadeIn;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.product-sheet {
    width: 100%;
    max-width: 480px;
    background: rgb(255, 255, 255);
    border-radius: 24px 24px 0px 0px;
    padding-bottom: 2rem;
    overflow-y: auto;
    animation: 0.35s cubic-bezier(0.25, 1, 0.5, 1) 0s 1 normal none running slideUp;
    color: white;
    max-height: 90vh;
    box-shadow: rgba(0, 0, 0, 0.15) 0px -8px 30px;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0px);
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-top: 1px solid var(--accent-3);
}

.modal-header .close {
    font-size: 34px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-header .close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 0px 24px 24px;
}

.image-wrap {
    text-align: center;
    background: rgb(252, 120, 201);
    border-radius: 16px;
    margin-bottom: 18px;
    padding: 12px 0px;
}

.image-wrap img {
    width: 60%;
    max-width: 180px;
    border-radius: 14px;
}

.info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 6px;
}

.info p {
    text-align: center;
    font-size: 0.95rem;
    color: rgb(0, 0, 0);
    margin-bottom: 14px;
}

.extras-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.extras-list label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-3);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgb(0, 0, 0);
    cursor: pointer;
    transition: 0.2s;
    color: rgb(17, 17, 17);
}

.extras-list label:hover {
    background: var(--accent-3);
}

.extras-list input {
    accent-color: rgb(0, 0, 0);
    transform: scale(1.2);
}

.extras-list small {
    color: rgb(255, 255, 255);
    font-weight: 600;
    padding-left: 5px;
}

.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0px;
}

.quantity button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(255, 209, 225);
    font-size: 22px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 6px;
}

.quantity span {
    font-size: 18px;
    font-weight: 600;
    color: rgb(0 0 0);
    min-width: 24px;
    text-align: center;
}

.add-btn {
    width: 100%;
    padding: 16px;
    background: rgb(252, 120, 201);
    color: rgb(255, 255, 255);
    font-weight: 700;
    border-radius: 14px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.25s;
    border: 1px solid var(--accent-3);
}

.add-btn:hover {
    background: rgb(145 72 117);
}

.add-btn .price {
    font-weight: 800;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0px;
}

.cart-item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item .info {
    flex: 1 1 0%;
}

.cart-item .price {
    min-width: 72px;
    text-align: right;
}

.checkout-modal {
    position: fixed;
    inset: 0px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.checkout-modal.show {
    opacity: 1;
    pointer-events: all;
}

.checkout-panel {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    background: rgb(252 120 201);
    /* border-radius: 20px 20px 0px 0px; */
    padding: 20px 16px;
    box-shadow: rgb(255 255 255 / 50%) 0px -4px 20px;
    scroll-behavior: smooth;
    animation: 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0s 1 normal none running slideUp;
    color: rgb(255, 255, 255);
    overflow-y: auto;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.checkout-panel form {
    width: 100%;
}

.checkout-panel .btn-primary {
    background: linear-gradient(90deg, var(--bg), rgb(252 120 201));
    color: rgb(255, 231, 231);
    font-weight: 800;
    border: 1px solid var(--accent-3);
}

.checkout-panel .btn-secondary {
    border: 1px solid var(--accent-3);
    color: rgb(255, 255, 255);
    background: transparent;
}

.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.extra-item .extra-name {
    flex: 1 1 0%;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
}

.extra-controls button {
    background-color: rgb(17, 17, 17);
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-weight: bold;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.extra-controls button:hover {
    background-color: rgb(172, 172, 172);
}

.extra-controls .extra-qty {
    display: inline-block;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.radio-row {
    display: flex;
    gap: 1rem;
}

.radio-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgb(255 255 255 / 40%);
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: rgb(26 200 146);
    transition: 0.2s;
    font-weight: 500;
}

.radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-btn input[type="radio"]:checked + span {
    background-color: rgb(255, 255, 255);
    border-radius: 0.5rem;
    color: rgb(0, 0, 0);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.radio-btn:hover {
    border-color: rgb(255 255 255);
}


#checkout-modal.checkout-overlay{
  background: #fc78c9;
}

.swal-confirm-white-text {
    color: white !important;
}

.swal-cancel-white-text {
    color: white !important;
}

/*CSS del Toast*/

.cart-hint-toast {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.cart-hint-toast.show {
  opacity: 1;
  transform: translateY(0);
}




/* Estilo de la Burbuja */
.cart-bubble {
  position: fixed;
  bottom: 620px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #fc78c9; /* Color llamativo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.cart-bubble:hover {
  transform: scale(1.1);
}

.cart-bubble.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#open-cart-floating {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Contador en la burbuja */
.bubble-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #2f3542;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* Premium checkout + availability loader */
.availability-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(252, 120, 201, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(150%);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.availability-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  width: min(86vw, 320px);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 26px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(252, 120, 201, 0.22);
  box-shadow: 0 24px 60px rgba(252, 120, 201, 0.24);
  color: #111;
}

.loader-card p {
  color: #111;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.loader-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(252, 120, 201, 0.22);
  border-top-color: #fc78c9;
  border-right-color: #1ac892;
  animation: loaderSpin 0.85s linear infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

#checkout-modal.checkout-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 10px max(16px, env(safe-area-inset-bottom));
  background: rgba(12, 12, 16, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  z-index: 9998;
}

.checkout-panel {
  width: min(100%, 470px);
  max-height: min(86vh, 760px);
  padding: 18px;
  border-radius: 28px 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 251, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(26, 25, 30, 0.24), 0 8px 24px rgba(252, 120, 201, 0.22);
  color: #111;
  overflow-y: auto;
  scrollbar-width: thin;
}

.checkout-panel .close-btn {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(252, 120, 201, 0.12);
  color: #111;
  border: 1px solid rgba(252, 120, 201, 0.18);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.checkout-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  color: #111;
}

.checkout-section-title span {
  color: #111;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.checkout-section-title small {
  color: #666;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

#checkout-form label.checkout-field {
  position: relative;
  display: block;
  margin: 12px 0;
  padding: 13px 14px 12px;
  border-radius: 18px;
  color: #3a3036;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(252, 120, 201, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(30, 30, 40, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#checkout-form label.checkout-field:focus-within {
  transform: translateY(-1px);
  border-color: rgba(252, 120, 201, 0.58);
  box-shadow: 0 0 0 4px rgba(252, 120, 201, 0.14), 0 16px 34px rgba(30, 30, 40, 0.08);
}

#checkout-form .checkout-field input,
#checkout-form .checkout-field select,
#checkout-form .checkout-field textarea {
  width: 100%;
  min-height: 46px;
  margin: 6px 0 0;
  padding: 10px 46px 10px 2px;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

#checkout-form .checkout-field input::placeholder {
  color: #9a8e96;
  opacity: 1;
}

#address-label input::placeholder {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

#payment-method {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #fff2fa, #ffddec);
  color: #111;
  border: 4px solid #ffd6eb;
  border-radius: 13px;
  padding-left: 12px;
  padding-right: 82px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 22px rgba(252, 120, 201, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.select-field {
  cursor: pointer;
}

.select-field::after {
  content: "";
  position: absolute;
  right: 52px;
  bottom: 29px;
  width: 10px;
  height: 10px;
  border-right: 3px solid #e91e63;
  border-bottom: 3px solid #e91e63;
  transform: rotate(45deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.2));
}

.select-field:focus-within #payment-method {
  border-color: rgba(233, 30, 99, 0.62);
  box-shadow: 0 0 0 4px rgba(252, 120, 201, 0.13), 0 14px 30px rgba(252, 120, 201, 0.2);
}

.select-field:active #payment-method {
  transform: scale(0.99);
}

#payment-method option {
  background: #ffffff;
  color: #111;
}

.field-status {
  position: absolute;
  right: 14px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.checkout-field.is-valid .field-status,
.checkout-field.is-invalid .field-status {
  opacity: 1;
  transform: scale(1);
}

.checkout-field.is-valid .field-status {
  border-radius: 50%;
  background: #1ac892;
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 200, 146, 0.28);
}

.checkout-field.is-valid .field-status::before {
  content: "✓";
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.checkout-field.is-invalid .field-status {
  width: 26px;
  height: 23px;
  color: #111;
  background: #ffd43b;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 8px 12px rgba(255, 212, 59, 0.32));
}

.checkout-field.is-invalid .field-status::before {
  content: "!";
  display: block;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}

.client-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1ac892, #2fdda8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(26, 200, 146, 0.22);
}

.client-summary strong,
.client-summary span {
  color: #fff;
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.radio-btn {
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(252, 120, 201, 0.18);
  color: #111;
  box-shadow: 0 10px 24px rgba(30, 30, 40, 0.06);
}

.radio-btn span {
  width: 100%;
  text-align: center;
  border-radius: 13px;
  padding: 10px;
  color: #111;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.radio-btn input[type="radio"]:checked + span {
  background: linear-gradient(135deg, #fc78c9, #f35ebb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(252, 120, 201, 0.3);
}

.transfer-box,
.checkout-row,
.checkout-total {
  border-radius: 16px;
  color: #111;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(252, 120, 201, 0.14);
  box-shadow: 0 10px 24px rgba(30, 30, 40, 0.05);
}

.transfer-box {
  padding: 12px 14px;
}

.transfer-box p,
.transfer-box strong,
.transfer-box span {
  color: #111;
}

.checkout-row,
.checkout-total {
  padding: 13px 14px;
}

.checkout-total {
  margin-top: 10px;
  border-top: 0;
  background: #111;
  color: #fff;
}

.checkout-total span,
.checkout-total strong {
  color: #fff;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.checkout-actions .btn-primary,
.checkout-actions .btn-secondary {
  min-height: 48px;
  margin: 0;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.checkout-actions .btn-primary {
  background: linear-gradient(135deg, #fc78c9, #f35ebb);
  color: #fff;
  border: 1px solid rgba(252, 120, 201, 0.3);
  box-shadow: 0 14px 30px rgba(252, 120, 201, 0.32);
}

.checkout-actions .btn-primary:disabled {
  opacity: 0.72;
}

.product-sheet .add-btn:disabled,
.product-sheet .add-btn.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.checkout-actions .btn-secondary {
  background: rgba(17, 17, 17, 0.05);
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.checkout-actions .btn-primary:active,
.checkout-actions .btn-secondary:active {
  transform: scale(0.98);
}

@media (min-width: 760px) {
  #checkout-modal.checkout-overlay {
    align-items: center;
    padding: 24px;
  }

  .checkout-panel {
    border-radius: 30px;
  }
}

@media (max-width: 420px) {
  .checkout-panel {
    padding: 16px 13px;
    border-radius: 24px 24px 18px 18px;
  }

  #address-label input::placeholder {
    font-size: 11px;
  }

  .checkout-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .checkout-section-title small {
    text-align: left;
  }
}

/* Scrollbars premium */
html {
  scrollbar-width: thin;
  scrollbar-color: #fc78c9 #fff1f8;
}

body {
  scrollbar-width: thin;
  scrollbar-color: #fc78c9 #fff1f8;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: #fff1f8;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid #fff1f8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9ada, #fc78c9 48%, #e91e9a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 12px rgba(252, 120, 201, 0.18);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffafe1, #fc78c9 45%, #d9188d);
}

.checkout-panel {
  scrollbar-width: thin;
  scrollbar-color: #fc78c9 rgba(255, 232, 245, 0.75);
}

.checkout-panel::-webkit-scrollbar {
  width: 7px;
}

.checkout-panel::-webkit-scrollbar-track {
  margin: 18px 0;
  background: rgba(255, 232, 245, 0.75);
  border-radius: 999px;
}

.checkout-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 232, 245, 0.95);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb4e4, #fc78c9);
  box-shadow: none;
}

/* Mobile fit guardrails */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#app,
.app-container,
.content,
.topbar,
.catalog,
.cart-drawer,
.checkout-panel,
.product-sheet,
.side-menu-panel {
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  min-width: 0;
}

.topbar > *,
.cart-item > *,
.checkout-actions > *,
.radio-row > *,
.extras-list label > *,
.client-summary > * {
  min-width: 0;
}

.content {
  overflow-x: hidden;
}

.catalog {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  width: 100%;
  gap: clamp(10px, 3vw, 16px);
  padding-left: clamp(8px, 3vw, 14px);
  padding-right: clamp(8px, 3vw, 14px);
}

.card {
  min-width: 0;
}

.card .title,
.card .desc,
.cart-item h4,
.cart-item small,
.checkout-field,
.checkout-field input,
.checkout-field select,
.transfer-box,
.client-summary,
.extras-list label {
  overflow-wrap: anywhere;
  word-break: normal;
}

.cart-drawer {
  right: max(8px, env(safe-area-inset-right));
  left: auto;
  width: min(420px, calc(100vw - 16px));
}

.cart-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.cart-item .info {
  min-width: 0;
}

#checkout-modal.checkout-overlay {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

.checkout-panel {
  width: min(470px, calc(100vw - 20px));
}

.product-overlay {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
}

.product-sheet {
  width: min(480px, 100vw);
}

.modal-body {
  padding-left: clamp(14px, 5vw, 24px);
  padding-right: clamp(14px, 5vw, 24px);
}

.extras-list label {
  gap: 8px;
}

.extras-list label span:not(.extra-controls) {
  min-width: 0;
  flex: 1 1 auto;
}

.extras-list small {
  flex: 0 0 auto;
}

.extra-controls {
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand .logo {
    max-width: min(48vw, 170px);
    height: auto;
    max-height: 56px;
  }

  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card img {
    width: min(82%, 132px);
    height: 112px;
  }

  .card .meta {
    gap: 8px;
  }

  .add {
    padding-left: 10px;
    padding-right: 10px;
  }

  .checkout-panel {
    width: calc(100vw - 16px);
    max-height: 88dvh;
  }

  .checkout-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .radio-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-btn {
    padding: 6px;
  }

  #payment-method {
    padding-right: 72px;
  }

  .select-field::after {
    right: 46px;
  }

  .field-status {
    right: 12px;
  }

  .product-sheet {
    max-height: 88dvh;
  }

  .extras-list label {
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .cart-drawer {
    top: 76px;
    width: calc(100vw - 16px);
  }
}

@media (max-width: 340px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .radio-row {
    grid-template-columns: 1fr;
  }

  .checkout-section-title span {
    font-size: 20px;
  }
}

/* Compact cart and resilient buttons */
.add,
.btn-primary,
.btn-secondary,
.btn-clear,
.add-btn,
.qty-controls button,
.remove-btn {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 7px clamp(7px, 2.3vw, 12px);
  font-size: clamp(0.68rem, 2.8vw, 0.8rem);
  text-align: center;
}

.card .meta {
  gap: 8px;
  min-width: 0;
}

.card .meta .price {
  flex: 0 1 auto;
  min-width: 0;
  font-size: clamp(0.78rem, 3vw, 0.9rem);
}

.card .meta .add {
  flex: 0 1 auto;
}

.cart-drawer {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(360px, calc(100vw - 28px));
  max-height: min(78dvh, 560px);
  transform: translate(-50%, -50%);
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(252, 120, 201, 0.96), rgba(245, 94, 187, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 26px 70px rgba(42, 20, 36, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  z-index: 900;
}

.cart-header {
  padding: 2px 2px 10px;
  gap: 8px;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-right: auto;
}

.cart-header .icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cart-items {
  max-height: min(42dvh, 280px);
  padding-right: 2px;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cart-item-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 3px;
}

.cart-item .info {
  min-width: 0;
}

.cart-item .info h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(0.84rem, 3.5vw, 0.95rem);
  line-height: 1.16;
}

.cart-item .info small {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.25;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qty-controls button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 9px;
  background: #1ac892;
  color: #07362c;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(26, 200, 146, 0.22);
}

.qty-controls span {
  color: #fff;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}

.cart-item .price {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 7px;
  min-width: 70px;
  color: #111;
  text-align: right;
}

.cart-item .price > span {
  color: #111;
  font-size: clamp(0.82rem, 3.5vw, 0.92rem);
  font-weight: 950;
}

.remove-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff7fb, #ffe1ef);
  box-shadow: 0 8px 18px rgba(72, 17, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.remove-btn span {
  position: relative;
  width: 12px;
  height: 13px;
  border: 2px solid #e91e63;
  border-top: 0;
  border-radius: 2px 2px 4px 4px;
}

.remove-btn span::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: #e91e63;
}

.remove-btn span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 5px;
  height: 3px;
  border: 2px solid #e91e63;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.remove-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(180deg, #ffffff, #ffd2e8);
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.18);
}

.cart-summary {
  margin-top: 12px;
}

.cart-summary .row.total {
  padding: 10px 2px;
  color: #fff;
  font-size: 15px;
}

.cart-summary .btn-primary {
  min-height: 42px;
  border-radius: 14px;
  color: #111;
  background: #fff;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
  font-size: clamp(0.78rem, 3.4vw, 0.9rem);
}

.cart-summary .btn-clear {
  min-height: 38px;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  font-size: clamp(0.74rem, 3.2vw, 0.86rem);
}

@media (max-width: 380px) {
  .cart-drawer {
    width: calc(100vw - 18px);
    padding: 12px;
  }

  .cart-item {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  .cart-item-img {
    width: 36px;
    height: 36px;
  }

  .qty-controls button {
    width: 25px;
    height: 25px;
  }

  .cart-item .price {
    min-width: 58px;
  }
}

@media (min-width: 481px) {
  .add,
  .btn-primary,
  .btn-secondary,
  .btn-clear,
  .add-btn,
  .cart-summary .btn-primary,
  .cart-summary .btn-clear {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .add {
    min-width: 88px;
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .card .meta {
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .catalog {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .card {
    min-height: 440px;
  }

  .card .meta {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(96px, auto);
    align-items: center;
    column-gap: 16px;
    padding: 12px 26px 28px;
  }

  .card .meta .price {
    justify-self: start;
    white-space: nowrap;
    font-size: 1rem;
  }

  .card .meta .add {
    justify-self: end;
    min-width: 96px;
    height: 38px;
    padding: 9px 18px;
    white-space: nowrap;
  }
}

.swal2-container,
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-center,
body > .swal2-container {
  z-index: 99999 !important;
}

/* Faster interaction feel */
.fade-in {
  animation-duration: 0.1s !important;
}

.fade-out {
  animation-duration: 0.06s !important;
}

.product-overlay,
.checkout-step,
.transfer-box {
  animation-duration: 0.1s !important;
}

.product-sheet,
.checkout-panel {
  animation-duration: 0.12s !important;
}

.side-menu,
.side-menu-panel,
.cart-bubble,
.card,
.card img,
.add,
.add-btn,
.btn-primary,
.btn-secondary,
.btn-clear,
.radio-btn span,
.checkout-field,
.remove-btn,
.qty-controls button {
  transition-duration: 0.12s !important;
}

.swal2-popup {
  animation-duration: 0.12s !important;
}


