@import url('/assets/css/dashboard-mod/colors.css');
@import url('/assets/css/dashboard-mod/linesAndCorners.css');

:root {
    --viewer-max-width: 800px;
    --viewer-gutter: 20px;
    --viewer-radius: 12px;
    --viewer-card-gap: 16px;
    --viewer-content-width: 1100px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-text-muted);

    --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Defaults */
    --font-heading: var(--font-inter);
    --font-body: var(--font-inter);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--color-bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
}

body.preview-live-transition .header,
body.preview-live-transition .hero,
body.preview-live-transition .promo-showcase,
body.preview-live-transition .category-card,
body.preview-live-transition .item-card,
body.preview-live-transition .promo-card--rounded,
body.preview-live-transition .promo-spot,
body.preview-live-transition .promo-ticker-label,
body.preview-live-transition .promo-ticker-item,
body.preview-live-transition .footer,
body.preview-live-transition .footer-section,
body.preview-live-transition .footer-mini,
body.preview-live-transition .lang-toggle,
body.preview-live-transition .header-icon-btn,
body.preview-live-transition .wifi-btn,
body.preview-live-transition .header-logo,
body.preview-live-transition .shared-brand-title,
body.preview-live-transition .shared-brand-subtitle {
    transition-property: background-color, border-color, color, box-shadow, opacity, transform;
    transition-duration: 260ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body.preview-live-transition .hero::before,
body.preview-live-transition .hero::after,
body.preview-live-transition .category-placeholder::before,
body.preview-live-transition .category-placeholder::after,
body.preview-live-transition .item-placeholder::before,
body.preview-live-transition .item-placeholder::after {
    transition-property: opacity, background, transform;
    transition-duration: 260ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--viewer-max-width);
    margin: 0 auto;
    background: var(--color-bg);
}

/* Header */
.header {
    background: var(--color-surface);
    padding: 8px var(--viewer-gutter);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: visible;
}

.header-content {
    display: block;
}

.header-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 36px;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-left-rail {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.header-logo {
    width: var(--lc-logo-size, 34px);
    height: var(--lc-logo-size, 34px);
    object-fit: cover;
    border-radius: var(--lc-logo-radius, 8px);
    border: var(--lc-logo-frame, 1px solid color-mix(in srgb, var(--color-border) 70%, transparent));
    background: var(--color-surface-variant);
    flex: 0 0 auto;
    display: none;
    cursor: pointer;
}

.header-brand-host {
    min-width: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-width 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

body.brand-in-header .header-brand-host {
    max-width: min(68vw, 420px);
    opacity: 1;
    transform: translateY(0);
    cursor: pointer;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-icon-btn,
.lang-toggle,
.wifi-btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lc-radius-full, 50%);
    border: 1px solid var(--color-border);
    background: var(--color-surface-variant);
    color: var(--color-text);
    font-size: 0.82rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-icon-btn i,
.lang-toggle i {
    font-size: 0.86rem;
    line-height: 1;
    color: inherit;
}

.header-icon-btn:hover,
.lang-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.lang-toggle {
    min-width: 34px;
    padding: 0 6px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 0.65rem;
}

.shared-brand {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.shared-brand-title,
.shared-brand-subtitle {
    margin: 0;
}

.header-brand-host .shared-brand {
    gap: 2px;
}

.header-brand-host .shared-brand-title {
    font-size: 0.84rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-brand-host .shared-brand-subtitle {
    font-size: 0.58rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wifi-reveal {
    position: absolute;
    right: var(--viewer-gutter);
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - (var(--viewer-gutter) * 2)));
    border: 1px solid var(--color-border);
    border-radius: var(--lc-radius-md, 12px);
    background: color-mix(in srgb, var(--color-surface) 88%, var(--color-surface-variant));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 130;
}

.wifi-reveal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}

.wifi-reveal-lines {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.wifi-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.wifi-line i {
    width: 12px;
    color: var(--color-primary);
}

.wifi-line span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wifi-copy-btn {
    border: 1px solid var(--color-border);
    border-radius: var(--lc-radius-sm, 8px);
    background: var(--color-surface-variant);
    padding: 6px 10px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.wifi-copy-btn.copied {
    color: #fff;
    background: var(--color-success);
    border-color: var(--color-success);
}

.wifi-copy-btn:disabled {
    opacity: 0.56;
    cursor: default;
}

.wififunctionalbuttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    width: 100%;
}

.wififunctionalbuttons>* {
    max-width: 40%;
}

.owner-unpublished-pill {
    position: sticky;
    top: 52px;
    z-index: 95;
    width: fit-content;
    margin: 8px var(--viewer-gutter) 0 auto;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--color-warning) 58%, var(--color-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-warning) 18%, var(--color-surface));
    color: color-mix(in srgb, var(--color-warning) 44%, var(--text-primary));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: ownerPillFloat 3.8s ease-in-out infinite;
}

.owner-unpublished-pill i {
    font-size: 0.72rem;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--color-surface);
    border-radius: var(--lc-radius-lg, 20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lc-radius-full, 50%);
    background: var(--color-surface-variant);
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.drink-profile-layer {
    position: fixed;
    inset: 0;
    z-index: 1002;
    --drink-profile-fade-duration: 2s;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}

.drink-profile-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 11, 0.08), rgba(6, 8, 11, 0.22));
    opacity: 0;
    transition: opacity 0.16s ease;
}

.drink-profile-layer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.drink-profile-layer.active::before {
    opacity: 1;
}

.drink-profile-layer.closing {
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
    transition-duration: var(--drink-profile-fade-duration), 0s;
    transition-delay: 0s, 0s;
}

.drink-profile-layer.closing::before {
    opacity: 0;
    transition-duration: var(--drink-profile-fade-duration);
}

.drink-profile-card-wrap {
    position: relative;
    width: min(94vw, 440px);
    pointer-events: none;
}

.drink-profile-layer.active .drink-profile-card-wrap,
.drink-profile-layer.closing .drink-profile-card-wrap {
    pointer-events: auto;
}

.drink-profile-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: color-mix(in srgb, var(--color-surface) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
    border-radius: var(--lc-radius-lg, 22px);
    padding: 14px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px) saturate(1.08);
    transform: translateY(8px) scale(0.965);
    opacity: 0;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

.drink-profile-card> :not(.drink-profile-ambient) {
    position: relative;
    z-index: 1;
}

.drink-profile-layer.active .drink-profile-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.drink-profile-layer.closing .drink-profile-card {
    transform: translateY(6px) scale(0.98);
    opacity: 0;
    transition-duration: var(--drink-profile-fade-duration), var(--drink-profile-fade-duration);
    transition-timing-function: ease, ease;
}

.drink-profile-header {
    display: grid;
    gap: 12px;
}

.drink-profile-header--compact {
    gap: 9px;
}

.drink-profile-media {
    border-radius: var(--lc-radius-md, 14px);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 68%, transparent);
    background: color-mix(in srgb, var(--color-surface-variant) 82%, var(--color-surface));
}

.drink-profile-media--photo {
    width: 100%;
    height: clamp(168px, 38vh, 248px);
}

.drink-profile-media--category .drink-profile-image {
    filter: saturate(0.92) contrast(1.03);
}

.drink-profile-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.drink-profile-card--ambient {
    background:
        linear-gradient(156deg,
            color-mix(in srgb, var(--color-surface) 95%, transparent),
            color-mix(in srgb, var(--color-surface-variant) 90%, var(--color-surface)));
}

.drink-profile-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.drink-profile-ambient.drink-profile-ambient--subtle::before {
    inset: -20%;
    opacity: 0.52;
}

.drink-profile-ambient.drink-profile-ambient--subtle::after {
    opacity: 0.24;
}

.drink-profile-ambient::before {
    content: '';
    position: absolute;
    inset: -26%;
    background:
        radial-gradient(56% 44% at 14% 18%, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent 66%),
        radial-gradient(52% 42% at 84% 86%, color-mix(in srgb, var(--color-secondary) 26%, transparent), transparent 68%),
        linear-gradient(134deg,
            color-mix(in srgb, var(--color-surface-variant) 92%, var(--color-surface)),
            color-mix(in srgb, var(--color-surface) 94%, var(--color-bg)));
    animation: drinkProfileAmbientShift 14s ease-in-out infinite;
}

.drink-profile-ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(18deg, transparent 0%, color-mix(in srgb, var(--color-primary) 16%, transparent) 58%, transparent 100%),
        repeating-linear-gradient(112deg,
            color-mix(in srgb, var(--color-text) 6%, transparent) 0 2px,
            transparent 2px 10px);
    opacity: 0.42;
    animation: drinkProfileAmbientSheen 10s ease-in-out infinite;
}

.drink-profile-ambient-symbol {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--color-text) 36%, var(--color-primary));
    opacity: 0.58;
}

.drink-profile-ambient-initial {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    color: color-mix(in srgb, var(--color-text) 28%, var(--color-primary));
    opacity: 0.3;
}

.drink-profile-headline {
    display: grid;
    gap: 6px;
}

.drink-profile-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.drink-profile-name {
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    line-height: 1.2;
    color: var(--text-primary);
}

.drink-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.drink-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid color-mix(in srgb, var(--color-border) 74%, transparent);
    background: color-mix(in srgb, var(--color-surface-variant) 84%, var(--color-surface));
    color: var(--text-secondary);
}

.drink-profile-tag--promo {
    border-color: color-mix(in srgb, var(--color-warning) 58%, var(--color-border));
    background: color-mix(in srgb, var(--color-warning) 16%, var(--color-surface));
    color: color-mix(in srgb, var(--color-warning) 68%, var(--text-primary));
}

.drink-profile-tag--price {
    color: var(--text-primary);
}

.drink-profile-meta {
    margin-top: 10px;
    display: grid;
    gap: 5px;
}

.drink-profile-row {
    display: flex;
    gap: 9px;
    justify-content: space-between;
    align-items: baseline;
}

.drink-profile-key {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.drink-profile-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    line-height: 1.35;
}

.drink-profile-description {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Hero */
.hero {
    --hero-overlay-top: 0.10;
    --hero-overlay-mid: 0.24;
    --hero-overlay-bottom: 0.50;
    --hero-title-color: var(--text-primary);
    --hero-subtitle-color: var(--text-secondary);
    --hero-title-shadow: none;
    --hero-subtitle-shadow: none;
    --hero-content-surface: transparent;
    --hero-content-border: transparent;
    --hero-content-blur: 0px;
    --hero-content-radius: 16px;
    --hero-content-padding-y: clamp(10px, 2.2vw, 16px);
    --hero-content-padding-x: clamp(12px, 3vw, 20px);
    position: relative;
    padding: 62px var(--viewer-gutter) 30px;
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    margin-bottom: 24px;
    border-radius: 0 0 var(--viewer-radius) var(--viewer-radius);
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
    background-origin: border-box;
    background-clip: border-box;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, var(--hero-overlay-top)) 0%,
            rgba(0, 0, 0, var(--hero-overlay-mid)) 46%,
            rgba(0, 0, 0, var(--hero-overlay-bottom)) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.hero.no-image::after {
    background: radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.2), transparent 36%);
    opacity: 1;
}

.hero.no-image {
    background: linear-gradient(135deg, var(--color-surface), var(--color-surface-variant));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 132px;
    display: flex;
    align-items: flex-end;
}

.hero-content .shared-brand {
    width: min(96%, 640px);
    max-width: 100%;
    display: grid;
    gap: 6px;
    padding: var(--hero-content-padding-y) var(--hero-content-padding-x);
    border-radius: var(--hero-content-radius);
    border: 1px solid var(--hero-content-border);
    background: var(--hero-content-surface);
    backdrop-filter: blur(var(--hero-content-blur)) saturate(1.08);
    -webkit-backdrop-filter: blur(var(--hero-content-blur)) saturate(1.08);
}

.hero-content .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--hero-title-color);
    text-shadow: var(--hero-title-shadow);
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hero-content .hero-subtitle {
    font-size: 1rem;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.45;
    color: var(--hero-subtitle-color);
    text-shadow: var(--hero-subtitle-shadow);
    max-width: 65ch;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Categories Grid */
.menu-container {
    padding: 0 var(--viewer-gutter) 40px;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Category Card */
.category-wrapper {
    display: flex;
    flex-direction: column;
}

.category-card {
    background: var(--color-surface);
    border-radius: var(--viewer-radius);
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: var(--color-surface);
    border: 0;
    display: block;
}

.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.category-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-items-count {
    background: var(--color-surface-variant);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.2;
}

/* Items */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid transparent;
    border-radius: 12px;
    position: relative;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    will-change: transform;
    -webkit-touch-callout: none;
    user-select: none;
}

.item-card--holding {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.item-card--profile-active {
    border-color: color-mix(in srgb, var(--color-primary) 44%, var(--color-border));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.item-image {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-surface);
    border: 0;
    display: block;
}

.item-visual {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.item-card--holding .item-visual {
    transform: scale(0.985);
}

.item-hold-cue {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    color: color-mix(in srgb, var(--color-text) 68%, var(--color-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    opacity: 0;
    transform: translateY(2px) scale(0.9);
    pointer-events: none;
}

.item-card--hold-hint .item-hold-cue {
    animation: itemHoldCue 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.item-card--hold-hint .item-visual {
    animation: itemVisualHoldPulse 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    margin-bottom: 2px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.item-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .item-header {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .item-price {
        align-self: flex-start;
    }
}

.item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.item-details {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.promo-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-warning);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.item-card--promo {
    border: 1px solid color-mix(in srgb, var(--color-warning) 60%, var(--color-border));
}

/* ═══════ Promotional Showcase (base) ═══════ */

.promo-showcase {
    position: sticky;
    top: var(--promo-sticky-top, 50px);
    z-index: 90;
    padding: 0 var(--viewer-gutter);
    margin-bottom: 20px;
}

.promo-showcase:empty {
    display: none;
}

.promo-card--rounded,
.promo-spot,
.promo-ticker-item {
    -webkit-touch-callout: none;
    user-select: none;
}

/* — Shared Promo Card/Visual — */

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-card-visual,
.promo-spot-visual {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--lc-radius-md, 12px);
    background: var(--color-surface-variant);
}

.promo-card-visual .item-placeholder,
.promo-spot-visual .item-placeholder {
    width: 100%;
    height: 100%;
}

.promo-hold-cue {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    color: color-mix(in srgb, var(--color-text) 66%, var(--color-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    opacity: 0;
    transform: translateY(2px) scale(0.9);
    pointer-events: none;
}

.promo-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-warning);
}

.promo-card-badge i {
    font-size: 0.58rem;
}

.promo-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: 0.005em;
}

.promo-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primary);
}

/* — Carousel (rounded) — */

.promo-carousel {
    position: relative;
}

.promo-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 12px;
}

.promo-carousel-track::-webkit-scrollbar {
    display: none;
}

.promo-card--rounded {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: min(82vw, 300px);
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--lc-radius-lg, 20px);
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.12);
    border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, opacity 0.32s ease;
    opacity: 0.6;
    transform: scale(0.94);
}

.promo-card--rounded.promo-card--active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.promo-card--holding {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.promo-card--profile-active {
    border-color: color-mix(in srgb, var(--color-primary) 56%, var(--color-border));
}

.promo-card--hold-hint .promo-hold-cue {
    animation: itemHoldCue 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-card--hold-hint .promo-card-visual {
    animation: itemVisualHoldPulse 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-card--rounded .promo-card-visual {
    width: 72px;
    height: 72px;
    border-radius: var(--lc-radius-md, 12px);
}

.promo-card--rounded .promo-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    justify-content: center;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 4px 0 2px;
}

.promo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    padding: 0;
    cursor: pointer;
    transition: transform 0.24s ease, background-color 0.24s ease, width 0.24s ease, border-radius 0.24s ease;
}

.promo-dot.active {
    background: var(--color-primary);
    transform: scale(1.35);
}

/* — Ticker (straight) — */

.promo-ticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.promo-ticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-family: var(--font-mono, monospace);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface));
    border-right: 2px solid var(--color-border);
    white-space: nowrap;
}

.promo-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.promo-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: promoTickerScroll 22s linear infinite;
    width: max-content;
}

.promo-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    flex-shrink: 0;
    border-right: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.promo-ticker-item--holding {
    opacity: 0.86;
    transform: translateY(-1px);
}

.promo-ticker-item--profile-active {
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.promo-ticker-name {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--text-primary);
}

.promo-ticker-sep {
    font-family: var(--font-mono, monospace);
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.promo-ticker-price {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--color-primary);
}

.promo-ticker-star {
    color: var(--color-warning);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.promo-ticker-star i {
    font-size: 0.66rem;
}

@keyframes promoTickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* — Spotlight (invisible) — */

.promo-spotlight {
    position: relative;
    text-align: center;
}

.promo-spotlight-inner {
    position: relative;
    min-height: 100px;
    cursor: pointer;
}

.promo-spot {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.18s ease;
    pointer-events: none;
}

.promo-spot:first-child {
    position: relative;
}

.promo-spot--active {
    opacity: 1;
    pointer-events: auto;
}

.promo-spot--holding {
    transform: translateY(-1px);
}

.promo-spot--profile-active .promo-spot-visual {
    border-color: color-mix(in srgb, var(--color-primary) 58%, var(--color-border));
}

.promo-spot--hold-hint .promo-hold-cue {
    animation: itemHoldCue 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-spot--hold-hint .promo-spot-visual {
    animation: itemVisualHoldPulse 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.promo-spot-visual {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
    background: var(--color-surface-variant);
}

.promo-spot-visual .item-placeholder {
    width: 100%;
    height: 100%;
}

.promo-spot-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    min-width: 0;
}

.promo-spot-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-warning);
    font-style: italic;
}

.promo-spot-name {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.2;
}

.promo-spot-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-spot-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.promo-spot-section {
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.promo-spot-counter {
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding-top: 6px;
}

.promo-spot-section {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .promo-ticker-inner {
        animation: none !important;
    }

    .promo-card--rounded {
        transition: none !important;
    }

    .promo-spot {
        transition: none !important;
    }

    .item-card,
    .item-visual,
    .item-hold-cue,
    .promo-hold-cue,
    .drink-profile-layer,
    .drink-profile-card {
        transition: none !important;
        animation: none !important;
    }

    .drink-profile-ambient::before,
    .drink-profile-ambient::after {
        animation: none !important;
    }
}

/* Placeholders & Visuals */
.category-visual,
.item-visual {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--lc-radius-md, 12px);
    mask-image: var(--lc-image-mask, none);
    -webkit-mask-image: var(--lc-image-mask, none);
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
    background: var(--color-surface-variant);
}

.category-visual {
    width: 110px;
    height: 110px;
}

.item-visual {
    width: 64px;
    height: 64px;
    border-radius: var(--lc-radius-sm, 9px);
}

.category-placeholder,
.item-placeholder {
    --ph-angle: 140deg;
    --ph-a: color-mix(in srgb, var(--color-primary) 34%, transparent);
    --ph-b: color-mix(in srgb, var(--color-secondary) 30%, transparent);
    --ph-c: color-mix(in srgb, var(--color-surface-variant) 84%, var(--color-surface));
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: color-mix(in srgb, var(--color-text) 48%, var(--color-primary));
    background:
        radial-gradient(125% 90% at 12% 0%, var(--ph-a), transparent 58%),
        radial-gradient(120% 92% at 92% 100%, var(--ph-b), transparent 62%),
        linear-gradient(var(--ph-angle), var(--ph-c), color-mix(in srgb, var(--color-surface-variant) 90%, var(--color-bg)));
    background-size: 115% 115%;
    animation: placeholderDrift 14s ease-in-out infinite;
}

.category-placeholder[data-seed="0"],
.item-placeholder[data-seed="0"] {
    --ph-angle: 132deg;
    --ph-a: color-mix(in srgb, var(--color-primary) 40%, transparent);
    --ph-b: color-mix(in srgb, var(--color-secondary) 34%, transparent);
}

.category-placeholder[data-seed="1"],
.item-placeholder[data-seed="1"] {
    --ph-angle: 156deg;
    --ph-a: color-mix(in srgb, var(--color-secondary) 38%, transparent);
    --ph-b: color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.category-placeholder[data-seed="2"],
.item-placeholder[data-seed="2"] {
    --ph-angle: 120deg;
    --ph-a: color-mix(in srgb, var(--color-primary) 30%, var(--color-surface));
    --ph-b: color-mix(in srgb, var(--color-text) 22%, transparent);
}

.category-placeholder[data-seed="3"],
.item-placeholder[data-seed="3"] {
    --ph-angle: 168deg;
    --ph-a: color-mix(in srgb, var(--color-secondary) 26%, transparent);
    --ph-b: color-mix(in srgb, var(--color-primary) 44%, transparent);
}

.category-placeholder[data-seed="4"],
.item-placeholder[data-seed="4"] {
    --ph-angle: 142deg;
    --ph-a: color-mix(in srgb, var(--color-primary) 24%, transparent);
    --ph-b: color-mix(in srgb, var(--color-text-secondary) 22%, transparent);
}

.category-placeholder[data-seed="5"],
.item-placeholder[data-seed="5"] {
    --ph-angle: 176deg;
    --ph-a: color-mix(in srgb, var(--color-secondary) 32%, transparent);
    --ph-b: color-mix(in srgb, var(--color-primary) 28%, transparent);
}

.category-placeholder[data-seed="6"],
.item-placeholder[data-seed="6"] {
    --ph-angle: 128deg;
    --ph-a: color-mix(in srgb, var(--color-primary) 28%, transparent);
    --ph-b: color-mix(in srgb, var(--color-secondary) 24%, var(--color-surface));
}

.category-placeholder[data-seed="7"],
.item-placeholder[data-seed="7"] {
    --ph-angle: 150deg;
    --ph-a: color-mix(in srgb, var(--color-secondary) 24%, transparent);
    --ph-b: color-mix(in srgb, var(--color-primary) 36%, transparent);
}

.category-placeholder::before,
.item-placeholder::before {
    content: attr(data-label);
    position: absolute;
    left: -24%;
    right: -24%;
    bottom: 8px;
    z-index: 1;
    font-size: 0.5rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: color-mix(in srgb, var(--color-text) 18%, transparent);
    opacity: 0.58;
    pointer-events: none;
    animation: placeholderTicker 26s linear infinite;
}

.item-placeholder::before {
    bottom: 6px;
    font-size: 0.38rem;
    letter-spacing: 0.18em;
}

.category-placeholder::after,
.item-placeholder::after {
    content: '';
    position: absolute;
    inset: -45% -55%;
    z-index: 1;
    background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.22) 50%, transparent 66%);
    transform: translateX(-20%) rotate(8deg);
    mix-blend-mode: screen;
    opacity: 0.58;
    pointer-events: none;
    animation: placeholderSheen 9.6s ease-in-out infinite;
}

.category-placeholder[data-variant="1"]::after,
.item-placeholder[data-variant="1"]::after {
    opacity: 0.42;
    animation-duration: 11.4s;
}

.category-placeholder[data-variant="2"]::before,
.item-placeholder[data-variant="2"]::before {
    animation-duration: 18s;
    opacity: 0.48;
}

.category-placeholder[data-variant="3"],
.item-placeholder[data-variant="3"] {
    animation-duration: 18s;
}

.placeholder-symbol {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    opacity: 0.5;
    color: color-mix(in srgb, var(--color-primary) 54%, var(--color-text));
}

.placeholder-initial {
    font-size: clamp(1.2rem, 4.8vw, 2rem);
    font-weight: 700;
    z-index: 2;
    font-family: var(--font-heading);
    color: color-mix(in srgb, var(--color-text) 42%, var(--color-primary));
    text-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 18%, transparent);
    animation: placeholderBreathe 6.4s ease-in-out infinite;
}

.placeholder-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    max-width: 76%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-text) 34%, var(--color-primary));
}

.item-placeholder .placeholder-symbol {
    top: 6px;
    right: 7px;
    font-size: 0.54rem;
    display: none;
}

.item-placeholder .placeholder-initial {
    font-size: 1.12rem;
}

.item-placeholder .placeholder-tag {
    left: 7px;
    bottom: 7px;
    max-width: 70%;
    font-size: 0.46rem;
    letter-spacing: 0.06em;
}

/* Inline Items */
.inline-items-container {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

.inline-items-container.open {
    height: auto;
    opacity: 1;
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 40px var(--viewer-gutter);
    margin-top: auto;
    position: relative;
    z-index: 92;
}

.footer-content {
    max-width: var(--viewer-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-section {
    border: 1px solid var(--color-border);
    border-radius: var(--lc-radius-md, 12px);
    padding: 16px;
    background: color-mix(in srgb, var(--color-surface) 88%, var(--color-surface-variant));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.footer-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-stack {
    display: grid;
    gap: 10px;
}

.footer-stack p,
.footer-stack a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-decoration: none;
}

.footer-stack a:hover {
    color: var(--color-primary);
}

.footer-stack i {
    width: 16px;
    color: var(--text-muted);
    text-align: center;
}

.wifi-pill {
    display: grid;
    gap: 9px;
    border-radius: var(--lc-radius-sm, 8px);
    background: var(--color-surface-variant);
    padding: 12px;
}

.wifi-pill p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    margin: 0;
    color: var(--text-secondary);
}

.wifi-pill-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.wifi-pill-action {
    text-decoration: none;
}

.footer-section--language {
    display: grid;
    gap: 12px;
}

.footer-lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-lang-chip {
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 74%, var(--color-surface-variant));
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-lang-chip:hover {
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--color-primary) 52%, var(--color-border));
}

.footer-lang-chip.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.full-width {
    grid-column: 1 / -1;
    text-align: center;
}

.footer-section.full-width {
    padding-top: 16px;
    padding-bottom: 16px;
}

.footer-legal-meta {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: color-mix(in srgb, var(--color-surface-variant) 82%, var(--color-surface));
}

.footer-legal-meta p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-legal-line {
    margin-bottom: 6px !important;
}

.footer-legal-sub {
    font-size: 0.78rem !important;
}

.footer-legal-oib {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-legal-meta a {
    color: inherit;
    text-decoration: none;
}

.footer-legal-meta a:hover {
    color: var(--color-primary);
}

.footer-legal-meta strong {
    color: var(--text-primary);
}

.footer-meta-sep {
    opacity: 0.42;
}

.footer-disclaimer,
.footer-note {
    margin: 0;
    line-height: 1.45;
}

.footer-disclaimer {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-powered {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-watermark {
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.footer-watermark:hover {
    color: var(--color-primary);
}

.footer-mini {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(0);
    z-index: 96;
    max-width: none;
    width: 100%;
    padding: 4px var(--viewer-gutter) calc(4px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    backdrop-filter: blur(8px) saturate(1.04);
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font-size: 0.67rem;
    letter-spacing: 0.025em;
    line-height: 1.2;
    transition: transform 0.26s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.footer-mini:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.footer-mini-meta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.footer-mini-jump {
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-content: flex-start;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
    font: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-mini-main {
    color: var(--text-primary);
    font-weight: 700;
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-mini-sep {
    opacity: 0.48;
}

.footer-mini-note {
    color: var(--text-muted);
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-mini-lang-toggle {
    border: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface-variant) 86%, var(--color-surface));
    color: var(--text-primary);
    border-radius: 999px;
    min-width: 42px;
    padding: 4px 10px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-mini-lang-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.footer-mini-warning-toggle {
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--color-warning) 65%, var(--color-border));
    background: color-mix(in srgb, var(--color-warning) 15%, var(--color-surface));
    color: color-mix(in srgb, var(--color-warning) 52%, var(--text-primary));
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-mini-warning-toggle:hover,
.footer-mini-warning-toggle[aria-expanded="true"] {
    transform: translateY(-1px);
    background: var(--color-warning);
    border-color: var(--color-warning);
    color: #fff;
}

.footer-mini-warning-balloon {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    width: min(320px, calc(100vw - (var(--viewer-gutter) * 2)));
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--color-warning) 45%, var(--color-border));
    border-radius: var(--lc-radius-sm, 8px);
    background: color-mix(in srgb, var(--color-surface) 88%, var(--color-warning));
    color: var(--text-primary);
    font-size: 0.7rem;
    line-height: 1.35;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}

.footer-mini-warning-balloon::after {
    content: '';
    position: absolute;
    right: 11px;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid color-mix(in srgb, var(--color-surface) 88%, var(--color-warning));
}

body.footer-in-view .footer-mini {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 12px));
}

/* Utilities */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes itemHoldCue {
    0% {
        opacity: 0;
        transform: translateY(2px) scale(0.9);
    }

    35% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-1px) scale(0.95);
    }
}

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

    45% {
        transform: scale(0.975);
    }

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

@keyframes drinkProfileAmbientShift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: saturate(1);
    }

    50% {
        transform: translate3d(3%, -2%, 0) scale(1.06);
        filter: saturate(1.08);
    }
}

@keyframes drinkProfileAmbientSheen {

    0%,
    100% {
        opacity: 0.34;
        transform: translate3d(-3%, 0, 0);
    }

    50% {
        opacity: 0.5;
        transform: translate3d(3%, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes placeholderDrift {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 0% 0%;
    }

    50% {
        background-position: 18% 12%, 82% 86%, 100% 100%;
    }
}

@keyframes placeholderTicker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-14%);
    }
}

@keyframes placeholderSheen {

    0%,
    100% {
        transform: translateX(-24%) rotate(8deg);
        opacity: 0.38;
    }

    50% {
        transform: translateX(14%) rotate(8deg);
        opacity: 0.7;
    }
}

@keyframes placeholderBreathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.86;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes ownerPillFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Placeholder Mode: Empty (prazno) */
.placeholder-mode-empty {
    background: var(--color-surface-variant) !important;
    animation: none !important;
}

.placeholder-mode-empty::before,
.placeholder-mode-empty::after {
    display: none !important;
}

.placeholder-mode-empty .placeholder-symbol,
.placeholder-mode-empty .placeholder-initial,
.placeholder-mode-empty .placeholder-tag {
    display: none !important;
}

/* Placeholder Mode: Initial (inicijal) */
.placeholder-mode-initial {
    background: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface-variant)) !important;
    animation: none !important;
}

.placeholder-mode-initial::before,
.placeholder-mode-initial::after {
    display: none !important;
}

.placeholder-mode-initial .placeholder-symbol,
.placeholder-mode-initial .placeholder-tag {
    display: none !important;
}

.placeholder-mode-initial .placeholder-initial {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    animation: none;
    opacity: 0.72;
    color: color-mix(in srgb, var(--color-primary) 62%, var(--color-text));
    text-shadow: none;
}

.item-placeholder.placeholder-mode-initial .placeholder-initial {
    font-size: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {

    .header-brand-host,
    .shared-brand {
        transition: none !important;
    }

    .category-placeholder,
    .item-placeholder,
    .placeholder-initial,
    .owner-unpublished-pill,
    .category-placeholder::before,
    .item-placeholder::before,
    .category-placeholder::after,
    .item-placeholder::after {
        animation: none !important;
    }

    body.preview-live-transition .header,
    body.preview-live-transition .hero,
    body.preview-live-transition .promo-showcase,
    body.preview-live-transition .category-card,
    body.preview-live-transition .item-card,
    body.preview-live-transition .promo-card--rounded,
    body.preview-live-transition .promo-spot,
    body.preview-live-transition .promo-ticker-label,
    body.preview-live-transition .promo-ticker-item,
    body.preview-live-transition .footer,
    body.preview-live-transition .footer-section,
    body.preview-live-transition .footer-mini,
    body.preview-live-transition .lang-toggle,
    body.preview-live-transition .header-icon-btn,
    body.preview-live-transition .wifi-btn,
    body.preview-live-transition .header-logo,
    body.preview-live-transition .shared-brand-title,
    body.preview-live-transition .shared-brand-subtitle,
    body.preview-live-transition .hero::before,
    body.preview-live-transition .hero::after,
    body.preview-live-transition .category-placeholder::before,
    body.preview-live-transition .category-placeholder::after,
    body.preview-live-transition .item-placeholder::before,
    body.preview-live-transition .item-placeholder::after {
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .header {
        padding-top: 9px;
        padding-bottom: 8px;
    }

    .header-main-row {
        gap: 8px;
    }

    .header-left-rail {
        gap: 8px;
    }

    .header-controls {
        gap: 5px;
    }

    body.brand-in-header .header-brand-host {
        max-width: min(66vw, 270px);
    }

    .header-icon-btn,
    .lang-toggle,
    .wifi-btn {
        width: 29px;
        height: 29px;
    }

    .lang-toggle {
        min-width: 31px;
    }
    .wifi-reveal {
        width: 88vw;
        right: 6vw;
    }
    .hero {
        min-height: 220px;
        padding-top: 52px;
    }

    .hero-content .hero-title {
        font-size: 1.65rem;
    }

    .header-brand-host .shared-brand-title {
        font-size: 0.76rem;
    }

    .header-brand-host .shared-brand-subtitle {
        font-size: 0.55rem;
    }

    .category-visual {
        width: 96px;
        height: 96px;
    }

    .footer-mini {
        padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
        font-size: 0.6rem;
        bottom: 0;
        gap: 8px;
    }

    .footer-mini-main {
        max-width: 44vw;
    }

    .footer-mini-note {
        max-width: 44vw;
    }

    .footer-mini-lang-toggle {
        min-width: 38px;
        padding-inline: 8px;
        font-size: 0.6rem;
    }

    .footer-mini-warning-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.68rem;
    }

    .footer-mini-warning-balloon {
        width: min(290px, calc(100vw - 24px));
    }

    .owner-unpublished-pill {
        top: 48px;
        font-size: 0.62rem;
        padding: 6px 10px;
    }
}
