/* ===================== GoBillard Shop 3.0 (Modern Premium) =====================
   Dark hero/nav + premium light content shell.
   Fokus: hierarki, “content shell”, pæne cards, mindre tomhed, bedre UX.
   Mobil-first. Full-bleed hero. Touch-first.
========================================================================== */

:root{
  /* Brand */
  --accent: #22C06B;
  --accent-2: #16A75A;
  --accent-ink: #07140F;

  /* Dark layer (hero/nav/modal) */
  --dark-0: #071a16;
  --dark-1: #0B1B15;
  --dark-2: #0F221B;
  --dark-border: rgba(18,52,39,.55);
  --ink: #EAF3EF;
  --muted: #A6C2B7;

  /* Light layer (content) */
  --page-bg: #f5f7f6;
  --shell: #ffffff;
  --text: #0f172a;
  --muted2:#667085;
  --border:#e6e8ec;
  --border-2:#eef0f3;

  /* Status */
  --ok: #22C06B;
  --danger: #e65252;

  /* Elevation */
  --shadow-xs: 0 2px 10px rgba(16,24,40,.06);
  --shadow-sm: 0 8px 22px rgba(16,24,40,.08);
  --shadow-md: 0 16px 44px rgba(16,24,40,.10);

  /* Radius */
  --radius: 18px;
  --radius-sm: 14px;
  --radius-xs: 12px;

  /* Layout */
  --content-max: 1400px;

  /* Optional hero image */
  --hero-img: url('/shop/assets/hero-balls.png');

  /* Product detail sizing */
  --pd-content-max: 1120px;
  --pd-media-max: clamp(260px, 58vh, 540px);

  /* Focus ring */
  --focus: 0 0 0 4px rgba(34,192,107,.18);

  /* Media placeholder */
  --ph-bg: linear-gradient(180deg, #f8fafc, #ffffff);
}

*,*::before,*::after{ box-sizing:border-box }

html,body{
  margin:0;
  background: var(--page-bg);
  color: var(--text);
  font: 400 16px/1.55 system-ui, -apple-system, Inter, Segoe UI, Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; height:auto; display:block }
a{ color: var(--accent); text-decoration: none }
a:hover{ text-decoration: underline }

.container{ width:100%; max-width: var(--content-max); margin:0 auto; padding: 0 18px }
.full-bleed{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw) }

/* ===== Hero/filter overlap (desktop) ===== */
.hero{ margin-bottom: -26px; }
.section:first-of-type{ margin-top: 0; }
.section .filter{ transform: translateY(-26px); }

/* ================= Nav (dark) ================= */
.nav{
  position: sticky; top:0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(6,18,15,.92), rgba(6,18,15,.74));
  border-bottom: 1px solid rgba(34,192,107,.18);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  color: var(--ink);
}
.nav .inner{ height:64px; display:flex; align-items:center; gap:16px }
.brand{ display:flex; align-items:center; gap:10px }
.brand img{
  height: 32px;
  width:auto;
  filter:
    drop-shadow(0 2px 14px rgba(0,0,0,.55))
    drop-shadow(0 0 10px rgba(34,192,107,.18));
}

/* ===== Always-visible cart in navbar ===== */
.cart-mini{
  order: 3;            /* ✅ efter menu på desktop */
  margin-left: 12px;   /* afstand fra menu */
  position: relative;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  color: rgba(255,255,255,.92);
  text-decoration:none;
}
.cart-mini:hover{
  background: rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
}
.cart-mini .cart-ico{ font-size:18px; line-height:1; }

.cart-mini .cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:9999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  font-size:12px;
  background: var(--accent);
  color: #04110C;
  border:1px solid rgba(34,192,107,.40);
  box-shadow: 0 10px 24px rgba(34,192,107,.20);
}
.cart-mini .cart-badge.is-zero{ display:none; }

/* Desktop menu */
.menu{
  order: 2;            /* ✅ før cart */
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;    /* ✅ skubber menu + cart helt til højre */
}
.navlinks{ margin-left:auto; display:flex; gap:10px; align-items:center }
.navlinks a{
  color: rgba(255,255,255,.92);
  opacity:.95;
  padding:8px 12px;
  border-radius:12px;
}
.navlinks a:hover{
  opacity:1;
  color:#fff;
  background: rgba(255,255,255,.08);
}

.nav .cta{ display:flex; gap:10px; margin-left:8px }

.menu .who{ padding:10px 12px; border-radius:9999px; }
.menu .logoutForm{ display:inline; }

/* Burger button */
.burger{
  order: 4; /* ✅ altid efter cart */
  display:none;
  width:44px; height:44px;
  border-radius:9999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap:5px;
  cursor:pointer;
}
.burger span{
  display:block;
  width:20px;
  height:2.5px;
  background: rgba(255,255,255,.92);
  border-radius:999px;
}

/* ================= Hero (dark) ================= */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(34,192,107,.22), transparent 60%),
    radial-gradient(900px 420px at 88% -10%, rgba(34,192,107,.14), transparent 55%),
    linear-gradient(180deg, var(--dark-0) 0%, #061411 64%);
  border-bottom: 1px solid var(--dark-border);
  color: var(--ink);
}

.hero.has-img::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .34;
  filter: saturate(.92) contrast(1.08) brightness(.72);
  transform: scale(1.03);
  pointer-events:none;
  z-index: 0;
}

/* mørk overlay så tekst altid er læsbar */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(34,192,107,.22), transparent 60%),
    linear-gradient(90deg, rgba(7,26,22,.88) 0%, rgba(7,26,22,.55) 55%, rgba(7,26,22,.35) 100%);
  z-index: 0;
  pointer-events:none;
}

.hero .container{
  position:relative;
  z-index: 1;
  padding: clamp(22px, 4.6vw, 56px) 18px;
}

.hero h1{
  margin:0 0 10px;
  font-size: clamp(28px, 2.1vw + 22px, 46px);
  font-weight: 950;
  letter-spacing: -0.2px;
}
.hero p{
  margin:0;
  color: rgba(166,194,183,.92);
  max-width: 680px;
}
.hero .cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px }

/* ================= Buttons ================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:0; cursor:pointer; font-weight:850;
  border-radius: 9999px; padding: 12px 18px;
}
.btn:focus{ outline:none; box-shadow: var(--focus) }

.btn-primary{
  color:#04110C;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px rgba(34,192,107,.20);
}
.btn-primary:hover{ filter: saturate(110%) brightness(103%) }
.btn-primary:active{ transform: translateY(1px) }

.btn-ghost{
  color:#EAF3EF;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover{ background: rgba(255,255,255,.10) }

/* ================= Sections + Content Shell ================= */
.section{ margin: 16px 0 }
.section h2{
  margin:0 0 12px;
  font-size: 1.05rem;
  letter-spacing:.2px;
  color: #111827;
}
.section h2::after{
  content:"";
  display:block;
  width: 40px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(34,192,107,.45);
}

.section .container{ position: relative; }
.content-shell{
  background: var(--shell);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

/* ================= Filter (premium light) ================= */
.filter{
  background: var(--shell);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  position: relative;
  z-index: 2;
}
.filter form{
  display:grid;
  gap:10px;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items:end;
}
@media (max-width: 960px){ .filter form{ grid-template-columns: 1fr } }

.filter input[type="text"],
.filter input[type="number"],
.filter select{
  width:100%;
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
  border-radius: 12px;
  padding:12px 14px;
  outline:none;
  box-shadow: inset 0 1px 0 rgba(16,24,40,.02);
}
.filter input[type="text"]:focus,
.filter input[type="number"]:focus,
.filter select:focus{
  border-color: rgba(34,192,107,.45);
  box-shadow: var(--focus);
}
.filter input::placeholder{ color:#98a2b3 }

.filter .actions{
  grid-column: 1 / -1;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top: 4px;
}
.filter .btn{ min-height:44px }

.filter .btn-ghost{
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
}
.filter .btn-ghost:hover{
  border-color: rgba(34,192,107,.35);
  color: #0e8f55;
}

/* ================= Layout ================= */
.layout-2col{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr 340px;
  align-items:start;
}
@media (max-width: 1100px){ .layout-2col{ grid-template-columns: 1fr } }

/* ================= Featured row ================= */
.section .row-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.section .row-head h2{ margin-right:auto; }
[data-scroll]{
  min-width:42px;
  height:42px;
  border-radius:9999px;
  border:1px solid var(--border);
  background:#fff;
  color:#111827;
  box-shadow: var(--shadow-xs);
  cursor:pointer;
}
[data-scroll]:hover{
  border-color: rgba(34,192,107,.35);
  color:#0e8f55;
}
.row-scroll{
  display:flex;
  gap:16px;
  overflow:auto;
  padding: 6px 2px 10px;
  scrollbar-width:thin;
  scroll-snap-type: x mandatory;
}
.row-scroll::-webkit-scrollbar{ height:10px }
.row-scroll::-webkit-scrollbar-thumb{ background:#dfe3e8; border-radius:999px }
.row-scroll > *{ scroll-snap-align: start }

/* ================= Product grid ================= */
.product-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
@media (max-width: 520px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* ================= Product tile (premium) ================= */
.tile{
  position:relative;
  padding:14px;
  border-radius: var(--radius);
  background: var(--shell);
  border:1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap:10px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tile:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34,192,107,.30);
}

.media{
  background: var(--ph-bg);
  border:1px solid var(--border-2);
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  z-index: 1;
}
.media img{
  width:100%;
  height:100%;
  object-fit: contain;
  position:relative;
  z-index: 1;
}

.media:empty::before{
  content:"";
  width:52px;
  height:52px;
  border-radius: 16px;
  background: rgba(34,192,107,.10);
  border: 1px solid rgba(34,192,107,.18);
  display:block;
}
.media:empty::after{
  content:"Intet billede";
  position:absolute;
  bottom:12px;
  font-weight:800;
  font-size:.9rem;
  color:#98a2b3;
}

.title{
  color: var(--text);
  font-weight: 950;
  letter-spacing:-0.2px;
  line-height:1.25;
  margin-top:2px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sku{ color: var(--muted2); font-size:.88rem }

.price-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-top:2px;
}
.price{
  font-weight: 950;
  font-size: 1.06rem;
  letter-spacing:-0.2px;
  color:#111827;
}
.old{ color:#98a2b3; text-decoration: line-through; }

.meta{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted2);
  font-weight: 650;
}
.dot{ width:10px; height:10px; border-radius:50% }
.dot.green{ background: var(--ok) }
.dot.red{ background: var(--danger) }

.buy{
  display:block;
  width:100%;
  text-align:center;
  border-radius:9999px;
  padding:11px 14px;
  font-weight: 950;
  border:0;
  cursor:pointer;
  color:#04110C;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 24px rgba(34,192,107,.16);
}
.buy:hover{ filter: saturate(110%) brightness(103%) }
.buy:active{ transform: translateY(1px) }
.buy:disabled{ opacity:.6; cursor:not-allowed; box-shadow:none }

.badge{
  position:absolute;
  top:12px; left:12px;
  padding:6px 10px;
  border-radius: 9999px;
  font-weight: 950;
  font-size: .82rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
  z-index: 30;
  pointer-events:none;
}
.badge.member{
  background: rgba(34,192,107,.14);
  color: #0e8f55;
  border-color: rgba(34,192,107,.26);
}
.badge.warn{
  background: rgba(244,192,96,.18);
  color: #8a5b00;
  border-color: rgba(244,192,96,.30);
}

/* ================= Widgets (sidebar) ================= */
.widget{
  background: var(--shell);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.widget h3{
  margin:0 0 10px;
  font-size:1rem;
  font-weight: 950;
  letter-spacing:-0.1px;
  color:#111827;
}
.compact{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--border-2);
}
.compact:last-child{ border-bottom:0 }
.thumb{
  width:54px; height:54px;
  border-radius: 12px;
  flex:0 0 54px;
  overflow:hidden;
  background: var(--ph-bg);
  border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center;
}
.compact a{ color:#111827; text-decoration:none; }
.compact a:hover{ color:#0e8f55; text-decoration:none }
.compact .sku{ font-size:.82rem }

/* ================= Generic card ================= */
.card{
  background: var(--shell);
  border:1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ================= Footer ================= */
.footer{
  border-top:1px solid rgba(16,24,40,.10);
  color:#667085;
  text-align:center;
  padding:26px 0;
  margin-top:26px;
}

/* ================= Login Modal (dark) ================= */
.modal-mask{
  position:fixed;
  inset:0;
  display:none;
  z-index: 9999;
  background: radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,.35), rgba(0,0,0,.65));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  align-items:center;
  justify-content:center;
  padding:16px;
}
.modal{
  width:min(560px, 92vw);
  background: linear-gradient(180deg, rgba(16,37,29,.90), rgba(15,34,27,.94));
  color: var(--ink);
  border:1px solid rgba(18,52,39,.65);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 16px;
  position: relative;
  z-index: 10000;
}
.modal h3{ margin:0 0 10px; font-weight:950 }
.modal .muted{ color: rgba(166,194,183,.92) }
.modal label{ display:block; font-size:.95rem; color:#B9D2C9; margin-top:10px }
.modal input[type="text"], .modal input[type="password"]{
  width:100%;
  background: rgba(20, 40, 33, .92);
  color:#E8F2EE;
  border:1px solid #1a3c2f;
  border-radius:12px;
  padding:12px 14px;
  outline:none;
}
.modal input:focus{ box-shadow: var(--focus); border-color: rgba(34,192,107,.45) }
.modal .btn-row{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap }
.modal .close-x{ position:absolute; right:14px; top:12px; cursor:pointer; opacity:.85 }
.modal .error-txt{
  margin-top:10px;
  display:none;
  white-space:pre-wrap;
  background: rgba(59,17,17,.86);
  border:1px solid #6e2b2b;
  color:#ffdede;
  border-radius: 12px;
  padding: 10px 12px;
}

/* ================= Product Detail (premium light) ================= */
.product-detail .card{
  background: var(--shell);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  color: var(--text);
}
.product-detail .product-layout{
  display:grid; gap:18px;
  grid-template-columns: 1fr;
  align-items:start;
  max-width: var(--pd-content-max);
  margin-inline: auto;
}
@media (min-width: 960px){
  .product-detail .product-layout{
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  }
}
.product-detail .media-wrap{
  background: var(--ph-bg);
  border:1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.product-detail .media{
  display:grid; place-items:center;
  aspect-ratio: 1 / 1;
  max-height: var(--pd-media-max);
}
.product-detail .media img{
  width: 100%;
  height: 100%;
  max-height: var(--pd-media-max);
  object-fit: contain;
  object-position: center;
}
.product-detail .title{
  font-weight: 950;
  font-size: clamp(20px, 1.1vw + 18px, 30px);
  line-height: 1.2;
  color: var(--text);
}
.product-detail .sku{ color: var(--muted2); margin-top:4px; }
.product-detail .price-row{ display:flex; gap:12px; align-items:baseline; margin:12px 0 8px; }
.product-detail .price{ font-weight:950; font-size: 1.25rem; color:#111827; }
.product-detail .old{ color:#98a2b3; text-decoration: line-through; }
.product-detail .meta{ display:flex; align-items:center; gap:8px; color: var(--muted2); margin:8px 0 14px; font-weight:650; }
.product-detail .dot{ width:10px; height:10px; border-radius:50% }
.product-detail .dot.green{ background: var(--ok) }
.product-detail .dot.red{ background: var(--danger) }

.product-detail .variant-row{ display:grid; gap:10px; grid-template-columns: 1fr; }
@media (min-width: 520px){ .product-detail .variant-row{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
.product-detail .variant-row label{ display:block; font-size:.92rem; color: var(--muted2); font-weight:700; }

.product-detail select{
  width:100%;
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  outline:none;
}
.product-detail select:focus{ box-shadow: var(--focus); border-color: rgba(34,192,107,.45) }

.product-detail .buy-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:end; margin:10px 0 16px; }
.product-detail .qty-wrap{ width:120px; }
.product-detail .qty-wrap input{
  width:100%;
  background:#fff;
  color: var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.product-detail .qty-wrap input:focus{ box-shadow: var(--focus); border-color: rgba(34,192,107,.45) }

.product-detail .notice{
  background: rgba(34,192,107,.12);
  color: #0e8f55;
  border:1px solid rgba(34,192,107,.22);
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
}
.product-detail .container, .product-detail .card{ max-width: var(--pd-content-max); margin-inline:auto; }

/* ================= Mobile refinements ================= */
@media (max-width: 599px){
  html,body{ font-size:15px }
  .nav .inner{ height:56px }
  .brand img{ height:24px }

  .hero .container{ padding: 22px 16px 32px } /* ekstra bund-luft så CTA ikke havner bag filter */
  .hero .cta{ display:grid; grid-template-columns:1fr }
  .btn{ width:100% }

  /* mindre overlap på mobil => CTA bliver ikke “skjult” af filter */
  .hero{ margin-bottom: -14px; }
  .section .filter{ transform: translateY(-14px); }

  .filter .actions{ display:grid; grid-template-columns:1fr 1fr }
  .product-grid{ gap:14px }
}
@media (max-width: 399px){
  .filter .actions{ grid-template-columns:1fr }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}

/* ================= Mobile burger drawer ================= */
@media (max-width: 760px){
  /* cart helt til højre, burger lige ved siden af */
  .menu{ order: 5; }           /* menu ligger “sidst” (skjult indtil åbnet) */
  .cart-mini{ margin-left:auto; }
  .burger{ display:inline-flex; margin-left: 8px; }

  /* hide desktop menu until opened */
  .menu{ display:none; }

  .menu.is-open{
    display:flex !important;
    position: fixed;
    left: 12px; right: 12px;
    top: 56px;
    flex-direction: column;
    align-items: stretch;
    gap:10px;
    padding: 12px;
    z-index: 300;

    background: rgba(7,26,22,.94);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);

    transform-origin: top right;
    animation: menuPop .12s ease-out;
  }

  @keyframes menuPop{
    from{ transform: translateY(-6px) scale(.98); opacity: 0; }
    to  { transform: translateY(0)   scale(1);   opacity: 1; }
  }

  .menu .navlinks{
    margin-left:0;
    display:grid;
    gap:10px;
  }

  .menu .navlinks a{
    display:block;
    padding:12px 12px;
    border-radius:14px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
  }
  .menu .navlinks a:hover{ background: rgba(255,255,255,.10); color:#fff; }

  .menu .cta{
    margin-left:0;
    display:grid;
    gap:10px;
  }
  .menu .cta .btn,
  .menu .cta .btn-ghost{
    width:100%;
    justify-content:center;
  }
}

/* ===== FIX: iOS/Safari clipper produktbillede på mobil ===== */
@media (max-width: 599px){
  .product-detail .media{
    aspect-ratio: auto;   /* undgå Safari aspect-ratio bug */
    max-height: none;
    height: auto;
  }
  .product-detail .media img{
    height: auto;         /* vigtig: ikke 100% på mobil */
    max-height: none;
    width: 100%;
    object-fit: contain;
    display:block;
  }
}

/* ================= Product Detail Enhancements =================
   Sticky buy-boks + Trust badges + Lightbox/zoom
   (Used by product.php)
================================================================= */

/* Sticky højre kolonne (desktop) */
@media (min-width: 960px){
  .pd-sticky{
    position: sticky;
    top: 88px; /* under nav (64px) + luft */
    align-self: start;
  }
}

/* “Klik for zoom” hint */
.pd-zoomhint{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:6px 10px;
  border-radius:9999px;
  font-weight:900;
  font-size:.82rem;
  color:#0f172a;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(230,232,236,.9);
  box-shadow: 0 10px 24px rgba(16,24,40,.14);
  pointer-events:none;
}

/* Lightbox overlay */
.pd-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
  background: rgba(0,0,0,.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pd-lightbox.is-open{ display:flex; }

.pd-lightbox .panel{
  width: min(1100px, 94vw);
  max-height: 86vh;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  overflow: hidden;
  position: relative;
}

.pd-lightbox .topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}

.pd-lightbox .title{
  font-size: .95rem;
  font-weight: 900;
  margin:0;
  color:#fff;
  letter-spacing: -0.1px;
}

.pd-lightbox .close{
  width:44px;
  height:44px;
  border-radius: 9999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  font-weight: 950;
}
.pd-lightbox .close:hover{ background: rgba(255,255,255,.14); }

.pd-lightbox .imgwrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px 14px;
}
.pd-lightbox img{
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(86vh - 64px);
  object-fit: contain;
  display:block;
}

/* Trust badges */
.pd-trust{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pd-trust .b{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:9999px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow: var(--shadow-xs);
  color: var(--text);
  font-weight: 900;
  font-size: .9rem;
}
.pd-trust .i{
  width:22px;height:22px;
  display:inline-grid;
  place-items:center;
  border-radius: 9999px;
  background: rgba(34,192,107,.14);
  border: 1px solid rgba(34,192,107,.22);
  color:#0e8f55;
  font-weight: 950;
  line-height:1;
}

/* Del / kopi knapper i buy-row (pænere og mere synlige) */
.product-detail .buy-row .btn{
  min-height: 44px;
}

/* Facebook blå knap (hvis du vil fjerne inline style i product.php) */
.btn-fb{
  background:#1877F2 !important;
  color:#fff !important;
  border:1px solid #1877F2 !important;
  font-weight: 950 !important;
}
.btn-fb:hover{ filter: brightness(1.05); }
.btn-fb:active{ transform: translateY(1px); }

/* Copy link knap (neutral) */
.btn-outline{
  background:#fff !important;
  color:#111 !important;
  border:1px solid var(--border) !important;
  font-weight: 950 !important;
}
.btn-outline:hover{
  border-color: rgba(34,192,107,.35) !important;
  color: #0e8f55 !important;
}