:root {
    --bg: #f7faf9;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-solid: #ffffff;
    --ink: #12161d;
    --muted: #697287;
    --line: rgba(18, 22, 29, 0.1);
    --teal: #0d9488;
    --orange: #f97316;
    --teal-rgb: 13, 148, 136;
    --orange-rgb: 249, 115, 22;
    --teal-soft: rgba(var(--teal-rgb), 0.14);
    --shadow: 0 20px 38px rgba(18, 26, 44, 0.12);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
}

body,
a,
button,
input[type="button"],
input[type="submit"] {
    touch-action: manipulation;
}

body.theme-modern-v2 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(980px 540px at -10% -18%, rgba(var(--teal-rgb), 0.16), transparent 65%),
        radial-gradient(900px 420px at 110% -8%, rgba(var(--orange-rgb), 0.12), transparent 60%),
        linear-gradient(180deg, #f4fbf9 0%, var(--bg) 50%, #f6f7fc 100%);
    line-height: 1.42;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.v2-bg {
    position: fixed;
    width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.v2-bg-one {
    top: -70px;
    left: -70px;
    background: linear-gradient(140deg, #22c55e, var(--teal));
}

.v2-bg-two {
    right: -80px;
    top: 30%;
    background: linear-gradient(140deg, #f59e0b, var(--orange));
}

.v2-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 18px 14px;
    display: grid;
    gap: 12px;
}

.card-v2 {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.reveal-v2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-v2.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-v2 {
    padding: 16px;
}

.hero-v2 h1 {
    margin: 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.01em;
}

.hero-v2 p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-stats-v2 {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hero-stats-v2 article {
    border: 1px solid var(--line);
    background: var(--panel-solid);
    border-radius: 13px;
    padding: 9px 10px;
}

.hero-stats-v2 small {
    color: #6a7285;
    font-size: 11px;
}

.hero-stats-v2 strong {
    display: block;
    margin-top: 5px;
    font-size: 15px;
}

.tools-v2 {
    padding: 10px;
}

.availability-toggle-v2 {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.availability-toggle-v2 input {
    width: 16px;
    height: 16px;
}

.search-wrap-v2 {
    display: grid;
    gap: 6px;
}

.search-wrap-v2 span {
    color: #596276;
    font-size: 12px;
    font-weight: 700;
    padding-left: 4px;
}

.search-wrap-v2 input {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    border: 1px solid #d7e1ed;
    background: #fff;
    padding: 0 13px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

.search-wrap-v2 input:focus {
    border-color: rgba(var(--teal-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.14);
}

.cat-rail-v2 {
    position: sticky;
    top: 10px;
    z-index: 24;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.76);
}

.cat-rail-v2::-webkit-scrollbar {
    display: none;
}

.cat-chip-v2 {
    text-decoration: none;
    color: #222733;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #d9e4ec;
    background: #fff;
    padding: 9px 12px;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.cat-chip-v2 .name {
    font-size: 13px;
    font-weight: 700;
}

.cat-chip-v2 .count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #edf2f7;
    color: #4f5b70;
    font-size: 11px;
    padding: 0 7px;
}

.cat-chip-v2.is-active {
    border-color: rgba(var(--teal-rgb), 0.36);
    background: linear-gradient(180deg, #f8fffd, #ecfbf8);
    box-shadow: 0 8px 18px rgba(var(--teal-rgb), 0.2);
}

.menu-groups-v2 {
    display: grid;
    gap: 12px;
}

.group-v2 {
    padding: 12px;
    scroll-margin-top: 96px;
}

.group-v2.is-hidden-by-search {
    display: none;
}

.group-head-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.group-head-v2 h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.1;
    font-family: 'Newsreader', Georgia, serif;
}

.group-head-v2 span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.product-list-v2 {
    display: grid;
    gap: 10px;
}

.product-v2 {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid #dce6ef;
    border-radius: var(--radius-lg);
    background: var(--panel-solid);
    padding: 8px;
}

.product-v2.is-hidden {
    display: none;
}

.thumb-v2 {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #ecf5ff, #dff8f2);
    position: relative;
}

.thumb-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .25s ease;
}

.thumb-v2 img.is-loaded {
    opacity: 1;
}

.thumb-fallback-v2 {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #4e5b74;
}

.meta-v2 {
    min-width: 0;
    display: grid;
    align-content: space-between;
    gap: 8px;
}

.meta-v2 h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.18;
}

.meta-v2 p {
    margin: 0;
    color: #687288;
    font-size: 13px;
    line-height: 1.4;
}

.meta-v2 footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.meta-v2 strong {
    font-size: 17px;
    color: #0b1730;
}

.empty-v2 {
    margin: 0;
    color: #657085;
    font-size: 14px;
}

.empty-v2.is-hidden,
.empty-global-v2.is-hidden {
    display: none;
}

.empty-global-v2 {
    padding: 16px;
}

.empty-global-v2 h2 {
    margin: 0;
    font-size: 18px;
}

.empty-global-v2 p {
    margin: 8px 0 0;
    color: #667084;
    font-size: 14px;
}

.lightbox-v2 {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.lightbox-v2.is-open {
    display: block;
}

.lightbox-backdrop-v2 {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 15, 28, 0.76);
}

.lightbox-dialog-v2 {
    position: absolute;
    inset: auto 12px 14px;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #111827;
    box-shadow: 0 26px 42px rgba(0, 0, 0, 0.45);
}

.lightbox-dialog-v2 img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    background: #0a1020;
}

.lightbox-dialog-v2 figcaption {
    color: #f0f5ff;
    font-size: 13px;
    padding: 10px 42px 12px 12px;
}

.lightbox-close-v2 {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    background: rgba(17, 24, 39, 0.68);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

body.lightbox-open-v2 {
    overflow: hidden;
}

.public-actions-v2 {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.v2-mini-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #cddaea;
    background: linear-gradient(180deg, #ffffff, #f3f8fd);
    color: #1d2a3e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.v2-mini-link.is-active {
    border-color: rgba(var(--teal-rgb), 0.48);
    background: linear-gradient(180deg, #f4fffc, #dcf8f1);
    color: #0a6f67;
    box-shadow: 0 12px 22px rgba(var(--teal-rgb), 0.2);
}

.v2-mini-link:active {
    transform: translateY(1px);
}

.v2-mini-link-wide {
    grid-column: 1 / -1;
}

.v2-mini-count {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.alert-v2 {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}


.alert-v2.info {
    border-color: #d9e5ff;
    background: #f1f6ff;
    color: #1d4d8f;
}

.alert-v2.success {
    border-color: #bee7c8;
    background: #ecfbf0;
    color: #135f2f;
}

.alert-v2.soft {
    border-color: #d8e3f0;
    background: #f8fbff;
    color: #43516a;
}

.alert-v2.danger {
    border-color: #f5c2c2;
    background: #fff2f2;
    color: #9b1c1c;
}

.alert-v2 a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.product-footer-v2 {
    align-items: center;
}

.product-actions-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-add-v2 {
    display: inline-flex;
    margin: 0;
}

.btn-v2 {
    border: 1px solid transparent;
    border-radius: 10px;
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-v2.muted {
    background: #eef3f8;
    color: #334155;
    border-color: #d7e1ed;
}

.btn-v2.success {
    background: var(--teal);
    color: #fff;
}

.btn-v2.danger {
    background: #fff0f0;
    color: #9b1c1c;
    border-color: #f6cdcd;
}

.cart-v2 {
    padding: 12px;
}

.cart-form-v2 {
    display: grid;
    gap: 12px;
}

.cart-list-v2 {
    display: grid;
    gap: 10px;
}

.cart-item-v2 {
    border: 1px solid #d9e4ef;
    border-radius: 14px;
    background: #fff;
    padding: 11px;
    display: grid;
    gap: 9px;
}

.cart-item-v2.is-unavailable {
    border-color: #f2caca;
    background: #fff7f7;
}

.cart-item-head-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-head-v2 h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.cart-tag-v2 {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #f3b6b6;
    background: #fff0f0;
    color: #9b1c1c;
}

.cart-options-v2 {
    display: grid;
    gap: 6px;
}

.cart-option-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e3eaf3;
    border-radius: 10px;
    background: #f9fbff;
    padding: 6px 8px;
    font-size: 13px;
    color: #334155;
}

.cart-option-total-v2,
.cart-subline-v2 {
    font-size: 12px;
    color: #607087;
}

.cart-price-row-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #4a5668;
}

.cart-price-row-v2 strong {
    font-size: 15px;
    color: #0f172a;
}

.cart-control-row-v2 {
    display: grid;
    grid-template-columns: auto 86px auto;
    align-items: center;
    gap: 8px;
}

.cart-control-row-v2 label {
    font-size: 13px;
    font-weight: 700;
    color: #364152;
}

.cart-control-row-v2 input {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #d3ddea;
    background: #fff;
    padding: 0 8px;
    font-size: 14px;
    color: #1f2937;
}

.cart-edit-v2 {
    width: fit-content;
}

.cart-actions-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-summary-v2 {
    margin-top: 12px;
    border-top: 1px solid #dbe7f2;
    padding-top: 12px;
    display: grid;
    gap: 10px;
}

.cart-summary-v2 h3 {
    margin: 0;
    font-size: 19px;
    font-family: 'Newsreader', Georgia, serif;
}

.cart-checkout-v2 {
    min-height: 42px;
}

.product-detail-v2 {
    padding: 12px;
    display: grid;
    gap: 12px;
}

.product-meta-v2 {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-pill-v2 {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #dce7f5;
    background: #f4f8fe;
    color: #274265;
    font-size: 12px;
    font-weight: 700;
}

.product-pill-v2.is-price {
    border-color: #cde9d8;
    background: #ebfbf1;
    color: #15653c;
}

.product-image-btn-v2 {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #ebf4ff, #e8fbf4);
}

.product-image-btn-v2 img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.product-desc-v2 {
    margin: 0;
    color: #607087;
    font-size: 14px;
    line-height: 1.45;
}

.availability-card-v2 {
    border: 1px solid #d7e5f8;
    background: #f7fbff;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
}

.availability-card-v2 strong {
    font-size: 13px;
    color: #1f2937;
}

.availability-group-v2 {
    display: grid;
    gap: 4px;
}

.availability-group-title-v2 {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
}

.availability-card-v2 ul {
    margin: 0;
    padding-left: 16px;
}

.availability-card-v2 li {
    font-size: 12px;
    color: #334155;
    margin: 1px 0;
}

.product-form-v2 {
    display: grid;
    gap: 10px;
}

.option-group-v2 {
    display: grid;
    gap: 8px;
}

.option-label-v2 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2d43;
}

.option-select-v2,
.option-qty-v2 {
    width: 100%;
    min-height: 42px;
    border-radius: 11px;
    border: 1px solid #d3ddea;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

.option-select-v2:focus,
.option-qty-v2:focus {
    border-color: rgba(var(--teal-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.14);
}

.option-checklist-v2 {
    display: grid;
    gap: 8px;
}

.option-check-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #dbe6f2;
    border-radius: 11px;
    background: #f9fbff;
    padding: 9px 10px;
    color: #334155;
    font-size: 14px;
}

.option-check-item-v2 input {
    margin-top: 2px;
}

.option-check-item-v2 strong {
    margin-left: 6px;
    color: var(--teal);
    font-size: 13px;
}

.product-actions-wide-v2 {
    width: 100%;
}

.checkout-v2,
.checkout-summary-v2,
.table-v2 {
    padding: 12px;
}

.checkout-v2 h2,
.checkout-summary-v2 h2,
.table-v2 h2 {
    margin: 0;
    font-size: 21px;
    font-family: 'Newsreader', Georgia, serif;
}

.checkout-form-v2 {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.checkout-label-v2 {
    display: grid;
    gap: 7px;
}

.checkout-label-v2 > span {
    font-size: 13px;
    font-weight: 700;
    color: #2b394e;
}

.checkout-table-v2 {
    min-height: 42px;
    border-radius: 11px;
    border: 1px solid #d3ddea;
    background: #f8fbff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    color: #1f2937;
}

.checkout-note-v2 {
    width: 100%;
    min-height: 92px;
    border-radius: 11px;
    border: 1px solid #d3ddea;
    background: #fff;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2937;
    resize: vertical;
    outline: none;
}

.checkout-note-v2:focus {
    border-color: rgba(var(--teal-rgb), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.14);
}

.checkout-actions-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-submit-v2 {
    min-height: 42px;
    padding: 0 16px;
}

.checkout-lines-v2 {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.checkout-line-v2 {
    border: 1px solid #dce7f2;
    border-radius: 13px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.checkout-line-head-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.checkout-line-head-v2 h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.22;
}

.checkout-line-head-v2 strong {
    font-size: 15px;
    color: #0f2f5f;
}

.checkout-line-meta-v2 {
    font-size: 12px;
    color: #607087;
}

.checkout-line-options-v2 {
    display: grid;
    gap: 5px;
}

.checkout-line-options-v2 div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2eaf4;
    border-radius: 10px;
    background: #f8fbff;
    padding: 6px 8px;
    font-size: 12px;
    color: #314155;
}

.checkout-line-options-v2 strong {
    color: var(--teal);
}

.checkout-total-v2 {
    margin-top: 12px;
    border-top: 1px solid #dbe7f2;
    padding-top: 10px;
    display: grid;
    gap: 8px;
}

.checkout-total-v2 div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-total-v2 span {
    color: #607087;
    font-size: 13px;
}

.checkout-total-v2 strong {
    font-size: 18px;
    color: #0f172a;
    font-family: 'Newsreader', Georgia, serif;
}

.table-v2 {
    display: grid;
    gap: 12px;
}

.table-title-v2 {
    display: grid;
    gap: 4px;
}

.table-title-v2 h2 {
    margin: 0;
}

.table-title-v2 small {
    color: #607087;
    font-size: 12px;
}

.table-metrics-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.table-metrics-v2 article {
    border: 1px solid #dce7f2;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 5px;
}

.table-metrics-v2 span {
    color: #64748b;
    font-size: 12px;
}

.table-metrics-v2 strong {
    font-size: 19px;
    color: #0f172a;
}

.table-orders-v2 {
    display: grid;
    gap: 8px;
}

.table-order-v2 {
    border: 1px solid #dce7f2;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.table-order-top-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.table-order-no-wrap-v2 {
    display: grid;
    gap: 6px;
}

.table-order-no-v2 {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #dbe7f5;
    background: #f7fbff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
}

.table-order-monitor-no-v2 {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cde9d8;
    background: #ecfbf0;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

.table-order-status-v2 {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.table-order-status-v2.status-pending {
    border-color: #ffe7a3;
    background: #fff8d9;
    color: #8a6200;
}

.table-order-status-v2.status-preparing {
    border-color: #cde0ff;
    background: #eef5ff;
    color: #1c4ba3;
}

.table-order-status-v2.status-ready {
    border-color: #d8c8ff;
    background: #f4edff;
    color: #5b21b6;
}

.table-order-status-v2.status-completed,
.table-order-status-v2.status-paid {
    border-color: #bde7c6;
    background: #ecfbf0;
    color: #12622f;
}

.table-order-status-v2.status-cancelled {
    border-color: #f3b8b8;
    background: #fff1f1;
    color: #9b1c1c;
}

.table-order-meta-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.table-order-meta-v2 time {
    font-size: 12px;
    color: #607087;
}

.table-order-meta-v2 strong {
    font-size: 18px;
    color: #0f2f5f;
}

.table-order-actions-v2 {
    display: flex;
    justify-content: flex-end;
}

.table-order-detail-v2 {
    border: 1px solid #dde7f4;
    border-radius: 11px;
    background: #f8fbff;
    padding: 9px;
    display: grid;
    gap: 7px;
}

.table-order-detail-v2.is-hidden {
    display: none;
}

.table-order-detail-loading-v2,
.table-order-detail-empty-v2 {
    font-size: 12px;
    color: #607087;
}

.table-order-detail-list-v2 {
    display: grid;
    gap: 8px;
}

.table-order-detail-item-v2 {
    border: 1px solid #dbe6f4;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.table-order-detail-item-head-v2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #1f2937;
}

.table-order-detail-item-meta-v2 {
    font-size: 12px;
    color: #64748b;
}

.table-order-detail-options-v2 {
    display: grid;
    gap: 4px;
}

.table-order-detail-options-v2 div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid #e3ebf7;
    border-radius: 8px;
    background: #f9fcff;
    padding: 5px 7px;
    font-size: 12px;
}

.table-order-detail-options-v2 strong {
    color: #166534;
}

.table-empty-v2 {
    border: 1px dashed #d5e2f6;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    padding: 16px 14px;
    text-align: center;
    font-size: 14px;
}

.table-note-v2 {
    margin: 0;
    color: #607087;
    font-size: 12px;
}

.v2-live-toast-wrap {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 260;
    width: min(100vw - 20px, 480px);
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.v2-live-toast {
    pointer-events: auto;
    border: 1px solid #cde9d8;
    background: #ecfbf0;
    color: #135f2f;
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.18);
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.v2-live-toast.is-error {
    border-color: #f5c2c2;
    background: #fff1f1;
    color: #8f1d1d;
}

.v2-live-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.v2-live-toast-message {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
}

.v2-live-toast-message a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    margin-left: 8px;
}

.v2-live-toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}


.v2-mini-link.is-cart-attention {
    border-color: rgba(var(--teal-rgb), 0.34);
    background: #ecfff4;
    color: #14532d;
    animation: v2CartPulse .9s ease 2;
}

@keyframes v2CartPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.07); }
    70% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.v2-back-to-top {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #cce0d5;
    background: rgba(255, 255, 255, 0.94);
    color: #14532d;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 260;
}

.v2-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.v2-footer-promo {
    width: min(100%, 560px);
    margin: 0 auto 14px;
    padding: 2px 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
}

.v2-footer-promo a {
    color: #3f4e64;
    font-weight: 700;
    text-decoration: none;
}

.v2-footer-promo a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .v2-shell {
        width: min(100%, 1120px);
        padding: 24px 16px;
    }

    .v2-footer-promo {
        width: min(100%, 1120px);
    }

    .public-actions-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .v2-mini-link-wide {
        grid-column: auto;
    }

    .hero-v2 {
        padding: 20px;
    }

    .menu-groups-v2 {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .group-v2 {
        padding: 14px;
    }

    .product-v2 {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .checkout-v2,
    .checkout-summary-v2,
    .table-v2 {
        padding: 14px;
    }

    .lightbox-dialog-v2 {
        inset: 5% max(16px, calc((100vw - 920px) / 2));
        border-radius: 22px;
    }

    .lightbox-dialog-v2 img {
        max-height: calc(100vh - 130px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-v2,
    .cat-chip-v2 {
        transition: none;
    }
}

/* Quick cart toast visibility tweaks */
.v2-live-toast-wrap {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(100vw - 14px, 580px);
}

.v2-live-toast {
    border-radius: 19px;
    padding: 17px 19px;
    gap: 12px;
    transform: translateY(10px);
}

.v2-live-toast-message {
    font-size: 16px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .v2-live-toast-wrap {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 10px);
    }

    .v2-live-toast {
        padding: 16px 17px;
    }
}
