:root {
  --green: #1e9a48;
  --green-dark: #157a37;
  --wine: #c8193f;
  --grape: #8a5a86;
  --wood: #6b4a2f;
  --cream: #faf6ef;
  --ink: #2b2522;
  --muted: #7a6f68;
  --line: #e8e0d4;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Cabin, system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.script { font-family: Yesteryear, cursive; font-weight: 400; color: var(--wine); font-size: 2.4rem; margin: 40px 0 18px; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 64px; width: auto; }
.top-contact { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.top-contact a { text-decoration: none; color: var(--wood); }
.soc { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--cream); border: 1px solid var(--line); }
.soc svg { width: 18px; height: 18px; fill: var(--wood); }
.soc:hover { background: var(--green); border-color: var(--green); }
.soc:hover svg { fill: #fff; }

/* menu button + slide-in panel (Laon-style) */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 4px; padding: 10px 14px; font: 700 .85rem Cabin, sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.menu-btn:hover { background: var(--wine); }
.bars { display: inline-flex; flex-direction: column; gap: 4px; }
.bars i { display: block; width: 18px; height: 2px; background: #fff; }
.panel-shade { position: fixed; inset: 0; background: rgba(20,12,8,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #1f1814; color: #e9e1d6; z-index: 50; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; display: flex; flex-direction: column; padding: 64px 36px 30px; overflow-y: auto; }
.menu-open .panel { transform: none; visibility: visible; transition: transform .35s ease; }
.menu-open .panel-shade { opacity: 1; pointer-events: auto; }
.menu-open { overflow: hidden; }
.panel-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #e9e1d6; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.panel-close:hover { color: var(--wine); }
.panel-links { display: flex; flex-direction: column; }
.panel-links a { font-family: Yesteryear, cursive; font-size: 2rem; color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 1px solid #3a302a; transition: color .2s, padding .2s; }
.panel-links a:hover, .panel-links a.on { color: #ff6b8a; padding-left: 8px; }
.panel-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.panel-foot a { color: #e9e1d6; text-decoration: none; }
.panel-soc { display: flex; gap: 10px; margin-top: 10px; }
.panel-soc .soc, .foot-soc .soc { background: transparent; border-color: #5a4d44; }
.panel-soc .soc svg, .foot-soc .soc svg { fill: #e9e1d6; }
.foot-soc { display: flex; gap: 10px; }
.menu { background: var(--wood); }
.menu .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.menu .wrap::-webkit-scrollbar { display: none; }
.menu a { color: #fff; text-decoration: none; padding: 12px 16px; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu a.on { background: var(--green); }

/* hero */
.hero { background-size: cover; background-position: center; position: relative; min-height: 420px; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,18,10,.85), rgba(30,18,10,.15) 70%); }
.hero-text { position: relative; color: #fff; padding-top: 40px; padding-bottom: 44px; width: 100%; }
.hero h1 { font-family: Yesteryear, cursive; font-weight: 400; font-size: 3.4rem; margin: 0 0 6px; }
.hero p { font-size: 1.15rem; max-width: 560px; margin: 0 0 20px; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 4px; font-weight: 700; margin: 4px 8px 4px 0; }
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); padding: 10px 20px; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; text-align: center; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tile img { height: 120px; width: 100%; object-fit: contain; margin-bottom: 8px; }
.tile span { display: block; font-weight: 700; color: var(--wood); }
.tile small { color: var(--muted); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.card-img { background: #fff; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; padding: 12px; }
.card-img img { max-height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px 16px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card h3 { font-size: 1rem; margin: 0 0 8px; font-weight: 600; }
.price { color: var(--wine); font-weight: 700; font-size: 1.1rem; }
.price.big { font-size: 1.8rem; margin: 6px 0 16px; }
.card.sold { opacity: .6; }
.card.sold .price { color: var(--muted); }

/* product page */
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 22px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; margin: 20px 0 50px; }
.product-img { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.product-img img { max-height: 520px; object-fit: contain; }
.product-info h1 { margin: 0; font-size: 1.9rem; color: var(--wood); }
.desc p, .desc ul { margin: 0 0 12px; }
.order { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.order p { margin: 0 0 8px; color: var(--muted); }

/* about + footer */
.about { background: #fff; border-top: 1px solid var(--line); padding-bottom: 40px; margin-top: 20px; }
.foot { margin-top: 0; }
.about p { max-width: 760px; font-size: 1.05rem; }
.foot { background: var(--ink); color: #d9d1c7; padding: 36px 0 18px; }
.foot h4 { color: #fff; margin: 0 0 8px; }
.foot a { color: #d9d1c7; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.legal { font-size: .85rem; color: #9a8f86; margin-top: 24px; padding-top: 14px; border-top: 1px solid #443b36; }

@media (max-width: 720px) {
  .top { position: static; }
  .top-contact .txt, .top-contact .soc { display: none; }
  .menu { display: none; }
  .logo img { height: 48px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 2.5rem; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .script { font-size: 2rem; }
}

/* contact: photo | details | map */
.contact { display: grid; grid-template-columns: 1fr 1fr 1.5fr; min-height: 460px; background: #1f1814; }
.contact-photo { background-size: cover; background-position: center; }
.contact-text { padding: 56px 44px; color: #c9bfb4; display: flex; flex-direction: column; justify-content: center; }
.contact-text .script { margin: 0 0 10px; color: #ff6b8a; }
.contact-lead { margin: 0 0 22px; }
.contact-text p { margin: 0 0 18px; line-height: 1.9; }
.contact-text span { color: #fff; }
.contact-text a { color: #ff6b8a; text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }
.contact-soc { display: flex; gap: 10px; margin-bottom: 24px; }
.contact-soc .soc { background: transparent; border-color: #5a4d44; }
.contact-soc .soc svg { fill: #e9e1d6; }
.contact-soc .soc:hover { background: var(--green); border-color: var(--green); }
.contact-text .btn.light { color: #fff; border-color: #fff; align-self: flex-start; }
.contact-text .btn.light:hover { background: #fff; color: var(--ink); text-decoration: none; }
.contact-map { position: relative; min-height: 460px; background: #e5e3df; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .contact-photo { min-height: 240px; }
  .contact-text { padding: 36px 16px; }
  .contact-map { min-height: 0; height: 340px; }
}

/* age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15,10,8,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:not(.age-ok) body:not(.admin) { overflow: hidden; }
.age-ok .age-gate { display: none; }
.age-box { background: #111; color: #fff; max-width: 520px; width: 100%; padding: 40px 28px; text-align: center; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.age-box h2 { font-size: 2.4rem; font-weight: 400; margin: 0 0 14px; }
.age-box p { color: #d6d0ca; margin: 0 0 26px; }
.age-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.age-btns button { font: 700 .85rem Cabin, sans-serif; text-transform: uppercase; letter-spacing: .04em; padding: 14px 22px; border-radius: 2px; cursor: pointer; border: 0; min-width: 170px; }
.age-yes { background: #3a0710; color: #fff; }
.age-yes:hover { background: var(--wine); }
.age-under { background: #fff; color: #222; }
.age-under:hover { background: #ddd; }
.age-denied { display: none; }
.age-no .age-ask { display: none; }
.age-no .age-denied { display: block; }
.age-no .age-denied h2 { color: #ff6b8a; }
.age-no .age-denied p { margin: 0; }
@media (max-width: 720px) { .age-box h2 { font-size: 1.9rem; } .age-btns button { width: 100%; } }

/* === wine3php additions === */

/* top promo banner */
.promo-banner { background: var(--wine); color: #fff; text-align: center; padding: 7px 0; font-size: .9rem; letter-spacing: .04em; font-weight: 600; }
.promo-banner .wrap { padding: 0 16px; }

/* phones block */
.phones { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.3; gap: 2px; }
.top-contact .phones a.txt, .top-contact .phones a.land { color: #000; font-size: 1rem; font-weight: 700; }
@media (max-width: 720px) {
  .phones { align-items: flex-start; }
}

/* email in header: stand out in green */
.top-contact a.txt[href^="mailto:"] { color: var(--green-dark); font-weight: 700; }
.top-contact a.txt[href^="mailto:"]:hover { color: var(--green); text-decoration: underline; }

/* brand-colored social icons */
.soc[aria-label="Facebook"] { background: #fff; border-color: #1877f2; }
.soc[aria-label="Facebook"] svg { fill: #1877f2; }
.soc[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.soc[aria-label="Facebook"]:hover svg { fill: #fff; }

.soc[aria-label="Instagram"] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }
.soc[aria-label="Instagram"] svg { fill: #fff; }
.soc[aria-label="Instagram"]:hover { filter: brightness(1.1); }

/* keep footer/panel socials readable on dark backgrounds (override) */
.panel-soc .soc[aria-label="Facebook"], .foot-soc .soc[aria-label="Facebook"] { background: transparent; }
.panel-soc .soc[aria-label="Facebook"] svg, .foot-soc .soc[aria-label="Facebook"] svg { fill: #1877f2; }
.panel-soc .soc[aria-label="Facebook"]:hover, .foot-soc .soc[aria-label="Facebook"]:hover { background: #1877f2; }
.panel-soc .soc[aria-label="Facebook"]:hover svg, .foot-soc .soc[aria-label="Facebook"]:hover svg { fill: #fff; }

/* opening hours */
.hours { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.hours strong { color: var(--wine); font-weight: 700; }
.panel-foot .hours { color: #d9d1c7; }
.panel-foot .hours strong { color: #ff6b8a; }

/* product media + gallery */
.product-media { display: flex; flex-direction: column; gap: 12px; }
.gallery { display: flex; gap: 10px; }
.gallery .thumb { display: block; flex: 0 0 90px; height: 90px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 6px; cursor: zoom-in; transition: transform .15s, border-color .15s; }
.gallery .thumb:hover { transform: translateY(-2px); border-color: var(--wine); }
.gallery .thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .gallery .thumb { flex: 0 0 72px; height: 72px; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,6,4,.9); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; background: #fff; padding: 10px; border-radius: 4px; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lb-close:hover { color: var(--wine); }

/* order form (on product page) */
.order h3 { margin: 0 0 8px; color: var(--wood); font-size: 1.1rem; }
.order-help { margin: 0 0 14px; }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.order-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--wood); font-weight: 600; }
.order-form label.full { grid-column: 1 / -1; }
.order-form input, .order-form textarea { font: 400 1rem Cabin, sans-serif; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.order-form textarea { resize: vertical; min-height: 90px; }
.order-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.order-sent { background: #e8f5ee; border: 1px solid #b7dcc4; color: #15703a; padding: 16px 18px; border-radius: 6px; margin-top: 16px; }
@media (max-width: 720px) { .order-form { grid-template-columns: 1fr; } }

/* flash */
.flash { background: #fff8e5; border: 1px solid #e7d6a8; color: #6b4e07; padding: 10px 14px; border-radius: 4px; margin: 14px 0; }
.flash.err { background: #fdecec; border-color: #efb8b8; color: #932121; }
.empty { color: var(--muted); font-style: italic; margin: 20px 0 40px; }

/* home: simplified contact section */
.contact-sec { background-size: cover; background-position: center; position: relative; margin: 40px 0 0; padding: 60px 24px; color: #fff; max-width: none; }
.contact-sec::before { content: ""; position: absolute; inset: 0; background: rgba(20,12,8,.65); }
.contact-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.contact-inner .script { color: #ff8aa1; margin: 0 0 10px; }
.contact-inner a { color: #ff8aa1; text-decoration: none; }
.contact-inner a:hover { text-decoration: underline; }
.contact-inner .hours { color: #e9e1d6; margin-top: 10px; }
.contact-inner .hours strong { color: #ff8aa1; }

/* === admin panel === */
body.admin { background: #f3efe8; }
.admin-top { background: #1f1814; color: #e9e1d6; }
.admin-top-row { display: flex; align-items: center; gap: 20px; padding: 10px 16px; }
.admin-top .logo img { height: 44px; }
.admin-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.admin-nav a { color: #e9e1d6; text-decoration: none; padding: 8px 12px; border-radius: 3px; font-size: .9rem; }
.admin-nav a:hover { background: #3a302a; }
.admin-nav a.danger { color: #ff8aa1; }
.admin-main { padding: 24px 0 60px; }
.admin-main h1 { margin: 0 0 14px; color: var(--wood); }
.admin-main h2 { margin: 30px 0 12px; color: var(--wood); font-size: 1.3rem; }
.admin-main h3 { margin: 20px 0 10px; color: var(--wood); font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .9rem; }

.admin-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }

.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 20px 0 30px; }
.admin-tiles .t { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.admin-tiles .t strong { font-size: 2.2rem; color: var(--wine); line-height: 1; }
.admin-tiles .t span { color: var(--wood); font-weight: 700; }
.admin-tiles .t small { color: var(--muted); }

.admin-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; background: #fff; padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.admin-form.narrow { max-width: 420px; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--wood); font-weight: 600; }
.admin-form input[type=text], .admin-form input[type=email], .admin-form input[type=password], .admin-form input[type=url], .admin-form input[type=number], .admin-form input[type=search], .admin-form input[type=tel], .admin-form select, .admin-form textarea { font: 400 .95rem Cabin, sans-serif; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.admin-form textarea { font-family: Menlo, Consolas, monospace; min-height: 180px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
.admin-form .checks { display: flex; flex-wrap: wrap; gap: 20px; margin: 6px 0 2px; }
.admin-form .checks label { flex-direction: row; align-items: center; gap: 6px; }
.admin-form.inline-add { flex-direction: row; align-items: center; }
.admin-form.inline-add input[type=text] { flex: 1; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.admin-cols .col { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 820px) { .admin-cols { grid-template-columns: 1fr; } }

.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }

.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.form-actions .right { margin-left: auto; }

.btn.tiny { padding: 4px 10px; font-size: .8rem; margin: 0; }
.btn.danger { background: #932121; }
.btn.danger:hover { background: #6e1818; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.admin-table th { background: #faf6ef; color: var(--wood); font-weight: 700; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .thumb-cell { width: 60px; }
.admin-table .thumb-cell img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.row-actions { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.row-actions a { color: var(--green-dark); }

.pill { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill.on { background: #e2f3e8; color: #15703a; }
.pill.off { background: #f3e2e2; color: #932121; }
.pill.feat { background: #fff2d1; color: #8a6600; margin-left: 4px; }

.preview { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 8px; }
.preview img { max-height: 220px; margin: 0 auto; }
.thumbs-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.thumbs-admin .t { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px; text-align: center; width: 110px; }
.thumbs-admin .t img { height: 80px; object-fit: contain; margin: 0 auto 6px; }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 10px 0; }
.order-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.order-card blockquote { margin: 8px 0; padding: 8px 12px; background: #faf6ef; border-left: 3px solid var(--wine); color: var(--ink); }

/* === events gallery (public) === */
.events-grid { column-count: 2; column-gap: 14px; margin: 20px 0 50px; }
.events-grid .e { break-inside: avoid; display: block; margin: 0 0 14px; border-radius: 4px; overflow: hidden; cursor: zoom-in; text-decoration: none; transition: transform .15s, box-shadow .15s; position: relative; }
.events-grid .e:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.events-grid .e img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 720px) { .events-grid { column-count: 1; } }

/* lightbox prev/next arrows */
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; font-size: 1.6rem; width: 54px; height: 80px; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 4px; line-height: 1; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover, .lb-next:hover { background: var(--wine); }
@media (max-width: 720px) {
  .lb-prev, .lb-next { width: 44px; height: 66px; font-size: 1.3rem; opacity: .7; background: rgba(0,0,0,.3); }
}

/* === events gallery (admin) === */
.events-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 10px 0 20px; }
.events-admin-grid .e { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.events-admin-grid .e img { width: 100%; height: 140px; object-fit: contain; background: #faf6ef; border-radius: 3px; display: block; }
.events-admin-grid .e input[type=text] { font: 400 .85rem Cabin, sans-serif; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; }
.events-admin-grid .e-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.events-admin-grid .e-row label { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); margin: 0; }
.events-admin-grid .e-row input[type=number] { padding: 4px 6px; font-size: .8rem; border: 1px solid var(--line); border-radius: 3px; }

/* mobile-only contact strip (shown just below the brand bar on small screens) */
.mobile-contact { display: none; }
@media (max-width: 720px) {
  .mobile-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    background: var(--cream);
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-contact .mc-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    line-height: 1;
  }
  .mobile-contact .mc-item.email {
    color: var(--green-dark);
    flex-basis: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-contact .mc-item svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
}

/* admin mail log viewer */
.mail-log-view { background: #1f1814; color: #d9d1c7; padding: 14px 16px; border-radius: 6px; font: 400 .78rem/1.5 Menlo, Consolas, monospace; max-height: 380px; overflow: auto; white-space: pre; margin: 0 0 10px; }

/* bordered note inside the order form (e.g. "order several wines" hint) */
.order-form .order-note {
  grid-column: 1 / -1;
  background: #fff8e5;
  border: 1px solid #e7d6a8;
  color: #6b4e07;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.4;
}

/* footer: legal line (left) + designer credit (right) on same bottom strip */
.legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.legal-left { flex: 1 1 auto; }
.legal-right { flex: 0 0 auto; text-align: right; }
.legal-right a { color: #9a8f86; text-decoration: underline; }
.legal-right a:hover { color: #ff8aa1; }
@media (max-width: 720px) {
  .legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .legal-right { text-align: left; }
}

/* === cart === */
/* header cart button: same shape as the Menu button, green */
.top-contact a.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border-radius: 4px; padding: 8px 12px; font: 700 .85rem Cabin, sans-serif; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.top-contact a.cart-btn:hover { background: var(--green-dark); }
.cart-btn svg { width: 18px; height: 18px; fill: #fff; }
.cart-n { background: #fff; color: var(--green-dark); border-radius: 10px; min-width: 22px; padding: 1px 6px; text-align: center; letter-spacing: 0; font-size: .8rem; }
@media (max-width: 720px) { .cart-btn .lbl { display: none; } }

/* product page: quantity + Add to cart on one row */
.order-form.cart-add { grid-template-columns: 140px auto; align-items: end; }
.order-form.cart-add .btn { grid-column: auto; margin: 0; }
.in-cart { margin: 12px 0 0; color: var(--wood); font-weight: 600; }
.order-sent a { color: #15703a; font-weight: 700; }

/* cart page */
.cart-hidden-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table th { background: var(--cream); color: var(--wood); font-size: .9rem; }
.cart-table .ct-img { width: 70px; }
.cart-table .ct-img img { width: 56px; height: 72px; object-fit: contain; }
.cart-table .ct-name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.cart-table .ct-name a:hover { color: var(--wine); }
.cart-table .ct-price, .cart-table .ct-line { white-space: nowrap; }
.cart-table .ct-line { color: var(--wine); font-weight: 700; }
.cart-table .ct-qty input { width: 70px; font: 400 1rem Cabin, sans-serif; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.cart-table tfoot td { border-bottom: 0; }
.cart-table .ct-total-lbl { text-align: right; font-weight: 700; color: var(--wood); }
.cart-table .ct-total { color: var(--wine); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.cart-rm { background: none; border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.cart-rm:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.cart-actions .btn { margin: 0; font: 700 1rem Cabin, sans-serif; cursor: pointer; }
.cart-form .order { margin-bottom: 50px; }
@media (max-width: 720px) {
  .cart-table th, .cart-table td { padding: 8px 5px; font-size: .9rem; }
  .cart-table .ct-img { width: 52px; }
  .cart-table .ct-img img { width: 40px; height: 56px; }
  .cart-table .ct-qty input { width: 56px; }
  .cart-table .ct-total-lbl { text-align: left; }
}

/* admin: wines inside an order card */
.order-items { margin: 8px 0 10px; }

/* cart: Delivery / Collection toggle */
.order-form [hidden] { display: none !important; }
.dc-field { display: flex; flex-direction: column; gap: 6px; }
.dc-label { font-size: .9rem; color: var(--wood); font-weight: 600; }
.dc-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc-opt { position: relative; cursor: pointer; }
.dc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-opt span { display: block; text-align: center; padding: 11px 10px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--wood); font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.dc-opt:hover span { border-color: var(--green); }
.dc-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.dc-opt input:focus-visible + span { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.dc-collect { background: #e8f5ee; border: 1px solid #b7dcc4; color: #15703a; padding: 10px 14px; border-radius: 4px; font-size: .95rem; line-height: 1.5; }
