/* =============================================================
   Kanalkrogen – Luxury Black/Gold  (2025-05-11) – FUNGERANDE
   • Kolumn-scroll orörd  • Produktbild +15 % (184 px)  
============================================================= */

/* -------- Bas -------- */
*,*::before,*::after{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}
*::-webkit-scrollbar{display:none}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

body{
  font-family:system-ui,Arial,sans-serif;
  background:#000;color:#e6e6e6;
}
h1,h2,h3{margin:0 0 .6rem}

/* -------- Main-behållare (kolumnscroll måste ligga kvar) -------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

ul{margin:0;padding-left:1rem;list-style:none}

/* -------- Knapp-bas -------- */
button{
  cursor:pointer;border:none;border-radius:4px;
  padding:.45rem .9rem;background:#d4af37;color:#000;font-weight:600;
  transition:opacity .15s ease;
}
button:hover{opacity:.85}
.close{background:#555;color:#e6e6e6}
.btn{background:#d4af37;color:#000}

/* ============================================================
   Header
============================================================ */
header{
  height:64px;display:flex;align-items:center;justify-content:space-between;
  padding:0 1.2rem;background:#111;box-shadow:0 2px 6px rgba(0,0,0,.6);
  position:sticky;top:0;z-index:900;
}
header h1{font-size:1.25rem}
header h1 a,header nav a{text-decoration:none;color:#d4af37}
header nav a{margin-left:1rem;font-weight:600}
header nav a:hover{opacity:.8}

/* ============================================================
   DROPDOWNS (varukorg / nota)
============================================================ */
.cart-panel {
  position: absolute;
  top: 64px;
  right: 1rem;
  width: 100%;
  max-width: 800px;
  background: #111;
  border-radius: 18px;
  padding: 1.6rem;
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  z-index: 1001;
}

.bill-panel {
  position: absolute;
  top: 64px;
  right: 1rem;
  width: 300px;
  background: #111;
  border-radius: 12px;
  padding: 1.4rem;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}


.hidden{display:none}
#cart h2,#bill h2{color:#d4af37;margin-bottom:.5rem}

/* ============================================================
   Wrapper & Kolumner – SCROLLREGLER **ORÖRDA**
============================================================ */
.categories-wrapper {
  flex: 1;
  display: flex;
  gap: 1rem;
  padding: 1rem 1rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; /* smidig scroll på iOS */
  touch-action: pan-x;
}

.category-column {
flex: 0 0 95vw;
  min-width: 280px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  padding-bottom: max(env(safe-area-inset-bottom), 0.8rem);
  background: #111;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .85);
  scroll-snap-align: start;
  transition: flex-basis 0.2s ease;

  -webkit-overflow-scrolling: touch;

  /* 🟢 VIKTIGT: Tillåt både pan-x och pan-y inuti kolumnen */
  touch-action: pan-y pan-x;
}

@media(orientation:landscape){.category-column{flex:0 0 33.333%}}

/* ============================================================
   Produktkort  –  BILD +15 %
============================================================ */
.product-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.85);
}
/* ============================================================
   Produktkort – BILD +15 % + Swipefix
============================================================ */

.product-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.85);
  touch-action: manipulation; /* 🟢 tillåter både scroll och tryck */
}

.product-card img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;

  /* 🟢 Tillåt både horisontell och vertikal swipe på bilden */
  touch-action: pan-y pan-x;
}

.product-card .card-info {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #e6e6e6;
  padding: .45rem .65rem;
  font-size: .95rem;
  z-index: 1;
  pointer-events: none;
}

.product-card .price {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #d4af37;
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 3;
}

.add-btn {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: #d4af37;
  color: #000;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  z-index: 3;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;    /* höjt från 1000 till 10001 */
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;                /* 🟢 viktigt för att × ska positioneras rätt */
  background: #fff;                  /* eller #f2f2f2 – båda fungerar bra */
  color: #000;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cat-name {
  font-family: 'Bebas Neue', sans-serif;
  color: #d4af37;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-align: center;  /* 🟡 CENTRERING */
}


@keyframes rotateHint {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(90deg); }
}
@keyframes fadeInOut {
  0%, 100%   { opacity: 0; }
  15%, 85%   { opacity: 1; }
}
body.landscape #tiltHint {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.admin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.admin-card span {
  margin-top: .6rem;
}

.admin-card.blue { background: #007bff; }
.admin-card.red { background: #dc3545; }
.admin-card.pink { background: #e83e8c; }
.admin-card.green { background: #28a745; }
.admin-card.gold { background: #d4af37; color: #000; }

}

.cart-styled {
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 800px;   /* ✅ ge plats för 2 kolumner */
  margin: 0 auto;
  font-family: system-ui, sans-serif;
}


.cart-styled h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.cart-styled .cart-icon {
  font-size: 1.6rem;
}

.cart-styled .label {
  font-weight: 400;
  color: #aaa;
  margin: .5rem 0 .2rem;
}

.cart-styled .total {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.cart-styled input[type="number"] {
  width: 100%;
  padding: .65rem .8rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #000;
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.yellow-btn {
  background: #ffd232;
  color: #000;
  font-weight: bold;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}

.yellow-btn:hover {
  background: #f2c100;
}


.cart-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1.4rem;
}

.cart-icon {
  font-size: 1.6rem;
  opacity: 0.8;
}

.label {
  color: #bbb;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.total {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1.4rem;
}

.checkout-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
  color: #fff;
}

.input-rounded {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.yellow-btn {
  background: #ffd232;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.yellow-btn:hover {
  background: #f2c100;
}

.cart-flex {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cart-left {
  flex: 1 1 60%;
  min-width: 180px;
}

.cart-right {
  flex: 1 1 35%;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.cart-item-name {
  flex: 1;
  color: #fff;
  font-size: 1rem;
}

.cart-buttons {
  display: flex;
  gap: 0.3rem;
}

.cart-buttons button {
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 8px;
  background: #d4af37;
  color: #000;
  border: none;
  cursor: pointer;
}

.cart-main {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cart-left {
  flex: 1 1 60%;
  min-width: 240px;
}

.cart-right {
  flex: 1 1 35%;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-label {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

#cart-items {
  max-height: 150px;  /* 👈 motsvarar ungefär 3 produkt-rader */
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 1rem;
}


/* scrollbars ska vara diskreta */
#cart-items::-webkit-scrollbar {
  width: 4px;
}
#cart-items::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.total {
  font-size: 1rem;         /* ← samma storlek som produkttext */
  font-weight: 400;        /* inte fetstil längre */
  color: #fff;             /* samma färg som övrig text */
  margin: 0.4rem 0 1rem;
}

.product-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.product-popup.hidden {
  display: none;
}

.popup-content {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  text-align: left;
}

.popup-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.admin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.admin-card.blue { background: #007bff; }
.admin-card.green { background: #28a745; }
.admin-card.gold { background: #d4af37; color: #000; }

}

.order-card {
  background: #222;
  border: 2px solid #555;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.order-card ul {
  margin: 0.6rem 0;
  padding-left: 1.2rem;
}

.order-card button {
  background: #28a745;
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.order-card button:hover {
  background: #218838;
}
.order-wrapper {
  border: 2px solid #444;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.popup-add-btn {
  background: #d4af37;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────────────
   MODERN PAY-MODAL
─────────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;                         /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;                   /* måste vara högre än .bill-panel (1000+) */
}

.modal.hidden {
  display: none;
}


.pay-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pay-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Behåll dina gula och gröna klasser */
.yellow-btn {
  background: #ffbf00;
  color: #000;
}
.status-paid {
  color: #28a745;
}

/* Flex-helper */
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.flex-1 { flex: 1; }

/* Steg-2-formulär */
.pay-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pay-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
/* === Hjälpklasser === */
.hidden   { display: none !important; }
.flex     { display: flex; }            /* används av payment-options */
.gap-2    { gap: .5rem; }
.flex-1   { flex: 1 1 0; }

/* === Order-statusknappar i köket/servering =================== */
.btn-yellow { background:#d4af37;   color:#000; }   /* Acceptera   */
.btn-red    { background:#b91c1c;   color:#fff; }   /* Förbereds   */
.btn-green  { background:#15803d;   color:#fff; }   /* Färdig      */
.btn-disabled { opacity:.45; cursor:not-allowed; }

.upsell-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 10;
}
.category-column {
  position: relative; /* Viktigt för att pilen ska positioneras rätt */
}

.swipe-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  animation: swipe-blink 1.5s infinite;
  z-index: 5;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes swipe-blink {
  0%, 100% { opacity: 0.9; transform: translateX(0); }
  50%      { opacity: 0.3; transform: translateX(5px); }
}


/* ============================================================
   (Modaler, admin-tabeller, tilt-hint, …)  – oförändrat
=========================================================== */

/*  … lägg kvar allt nedan som du redan hade – inga ändringar  */
