/* =========================================================
   PIZZA DELI  |  style.css
   Dark + red theme, responsive, with entrance animations
   ========================================================= */

:root {
    --bg: #0b0b0b;
    --bg-2: #121212;
    --card: #141414;
    --line: #262626;
    --red: #d3190c;
    --red-dark: #a81208;
    --orange: #e5731b;
    --gold: #f5a524;
    --text: #ffffff;
    --muted: #b3b3b3;
    --head: 'Oswald', 'Arial Narrow', sans-serif;
    --body: 'Poppins', system-ui, sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ================= TOP BAR ================= */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(11, 11, 11, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s;
    animation: slideDown .8s cubic-bezier(.2, .8, .2, 1) both;
}
.top-bar.scrolled {
    background: rgba(11, 11, 11, .94);
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ---------- BRAND / LOGO ---------- */
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    transition: transform .3s;
}
.brand:hover { transform: scale(1.02); }

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -.5px;
    color: #fff;
}
.brand-name span,
.side-brand span,
.footer-brand span { color: var(--red); }

.brand-name i,
.side-brand i,
.footer-brand i {
    color: var(--red);
    font-size: .95rem;
    transform: translateY(-8px) rotate(-12deg);
    display: inline-block;
    transition: transform .4s;
}
.brand:hover .brand-name i { transform: translateY(-8px) rotate(25deg); }

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}
.brand:hover .brand-logo { transform: scale(1.05); }

.brand small {
    font-size: .62rem;
    letter-spacing: 1.4px;
    font-weight: 600;
    margin-top: 5px;
    color: #ddd;
}

/* ---------- NAV LINKS ---------- */
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    position: relative;
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 0;
    color: #eee;
    transition: color .25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ---------- TOP ICONS ---------- */
.top-icons { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: background .25s, color .25s;
    color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--red); }

.cart-count {
    position: absolute;
    top: 2px; right: 0;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    display: none;
    place-items: center;
    background: var(--red);
    border-radius: 99px;
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
}
.cart-count.show { display: grid; }
.cart-icon.bump { animation: bump .45s; }
.menu-icon { display: none; }

/* ================= SIDE BAR ================= */
.side-bar {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 82%);
    height: 100%;
    z-index: 300;
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a0604, #0b0b0b);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.side-bar.open { transform: translateX(0); }
.close-btn { align-self: flex-end; width: 40px; height: 40px; font-size: 1.4rem; border-radius: 50%; }
.close-btn:hover { color: var(--red); }
.side-brand { font-weight: 700; font-size: 1.6rem; margin: 6px 0 24px; }
.side-bar ul { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: calc(100vh - 220px); padding-right: 4px; }
.side-bar ul::-webkit-scrollbar { width: 4px; }
.side-bar ul::-webkit-scrollbar-thumb { background: rgba(211,25,12,.4); border-radius: 4px; }
.side-bar li { opacity: 0; transform: translateX(30px); }
.side-bar.open li { animation: slideInRight .5s forwards; }
.side-bar.open li:nth-child(1) { animation-delay: .10s; }
.side-bar.open li:nth-child(2) { animation-delay: .16s; }
.side-bar.open li:nth-child(3) { animation-delay: .22s; }
.side-bar.open li:nth-child(4) { animation-delay: .28s; }
.side-bar.open li:nth-child(5) { animation-delay: .34s; }
.side-bar.open li:nth-child(6) { animation-delay: .40s; }
.side-bar.open li:nth-child(7) { animation-delay: .46s; }
.side-bar.open li:nth-child(8) { animation-delay: .52s; }
.side-bar li a {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 14px;
    border-radius: 10px;
    font-weight: 500;
    transition: background .25s, color .25s;
}
.side-bar li a i { width: 20px; color: var(--red); }
.side-bar li a:hover,
.side-bar li a.active { background: rgba(211, 25, 12, .15); color: #fff; }
.side-cta { margin-top: auto; width: 100%; justify-content: center; }

.overlay {
    position: fixed; inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, .65);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ================= BUTTONS ================= */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    transition: transform .25s, background .25s, box-shadow .25s, border-color .25s;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    animation: shine 3.5s 2s infinite;
}
.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(211, 25, 12, .45);
}
.btn-primary i { transition: transform .25s; }
.btn-primary:hover i { transform: translateX(4px); }
.btn-secondary { border: 1px solid var(--red); color: #fff; }
.btn-secondary:hover { background: var(--red); transform: translateY(-2px); }

/* ================= HERO ================= */
.hero {
    position: relative;
    margin-top: calc(var(--header-h) * -1);
    min-height: 640px;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
    background: #1a0a05;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=80') 75% center / cover no-repeat;
    animation: kenburns 20s ease-in-out infinite alternate;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 11, .88) 30%, rgba(11, 11, 11, .25) 65%, rgba(11, 11, 11, 0) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 560px; padding: 60px 0; }

.hero-tagline {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(211, 25, 12, .6);
    border-radius: 99px;
    background: rgba(211, 25, 12, .12);
    font-size: .78rem;
    font-weight: 500;
}
.hero-tagline i { color: var(--orange); }

.hero h1 {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: 1px;
}
.hero h1 span { color: var(--red); }
.hero p { margin: 22px 0 30px; font-size: .95rem; color: #e6e6e6; max-width: 360px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ================= FEATURES ================= */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 34px 0 40px;
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-item > i {
    flex: none;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1.5px solid var(--red);
    border-radius: 12px;
    color: var(--red);
    font-size: 1.15rem;
    transition: background .3s, color .3s, transform .3s;
}
.feature-item:hover > i { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.08); }
.feature-item h4 { font-size: .68rem; font-weight: 700; letter-spacing: .6px; }
.feature-item p { font-size: .68rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ================= CATEGORY TILES ================= */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 44px;
}
.cat-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 16px 18px;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.cat-card h3 { font-size: .98rem; font-weight: 600; letter-spacing: .3px; position: relative; z-index: 1; text-align: center; }
.cat-card img {
    width: 88%; aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 14px 0 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .55);
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.cat-card span { font-size: .72rem; font-weight: 500; display: flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.cat-card span i { transition: transform .25s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .6); }
.cat-card:hover img { transform: rotate(60deg) scale(1.05); }
.cat-card:hover span i { transform: translateX(5px); }

.cat-red    { background: linear-gradient(180deg, #8f1209, #3b0805 90%); }
.cat-orange { background: linear-gradient(180deg, #d9731a, #5c2a08 90%); }
.cat-wine   { background: linear-gradient(180deg, #8a1410, #2f0a09 90%); }
.cat-brown  { background: linear-gradient(180deg, #7a2a12, #2b0f07 90%); }

/* ================= SECTION HEADINGS ================= */
.section-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-row h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.section-row h2 i { color: var(--red); }
.view-all { font-size: .7rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .4px; }
.view-all i { transition: transform .25s; }
.view-all:hover i { transform: translateX(5px); }

/* ================= BESTSELLER ================= */
.bestseller { padding-bottom: 36px; }
.bestseller-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.product-card {
    position: relative;
    padding: 10px 10px 14px;
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .35s, border-color .35s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(211, 25, 12, .6); box-shadow: 0 16px 32px rgba(0, 0, 0, .6); }
.badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 3px 9px;
    background: var(--red);
    border-radius: 4px;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.product-img { overflow: hidden; border-radius: 10px; }
.product-img img { width: 100%; aspect-ratio: 1.15; object-fit: cover; transition: transform .6s; }
.product-card:hover .product-img img { transform: scale(1.1) rotate(2deg); }
.product-info { padding: 12px 4px 10px; }
.product-info h4 { font-size: .86rem; font-weight: 600; }
.rating { display: flex; align-items: center; gap: 2px; margin: 4px 0; color: var(--gold); font-size: .66rem; }
.rating span { color: var(--muted); margin-left: 6px; }
.price { font-weight: 700; font-size: .95rem; }

.card-actions { display: flex; gap: 6px; }
.add-to-cart {
    flex: 1;
    padding: 10px 12px;
    background: var(--red);
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .4px;
    color: #fff;
    transition: background .25s, transform .15s;
}
.cart-mini {
    flex: none;
    width: 38px;
    border: 1px solid var(--red);
    border-radius: 5px;
    color: var(--red);
    font-size: .8rem;
    transition: background .25s, color .25s;
}
.add-to-cart:hover { background: var(--red-dark); }
.cart-mini:hover { background: var(--red); color: #fff; }
.js-add:active { transform: scale(.94); }

/* ================= COMBOS + SIDES ================= */
.combos-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 50px; }
.combos-column {
    padding: 18px 18px 20px;
    background: linear-gradient(180deg, #151515, #0e0e0e);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.column-header h3 { font-size: .95rem; font-weight: 700; }
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.combo-card { position: relative; text-align: center; padding: 6px 6px 8px; border-radius: 10px; transition: background .3s, transform .3s; }
.combo-card:hover { background: rgba(255, 255, 255, .04); transform: translateY(-4px); }
.combo-img { overflow: hidden; border-radius: 10px; }
.combo-img img { width: 100%; aspect-ratio: 1.15; object-fit: cover; transition: transform .5s; }
.combo-card:hover .combo-img img { transform: scale(1.12); }
.combo-card h4 { font-size: .74rem; font-weight: 500; margin-top: 8px; }
.combo-price { font-size: .78rem; font-weight: 700; margin-top: 2px; }
.mini-add {
    position: absolute; top: 12px; right: 12px;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    background: var(--red);
    border-radius: 50%;
    font-size: .7rem;
    color: #fff;
    opacity: 0; transform: scale(.6);
    transition: opacity .25s, transform .25s;
}
.combo-card:hover .mini-add,
.mini-add:focus-visible { opacity: 1; transform: scale(1); }

/* ================= FULL MENU ================= */
.menu-section { padding-bottom: 60px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-family: var(--head); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 1px; line-height: 1.1; }
.section-head h2 span { color: var(--red); }
.section-head p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.menu-category { margin-bottom: 40px; }
.category-title {
    font-size: 1.05rem; font-weight: 600;
    padding-left: 14px;
    border-left: 4px solid var(--red);
    margin-bottom: 18px;
}
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.menu-card {
    display: flex; flex-direction: column;
    padding: 12px;
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .35s, border-color .35s, box-shadow .35s;
}
.menu-card:hover { transform: translateY(-5px); border-color: rgba(211, 25, 12, .6); box-shadow: 0 14px 28px rgba(0, 0, 0, .55); }
.menu-img { overflow: hidden; border-radius: 10px; }
.menu-img img { width: 100%; aspect-ratio: 1.3; object-fit: cover; transition: transform .6s; }
.menu-card:hover .menu-img img { transform: scale(1.1); }
.menu-info { padding: 12px 2px 10px; flex: 1; }
.menu-info h4 { font-size: .92rem; font-weight: 600; }
.menu-price { font-size: 1rem; font-weight: 700; color: var(--gold); margin-top: 2px; }
.sizes { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.size-chip {
    padding: 4px 11px;
    border: 1px solid #3a3a3a;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted);
    transition: all .25s;
}
.size-chip:hover { border-color: var(--red); color: #fff; }
.size-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.menu-card .add-to-cart { width: 100%; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ================= FOOTER ================= */
.footer { background: var(--bg); }
.newsletter {
    background: linear-gradient(90deg, #a81208, #c4160a 50%, #a81208);
    padding: 26px 0;
}
.newsletter-inner { display: grid; grid-template-columns: 1.3fr 1.2fr auto; align-items: center; gap: 30px; }
.newsletter-left h3 { font-size: 1.1rem; font-weight: 700; }
.newsletter-left p { font-size: .75rem; opacity: .9; max-width: 300px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    flex: 1; min-width: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font: inherit; font-size: .8rem;
    transition: border-color .25s, background .25s;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .75); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .25); }
.newsletter-form button {
    padding: 12px 26px;
    background: #0b0b0b;
    border-radius: 4px;
    font-size: .75rem; font-weight: 600;
    color: #fff;
    transition: background .25s, transform .2s;
}
.newsletter-form button:hover { background: #000; transform: translateY(-2px); }
.newsletter-social p { font-size: .7rem; font-weight: 600; margin-bottom: 8px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .9rem;
    color: #fff;
    transition: background .25s, color .25s, transform .25s;
}
.social-icons a:hover { background: #fff; color: var(--red); transform: translateY(-4px); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    padding: 18px 0;
    font-size: .7rem; color: #cfcfcf;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--red); }
.footer-brand { font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-brand i { font-size: .6rem; transform: translateY(-4px) rotate(-12deg); }

/* ================= TOAST ================= */
.toast {
    position: fixed;
    left: 50%; bottom: 24px;
    z-index: 500;
    max-width: 90%;
    padding: 12px 22px;
    background: #fff; color: #111;
    border-left: 5px solid var(--red);
    border-radius: 8px;
    font-size: .85rem; font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ================= ANIMATIONS ================= */
@keyframes slideDown   { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes slideUp     { from { opacity: 0; transform: translateY(50px); }  to { opacity: 1; transform: none; } }
@keyframes slideLeft   { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes slideInRight{ to   { opacity: 1; transform: none; } }
@keyframes kenburns    { from { transform: scale(1); } to { transform: scale(1.12) translateX(-1.5%); } }
@keyframes shine       { 0% { left: -80%; } 30%, 100% { left: 140%; } }
@keyframes bump        { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3) rotate(-10deg); } }

.slide-down { animation: slideDown .8s .2s cubic-bezier(.2, .8, .2, 1) both; }
.slide-left { animation: slideLeft .9s .4s cubic-bezier(.2, .8, .2, 1) both; }
.slide-up   { animation: slideUp .9s .7s cubic-bezier(.2, .8, .2, 1) both; }
.slide-up.d1 { animation-delay: .8s; }
.slide-up.d2 { animation-delay: 1s; }

.js [data-reveal] {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--delay, 0s);
}
.js [data-reveal="up"]    { transform: translateY(50px); }
.js [data-reveal="left"]  { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-page,
.checkout-page {
    padding: 50px 0 80px;
}

.page-head {
    margin-bottom: 30px;
}
.page-head h1 {
    font-family: var(--head);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 6px;
}
.page-head h1 span { color: var(--red); }
.page-head p { color: var(--muted); font-size: .9rem; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.cart-item {
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-item-img {
    flex: none;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0b0b;
    border: 1px solid var(--line);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 100px; }
.cart-item-info h4 { font-size: .9rem; margin-bottom: 4px; }
.cart-item-info .cart-item-price { font-size: .85rem; color: var(--gold); font-weight: 700; }

.cart-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--red);
    border-radius: 6px;
    color: var(--red);
    background: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background .25s, color .25s;
}
.cart-qty-btn:hover { background: var(--red); color: #fff; }

.cart-qty-num { min-width: 26px; text-align: center; font-weight: 700; }

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    color: #f87171;
    background: none;
    cursor: pointer;
    margin-left: 6px;
    font-size: 1rem;
    transition: color .25s;
}
.cart-remove-btn:hover { color: #ef4444; }

.cart-summary {
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 90px;
}
.cart-summary h3 { margin-bottom: 18px; font-size: 1rem; letter-spacing: .5px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .85rem;
}
.summary-row.total {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 6px;
    font-size: 1.1rem;
    font-weight: 700;
}
.summary-row.total span:last-child { color: var(--gold); }

.checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
    padding: 14px;
    text-decoration: none;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.empty-cart i { font-size: 4rem; color: #333; margin-bottom: 20px; }
.empty-cart h2 { color: #fff; margin-bottom: 12px; }
.empty-cart p { color: var(--muted); margin-bottom: 20px; }

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.checkout-form-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout-box {
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.checkout-box h3 {
    margin-bottom: 16px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .3px;
}
.checkout-box h3 i { color: var(--red); }

.checkout-fields { display: flex; flex-direction: column; gap: 12px; }
.checkout-fields input,
.checkout-fields textarea {
    padding: 12px 14px;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    font-size: .85rem;
    font-family: inherit;
    transition: border-color .25s;
    resize: vertical;
    width: 100%;
}
.checkout-fields input:focus,
.checkout-fields textarea:focus {
    outline: none;
    border-color: var(--red);
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .25s, background .25s;
}
.pay-option:hover { border-color: rgba(211,25,12,.6); }
.pay-option input { accent-color: var(--red); width: auto; flex: none; }
.pay-option > i { font-size: 1.2rem; width: 24px; text-align: center; flex: none; }
.pay-option div { flex: 1; }
.pay-option strong { font-size: .9rem; display: block; }
.pay-option p { font-size: .72rem; color: var(--muted); margin: 0; }

.checkout-summary-col { position: relative; }
.checkout-summary {
    background: linear-gradient(180deg, #181818, #0f0f0f);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 90px;
}
.checkout-summary h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .3px;
}
.checkout-summary h3 i { color: var(--red); }

.checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.checkout-item-img {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: #0b0b0b;
    border: 1px solid var(--line);
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { flex: 1; font-size: .82rem; }
.checkout-item-price { font-size: .82rem; color: var(--gold); font-weight: 700; }

/* =========================================================
   RESPONSIVE — 1024px
   ========================================================= */
@media (max-width: 1024px) {
    .nav-links { gap: 22px; }
    .features { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
    .bestseller-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { grid-template-columns: 1fr 1fr; }
    .newsletter-social { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
    .newsletter-social p { margin: 0; }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr 300px;
        gap: 16px;
    }
}

/* =========================================================
   RESPONSIVE — 860px (TABLET / MOBILE)
   ========================================================= */
@media (max-width: 860px) {
    :root { --header-h: 68px; }
    .nav-links { display: none; }
    .menu-icon { display: grid; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .combos-section { grid-template-columns: 1fr; }
    .hero { min-height: 560px; }
    .hero-bg { background-position: 70% center; }
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .6) 60%, rgba(11, 11, 11, .35) 100%),
            linear-gradient(0deg, var(--bg) 0%, transparent 25%);
    }

    /* CART + CHECKOUT — STACK */
    .cart-page,
    .checkout-page {
        padding: 30px 0 60px;
    }
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cart-summary,
    .checkout-summary {
        position: static;
    }
    .cart-item {
        padding: 12px;
        gap: 12px;
    }
    .cart-item-img {
        width: 70px;
        height: 70px;
    }
    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 90px);
    }
    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
    .checkout-box { padding: 16px; }
    .checkout-summary { padding: 16px; }
    .page-head { margin-bottom: 20px; }
}

/* =========================================================
   RESPONSIVE — 640px
   ========================================================= */
@media (max-width: 640px) {
    .brand-name { font-size: 1.5rem; }
    .brand small { font-size: .52rem; }
    .brand-logo { height: 42px; max-width: 160px; }
    .hero { min-height: 520px; }
    .hero-content { padding: 40px 0 70px; }
    .hero p { font-size: .88rem; }
    .hide-sm { display: none; }
    .features { grid-template-columns: 1fr; }
    .bestseller-grid { gap: 10px; }
    .cat-card { padding: 16px 10px 14px; }
    .cat-card h3 { font-size: .8rem; }
    .combo-grid { gap: 6px; }
    .combo-card h4 { font-size: .68rem; }
    .mini-add { opacity: 1; transform: scale(1); width: 24px; height: 24px; top: 10px; right: 10px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .menu-card { padding: 8px; }
    .menu-info h4 { font-size: .8rem; }
    .size-chip { padding: 3px 9px; font-size: .62rem; }
    .newsletter-inner { grid-template-columns: 1fr; gap: 18px; }
    .newsletter-social { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .footer-brand { order: -1; }
}

/* =========================================================
   RESPONSIVE — 480px (SMALL MOBILE)
   ========================================================= */
@media (max-width: 480px) {
    .cart-item { padding: 10px; }
    .cart-item-img { width: 60px; height: 60px; }
    .cart-item-info h4 { font-size: .82rem; }
    .cart-qty-btn { width: 28px; height: 28px; font-size: .9rem; }
    .checkout-fields input,
    .checkout-fields textarea {
        font-size: .8rem;
        padding: 10px 12px;
    }
    .pay-option { padding: 12px; }
    .pay-option strong { font-size: .82rem; }
    .pay-option p { font-size: .68rem; }
}

/* =========================================================
   RESPONSIVE — 400px
   ========================================================= */
@media (max-width: 400px) {
    .bestseller-grid .add-to-cart { font-size: .58rem; padding: 9px 4px; }
    .bestseller-grid .cart-mini { width: 32px; }
    .menu-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}