/* Tijdelijke speciaalbier-app voor 29 augustus 2026 */
.apps-header-actions { display:flex; align-items:center; gap:10px; }
.beer-event-button {
  min-height:48px; padding:0 15px; display:flex; align-items:center; gap:10px;
  border:1px solid rgba(245,158,11,.26); border-radius:16px;
  background:linear-gradient(145deg,#fff7d6,#ffedd5); color:#7c2d12;
  box-shadow:0 8px 24px rgba(146,64,14,.12); font-weight:900; cursor:pointer;
}
.beer-event-button span:first-child { font-size:24px; }
.beer-event-button-copy { display:grid; text-align:left; line-height:1.05; }
.beer-event-button-copy small { color:#a16207; font-size:9px; letter-spacing:.07em; text-transform:uppercase; }
.beer-event-button-copy strong { font-size:12px; }
.beer-event-button-stock { min-width:30px; height:30px; padding:0 8px; display:grid; place-items:center; border-radius:999px; background:#fff; color:#b45309; font-size:10px; }

.beer-page {
  color:#20180f;
  background:
    radial-gradient(circle at 15% 8%,rgba(251,191,36,.3),transparent 25rem),
    radial-gradient(circle at 90% 4%,rgba(249,115,22,.2),transparent 29rem),
    linear-gradient(145deg,#fffaf0 0%,#fff3d6 47%,#f9efe0 100%);
}
.beer-page::before {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.28;
  background-image:radial-gradient(rgba(120,73,28,.18) .7px,transparent .7px); background-size:18px 18px;
}
.beer-app-shell {
  position:relative; z-index:1; width:100%; height:100%; padding:18px 24px 42px;
  display:grid; grid-template-rows:auto auto auto minmax(0,1fr) auto; gap:12px;
}
.beer-app-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.beer-app-title { display:flex; align-items:center; gap:15px; min-width:0; }
.beer-app-logo {
  width:62px; height:62px; display:grid; place-items:center; flex:0 0 auto;
  border-radius:22px; background:linear-gradient(145deg,#fbbf24,#f97316); color:white;
  font-size:34px; box-shadow:0 15px 30px rgba(180,83,9,.22),inset 0 1px 0 rgba(255,255,255,.48);
}
.beer-app-title span { display:block; color:#b45309; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.beer-app-title h1 { margin:3px 0 3px; font-size:clamp(30px,3.6vw,46px); line-height:.98; letter-spacing:-.05em; }
.beer-app-title p { margin:0; color:#7c6753; font-size:12px; }
.beer-header-actions { display:flex; align-items:center; gap:10px; }
.beer-random-header,.beer-reset-button,.beer-back-button {
  min-height:44px; border-radius:14px; padding:0 14px; font-weight:900; cursor:pointer;
}
.beer-random-header { border:0; background:#7c2d12; color:white; box-shadow:0 8px 18px rgba(124,45,18,.18); }
.beer-reset-button { border:1px solid #ead9c2; background:rgba(255,255,255,.72); color:#8b6d4a; }
.beer-back-button { border:1px solid #ead9c2; background:rgba(255,255,255,.82); color:#5b4632; }
.beer-overview-bar {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px;
  padding:10px 14px; border:1px solid rgba(234,217,194,.9); border-radius:20px;
  background:rgba(255,255,255,.72); box-shadow:0 9px 24px rgba(83,51,24,.07); backdrop-filter:blur(10px);
}
.beer-stats { display:flex; align-items:center; gap:8px; }
.beer-stat { min-width:88px; padding:7px 10px; display:grid; grid-template-columns:auto 1fr; gap:0 7px; align-items:center; border-radius:14px; background:#fff8e7; }
.beer-stat strong { grid-row:1 / 3; font-size:25px; line-height:1; color:#b45309; }
.beer-stat span { font-size:10px; font-weight:900; }
.beer-stat small { color:#8b735b; font-size:8.5px; }
.beer-stock-track { position:relative; height:10px; overflow:hidden; border-radius:999px; background:#eadcc8; }
.beer-stock-track::after { content:""; position:absolute; inset:0 auto 0 0; width:var(--beer-progress,100%); border-radius:inherit; background:linear-gradient(90deg,#f59e0b,#f97316); transition:width .35s ease; }
.beer-last-choice {
  min-width:230px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:6px 7px 6px 10px; border-radius:14px; background:#ecfdf3; color:#166534;
}
.beer-last-choice[hidden] { display:none; }
.beer-last-choice > span { font-size:22px; }
.beer-last-choice small,.beer-last-choice strong { display:block; }
.beer-last-choice small { font-size:8px; text-transform:uppercase; letter-spacing:.07em; opacity:.7; }
.beer-last-choice strong { max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
.beer-last-choice button { min-height:30px; border:0; border-radius:10px; padding:0 9px; background:white; color:#15803d; font-size:9px; font-weight:900; cursor:pointer; }
.beer-filter-row { display:flex; gap:8px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.beer-filter-row::-webkit-scrollbar { display:none; }
.beer-filter-chip { flex:0 0 auto; min-height:36px; padding:0 12px; border:1px solid #ead9c2; border-radius:999px; background:rgba(255,255,255,.72); color:#735a40; font-weight:850; cursor:pointer; }
.beer-filter-chip span { display:inline-grid; place-items:center; min-width:20px; height:20px; margin-left:5px; border-radius:999px; background:#f4e9d9; font-size:9px; }
.beer-filter-chip.active { border-color:#f59e0b; background:#fffbeb; color:#9a3412; box-shadow:0 0 0 2px rgba(245,158,11,.1); }
.beer-catalog { min-height:0; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:0 4px 18px 0; }
.beer-group { margin:0 0 17px; }
.beer-group-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:0 3px 8px; }
.beer-group-heading > div { display:flex; align-items:center; gap:9px; }
.beer-group-heading > div > span { width:35px; height:35px; display:grid; place-items:center; border-radius:12px; background:rgba(255,255,255,.72); font-size:19px; }
.beer-group-heading h2 { margin:0; font-size:18px; letter-spacing:-.03em; }
.beer-group-heading p { margin:2px 0 0; color:#8b735b; font-size:9.5px; }
.beer-group-heading small { color:#a08466; font-size:9px; font-weight:800; }
.beer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.beer-card {
  min-width:0; min-height:103px; padding:10px; display:grid; grid-template-columns:57px minmax(0,1fr) auto; gap:10px; align-items:center;
  border:1px solid rgba(234,217,194,.94); border-radius:19px; background:rgba(255,255,255,.82); color:#2b2015; text-align:left;
  box-shadow:0 9px 22px rgba(83,51,24,.07); cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.beer-card:active { transform:scale(.985); }
.beer-card.sold-out { opacity:.55; filter:saturate(.65); }
.beer-card-copy { min-width:0; display:block; }
.beer-card-title { display:block; min-height:29px; font-size:12px; line-height:1.18; font-weight:950; }
.beer-card-meta { display:flex; align-items:center; gap:6px; margin-top:4px; min-width:0; }
.beer-card-meta b { flex:0 0 auto; padding:3px 5px; border-radius:7px; background:#fff3cd; color:#a14308; font-size:9px; }
.beer-card-meta em { min-width:0; color:#7c6753; font-style:normal; font-size:8.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.beer-tried-compact { width:max-content; max-width:100%; margin-top:5px; padding:3px 6px; display:inline-flex; align-items:center; gap:4px; border-radius:999px; background:#eefbf3; color:#157347; font-size:7.5px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.beer-tried-compact > span { width:14px; height:14px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:#22c55e; color:white; font-size:8px; }
.beer-card-stock { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:8px; }
.beer-card-stock strong { color:#8b5b23; font-size:9px; }
.beer-card-arrow { color:#bd9d76; font-size:20px; }
.beer-stock-dots { display:flex; align-items:center; gap:3px; }
.beer-stock-dots i { width:6px; height:6px; border-radius:999px; background:#e5d6c4; }
.beer-stock-dots i.full { background:#f59e0b; box-shadow:0 0 0 2px rgba(245,158,11,.1); }
.beer-label-art {
  position:relative; width:57px; height:72px; overflow:hidden; display:grid; place-items:center; align-content:center;
  border-radius:14px 14px 17px 17px; border:2px solid rgba(255,255,255,.78); color:white; box-shadow:0 8px 16px rgba(52,34,18,.15),inset 0 0 0 1px rgba(255,255,255,.22);
}
.beer-label-art::before,.beer-label-art::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.13); }
.beer-label-art::before { width:48px; height:48px; right:-22px; top:-19px; }
.beer-label-art::after { width:37px; height:37px; left:-17px; bottom:-14px; }
.beer-label-art .beer-label-symbol { position:relative; z-index:1; font-size:23px; line-height:1; }
.beer-label-art strong { position:relative; z-index:1; max-width:50px; margin-top:4px; font-size:8px; line-height:1.02; text-align:center; text-transform:uppercase; letter-spacing:.02em; }
.beer-label-art small { position:relative; z-index:1; margin-top:3px; padding:2px 4px; border-radius:999px; background:rgba(255,255,255,.18); font-size:7px; font-weight:900; }
.beer-label-art.large { width:105px; height:132px; border-radius:22px 22px 27px 27px; }
.beer-label-art.large .beer-label-symbol { font-size:43px; }
.beer-label-art.large strong { max-width:90px; font-size:13px; }
.beer-label-art.large small { margin-top:6px; font-size:10px; padding:3px 7px; }
.theme-field { background:linear-gradient(160deg,#e7a72f,#7f6b18 65%,#365314); }
.theme-flame { background:linear-gradient(160deg,#fb7185,#f97316 52%,#7c2d12); }
.theme-rose { background:linear-gradient(160deg,#f9a8d4,#ec4899 56%,#831843); }
.theme-witch { background:linear-gradient(160deg,#6d28d9,#312e81 58%,#111827); }
.theme-forest { background:linear-gradient(160deg,#c18438,#7c4a1d 50%,#234b2b); }
.theme-monastery { background:linear-gradient(160deg,#f8d06a,#b45309 60%,#713f12); }
.theme-rogue { background:linear-gradient(160deg,#111827,#334155 55%,#7c2d12); }
.theme-honey { background:linear-gradient(160deg,#fde047,#f59e0b 55%,#a16207); }
.theme-child { background:linear-gradient(160deg,#60a5fa,#8b5cf6 54%,#4c1d95); }
.theme-prestige { background:linear-gradient(160deg,#f0d9a2,#a16207 48%,#422006); }
.theme-abbey { background:linear-gradient(160deg,#7dd3fc,#2563eb 50%,#312e81); }
.theme-fox { background:linear-gradient(160deg,#fdba74,#ea580c 52%,#7c2d12); }
.theme-whisky { background:linear-gradient(160deg,#d6a451,#78350f 54%,#1c1917); }
.theme-night { background:linear-gradient(160deg,#475569,#111827 55%,#020617); }
.theme-trappist { background:linear-gradient(160deg,#fef3c7,#d97706 54%,#78350f); }
.theme-island { background:linear-gradient(160deg,#38bdf8,#0e7490 54%,#164e63); }
.theme-citrus { background:linear-gradient(160deg,#fde047,#f97316 54%,#7e22ce); }
.theme-botanic { background:linear-gradient(160deg,#f97316,#0f766e 54%,#134e4a); }
.theme-goldzero { background:linear-gradient(160deg,#fef3c7,#f59e0b 54%,#7c2d12); }
.beer-app-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; color:#8b735b; font-size:9.5px; padding:0 4px; }
.beer-app-footer strong { color:#6b4423; }

.beer-detail-dialog { width:min(880px,calc(100% - 26px)); max-height:calc(100dvh - 26px); padding:0; border:0; border-radius:28px; overflow:hidden; background:#fffaf0; box-shadow:0 28px 80px rgba(50,28,10,.35); }
.beer-detail-dialog::backdrop { background:rgba(30,20,12,.56); backdrop-filter:blur(6px); }
.beer-detail-shell { max-height:calc(100dvh - 26px); display:grid; grid-template-rows:auto minmax(0,1fr); }
.beer-detail-header { position:relative; padding:22px 24px 16px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:17px; align-items:center; background:linear-gradient(145deg,#fff8e8,#ffedd5); border-bottom:1px solid #ead9c2; }
.beer-detail-title { min-width:0; }
.beer-detail-kicker { color:#b45309; font-size:10px; font-weight:950; letter-spacing:.09em; text-transform:uppercase; }
.beer-detail-title h2 { margin:4px 0 4px; font-size:clamp(27px,4vw,42px); line-height:.98; letter-spacing:-.05em; }
.beer-detail-title p { margin:0; color:#8b735b; font-size:12px; }
.beer-close-button { width:44px; height:44px; align-self:start; border:1px solid #ead9c2; border-radius:15px; background:rgba(255,255,255,.76); color:#6b4423; font-size:25px; cursor:pointer; }
.beer-detail-body { min-height:0; overflow:auto; padding:20px 24px 24px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(245px,.65fr); gap:20px; }
.beer-detail-main { min-width:0; }
.beer-detail-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.beer-detail-stats > span { min-height:68px; padding:11px; display:flex; flex-direction:column; justify-content:center; border:1px solid #f0dfc7; border-radius:15px; background:white; }
.beer-detail-stats b { font-size:16px; line-height:1.1; }
.beer-detail-stats small { margin-top:4px; color:#9a8063; font-size:8.5px; text-transform:uppercase; letter-spacing:.06em; }
.beer-detail-description { margin:16px 0 13px; color:#5f4b37; font-size:14px; line-height:1.55; }
.beer-flavor-tags { display:flex; flex-wrap:wrap; gap:7px; }
.beer-flavor-tags span { padding:7px 9px; border-radius:999px; background:#fff1cf; color:#92400e; font-size:9px; font-weight:900; }
.beer-tried-panel { margin-top:14px; padding:11px 12px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid #ccebd8; border-radius:16px; background:linear-gradient(145deg,#f0fdf4,#ecfdf5); color:#166534; }
.beer-tried-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:12px; background:white; font-size:19px; box-shadow:0 5px 14px rgba(22,101,52,.08); }
.beer-tried-panel small,.beer-tried-panel strong { display:block; }
.beer-tried-panel small { color:#4b8061; font-size:8px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.beer-tried-panel strong { margin-top:2px; font-size:12px; }
.beer-tried-avatars { display:flex; align-items:center; }
.beer-tried-avatars span { width:30px; height:30px; display:grid; place-items:center; margin-left:-5px; border:2px solid #f0fdf4; border-radius:50%; background:#16a34a; color:white; font-size:10px; font-weight:950; box-shadow:0 4px 10px rgba(22,101,52,.16); }
.beer-tried-avatars span:first-child { margin-left:0; }
.beer-serving-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:15px; }
.beer-serving-grid > div { display:flex; align-items:center; gap:10px; padding:11px; border-radius:15px; background:#f7efe3; }
.beer-serving-grid > div > span { font-size:25px; }
.beer-serving-grid p,.beer-serving-grid small,.beer-serving-grid strong { margin:0; display:block; }
.beer-serving-grid small { color:#9a8063; font-size:8px; text-transform:uppercase; }
.beer-serving-grid strong { margin-top:2px; font-size:10px; }
.beer-source-link { display:inline-flex; margin-top:14px; color:#b45309; font-size:10px; font-weight:900; text-decoration:none; }
.beer-choice-panel { align-self:start; padding:17px; border-radius:22px; background:linear-gradient(145deg,#fff2c7,#ffedd5); border:1px solid #f3d59c; box-shadow:0 12px 24px rgba(146,64,14,.09); }
.beer-choice-panel.empty { filter:saturate(.65); }
.beer-choice-stock { display:grid; grid-template-columns:auto 1fr; gap:6px 9px; align-items:center; padding-bottom:14px; border-bottom:1px solid rgba(180,83,9,.14); }
.beer-choice-stock > span { grid-row:1 / 3; font-size:31px; }
.beer-choice-stock strong { font-size:14px; }
.beer-choice-stock .beer-stock-dots { grid-column:2; }
.beer-choice-prompt,.beer-choice-success { padding:16px 0 13px; }
.beer-choice-prompt strong,.beer-choice-success strong { display:block; font-size:17px; }
.beer-choice-prompt p,.beer-choice-success p { margin:5px 0 0; color:#8b5f37; font-size:10px; line-height:1.45; }
.beer-choice-success > span { width:34px; height:34px; display:grid; place-items:center; margin-bottom:9px; border-radius:50%; background:#16a34a; color:white; font-weight:900; }
.beer-choose-button,.beer-undo-button,.beer-random-button { width:100%; min-height:50px; border:0; border-radius:15px; font-weight:950; cursor:pointer; }
.beer-choose-button { background:#9a3412; color:white; box-shadow:0 10px 20px rgba(154,52,18,.2); }
.beer-undo-button { background:white; color:#15803d; border:1px solid #bbf7d0; }
.beer-random-button { background:#6b4423; color:white; }

.beer-cheers-layer {
  position:fixed; inset:0; width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0;
  display:grid; place-items:center; overflow:hidden; pointer-events:auto; background:rgba(0,0,0,.62); color:#20150b;
  opacity:0; transition:opacity .2s ease;
}
.beer-cheers-layer:not([open]) { display:none; }
.beer-cheers-layer::backdrop { background:rgba(0,0,0,.20); backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px); }
.beer-cheers-layer.active { opacity:1; }
.beer-cheers-card {
  position:relative; z-index:2; width:min(430px,calc(100vw - 44px)); min-height:260px; padding:30px 30px 26px;
  display:grid; place-items:center; align-content:center; border-radius:30px; background:rgba(255,255,255,.97);
  box-shadow:0 28px 100px rgba(0,0,0,.46); transform:translateY(14px) scale(.94); transition:transform .34s cubic-bezier(.2,.9,.2,1.2);
}
.beer-cheers-layer.active .beer-cheers-card { transform:translateY(0) scale(1); }
.beer-cheers-close {
  position:absolute; top:13px; right:13px; width:42px; height:42px; border:0; border-radius:14px; display:grid; place-items:center;
  background:#f1f5f9; color:#1f2937; font-size:28px; line-height:1; font-weight:700; cursor:pointer;
}
.beer-cheers-emoji { font-size:64px; }
.beer-cheers-card strong { margin-top:8px; font-size:27px; letter-spacing:-.04em; text-align:center; }
.beer-cheers-card small { margin-top:6px; color:#9a5d29; font-size:14px; font-weight:900; text-align:center; }
.beer-cheers-card p { margin:15px 0 0; color:#64748b; font-size:10px; font-weight:750; }
.beer-confetti { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.beer-confetti i { position:absolute; left:var(--left); top:-8%; color:#f59e0b; font-style:normal; font-size:14px; opacity:0; transform:rotate(var(--rotate)); animation:beerConfetti var(--duration) ease-in var(--delay) forwards; }
.beer-confetti i:nth-child(3n) { color:#ec4899; }
.beer-confetti i:nth-child(4n) { color:#0ea5e9; }
.beer-confetti i:nth-child(5n) { color:#8b5cf6; }
@keyframes beerConfetti { 0%{opacity:0;transform:translateY(0) rotate(var(--rotate)) scale(.7)} 12%{opacity:1} 100%{opacity:0;transform:translateY(110vh) rotate(calc(var(--rotate) + 420deg)) scale(1.1)} }

@media (max-width:1100px) {
  .beer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .beer-event-button-copy { display:none; }
  .beer-event-button { padding:0 10px; }
}
@media (max-width:820px) {
  .beer-app-shell { padding:14px 14px 42px; }
  .beer-app-header { align-items:flex-start; }
  .beer-header-actions { flex-wrap:wrap; justify-content:flex-end; }
  .beer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .beer-overview-bar { grid-template-columns:1fr; }
  .beer-last-choice { min-width:0; }
  .beer-detail-body { grid-template-columns:1fr; }
  .beer-detail-header { grid-template-columns:auto 1fr auto; padding:16px; }
  .beer-label-art.large { width:75px; height:95px; }
}
@media (max-width:560px) {
  .beer-app-title p,.beer-reset-button { display:none; }
  .beer-app-logo { width:48px; height:48px; border-radius:17px; font-size:27px; }
  .beer-app-title h1 { font-size:27px; }
  .beer-grid { grid-template-columns:1fr; }
  .beer-card { min-height:88px; }
  .beer-detail-header { grid-template-columns:64px minmax(0,1fr) auto; gap:10px; }
  .beer-label-art.large { width:64px; height:81px; }
  .beer-detail-body { padding:15px; }
}

/* Huishoudbord 3.7.0: volwaardige apptegel, echte productfoto's en scanbare EAN-codes */
.apps-grid {
  grid-template-rows:repeat(2,minmax(210px,1fr)) minmax(205px,.82fr);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-right:4px;
}
.beer-hub {
  --hub-accent:#f59e0b;
  --hub-accent-dark:#9a3412;
  grid-column:1 / -1;
  min-height:205px;
  background:linear-gradient(145deg,#fff7d6 0%,#ffedd5 48%,#fee2e2 100%);
}
.beer-stock-badge { color:#9a3412; }
.beer-hub-visual { grid-column:2; overflow:visible; display:flex; align-items:end; justify-content:center; gap:0; padding:6px 5px 0; }
.beer-hub-visual img {
  width:74px; height:128px; object-fit:contain; filter:drop-shadow(0 14px 14px rgba(95,49,15,.17));
  transform:rotate(var(--beer-hub-rotate,0deg)); margin:0 -8px;
}
.beer-hub-visual img:nth-child(1) { --beer-hub-rotate:-7deg; }
.beer-hub-visual img:nth-child(2) { width:82px; height:142px; z-index:2; }
.beer-hub-visual img:nth-child(3) { --beer-hub-rotate:7deg; }

.beer-card { grid-template-columns:62px minmax(0,1fr) auto; }
.beer-card-badges { display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-height:20px; }
.beer-scan-badge {
  width:max-content; max-width:100%; padding:3px 6px; display:inline-flex; align-items:center; gap:4px;
  border-radius:999px; background:#eef2ff; color:#4338ca; font-size:7.5px; font-weight:900; white-space:nowrap;
}
.beer-photo-frame { position:relative; overflow:hidden; background:#fff; isolation:isolate; }
.beer-photo-frame > img {
  position:relative; z-index:2; display:block; width:100%; height:100%; object-fit:contain;
  object-position:var(--beer-photo-position,center); transform:scale(var(--beer-photo-scale,1)); transform-origin:var(--beer-photo-position,center);
}
.beer-photo-frame .beer-photo-fallback { position:absolute; z-index:1; inset:0; width:100%; height:100%; border:0; border-radius:inherit; }
.beer-photo-frame.photo-failed > img { display:none; }
.beer-label-photo {
  width:62px; height:78px; flex:0 0 auto; border-radius:15px; border:2px solid rgba(255,255,255,.88);
  box-shadow:0 8px 18px rgba(52,34,18,.16),inset 0 0 0 1px rgba(255,255,255,.25);
}
.beer-label-photo > img { object-fit:contain; }
.beer-detail-header .beer-label-photo { width:78px; height:98px; border-radius:19px; }

.beer-detail-dialog { width:min(1020px,calc(100% - 26px)); }
.beer-detail-body { grid-template-columns:minmax(0,1.55fr) minmax(255px,.55fr); }
.beer-product-intro { display:grid; grid-template-columns:200px minmax(0,1fr); gap:18px; align-items:center; }
.beer-product-copy { min-width:0; }
.beer-bottle-photo {
  width:200px; height:270px; margin:0; display:grid; place-items:center; border:1px solid #ead9c2; border-radius:22px;
  background:linear-gradient(145deg,#fff,#fff7e8); box-shadow:0 12px 28px rgba(83,51,24,.08);
}
.beer-bottle-photo > img { padding:10px; object-fit:contain; transform:scale(1); }
.beer-bottle-photo figcaption {
  position:absolute; z-index:3; left:10px; bottom:9px; padding:4px 7px; border-radius:999px;
  background:rgba(255,255,255,.9); color:#8b5b23; font-size:8px; font-weight:900;
}
.beer-story-panel {
  margin-top:16px; padding:14px 15px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:11px;
  border:1px solid #f2d5aa; border-radius:18px; background:linear-gradient(145deg,#fffaf0,#fff5df);
}
.beer-story-panel > span { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; background:white; font-size:20px; }
.beer-story-panel small { color:#a16207; font-size:8px; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.beer-story-panel p { margin:4px 0 0; color:#5f4b37; font-size:12px; line-height:1.55; }
.beer-source-link { display:none !important; }

.beer-barcode-panel {
  margin-top:15px; padding:13px; border:1px solid #d8dee8; border-radius:18px; background:#f8fafc;
}
.beer-barcode-heading { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.beer-barcode-heading > span { width:36px; height:36px; display:grid; place-items:center; border-radius:12px; background:#eef2ff; color:#4338ca; font-size:22px; }
.beer-barcode-heading small,.beer-barcode-heading strong { display:block; }
.beer-barcode-heading small { color:#64748b; font-size:8px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.beer-barcode-heading strong { margin-top:2px; font-size:12px; }
.beer-ean-svg { width:min(100%,390px); height:auto; display:block; margin:0 auto; border:1px solid #e5e7eb; border-radius:12px; background:#fff; }
.beer-barcode-panel > p { margin:8px 0 0; color:#64748b; font-size:9px; line-height:1.45; text-align:center; }
.beer-barcode-panel.unavailable { border-style:dashed; background:#fffbeb; }
.beer-barcode-panel.unavailable .beer-barcode-heading > span { background:#fff3cd; color:#a16207; }
.beer-barcode-panel.unavailable > p { text-align:left; color:#8b6d4a; }

@media (max-height:800px) and (min-width:900px) {
  .apps-grid { grid-template-rows:repeat(2,minmax(190px,1fr)) minmax(185px,.78fr); }
  .beer-hub { min-height:185px; }
  .beer-hub-visual img { height:106px; width:63px; }
  .beer-hub-visual img:nth-child(2) { height:119px; width:70px; }
}
@media (max-width:900px) {
  .apps-grid { grid-template-rows:none; overflow:visible; }
  .beer-hub { grid-column:auto; min-height:265px; }
  .beer-product-intro { grid-template-columns:150px minmax(0,1fr); }
  .beer-bottle-photo { width:150px; height:230px; }
}
@media (max-width:650px) {
  .beer-product-intro { grid-template-columns:1fr; }
  .beer-bottle-photo { width:100%; height:250px; }
  .beer-detail-header .beer-label-photo { width:60px; height:75px; }
  .beer-detail-header { grid-template-columns:60px minmax(0,1fr) auto; }
}

/* Huishoudbord 3.7.0: evenwichtige appindeling en rustige bierfoto's */
@media (min-width:901px) {
  .apps-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    align-items:stretch;
  }
  .apps-grid > .sonos-hub { grid-column:1; grid-row:1; }
  .apps-grid > .boredom-hub { grid-column:2; grid-row:1; }
  .apps-grid > #hhmb-tile { grid-column:1; grid-row:2; height:100%; min-height:0; }
  .apps-grid > .beer-hub { grid-column:2; grid-row:2; min-height:0; }
}

.beer-hub-visual {
  overflow:hidden;
  display:grid;
  place-items:center;
  padding:4px 8px 0;
}
.beer-hub-visual img,
.beer-hub-visual img:nth-child(n) {
  width:96px;
  height:148px;
  margin:0;
  object-fit:contain;
  transform:none;
  filter:drop-shadow(0 14px 16px rgba(95,49,15,.18));
}

/* Er is altijd precies één beeldlaag zichtbaar. */
.beer-photo-frame .beer-photo-fallback {
  display:none;
  z-index:1;
}
.beer-photo-frame.photo-failed .beer-photo-fallback {
  display:grid;
}
.beer-photo-frame.photo-failed > img {
  display:none;
}

/* Overzicht: één beeldvullend etiket of logo, zonder illustratie erachter. */
.beer-label-photo {
  overflow:hidden;
  background:#f7f3ec;
  border:1px solid #eadfce;
  box-shadow:0 7px 16px rgba(52,34,18,.11);
}
.beer-label-photo > img {
  width:100%;
  height:100%;
  padding:0;
  object-fit:contain;
  object-position:var(--beer-photo-position,center);
  transform:scale(var(--beer-photo-scale,1));
  transform-origin:var(--beer-photo-position,center);
}

/* Detailkaart: alleen de fles; bij ontbrekende fles alleen het etiket. */
.beer-detail-header {
  grid-template-columns:minmax(0,1fr) auto;
}
.beer-bottle-photo {
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 24px rgba(83,51,24,.07);
}
.beer-bottle-photo > img {
  width:100%;
  height:100%;
  padding:14px;
  object-fit:contain;
  object-position:center;
  transform:none;
}
.beer-bottle-photo.label-only > img {
  width:82%;
  height:82%;
  padding:0;
  object-fit:contain;
}
.beer-bottle-photo figcaption { display:none; }

@media (max-height:800px) and (min-width:901px) {
  .apps-grid { grid-template-rows:repeat(2,minmax(185px,1fr)); }
  .beer-hub-visual img,
  .beer-hub-visual img:nth-child(n) { width:80px; height:120px; }
}

@media (max-width:900px) {
  .apps-grid > .sonos-hub,
  .apps-grid > .picnic-hub,
  .apps-grid > .eufy-hub,
  .apps-grid > .boredom-hub,
  .apps-grid > #hhmb-tile,
  .apps-grid > .beer-hub {
    grid-column:auto;
    grid-row:auto;
    min-height:265px;
  }
}

@media (max-width:650px) {
  .beer-detail-header { grid-template-columns:minmax(0,1fr) auto; }
}


/* Huishoudbord 3.8.0: de Speciaalbierbar blijft bewaard, maar is tijdelijk onzichtbaar. */
body[data-beer-bar-visible="false"] [data-feature="beer-bar"] {
  display:none !important;
}

@media (min-width:901px) {
  body[data-beer-bar-visible="false"] .apps-grid > #hhmb-tile {
    grid-column:1 / -1 !important;
    grid-row:2 !important;
  }
}
