:root {
    --ws-primary: #c0392b;
    --ws-secondary: #111;
    --ws-accent: #ffd100;
    --ws-bg: #f4f4f4;
    --ws-card: #fff;
    --ws-text: #111;
    --ws-muted: #6d6d6d;
    --ws-line: #ececec;
    --ws-soft: #fff4ea;
    --ws-radius: 14px;
    --ws-header-h: 76px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--ws-bg);
    color: var(--ws-text);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; display: block; }
.ws-icon-plain {
    border: 0; background: transparent; padding: 8px; cursor: pointer; color: inherit;
}

/* Header */
.ws-top {
    position: sticky; top: 0; z-index: 40;
    background: #fff; border-bottom: 1px solid var(--ws-line);
}
.ws-top-inner {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    min-height: var(--ws-header-h);
    display: flex; align-items: center; gap: 12px;
}
.ws-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.ws-brand img, .ws-brand-mark {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
}
.ws-brand-mark {
    display: grid; place-items: center; background: var(--ws-accent); font-weight: 800;
}
.ws-brand-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ws-mode {
    display: flex; background: #f2f2f2; border-radius: 999px; padding: 3px; flex: 0 0 auto;
}
.ws-mode-btn {
    border: 0; background: transparent; border-radius: 999px;
    padding: 9px 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
    font-size: 12px; cursor: pointer; color: #333;
}
.ws-mode-btn.is-on { background: var(--ws-accent); color: #111; }
.ws-find, .ws-place {
    display: flex; align-items: center; gap: 8px;
    background: #f6f6f6; border: 1px solid #eee; border-radius: 999px;
    min-height: 44px; padding: 0 14px; color: #333;
}
.ws-find { flex: 1; min-width: 160px; }
.ws-find input {
    border: 0; background: transparent; width: 100%; outline: none;
}
.ws-find-icon { color: #555; }
.ws-place {
    max-width: 220px; cursor: pointer; border: 1px solid #eee;
    overflow: hidden; white-space: nowrap;
}
.ws-place span[data-place-label] { overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; }
.ws-top-actions { display: flex; gap: 8px; margin-left: auto; }
.ws-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ws-accent); color: #111; border: 0;
    border-radius: 10px; padding: 10px 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em; font-size: 13px;
    cursor: pointer; position: relative; text-decoration: none;
}
.ws-badge {
    position: absolute; top: -7px; right: -7px;
    background: #e11d2e; color: #fff; min-width: 18px; height: 18px;
    border-radius: 999px; font-size: 11px; display: grid; place-items: center;
    font-style: normal;
}
.ws-closed { background: #111; color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; }

/* Drawer */
.ws-drawer, .ws-cart-fly, .ws-modal { position: fixed; inset: 0; z-index: 60; }
.ws-drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.ws-drawer-panel {
    position: relative; width: min(360px, 92vw); height: 100%;
    background: #fff; display: flex; flex-direction: column;
}
.ws-drawer-user { display: flex; gap: 12px; padding: 22px 20px; align-items: center; }
.ws-avatar {
    width: 52px; height: 52px; border-radius: 50%; background: #f2f2f2;
    display: grid; place-items: center;
}
.ws-drawer-user a { display: inline-block; margin-top: 8px; font-weight: 700; }
.ws-btn-line {
    border: 1px solid #111; border-radius: 8px; padding: 6px 16px;
}
.ws-drawer-nav { padding: 8px 12px; display: grid; gap: 4px; flex: 1; }
.ws-drawer-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 10px; border-radius: 10px; font-weight: 700;
}
.ws-drawer-nav a:hover { background: #f6f6f6; color: #1a5cff; }
.ws-hotline {
    margin-top: auto; background: var(--ws-accent); color: #111;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; font-weight: 800;
}
.ws-hotline-btn {
    width: 36px; height: 36px; border-radius: 50%; background: #111; color: var(--ws-accent);
    display: grid; place-items: center;
}

/* Layout */
.ws-main { padding: 20px 0 96px; }
.ws-wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.ws-wide { width: min(1280px, calc(100% - 28px)); margin: 0 auto; }

/* Hero */
.ws-hero-wrap { width: min(1280px, calc(100% - 28px)); margin: 0 auto 28px; }
.ws-hero {
    position: relative; overflow: hidden; border-radius: 18px; min-height: 280px;
    background: linear-gradient(115deg, var(--ws-primary), #ff7a18 55%, var(--ws-accent));
    color: #fff;
}
.ws-hero-slide {
    min-height: 280px; display: none; grid-template-columns: 1fr 1fr; align-items: center;
    padding: 28px 36px; gap: 20px;
}
.ws-hero-slide.is-on { display: grid; }
.ws-hero-slide h1, .ws-hero-slide h2 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 48px); text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.ws-hero-slide p { margin: 0; max-width: 420px; opacity: .95; }
.ws-hero-slide img { width: 100%; max-height: 240px; object-fit: contain; }
.ws-hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.ws-hero-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.ws-hero-dots button.is-on { background: #fff; }

/* Sections */
.ws-sec { margin: 32px 0; }
.ws-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ws-sec-head h2 { margin: 0; font-size: 22px; }
.ws-viewall { color: #d61f26; font-weight: 800; font-size: 13px; letter-spacing: .04em; }

/* Category rail */
.ws-rail-wrap { position: relative; }
.ws-rail {
    display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 2px 10px; scrollbar-width: none;
}
.ws-rail::-webkit-scrollbar { display: none; }
.ws-ccard {
    flex: 0 0 170px; background: #fff; border: 1px solid #e8e8e8;
    border-radius: 14px; padding: 10px; text-align: center;
}
.ws-ccard img, .ws-ccard .ws-ph { width: 100%; height: 120px; object-fit: contain; border-radius: 10px; }
.ws-ccard strong { display: block; margin-top: 8px; font-size: 13px; }
.ws-rail-btn {
    position: absolute; top: 40%; width: 36px; height: 36px; border: 0;
    border-radius: 50%; background: var(--ws-accent); cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ws-rail-btn.prev { left: -8px; }
.ws-rail-btn.next { right: -8px; }

/* Promo tiles */
.ws-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ws-tile {
    background: #fff; border-radius: 16px; min-height: 180px; padding: 22px;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #111; overflow: hidden; position: relative;
}
.ws-tile:nth-child(1) { background: linear-gradient(160deg, var(--ws-accent), #ffe56a); }
.ws-tile:nth-child(2) { background: #fff; border: 1px solid var(--ws-line); }
.ws-tile:nth-child(3) { background: linear-gradient(160deg, var(--ws-primary), #ff7a18); color: #fff; }
.ws-tile h3 { margin: 0 0 8px; font-size: 22px; }
.ws-tile p { margin: 0; font-size: 14px; }

/* Product cards */
.ws-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ws-pcard {
    background: #fff; border-radius: 16px; padding: 14px 14px 8px;
    box-shadow: 0 1px 0 rgba(0,0,0,.04); position: relative;
}
.ws-pcard-media { display: grid; place-items: center; height: 150px; }
.ws-pcard-media img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }
.ws-ph {
    width: 120px; height: 120px; border-radius: 50%; background: var(--ws-soft);
    display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--ws-primary);
}
.ws-pcard-body h3 { margin: 8px 0 4px; font-size: 16px; }
.ws-pcard-desc {
    margin: 0 0 10px; color: var(--ws-muted); font-size: 13px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.ws-price-pill {
    display: inline-block; background: #ffe3d4; color: #d61f26;
    border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 13px;
}
.ws-add-link {
    display: block; width: 100%; margin-top: 10px; border: 0; background: transparent;
    padding: 10px 0; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: #222; cursor: pointer;
}

/* Menu */
.ws-catbar {
    position: sticky; top: var(--ws-header-h); z-index: 30;
    background: #fff; border-bottom: 1px solid var(--ws-line);
    padding: 10px 0;
}
.ws-catbar-inner {
    width: min(1280px, calc(100% - 28px)); margin: 0 auto;
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.ws-pill {
    flex: 0 0 auto; border: 1px solid #eee; background: #fff;
    border-radius: 10px; padding: 9px 14px; font-weight: 700; white-space: nowrap;
}
.ws-pill.is-on { background: var(--ws-accent); border-color: var(--ws-accent); }
.ws-menu-split {
    width: min(1280px, calc(100% - 28px)); margin: 18px auto 0;
    display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start;
}
.ws-menu-main h2 { margin: 8px 0 14px; }
.ws-cart-rail {
    background: #fff; border-radius: 16px; min-height: 280px;
    position: sticky; top: calc(var(--ws-header-h) + 64px);
    padding: 16px;
}
.ws-cart-empty { text-align: center; padding: 36px 12px; color: var(--ws-muted); }
.ws-cart-empty .face { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.ws-cart-empty strong { display: block; color: #111; margin-bottom: 4px; }
.ws-cart-line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ws-line); }
.ws-cart-line img, .ws-cart-line .ws-ph-sm {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--ws-soft);
}
.ws-ph-sm { display: grid; place-items: center; font-weight: 800; }
.ws-cart-line strong { display: block; font-size: 14px; }
.ws-qtyrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ws-qtyrow button {
    width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center;
}
.ws-qtyrow .plus { background: var(--ws-accent); }
.ws-qtyrow .del { background: #ffe3e3; color: #d61f26; }
.ws-cart-total { display: flex; justify-content: space-between; font-weight: 800; margin: 12px 0; }
.ws-btn, .ws-btn-accent {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; border-radius: 10px; padding: 13px 16px;
    font-weight: 800; cursor: pointer; text-decoration: none; text-transform: uppercase;
}
.ws-btn-accent { background: var(--ws-accent); color: #111; }
.ws-btn { background: #111; color: #fff; }
.ws-btn-ghost { background: #fff; color: #111; border: 1px solid #ddd; width: auto; padding: 10px 14px; }

.ws-drawer[hidden], .ws-cart-fly[hidden], .ws-modal[hidden] { display: none !important; }

/* Cart flyout */
.ws-cart-fly .ws-cart-panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 94vw);
    background: #fff; display: flex; flex-direction: column; margin-left: auto;
}
.ws-cart-panel header, .ws-place-card header, .ws-modal-card > header {
    display: flex; justify-content: space-between; align-items: center; padding: 16px;
    border-bottom: 1px solid var(--ws-line);
}
.ws-cart-body { padding: 16px; overflow: auto; flex: 1; }

/* Modal */
.ws-modal { display: grid; place-items: center; }
.ws-modal-card {
    position: relative; width: min(520px, 94vw); max-height: 92vh; overflow: auto;
    background: #fff; border-radius: 18px;
}
.ws-modal-media { height: 230px; background: #111; }
.ws-modal-media img { width: 100%; height: 230px; object-fit: cover; }
.ws-modal-body { padding: 18px 18px 22px; }
.ws-req { background: var(--ws-accent); color: #111; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; margin-left: 8px; }
.ws-choice {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--ws-line); font-weight: 600;
}
.ws-choice input { accent-color: #111; }

/* Checkout / forms */
.ws-split { display: grid; grid-template-columns: 1.3fr .8fr; gap: 22px; align-items: start; }
.ws-card, .ws-form, .ws-bill, .ws-info {
    background: #fff; border-radius: 16px; padding: 18px 20px;
}
.ws-info { background: #fff6e5; }
.ws-pay { background: var(--ws-accent); border-radius: 16px; padding: 16px 18px; }
.ws-pay label { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 700; }
.ws-form label, .ws-field { display: block; font-weight: 700; margin: 12px 0 6px; }
.ws-form input, .ws-form select, .ws-form textarea, .ws-field + input,
.ws-form input[type="text"], .ws-form input[type="tel"], .ws-form input[type="email"], .ws-form input[type="password"], .ws-form input[type="search"] {
    width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid #e4e4e4; background: #fafafa;
}
.ws-bill div { display: flex; justify-content: space-between; margin: 8px 0; }
.ws-bill .total { font-size: 20px; font-weight: 800; margin-top: 12px; }
.ws-page-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 28px; }

/* Account */
.ws-acct-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--ws-line); margin: 8px 0 22px; }
.ws-acct-tab { padding: 10px 0; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: #666; white-space: nowrap; }
.ws-acct-tab.is-on { color: #111; border-bottom: 2px solid #111; }
.ws-avatar-lg {
    width: 92px; height: 92px; border-radius: 50%; background: #eee;
    display: grid; place-items: center; margin: 0 auto 18px; font-size: 36px; font-weight: 800;
}
.ws-verified { color: #d61f26; font-size: 12px; font-weight: 800; float: right; margin-top: -28px; margin-right: 10px; }
.ws-ocard { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.ws-ocard-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ws-status { background: #1aa05a; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ws-status.is-prep { background: #e67e22; }
.ws-status.is-cancel { background: #888; }
.ws-addr { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ws-addr-ico { width: 48px; height: 48px; border-radius: 10px; background: #eef6ff; display: grid; place-items: center; color: #1a5cff; }
.ws-addr-actions { margin-left: auto; display: flex; gap: 12px; }
.ws-addr-actions button, .ws-link-danger { background: none; border: 0; color: #d61f26; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 12px; }

/* Track */
.ws-stepper { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.ws-step { padding: 8px 12px; border-radius: 999px; background: #e8e8e8; font-size: 13px; font-weight: 700; }
.ws-step.is-on { background: var(--ws-accent); }

.ws-foot { background: #111; color: #f3f3f3; padding: 36px 0; }
.ws-foot-grid { width: min(1120px, calc(100% - 28px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ws-foot a { display: block; margin: 6px 0; color: #ddd; }
.ws-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 35;
    background: #ff7a18; color: #fff; border-radius: 10px; padding: 12px 16px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
body[data-page="menu"] .ws-fab,
body[data-page="cart"] .ws-fab,
body[data-page="checkout"] .ws-fab,
body[data-page="product"] .ws-fab { display: none; }
.ws-toast {
    position: fixed; left: 50%; top: 88px; transform: translateX(-50%);
    background: #1aa05a; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 80;
    font-weight: 700;
}
.ws-empty { padding: 48px 0; text-align: center; color: var(--ws-muted); }
.ws-legal { background: #fff; border-radius: 16px; padding: 24px; line-height: 1.65; }
.ws-muted { color: var(--ws-muted); font-size: 13px; }
.ws-narrow { max-width: 480px; margin: 0 auto; }

@media (max-width: 980px) {
    .ws-brand-name, .ws-find, .ws-place, .ws-cta span { display: none; }
    .ws-mode-btn { padding: 8px 10px; font-size: 11px; }
    .ws-grid, .ws-tiles, .ws-menu-split, .ws-split, .ws-hero-slide, .ws-foot-grid { grid-template-columns: 1fr; }
    .ws-cart-rail { display: none; }
    .ws-hero-slide { padding: 24px 20px; }
}
