:root {
  --wine: #3b080e;
  --red: #b71926;
  --red-dark: #8f101a;
  --cream: #fff8ed;
  --paper: #fffdf9;
  --ink: #25181a;
  --muted: #786a65;
  --line: #eadcd2;
  --green: #1d7657;
  --shadow: 0 18px 50px rgba(59, 8, 14, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Manrope, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(59,8,14,.96); backdrop-filter: blur(14px); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fffaf3; font-family: "Playfair Display", serif; font-size: 21px; font-weight: 800; }
.brand img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #e5b967; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: #f4d8ce; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: #fff; }
.cart-button, .primary-button, .ghost-button, .circle-button { border: 0; font-weight: 800; transition: .18s ease; }
.cart-button { background: #fff4e5; color: var(--wine); padding: 11px 16px; border-radius: 999px; }
.cart-button:hover, .primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }

.hero { min-height: 500px; background: radial-gradient(circle at 80% 30%, rgba(231,77,62,.45), transparent 26%), linear-gradient(115deg, #35060b, #790f18 58%, #a61825); overflow: hidden; position: relative; color: #fffaf3; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(#f0d096 1px, transparent 1px); background-size: 19px 19px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero-inner { position: relative; z-index: 1; min-height: 500px; display: flex; align-items: center; }
.hero-copy { max-width: 630px; padding: 70px 0; }
.eyebrow { color: #ffd78b; letter-spacing: .15em; text-transform: uppercase; font-size: 12px; font-weight: 800; }
h1 { max-width: 620px; margin: 13px 0 20px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(43px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
.hero p { color: #f6d9cd; max-width: 520px; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-button { padding: 14px 20px; border-radius: 10px; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.ghost-button { padding: 13px 19px; border-radius: 10px; color: #ffe4c2; background: transparent; border: 1px solid rgba(255,228,194,.5); }
.primary-button:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.hero-logo { position: absolute; right: max(3vw, 30px); bottom: -87px; width: min(44vw, 465px); border-radius: 50%; border: 12px solid rgba(255,229,189,.12); box-shadow: 0 25px 55px rgba(0,0,0,.25); }

.delivery-strip { background: #f1d9b2; color: var(--wine); padding: 15px 0; font-size: 14px; font-weight: 700; }
.delivery-strip .container { display: flex; align-items: center; gap: 10px; }
.delivery-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

.catalog { padding: 75px 0 95px; }
.section-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 30px; }
.section-top h2 { margin: 7px 0 0; font-family: "Playfair Display", serif; font-size: clamp(34px, 5vw, 50px); letter-spacing: -.035em; }
.section-top p { color: var(--muted); max-width: 380px; line-height: 1.6; margin: 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { background: transparent; color: var(--wine); padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.tab.active, .tab:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 5px 15px rgba(55,21,14,.04); }
.product-image { height: 222px; overflow: hidden; background: linear-gradient(135deg, #ead2b2, #9d1924); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.image-fallback { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 72px; background: linear-gradient(135deg,#4e0b11,#b31926); }
.badge { position: absolute; top: 13px; left: 13px; background: #f0bd59; color: #4a2100; padding: 6px 10px; font-weight: 800; font-size: 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.product-info { padding: 18px 18px 16px; }
.product-category { color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.product-info h3 { margin: 6px 0; font-size: 19px; letter-spacing: -.02em; }
.product-info p { min-height: 44px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.price { color: var(--wine); font-size: 20px; font-weight: 800; }
.add-button { border: none; color: #fff; background: var(--red); padding: 10px 13px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.add-button:hover { background: var(--red-dark); }
.empty-menu { grid-column: 1 / -1; padding: 54px 25px; text-align: center; border: 2px dashed #ddc6b8; border-radius: 18px; color: var(--muted); }
.empty-menu strong { display: block; color: var(--wine); font-size: 19px; margin-bottom: 8px; }

.footer { background: #26070b; color: #f4d8ce; padding: 42px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer small { color: #b89086; }

.backdrop { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(24,4,7,.56); backdrop-filter: blur(2px); }
.backdrop.open { display: block; }
.cart-panel { position: fixed; right: 0; top: 0; z-index: 50; width: min(430px, 100%); height: 100dvh; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; background: #fffaf3; box-shadow: -10px 0 30px rgba(0,0,0,.16); }
.cart-panel.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: "Playfair Display", serif; }
.circle-button { width: 37px; height: 37px; border-radius: 50%; background: #f3e7dc; color: var(--wine); font-size: 23px; }
.cart-items { flex: 1; padding: 15px 24px; overflow-y: auto; }
.cart-empty { color: var(--muted); text-align: center; padding: 50px 20px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item h4 { margin: 0 0 3px; font-size: 14px; }
.cart-item span { color: var(--muted); font-size: 13px; }
.quantity { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; background: #f6eee7; border-radius: 8px; padding: 3px; }
.quantity button { width: 27px; height: 25px; border: none; background: #fff; color: var(--wine); border-radius: 6px; font-weight: 800; }
.cart-price { font-weight: 800; white-space: nowrap; }
.cart-foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.cart-foot .primary-button { width: 100%; }

.modal { position: fixed; display: none; inset: 0; z-index: 60; align-items: center; justify-content: center; padding: 18px; background: rgba(24,4,7,.56); overflow-y: auto; }
.modal.open { display: flex; }
.modal-card { width: min(600px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; border-radius: 18px; background: #fffaf3; box-shadow: var(--shadow); }
.modal-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; }
.modal-top h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 30px; }
.order-form, .product-form { padding: 23px 24px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 800; color: var(--wine); }
.field input, .field textarea, .field select { width: 100%; padding: 12px; border: 1px solid #dcccc0; border-radius: 9px; outline: none; background: #fff; color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183,25,38,.1); }
.check-field { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.form-message { min-height: 22px; margin: 2px 0 12px; color: var(--red); font-size: 13px; font-weight: 700; }
.order-summary { margin-bottom: 16px; padding: 14px; background: #f8eee1; border-radius: 10px; color: var(--wine); font-size: 13px; line-height: 1.8; }
.order-summary strong { display: block; font-size: 16px; }

.admin-shell { min-height: 100dvh; background: #f6eee6; }
.admin-header { background: var(--wine); color: #fff9ee; }
.admin-header .nav { height: 74px; }
.admin-container { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 70px; }
.admin-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 28px; }
.admin-heading h1 { font-size: clamp(36px, 5vw, 53px); margin: 7px 0 0; color: var(--wine); }
.admin-heading p { margin: 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.stat { padding: 19px; background: #fffaf4; border: 1px solid var(--line); border-radius: 13px; }
.stat span { color: var(--muted); display: block; font-size: 12px; font-weight: 700; }
.stat strong { display: block; color: var(--wine); margin-top: 5px; font-size: 29px; }
.admin-grid { display: grid; grid-template-columns: minmax(330px, .88fr) minmax(0, 1.45fr); gap: 22px; align-items: start; }
.admin-panel { background: #fffaf4; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 21px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { margin: 0; color: var(--wine); font-family: "Playfair Display", serif; font-size: 25px; }
.admin-panel-head small { color: var(--muted); }
.admin-product-list, .orders-list { padding: 14px; }
.admin-product { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 11px; border-bottom: 1px solid #eee1d7; }
.admin-product:last-child { border-bottom: 0; }
.admin-product-image { height: 54px; border-radius: 9px; overflow: hidden; background: #5a0c14; }
.admin-product-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-product h3 { margin: 0 0 3px; font-size: 14px; }
.admin-product p { margin: 0; color: var(--muted); font-size: 12px; }
.small-button { border: 1px solid #d7c3b5; background: #fff; color: var(--wine); border-radius: 7px; padding: 7px 9px; font-size: 12px; font-weight: 800; }
.small-button.danger { color: #a10e19; }
.product-form { padding: 19px 21px 23px; }
.form-title { margin: 0 0 16px; color: var(--wine); font-size: 16px; }
.image-preview { display: none; width: 100%; height: 140px; margin-top: 7px; object-fit: cover; border-radius: 8px; }
.image-preview.show { display: block; }
.order-card { padding: 17px; border: 1px solid #eadfd5; border-radius: 12px; background: #fff; margin-bottom: 12px; }
.order-card.new { border-left: 5px solid var(--red); }
.order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.order-meta h3 { margin: 0; color: var(--wine); font-size: 15px; }
.order-time { color: var(--muted); font-size: 11px; }
.order-customer { padding: 11px 0; margin: 11px 0; border-top: 1px solid #f0e4da; border-bottom: 1px solid #f0e4da; font-size: 13px; line-height: 1.75; }
.order-customer a { color: var(--red); font-weight: 800; text-decoration: none; }
.order-lines { margin: 0; padding: 0; list-style: none; color: #5b4a45; font-size: 13px; line-height: 1.7; }
.order-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.order-bottom strong { color: var(--wine); }
.status-select { max-width: 165px; padding: 7px 8px; border: 1px solid #d7c3b5; border-radius: 7px; color: var(--wine); font-size: 12px; font-weight: 800; }
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 70% 20%, #a82631, transparent 30%), var(--wine); }
.login-card { width: min(405px, 100%); padding: 31px; border-radius: 18px; background: #fffaf3; box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.login-card .brand { color: var(--wine); margin-bottom: 27px; }
.login-card h1 { font-family: "Playfair Display", serif; color: var(--wine); font-size: 38px; margin: 0 0 8px; }
.login-card p { color: var(--muted); line-height: 1.6; font-size: 14px; margin: 0 0 23px; }
.login-card .primary-button { width: 100%; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 120px); max-width: calc(100% - 36px); padding: 12px 16px; border-radius: 10px; background: #25181a; color: #fff; box-shadow: var(--shadow); opacity: 0; transition: .24s ease; font-size: 14px; font-weight: 700; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 840px) {
  .hero-logo { opacity: .23; right: -60px; width: 380px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-panel.products-panel { order: 2; }
}
@media (max-width: 600px) {
  .container, .admin-container { width: min(100% - 28px, 1180px); }
  .nav { height: 66px; gap: 8px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 37px; height: 37px; }
  .nav-links { display: none; }
  .cart-button { padding: 9px 11px; font-size: 12px; }
  .hero, .hero-inner { min-height: 460px; }
  .hero-copy { padding: 54px 0; }
  .hero p { font-size: 15px; }
  .section-top, .footer-inner, .admin-heading { display: block; }
  .section-top p { margin-top: 13px; }
  .product-grid, .stats, .form-grid { grid-template-columns: 1fr; }
  .footer-inner > * + * { margin-top: 18px; }
  .form-grid .field { grid-column: auto; }
  .catalog { padding-top: 55px; }
  .product-image { height: 205px; }
  .delivery-strip { font-size: 12px; }
  .admin-container { padding-top: 28px; }
  .admin-heading p { margin-top: 10px; }
}

/* Public storefront refresh: compact delivery-service layout. */
body { background: #f7f7f4; }
.market-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid #e8e8e2; backdrop-filter: blur(14px); }
.market-top { border-bottom: 1px solid #efefe9; }
.market-top-inner { min-height: 48px; display: flex; align-items: center; gap: 20px; }
.market-brand { color: #192819; font-size: 19px; }
.market-brand img { width: 34px; height: 34px; border: 0; }
.market-city { display: inline-flex; align-items: center; gap: 6px; color: #576052; font-size: 13px; font-weight: 800; }
.market-city span { color: #26733d; font-size: 16px; }
.market-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.market-links a { color: #626861; text-decoration: none; font-size: 13px; font-weight: 700; }
.market-links a:hover { color: #26733d; }
.market-nav { min-height: 73px; display: flex; align-items: center; gap: 24px; }
.catalog-trigger { display: inline-flex; align-items: center; gap: 8px; border: 0; color: #1b2319; background: transparent; padding: 10px 0; font-weight: 800; font-size: 15px; }
.catalog-trigger span { color: #28733c; font-size: 20px; line-height: 1; }
.delivery-switch { display: inline-flex; gap: 5px; align-items: center; padding: 4px; background: #f0f2ed; border-radius: 999px; }
.delivery-mode { border: 0; border-radius: 999px; padding: 10px 16px; color: #5c6659; background: transparent; font-weight: 800; font-size: 13px; }
.delivery-mode.active { color: #fff; background: #28733c; box-shadow: 0 4px 10px rgba(40,115,60,.2); }
.delivery-mode span { padding-left: 7px; font-size: 19px; line-height: 0; }
.market-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.action-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f2ed; color: #2b3a2d; text-decoration: none; font-size: 22px; font-weight: 800; }
.action-button:hover { background: #dfeadd; }
.market-cart { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 13px; color: #fff; background: #28733c; }
.market-cart:hover { background: #1d6031; }
.market-cart b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #226836; background: #fff; font-size: 11px; }
.cart-icon { font-size: 16px; filter: grayscale(1) brightness(4); }

.market-page { overflow: hidden; }
.banner-carousel { position: relative; margin-top: 22px; }
.banner-slide { display: none; }
.banner-slide.active { display: grid; animation: banner-in .36s ease; }
.market-promo { grid-template-columns: 1.14fr .86fr; min-height: 314px; border-radius: 22px; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 42%, rgba(254,199,94,.25), transparent 28%), linear-gradient(118deg, #1e542f, #2e8241 60%, #3f9a4c); }
.banner-controls { position: absolute; z-index: 4; right: 25px; bottom: 14px; display: flex; align-items: center; gap: 9px; }
.banner-arrow, .banner-dot { border: 0; cursor: pointer; }
.banner-arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #2d6839; background: rgba(255,255,255,.9); font-size: 21px; line-height: 1; }
.banner-dots { display: flex; gap: 6px; }
.banner-dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.52); }
.banner-dot.active { width: 20px; border-radius: 9px; background: #fff; }
@keyframes banner-in { from { opacity: .35; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }
.promo-copy { position: relative; z-index: 1; padding: 43px 54px; }
.promo-chip { display: inline-block; padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #e6f5e4; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.promo-copy h1 { max-width: 630px; margin: 14px 0 12px; color: #fff; font-family: Manrope, Arial, sans-serif; font-size: clamp(31px, 3.7vw, 50px); line-height: 1.05; letter-spacing: -.055em; }
.promo-copy p { max-width: 590px; margin: 0; color: #dbf0dc; font-size: 14px; line-height: 1.65; }
.promo-actions { display: flex; gap: 10px; margin-top: 25px; }
.promo-actions .primary-button { background: #fff; color: #256d38; box-shadow: none; }
.promo-actions .primary-button:hover { background: #f2f8ef; }
.plain-button { border: 1px solid rgba(255,255,255,.48); border-radius: 9px; padding: 12px 16px; color: #fff; background: transparent; font-weight: 800; }
.promo-art { position: relative; display: grid; place-items: center; overflow: hidden; }
.promo-art::before, .promo-art::after { position: absolute; content: ""; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.promo-art::before { width: 355px; height: 355px; }
.promo-art::after { width: 510px; height: 510px; }
.promo-ring { position: absolute; width: 245px; height: 245px; border-radius: 50%; background: rgba(255,245,217,.16); }
.promo-art .promo-logo { position: relative; z-index: 1; width: 210px; height: 210px; object-fit: cover; border: 7px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 20px 35px rgba(10,45,19,.23); }
.promo-art.has-banner-image { background: #1d5d32; }
.promo-banner-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-art.has-banner-image::before { z-index: 1; inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(90deg, rgba(16,66,35,.25), rgba(12,55,29,.06)); }
.promo-art.has-banner-image::after { z-index: 1; }
.promo-art.has-banner-image .promo-ring { display: none; }
.promo-note { position: absolute; z-index: 2; right: 18px; bottom: 24px; display: grid; padding: 10px 13px; border-radius: 11px; background: #fff; color: #233325; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.promo-note strong { font-size: 13px; }
.promo-note span { color: #748172; font-size: 10px; }
.delivery-banner { margin-top: 22px; background: #fff; border-top: 1px solid #ebece7; border-bottom: 1px solid #ebece7; }
.delivery-banner-inner { min-height: 86px; display: flex; align-items: center; gap: 14px; }
.delivery-pin { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #28733c; background: #eaf3e9; font-size: 25px; }
.delivery-banner strong, .delivery-banner span { display: block; }
.delivery-banner strong { color: #1f2b20; font-size: 15px; }
.delivery-banner span { max-width: 660px; padding-top: 3px; color: #717970; font-size: 12px; line-height: 1.5; white-space: pre-line; }
.delivery-banner-button { margin-left: auto; border: 1px solid #d7dfd5; border-radius: 9px; padding: 10px 14px; color: #246c37; background: #fff; font-size: 12px; font-weight: 800; }
.delivery-banner-button:hover { border-color: #28733c; }
.market-catalog { padding: 48px 0 70px; }
.market-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.market-heading h2 { margin: 5px 0 0; color: #1d291e; font-family: Manrope, Arial, sans-serif; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.05em; }
.market-heading .eyebrow { color: #28733c; }
.market-heading p { max-width: 375px; margin: 0; color: #747b72; font-size: 13px; line-height: 1.65; }
.market-catalog .category-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px 27px; padding: 2px; scrollbar-width: none; }
.market-catalog .category-tabs::-webkit-scrollbar { display: none; }
.market-catalog .tab { flex: 0 0 auto; padding: 10px 15px; border-color: #dfe3dd; color: #3e473e; background: #fff; font-size: 13px; }
.market-catalog .tab.active, .market-catalog .tab:hover { border-color: #28733c; color: #fff; background: #28733c; }
.market-catalog .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.market-catalog .product-card { border: 0; border-radius: 15px; background: #fff; box-shadow: 0 3px 15px rgba(35,50,37,.075); }
.market-catalog .product-image { height: 220px; background: #edf0e9; }
.market-catalog .product-image img { transform: none; }
.market-catalog .product-card:hover .product-image img { transform: scale(1.035); }
.market-catalog .image-fallback { color: rgba(255,255,255,.88); background: linear-gradient(135deg,#1b4b2b,#499f54); }
.market-catalog .badge { top: 11px; left: 11px; color: #1e5730; background: #e4f1d7; box-shadow: none; }
.market-catalog .product-info { padding: 15px; }
.market-catalog .product-category { color: #709073; font-size: 10px; }
.market-catalog .product-info h3 { color: #1f2a20; font-size: 16px; }
.market-catalog .product-info p { min-height: 41px; color: #7b8379; font-size: 12px; }
.market-catalog .price { color: #1f2a20; font-size: 18px; }
.market-catalog .add-button { border-radius: 8px; color: #fff; background: #28733c; }
.market-catalog .add-button:hover { background: #1e5d30; }
.market-catalog .empty-menu { border-color: #c8ddc8; color: #718070; background: #fff; }
.market-catalog .empty-menu strong { color: #286e3a; }
.market-footer { padding: 43px 0 25px; color: #c8cec6; background: #252725; border-top: 4px solid #2f813f; }
.market-footer .market-brand { color: #fff; }
.market-footer-inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(330px, .85fr); gap: 62px; }
.footer-brand-block p { max-width: 560px; margin: 17px 0 0; color: #b9c0b7; font-size: 13px; line-height: 1.7; }
.footer-contacts { display: grid; gap: 12px; align-content: start; font-size: 13px; }
.footer-contacts a, .footer-contacts span { display: flex; align-items: center; gap: 11px; color: #e4e9e2; text-decoration: none; }
.footer-contacts a:hover { color: #a9dbad; }
.footer-contacts b { display: inline-grid; place-items: center; width: 20px; color: #83c88d; font-size: 17px; }
.footer-delivery-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #aab2a8; font-size: 12px; }
.footer-delivery-note span { color: #89ce92; font-weight: 800; }
.footer-delivery-note strong { max-width: 610px; color: #dce2da; font-weight: 600; text-align: right; white-space: pre-line; }
.settings-panel, .banners-panel { grid-column: 1 / -1; }
.settings-form { padding: 21px; }
.settings-form .field textarea { min-height: 106px; }
.settings-form .field[hidden] { display: none; }
.banner-form { padding: 19px 21px 23px; border-bottom: 1px solid #eadfd5; }
.admin-banner-list { display: grid; gap: 11px; padding: 17px 21px 21px; }
.admin-banner { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px; border: 1px solid #e8e4dc; border-radius: 10px; background: #fff; }
.admin-banner-image { height: 75px; overflow: hidden; border-radius: 8px; background: #eef1ea; }
.admin-banner-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-banner-number { color: #56835e; font-size: 11px; font-weight: 800; }
.admin-banner h3 { margin: 4px 0; color: #283228; font-size: 14px; }
.admin-banner p { margin: 0; color: #747b72; font-size: 12px; line-height: 1.35; }
.admin-banner-actions { display: flex; gap: 7px; }
.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
  .market-catalog .product-grid { grid-template-columns: repeat(3, 1fr); }
  .market-promo { grid-template-columns: 1fr .7fr; }
  .promo-copy { padding: 38px; }
}
@media (max-width: 720px) {
  body { padding-bottom: 74px; }
  .market-top { display: none; }
  .market-nav { min-height: 66px; gap: 12px; }
  .catalog-trigger { font-size: 0; }
  .catalog-trigger span { font-size: 25px; }
  .delivery-switch { margin-right: auto; }
  .delivery-mode { padding: 8px 10px; font-size: 11px; }
  .market-actions { margin-left: 0; gap: 5px; }
  .action-button { display: none; }
  .profile-button { display: grid; }
  .market-cart { min-height: 38px; padding: 7px 9px; }
  .market-cart .cart-label { display: none; }
  .banner-carousel { margin-top: 12px; }
  .market-promo { min-height: 0; border-radius: 16px; }
  .banner-slide.active { display: block; }
  .banner-controls { right: 12px; bottom: 187px; }
  .promo-copy { padding: 28px 24px 24px; }
  .promo-copy h1 { max-width: 390px; font-size: 31px; }
  .promo-copy p { font-size: 13px; }
  .promo-art { height: 174px; }
  .promo-art .promo-logo { width: 150px; height: 150px; }
  .promo-art::before { width: 260px; height: 260px; }
  .promo-art::after { width: 360px; height: 360px; }
  .promo-ring { width: 175px; height: 175px; }
  .promo-note { right: 18px; bottom: 15px; }
  .delivery-banner-inner { min-height: 0; align-items: flex-start; padding: 16px 0; }
  .delivery-banner span { font-size: 11px; }
  .delivery-banner-button { display: none; }
  .market-heading { display: block; margin-bottom: 19px; }
  .market-heading p { margin-top: 9px; }
  .market-catalog { padding: 34px 0 47px; }
  .market-catalog .product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .market-catalog .product-image { height: 150px; }
  .market-catalog .product-info { padding: 12px; }
  .market-catalog .product-info h3 { font-size: 14px; }
  .market-catalog .product-info p { min-height: 37px; font-size: 11px; }
  .market-catalog .product-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .market-catalog .add-button { width: 100%; padding: 9px 6px; }
  .market-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-delivery-note { display: grid; gap: 8px; margin-top: 25px; }
  .footer-delivery-note strong { text-align: left; }
  .mobile-bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 66px; padding: 6px max(7px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid #e3e8e1; background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(30,55,35,.11); backdrop-filter: blur(12px); }
  .mobile-bottom-nav button { display: grid; place-items: center; gap: 2px; border: 0; border-radius: 13px; padding: 4px 2px; color: #26362b; background: transparent; font-size: 10px; font-weight: 800; line-height: 1.05; }
  .mobile-bottom-nav button span { font-size: 20px; line-height: 1; filter: saturate(.45); }
  .mobile-bottom-nav button.active { color: #28733c; background: #edf5ec; }
  .mobile-bottom-nav button.active span { filter: none; }
  .admin-banner { grid-template-columns: 88px minmax(0, 1fr); }
  .admin-banner-image { height: 70px; }
  .admin-banner-actions { grid-column: 1 / -1; }
}
