/* Public base styles (keep this file for general public-facing CSS).
   NOTE: Shortcode-specific layout lives in assets/css/swefood-menu.css to avoid conflicts. */

/* Sticky Add-to-Cart Bar (product page) */
.sf-sticky-bar{ position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(255,255,255,0.96); backdrop-filter: saturate(120%) blur(6px); border-top: 1px solid #e5e7eb; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display:block; }
.sf-sticky-inner{ max-width: 980px; margin: 0 auto; display:flex; align-items:center; gap: 10px; }
.sf-qty-btn{ width: 38px; height: 38px; border-radius: 10px; background:#fff; border:1px solid #e5e7eb; font-size: 22px; line-height: 1; display:grid; place-items:center; }
.sf-qty-display{ min-width: 46px; height: 38px; display:grid; place-items:center; font-weight:700; color:#111827; border-radius: 10px; background:#f9fafb; border:1px solid #e5e7eb; }
.sf-sticky-add{ flex:1 1 auto; height: 44px; border-radius: 12px; border: none; background:#9B87F5; color:#fff; font-weight:700; font-size:16px; box-shadow: 0 6px 14px rgba(0,0,0,.10); }
.sf-sticky-add[disabled]{ opacity:.5; filter: grayscale(30%); }

/* Add-ons simple layout */
.sf-addons{ margin: 16px 0 10px; }
.sf-addons__title{ font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.sf-addon-group{ border:1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.sf-addon-group > legend{ padding: 0 6px; font-weight: 700; }
.sf-addon{ display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 8px 2px; }
.sf-addon__name{ font-weight: 600; color:#111827; }
.sf-addon__price{ color:#374151; font-weight: 600; }

/* Loyalty checkout card */
.sf-loyalty-box{
  --sf-loy-bg: #0f172a;
  --sf-loy-accent: #22d3ee;
  --sf-loy-text: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 28%), var(--sf-loy-bg);
  color: var(--sf-loy-text);
  box-shadow: 0 16px 36px rgba(0,0,0,0.12), 0 6px 16px rgba(0,0,0,0.10);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.sf-loyalty-box::after{
  content: "";
  position: absolute;
  inset: -40% auto auto 60%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 64%);
  transform: rotate(18deg);
  pointer-events: none;
}
.sf-loyalty-box__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin: 0 0 6px;
}
.sf-loyalty-box__eyebrow::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sf-loy-accent);
  box-shadow: 0 0 0 6px rgba(34,211,238,0.25);
}
.sf-loyalty-box__title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.sf-loyalty-box__message{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.88);
}
.sf-loyalty-progress{
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.sf-loyalty-progress__bar{
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  margin-bottom: 10px;
}
.sf-loyalty-progress__bar span{
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--sf-loy-accent), #38bdf8);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(56, 189, 248, 0.35);
  transition: width .3s ease;
}
.sf-loyalty-progress__meta{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  flex-wrap: wrap;
}
.sf-loyalty-progress__meta strong{
  font-size: 14px;
}
.sf-loyalty-progress__meta span{
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.sf-loyalty-box__points{
  margin: 12px 0 0;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.sf-loyalty-box__guest{
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.16);
}
.sf-loyalty-box__guest p{
  margin: 8px 0 0;
  color: rgba(255,255,255,0.88);
}
.sf-loyalty-box__pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* App-like single product layout */
.sf-app-product{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px 110px;
}
.sf-app-sheet{
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
}
.sf-app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 4;
  border-bottom: 1px solid #eef0f4;
}
.sf-app-close{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sf-app-time{
  font-weight: 700;
  color: #111827;
}
.sf-app-hero{
  text-align: center;
  padding: 10px 10px 16px;
}
.sf-app-hero .woocommerce-product-gallery{
  margin-bottom: 8px;
}
.sf-app-hero__content{
  padding: 0 4px 8px;
}
.sf-app-product__title{
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}
.sf-app-product__price{
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.sf-app-product__desc{
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.6;
}
.sf-app-section{
  padding: 14px 16px;
  border-top: 8px solid #f8fafc;
}
.sf-app-section__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sf-app-section__header h3{
  margin:0;
  font-size:18px;
  font-weight: 800;
  color: #111827;
}
.sf-app-pill{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  background: #e5e7eb;
  color: #374151;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.sf-app-pill--muted{
  background: #f1f5f9;
  color: #6b7280;
}
.sf-app-list{
  display: grid;
  gap: 12px;
}
.sf-app-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f4;
}
.sf-app-row:last-child{ border-bottom: none; }
.sf-app-row input[type="radio"],
.sf-app-row input[type="checkbox"]{
  width: 18px;
  height: 18px;
}
.sf-app-row__thumb img{
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.sf-app-row__label{
  flex: 1 1 auto;
  font-weight: 700;
  color: #111827;
}
.sf-app-row__price{
  color: #111827;
  font-weight: 600;
}
.sf-app-textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  min-height: 100px;
  font-size: 14px;
  resize: vertical;
}
.sf-app-muted{
  color: #6b7280;
  margin: 0;
}
.sf-app-sticky{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  gap: 12px;
  z-index: 99;
}
.sf-app-qty{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px 10px;
}
.sf-app-qty__btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-size: 18px;
  cursor: pointer;
}
.sf-app-qty__input{
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
}
.sf-app-submit{
  flex: 1 1 auto;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #ec4899, #d946ef);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(236,72,153,0.35), 0 4px 12px rgba(0,0,0,0.18);
}

/* Optional: if you want to hide on very wide screens, uncomment below */
/* @media (min-width: 1400px){ .sf-sticky-bar{ max-width: 1200px; margin: 0 auto; left: 0; right: 0; } } */
