@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --cal-blue: #274669;
  --cal-blue-dark: #223f61;
  --cal-blue-ink: #1c314b;
  --cal-green: #2f8748;
  --cal-green-dark: #1f6f3a;
  --cal-white: #ffffff;
  --cal-page: #efefef;
  --cal-text: #172535;
  --cal-muted: #607286;
  --cal-border: #d9dfe5;
  --cal-radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--cal-page);
  color: var(--cal-text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--cal-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.narrow { max-width: 720px; }

h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
.subtle { color: var(--cal-muted); margin: 0 0 14px; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Store Header ---------- */
.cal-header {
  background: var(--cal-blue) url('/assets/theme/header-bg.png') no-repeat center/cover;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: env(safe-area-inset-top);
}
.cal-header-top {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
}
.cal-logo {
  display: flex;
  justify-content: center;
}
.cal-logo img {
  height: 56px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
}
.cal-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(16, 43, 74, .45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
}
.cal-icon-btn img {
  width: 19px;
  height: 19px;
  filter: brightness(0) invert(1);
}
.cal-header-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
  padding-bottom: 10px;
}
.cal-header-back {
  padding-top: 0;
  padding-bottom: 0;
}
.cal-back-btn {
  min-height: 34px;
  padding: 4px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(6, 20, 36, .46);
  color: #fff;
  font-weight: 600;
}
.cal-search-wrap {
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 500;
}
.cal-search-wrap img,
.cal-help-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.cal-help-link {
  color: #fff;
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.cal-cart-pill {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.4);
  background: rgba(106, 201, 130, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cal-cart-pill img {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
}
.cal-cart-pill b {
  position: absolute;
  right: -3px;
  top: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #0b5e26;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.45);
}
.cal-delivery-bar {
  background: #ededee;
  color: #222;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  padding: 11px 10px;
  border-top: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
}
.cal-delivery-bar strong {
  margin-left: 8px;
  font-size: 31px;
  font-weight: 600;
}

/* ---------- Menu Drawer ---------- */
.cal-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 31, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 98;
}
.cal-menu-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(84vw, 420px);
  background: var(--cal-blue);
  color: #fff;
  transform: translateX(-102%);
  transition: transform .24s ease;
  z-index: 99;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 20px;
}
body.cal-menu-open { overflow: hidden; }
body.cal-menu-open .cal-menu-backdrop { opacity: 1; pointer-events: auto; }
body.cal-menu-open .cal-menu-drawer { transform: translateX(0); }

/* ---------- Delivery Address ---------- */
.cal-address-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 22, .52);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 95;
}
.cal-address-sheet {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(500px, 90vw);
  background: #f2f2f3;
  z-index: 96;
  transform: translateX(102%);
  transition: transform .24s ease;
  box-shadow: -10px 0 26px rgba(0,0,0,.22);
  padding: max(24px, env(safe-area-inset-top)) 24px 24px;
  overflow: auto;
}
body.cal-address-open { overflow: hidden; }
body.cal-address-open .cal-address-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.cal-address-open .cal-address-sheet { transform: translateX(0); }
.cal-address-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.cal-address-head h3 { margin: 0; font-size: 52px; line-height: 1; }
.cal-address-head p { margin: 4px 0 0; color: #666; font-size: 41px; }
.cal-address-head button {
  border: none;
  background: transparent;
  color: #111;
  font-size: 68px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cal-address-form label { font-size: 30px; color: #666; font-weight: 500; }
.cal-address-form input {
  border: 2px solid #b8b8bc;
  border-radius: 16px;
  min-height: 76px;
  font-size: 38px;
  padding: 14px 16px;
  background: #f6f6f7;
}
.cal-address-form button {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
  min-height: 72px;
  font-size: 40px;
  background: #294566;
  border-color: #294566;
}

/* ---------- Search Overlay ---------- */
.cal-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 97;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cal-search-panel {
  background: #f6f6f6;
  width: 100%;
  height: 100%;
  transform: translateY(102%);
  transition: transform .24s ease;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  position: relative;
}
body.cal-search-open { overflow: hidden; }
body.cal-search-open .cal-search-overlay { opacity: 1; pointer-events: auto; }
body.cal-search-open .cal-search-panel { transform: translateY(0); }
.cal-search-close {
  position: absolute;
  right: 14px;
  top: max(12px, env(safe-area-inset-top));
  border: none;
  background: transparent;
  color: #111;
  font-size: 62px;
  line-height: 1;
  cursor: pointer;
  padding: 0 8px;
}
.cal-search-form {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid #2a2a2a;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.cal-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.cal-search-ico {
  font-size: 30px;
  line-height: 1;
}
.cal-search-form input {
  border: none;
  margin: 0;
  background: transparent;
  font-size: 40px;
  min-height: 76px;
  padding: 0;
}
.cal-search-form button {
  border-radius: 0;
  min-height: 76px;
  min-width: 160px;
  font-size: 40px;
  background: #2f8748;
  border-color: #2f8748;
}
.cal-search-empty-msg {
  text-align: center;
  margin-top: 130px;
  font-size: 46px;
  color: #111;
  font-weight: 600;
}
.cal-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal-menu-head img {
  height: 62px;
  width: auto;
  object-fit: contain;
}
.cal-menu-head button {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.cal-menu-links a {
  display: block;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 11px 0;
  font-size: 17px;
  font-weight: 600;
}
.cal-hours h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 28px;
}
.cal-hours table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,.38);
  background: transparent;
}
.cal-hours td {
  border-bottom: 1px solid rgba(255,255,255,.28);
  border-right: 1px solid rgba(255,255,255,.28);
  padding: 9px;
  color: #fff;
}

/* ---------- Home Sections ---------- */
.cal-hero-wrap {
  background: var(--cal-blue);
}
.cal-hero {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}
.cal-hero-track {
  display: flex;
  width: 100%;
  transition: transform .42s ease;
}
.cal-hero-slide {
  min-width: 100%;
  position: relative;
}
.cal-hero img {
  width: 100%;
  height: clamp(240px, 45vw, 560px);
  object-fit: cover;
  display: block;
}
.cal-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 58px;
  border-radius: 2px;
  border: none;
  background: rgba(10, 16, 27, .42);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.cal-hero-prev { left: 8px; }
.cal-hero-next { right: 8px; }
.cal-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.cal-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.52);
  cursor: pointer;
  padding: 0;
}
.cal-hero-dot.is-active {
  background: #fff;
}
.cal-full-menu-btn {
  position: absolute;
  left: 18%;
  top: 58%;
  transform: translate(-50%, -50%);
  background: #070707;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
}
.cal-announcement {
  background: var(--cal-blue);
  padding-bottom: 12px;
}
.cal-announcement-pill {
  background: var(--cal-green);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 12px 14px;
  font-size: 18px;
}
.cal-hours-cta-wrap { text-align: center; padding-top: 10px; }
.cal-hours-cta {
  background: #ebebeb;
  color: #454545;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
}
.cal-hours-inline {
  margin-top: 12px;
  background: #ececee;
  border-radius: 7px;
  border: 1px solid #cfd4da;
  overflow: hidden;
}
.cal-hours-inline table {
  width: 100%;
  border-collapse: collapse;
}
.cal-hours-inline td {
  border-bottom: 1px solid #d9dde2;
  padding: 11px 12px;
  font-size: 34px;
  color: #2d2d2d;
}
.cal-hours-inline tr:last-child td {
  border-bottom: none;
}
.cal-hours-inline td:first-child {
  font-weight: 700;
}
.cal-category-strip {
  background: #ececec;
}
.cal-category-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cal-category-row::-webkit-scrollbar { display: none; }
.cal-category-card {
  min-width: 130px;
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e4e4e4;
  padding: 10px;
  text-align: center;
  color: #191919;
}
.cal-category-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-category-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.cal-category-name {
  font-weight: 700;
  font-size: 18px;
}

/* ---------- Brands UX (Plugin Replica) ---------- */
:root {
  --kkpb-accent: #00c2a8;
  --kkpb-hover: #111;
}
.kkpb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 12px 140px;
}
.kkpb-breadcrumbs {
  margin: 4px 0 10px;
  font-size: 14px;
}
.kkpb-breadcrumbs a {
  color: #1e3348;
}
.kkpb-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 8px 0 16px;
}
.kkpb-banner img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.kkpb-banner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%);
}
.kkpb-banner .kkpb-banner-title {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  z-index: 2;
}
.kkpb-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 2px;
  margin: 4px 0 10px;
}
.kkpb-toolbar input[type=search] {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 0;
}
.kkpb-toolbar select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  margin: 0;
}
.kkpb-pills {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  padding: 8px 4px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  margin-bottom: 10px;
}
.kkpb-pills .kkpb-track {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 6px;
  scrollbar-width: none;
}
.kkpb-pills .kkpb-track::-webkit-scrollbar { display: none; }
.kkpb-pills .pill {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--kkpb-accent);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  flex: 0 0 auto;
  background: #fff;
  text-decoration: none;
}
.kkpb-pills .pill.is-active {
  background: var(--kkpb-accent);
  color: #fff;
}
.kkpb-grid {
  display: grid;
  gap: 12px;
}
.kkpb-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  --kkpb-card-accent: var(--kkpb-accent);
}
.kkpb-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  border-color: var(--kkpb-card-accent);
}
.kkpb-card .hero {
  position: relative;
  height: 120px;
  background: #f4f4f5;
  overflow: hidden;
}
.kkpb-card .hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kkpb-card .logo {
  position: absolute;
  left: 12px;
  bottom: 8px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid #fff;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.kkpb-card .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kkpb-card .meta {
  padding: 12px;
}
.kkpb-card .brand {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.kkpb-card .cats {
  opacity: .75;
  font-size: 12px;
}
.kkpb-card a.kkpb-hit {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
  z-index: 4;
}
.kkpb-card .glow {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, var(--kkpb-card-accent), transparent 30%, var(--kkpb-card-accent) 60%, transparent 85%);
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  animation: kkpb-rot 6s linear infinite;
}
.kkpb-card:hover .glow {
  opacity: .45;
}
@keyframes kkpb-rot {
  to { transform: rotate(1turn); }
}
.kkpb-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 28%;
  gap: 8px;
  overflow: auto;
  padding: 10px 12px 14px;
}
.kkpb-strip .tile {
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  min-height: 100px;
}
.kkpb-strip .tile img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.kkpb-card.is-oos {
  opacity: .7;
}
.kkpb-card.is-oos .kkpb-strip {
  display: none;
}
.kkpb-more-wrap {
  display: none;
  text-align: center;
  margin: 8px 0 24px;
}
.kkpb-more-toggle {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #111;
}

.cal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 16px;
}
.cal-breadcrumb a {
  color: #1e3246;
}
.cal-breadcrumb strong {
  font-weight: 600;
}

.cal-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.cal-filter-chip,
.cal-sort-chip {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f4f4f4;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.cal-filter-chip > summary {
  list-style: none;
  width: 100%;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
}
.cal-filter-chip > summary::-webkit-details-marker { display: none; }
.cal-sort-chip {
  padding: 0 14px;
  justify-content: center;
  font-weight: 500;
}
.cal-filter-pop {
  position: absolute;
  z-index: 30;
  margin-top: 52px;
  left: 0;
  width: min(92vw, 360px);
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(20, 36, 51, .14);
}
.cal-filter-chip {
  position: relative;
}

/* ---------- Shared Panels / Commerce ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  padding: 16px;
  margin: 16px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.product-card {
  border: 1px solid #d9e0e7;
  border-radius: 12px;
  background: #fff;
  padding: 13px;
}
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.banner-image {
  width: 100%;
  border-radius: 10px;
  max-height: 420px;
  object-fit: cover;
}
.price {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0;
  color: var(--cal-blue-ink);
}
.shop-add-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px;
  align-items: center;
}
.shop-qty {
  margin: 0;
  min-height: 44px;
  text-align: center;
}
.product-detail-panel {
  padding: 18px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.product-detail-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9e0e7;
  object-fit: cover;
}
.product-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.product-option-pill {
  display: inline-flex;
  cursor: pointer;
}
.product-option-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-option-pill span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #cad3dd;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #1f3348;
  line-height: 1.2;
}
.product-option-pill span strong {
  font-size: 14px;
}
.product-option-pill span small {
  font-size: 12px;
  opacity: .85;
}
.product-option-pill input:checked + span {
  border-color: #2f8748;
  background: #2f8748;
  color: #fff;
}

label {
  display: block;
  font-size: 14px;
  margin: 8px 0 6px;
  color: #304960;
  font-weight: 600;
}
input, button, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ccd7e1;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 10px;
  background: #fff;
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; }
button, .button {
  border: 1px solid var(--cal-blue-ink);
  border-radius: 11px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--cal-blue-ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.button.secondary { background: var(--cal-blue); border-color: var(--cal-blue); }
button.danger, .button.danger { background: #b91c1c; border-color: #b91c1c; }

.alert { padding: 10px 12px; border-radius: 10px; margin: 12px 0; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.empty-cart-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.empty-cart-state img {
  width: 40px;
  height: 40px;
  opacity: .9;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  border-bottom: 1px solid #e4eaf0;
  padding: 10px 8px;
  vertical-align: top;
}
th { color: #223c56; font-weight: 700; }
img.thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dfe7ee;
}
img.thumb-large {
  width: 220px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #dfe7ee;
}

.badge {
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  text-transform: uppercase;
}
.badge-pending { background: #fef9c3; color: #854d0e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-suspended { background: #e5e7eb; color: #374151; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat-card {
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 12px;
  padding: 14px;
}
.stat-label { font-size: 13px; color: #66778a; }
.stat-value { font-size: 28px; font-weight: 700; color: #1f3e5c; }
.action-wrap { display: flex; flex-direction: column; gap: 6px; }
.action-wrap form { margin: 0; }

/* ---------- Footer ---------- */
.cal-footer {
  background: var(--cal-blue);
  color: #fff;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cal-footer a { color: #fff; }
.cal-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.cal-footer-grid h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.cal-footer-grid a {
  display: block;
  margin-bottom: 4px;
  color: #dce7f2;
}
.mobile-only { display: none; }

.cal-footer-accordion details {
  border-bottom: 1px solid rgba(255,255,255,.24);
  padding: 8px 0;
}
.cal-footer-accordion summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 4px 0;
}
.cal-footer-accordion summary::-webkit-details-marker { display: none; }
.cal-footer-accordion details a {
  display: block;
  color: #d7e5f3;
  padding: 5px 0 5px 2px;
}

/* ---------- Checkout ---------- */
.checkout-container {
  max-width: 1180px;
  padding-top: 28px;
  padding-bottom: 140px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: flex-start;
}
.checkout-form-area {
  background: #f4f4f5;
  border: 1px solid #dde2e8;
  border-radius: 10px;
  padding: 24px;
}
.checkout-form-area h1 {
  font-size: 46px;
  margin-bottom: 8px;
}
.checkout-form-area h2 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 34px;
}
.checkout-form-area h3 {
  margin: 0 0 8px;
  font-size: 28px;
}
.checkout-welcome {
  margin: 0 0 8px;
  font-size: 22px;
}
.checkout-payment-note {
  margin-bottom: 12px;
}
.checkout-window-block {
  margin-bottom: 14px;
}
.checkout-window-block p {
  margin: 6px 0 0;
  color: #293847;
  font-size: 20px;
}
.checkout-window-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checkout-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8d1da;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
}
.checkout-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.checkout-chip span {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 21px;
  font-weight: 500;
}
.checkout-chip.active {
  border-color: #347b16;
  background: #499316;
  color: #fff;
}
.checkout-grid {
  display: grid;
  gap: 10px;
}
.checkout-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.checkout-form label {
  font-size: 20px;
  color: #334559;
}
.checkout-form input,
.checkout-form textarea {
  min-height: 52px;
  border-radius: 8px;
  border-color: #cfd7df;
  margin-bottom: 12px;
  font-size: 28px;
}
.checkout-form textarea {
  min-height: 108px;
}
.checkout-method-card {
  border: 1px solid #d4dbe3;
  border-radius: 8px;
  background: #e8eef9;
  padding: 14px;
  margin-top: 4px;
  margin-bottom: 12px;
}
.checkout-method-card h3 {
  margin-bottom: 2px;
}
.checkout-method-card p {
  margin: 0;
  font-size: 20px;
}
.checkout-submit {
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  font-size: 24px;
}

.checkout-summary {
  position: sticky;
  top: 168px;
}
.checkout-summary-card {
  background: #f4f4f5;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  overflow: hidden;
}
.checkout-summary-card h3 {
  font-size: 46px;
  padding: 16px 16px 10px;
  margin: 0;
}
.checkout-item-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #dde2e8;
}
.checkout-item-row img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #d7dde5;
  border-radius: 3px;
}
.checkout-item-info p {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
}
.checkout-item-info small {
  color: #5c6d7f;
  font-size: 18px;
}
.checkout-item-row strong {
  font-size: 28px;
}
.checkout-promo-row {
  border-top: 1px solid #dde2e8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 16px;
}
.checkout-promo-row input,
.checkout-promo-row button {
  min-height: 46px;
  font-size: 20px;
  margin: 0;
}
.checkout-promo-row button {
  min-width: 94px;
  border-radius: 8px;
  background: #94bd9d;
  border-color: #94bd9d;
  color: #fff;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #dde2e8;
  padding: 14px 16px;
  font-size: 30px;
}
.checkout-total-row span {
  text-transform: uppercase;
  font-weight: 600;
}
.checkout-total-row.grand {
  border-top: 2px solid #1f2934;
}
.checkout-total-row strong {
  font-size: 36px;
}

.checkout-mobile-summary {
  display: none;
}
.checkout-mobile-summary > summary {
  list-style: none;
}
.checkout-mobile-summary > summary::-webkit-details-marker { display: none; }

.checkout-success {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cal-delivery-bar { font-size: 14px; }
  .cal-delivery-bar strong { font-size: 26px; }
}

@media (max-width: 760px) {
  .container {
    padding: 14px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }

  .cal-header-top {
    grid-template-columns: 44px 1fr 44px;
    padding-top: 3px;
  }
  .cal-logo img { height: 52px; }
  .cal-icon-btn { width: 38px; height: 38px; border-radius: 10px; }
  .cal-header-search {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding-top: 2px;
    padding-bottom: 8px;
  }
  .cal-search-wrap { min-height: 42px; padding: 0 10px; }
  .cal-help-link span { display: none; }
  .cal-help-link { min-width: 32px; justify-content: center; padding: 0; }
  .cal-cart-pill { width: 50px; height: 50px; }
  .cal-back-btn {
    min-height: 32px;
    padding: 3px 12px;
    font-size: 15px;
  }

  .cal-delivery-bar {
    font-size: 13px;
    padding: 10px 8px;
  }
  .cal-delivery-bar strong {
    font-size: 15px;
    margin-left: 6px;
  }

  .cal-address-sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(82vh, 820px);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transform: translateY(102%);
    box-shadow: 0 -10px 28px rgba(0,0,0,.26);
    padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  }
  body.cal-address-open .cal-address-sheet { transform: translateY(0); }
  .cal-address-head h3 { font-size: 22px; }
  .cal-address-head p { font-size: 17px; margin-top: 3px; }
  .cal-address-head button { font-size: 44px; margin-top: -2px; }
  .cal-address-form label { font-size: 13px; margin-top: 8px; margin-bottom: 5px; }
  .cal-address-form input {
    min-height: 56px;
    font-size: 16px;
    border-radius: 14px;
    padding: 10px 12px;
    background: #f3f3f4;
  }
  .cal-address-form button {
    min-height: 52px;
    font-size: 17px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .cal-search-close {
    font-size: 42px;
    right: 8px;
  }
  .cal-search-form {
    margin-top: 38px;
    border-width: 1px;
    border-radius: 14px;
  }
  .cal-search-ico { font-size: 22px; }
  .cal-search-form input {
    min-height: 56px;
    font-size: 16px;
  }
  .cal-search-form button {
    min-height: 56px;
    min-width: 98px;
    font-size: 16px;
  }
  .cal-search-empty-msg {
    margin-top: 120px;
    font-size: 20px;
    font-weight: 600;
  }

  .cal-hero img {
    height: clamp(220px, 49vw, 360px);
  }
  .cal-hero-arrow {
    width: 34px;
    height: 52px;
    font-size: 30px;
  }
  .cal-hero-prev { left: 3px; }
  .cal-hero-next { right: 3px; }
  .cal-hero-dots {
    bottom: 8px;
    gap: 7px;
  }
  .cal-hero-dot {
    width: 8px;
    height: 8px;
  }
  .cal-full-menu-btn {
    left: 22%;
    top: 58%;
    font-size: 14px;
    padding: 9px 16px;
  }
  .cal-announcement-pill {
    font-size: 16px;
    line-height: 1.35;
  }
  .cal-hours-cta {
    font-size: 15px;
    padding: 8px 14px;
  }
  .cal-hours-inline td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .cal-category-card {
    min-width: 116px;
    padding: 9px;
    border-radius: 11px;
  }
  .cal-category-name {
    font-size: 13px;
    font-weight: 700;
  }
  .cal-breadcrumb {
    font-size: 13px;
    margin-top: 2px;
  }
  .cal-filter-row {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .cal-filter-chip,
  .cal-sort-chip {
    min-height: 44px;
    border-radius: 8px;
  }
  .cal-filter-chip > summary {
    padding: 10px 12px;
    font-size: 17px;
    font-weight: 500;
  }
  .cal-sort-chip {
    font-size: 17px;
  }
  .cal-filter-pop {
    width: calc(100vw - 28px);
    left: 0;
  }

  .panel {
    border-radius: 14px;
    padding: 14px;
  }
  .product-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-panel { padding: 12px; }
  .shop-add-row { grid-template-columns: 74px 1fr; }
  .product-option-pill span { border-radius: 12px; }

  .desktop-only { display: none; }
  .mobile-only { display: block; }

  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr {
    border: 1px solid #dce5ec;
    border-radius: 11px;
    margin: 0 0 12px;
    padding: 8px;
    background: #fff;
  }
  td {
    border: none;
    padding: 5px 4px;
  }

  .kkpb-wrap {
    padding: 8px 12px 122px;
  }
  .kkpb-banner img {
    height: 160px;
  }
  .kkpb-toolbar {
    gap: 6px;
  }
  .kkpb-toolbar input[type=search],
  .kkpb-toolbar select {
    font-size: 13px;
    padding: 9px 10px;
  }
  .kkpb-grid {
    grid-template-columns: 1fr;
  }
  .kkpb-card.is-collapsed {
    display: none !important;
  }
  .kkpb-more-wrap {
    display: block;
  }
  .kkpb-pills .pill {
    border: none;
    background: transparent;
    border-radius: 0;
    font-weight: 800;
    font-size: 16px;
    color: #6b7280;
    padding: 10px 14px;
    position: relative;
  }
  .kkpb-pills .pill.is-active {
    color: #111;
    background: transparent;
  }
  .kkpb-pills .pill.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -6px;
    height: 3px;
    border-radius: 3px;
    background: var(--kkpb-accent, #00c2a8);
  }

  .checkout-container {
    padding-top: 14px;
    padding-bottom: 124px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .checkout-desktop-summary {
    display: none;
  }
  .checkout-mobile-summary {
    display: block;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    background: #f4f4f5;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .checkout-mobile-summary > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #2f8748;
    cursor: pointer;
  }
  .checkout-mobile-summary > summary strong {
    color: #1f2d3c;
  }
  .checkout-form-area {
    padding: 14px;
    border-radius: 8px;
  }
  .checkout-form-area h1 {
    font-size: 44px;
  }
  .checkout-form-area h2 {
    font-size: 30px;
  }
  .checkout-form-area h3 {
    font-size: 24px;
  }
  .checkout-welcome {
    font-size: 20px;
  }
  .checkout-window-block p {
    font-size: 17px;
    line-height: 1.4;
  }
  .checkout-chip span {
    font-size: 18px;
    padding: 9px 11px;
  }
  .checkout-grid.two,
  .checkout-grid.three {
    grid-template-columns: 1fr;
  }
  .checkout-form label {
    font-size: 16px;
  }
  .checkout-form input,
  .checkout-form textarea {
    min-height: 50px;
    font-size: 16px;
  }
  .checkout-item-row strong {
    font-size: 20px;
  }
  .checkout-item-info p {
    font-size: 16px;
  }
  .checkout-item-info small {
    font-size: 13px;
  }
  .checkout-total-row {
    font-size: 16px;
    padding: 12px 14px;
  }
  .checkout-total-row strong {
    font-size: 22px;
  }
  .checkout-submit {
    min-height: 52px;
    font-size: 17px;
  }
}

/* ---------- Cart Drawer ---------- */
.cal-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 22, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 95;
}
.cal-cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #f3f3f4;
  z-index: 96;
  transform: translateX(102%);
  transition: transform .24s ease;
  box-shadow: none;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top)) 28px 24px;
}
body.cal-cart-open { overflow: hidden; }
body.cal-cart-open .cal-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.cal-cart-open .cal-cart-drawer {
  transform: translateX(0);
}
.cal-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cal-cart-title {
  font-size: 20px;
  font-weight: 700;
}
.cal-cart-head button {
  border: none;
  background: transparent;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}
.cal-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #d9dce0;
}
.cal-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-cart-left img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #d4dae0;
}
.cal-cart-item-name {
  font-weight: 600;
  font-size: 20px;
}
.cal-cart-item-meta {
  font-size: 16px;
  color: #596777;
}
.cal-cart-line {
  font-size: 22px;
  font-weight: 600;
}
.cal-cart-promo {
  margin: 18px 0;
  color: #2f8748;
  font-size: 18px;
  font-weight: 500;
}
.cal-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28px;
  margin: 14px 0 12px;
}
.cal-cart-checkout {
  width: min(980px, 100%);
  min-height: 58px;
  font-size: 30px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .cal-cart-drawer {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: min(82vh, 880px);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    transform: translateY(102%);
    box-shadow: 0 -10px 28px rgba(0,0,0,.28);
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
  body.cal-cart-open .cal-cart-drawer {
    transform: translateY(0);
  }
  .cal-cart-title { font-size: 18px; }
  .cal-cart-head button { font-size: 36px; }
  .cal-cart-left img { width: 56px; height: 56px; }
  .cal-cart-item-name { font-size: 16px; }
  .cal-cart-item-meta { font-size: 13px; }
  .cal-cart-line { font-size: 18px; }
  .cal-cart-promo { font-size: 16px; margin: 14px 0; }
  .cal-cart-subtotal { font-size: 16px; margin: 10px 0; }
  .cal-cart-checkout { min-height: 50px; font-size: 16px; }
}
