/* ==========================================================================
   Niba's Cake Spot (@nibas_cake_spot)
   Luxury Patisserie Enhancements, Glittering Studio Aura, 3D/Loupe Zoom,
   Uploaded-Style Collapsible Filter Sidebar, Password Gate & Live CMS UI
   ========================================================================== */

/* 1. SLIM LUXURY ANNOUNCEMENT RIBBON */
.bk-usp-ribbon {
  background: linear-gradient(90deg, #1E0E09 0%, #341B11 50%, #1E0E09 100%);
  color: #F7E2B4;
  border-bottom: 1px solid rgba(212, 175, 55, 0.36);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 960;
}

.bk-usp-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 24px;
  animation: bkMarqueeScroll 38s linear infinite;
}

.bk-usp-ribbon:hover .bk-usp-track {
  animation-play-state: paused;
}

.bk-usp-track .dot {
  color: #D4AF37;
}

.bk-usp-track a {
  color: #FFE49E;
  text-decoration: underline;
  font-weight: 700;
}

@keyframes bkMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-45%); }
}

/* 2. ANIMATED CHAMPAGNE-GOLD GLITTERING BACKGROUND LAYER */
.bk-hero-section.bk-hero-pure-stage {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 240, 198, 0.72) 0%, transparent 45%),
    radial-gradient(circle at 82% 24%, rgba(236, 195, 118, 0.42) 0%, transparent 48%),
    radial-gradient(circle at 50% 62%, rgba(255, 249, 236, 0.92) 0%, #F4E2C5 62%, #E8CEAA 100%) !important;
}

.glitter-sparkles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.glitter-star {
  position: absolute;
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(255, 231, 148, 0.95), 0 0 22px rgba(212, 175, 55, 0.65);
  opacity: 0.25;
  animation: glitterTwinkle 2.6s ease-in-out infinite;
  user-select: none;
}

.glitter-star.diamond {
  color: #FFF4C8;
  text-shadow: 0 0 14px rgba(255, 245, 196, 1), 0 0 26px rgba(212, 175, 55, 0.85);
}

@keyframes glitterTwinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.82) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.22) rotate(18deg);
  }
}

.bk-hero-stage-shell,
.bk-hero-name-row,
.bk-hero-studio-bar,
.bk-hero-controls {
  position: relative;
  z-index: 3;
}

/* Hero 3D / Photo / Zoom / Slice Toolbar */
.bk-hero-studio-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px auto 4px;
  padding: 0 16px;
}

.bk-hero-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(182, 134, 76, 0.45);
  background: rgba(255, 253, 249, 0.9);
  color: #2B1B12;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(74, 46, 24, 0.08);
  transition: all 0.18s ease;
}

.bk-hero-tool-btn:hover,
.bk-hero-tool-btn.active {
  background: linear-gradient(135deg, #2B160E 0%, #4A2719 100%);
  border-color: #D4AF37;
  color: #FFEBB5;
  transform: translateY(-1px);
}

.bk-hero-tool-cta {
  background: linear-gradient(135deg, #B8292F 0%, #941E23 100%);
  border-color: #B8292F;
  color: #FFFFFF;
}

.bk-hero-tool-cta:hover {
  background: #88171C;
  border-color: #D4AF37;
  color: #FFFDF9;
}

/* Hero crisp static 3D-elevated showcase frame (zero rotation) */
.bk-hero-img.bk-hero-glitter-photo {
  border-radius: 22px;
  border: 2px solid rgba(212, 175, 55, 0.72);
  background: #FFFDF9;
  padding: 6px;
  box-shadow:
    0 30px 64px -12px rgba(43, 27, 18, 0.30),
    0 14px 26px -8px rgba(74, 46, 24, 0.22),
    0 0 0 1px rgba(255, 245, 214, 0.85) inset,
    0 0 36px rgba(212, 175, 55, 0.24);
  max-height: min(64vh, 540px);
  cursor: zoom-in;
  transform: none;
  transition: box-shadow 0.24s ease;
}

.bk-hero-img.bk-hero-glitter-photo:hover {
  box-shadow:
    0 34px 72px -12px rgba(43, 27, 18, 0.36),
    0 18px 32px -8px rgba(74, 46, 24, 0.26),
    0 0 0 2px rgba(212, 175, 55, 0.85) inset,
    0 0 46px rgba(212, 175, 55, 0.36);
}

.admin-only-hero-btn {
  background: linear-gradient(135deg, #24130C 0%, #4A2719 100%);
  border-color: #D4AF37;
  color: #FFE8A3;
}

.admin-only-hero-btn.hidden {
  display: none !important;
}

/* Force zero visible page scrolling animations across navigation */
html, body {
  scroll-behavior: auto !important;
}

.bk-mega-force-hide .bk-mega-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@keyframes bkSilentFadeIn {
  from { opacity: 0.01; }
  to { opacity: 1; }
}

.bk-silent-reveal {
  animation: bkSilentFadeIn 0.16s ease-out;
}

/* 3. HEADER WISHLIST & ADMIN ENHANCEMENTS */
.bk-wishlist-count {
  background: #FDE6EA;
  color: #941E23;
}

/* 4. UPLOADED-IMAGE COLLAPSIBLE FILTER SIDEBAR (LUXURY GOLD & SANDALWOOD) */
.bk-shop-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.bk-home-finder-section {
  padding: 58px 0 64px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 244, 212, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(226, 188, 122, 0.26) 0%, transparent 48%),
    #FAF4EC;
  border-top: 1px solid var(--sandal-border);
  border-bottom: 1px solid var(--sandal-border);
}

.bk-home-finder-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.nibas-filter-sidebar {
  background: #FFFDF9;
  border: 1.5px solid #E5D4B8;
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 12px 32px rgba(74, 46, 24, 0.08), inset 0 0 0 1px rgba(212, 175, 55, 0.14);
}

@media (min-width: 961px) {
  .nibas-filter-sidebar.is-sticky {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 114px);
    overflow-y: auto;
  }
}

.nibas-filter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #E2D1B8;
}

.nibas-filter-top-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #2B1B12;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nibas-filter-clear-link {
  background: none;
  border: none;
  color: var(--bk-crimson);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.nibas-filter-group {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1E5D3;
}

.nibas-filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.nibas-filter-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
}

/* Signature Golden Circle −/+ Button from Uploaded Reference */
.nibas-filter-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F6DC64 0%, #E2B83B 100%);
  color: #2B1B12;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(196, 154, 60, 0.35);
  transition: transform 0.16s ease;
}

.nibas-filter-group-header:hover .nibas-filter-circle {
  transform: scale(1.08);
}

.nibas-filter-group-title {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: #2B1B12;
  letter-spacing: 0.01em;
}

.nibas-filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 2px 36px;
}

.nibas-filter-group.is-collapsed .nibas-filter-options-list {
  display: none;
}

/* Signature Square Checkbox with Golden Filled Inner Square on Check */
.nibas-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.nibas-filter-option-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.nibas-filter-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nibas-filter-box {
  width: 19px;
  height: 19px;
  border-radius: 3px;
  border: 1.5px solid #A49484;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.nibas-filter-box::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 1.5px;
  background: linear-gradient(135deg, #F2D35B 0%, #D9AC32 100%);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.nibas-filter-option input:checked + .nibas-filter-box {
  border-color: #C49A3C;
  box-shadow: 0 0 0 2px rgba(229, 190, 67, 0.22);
}

.nibas-filter-option input:checked + .nibas-filter-box::after {
  transform: scale(1);
}

.nibas-filter-label {
  font-size: 0.87rem;
  font-weight: 500;
  color: #3D2B20;
  line-height: 1.3;
}

.nibas-filter-option input:checked ~ .nibas-filter-label {
  font-weight: 700;
  color: #2B1B12;
}

.nibas-filter-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8A715F;
  background: #F6EDE0;
  padding: 1px 7px;
  border-radius: 999px;
}

.nibas-filter-wishlist-toggle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #E2D1B8;
}

.nibas-active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.nibas-active-filters-bar.hidden {
  display: none;
}

.nibas-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #FFFDF9;
  border: 1.5px solid #D4AF37;
  color: #2B1B12;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nibas-filter-chip:hover {
  background: #FBECEF;
  border-color: var(--bk-crimson);
  color: var(--bk-crimson);
}

.nibas-mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.nibas-mobile-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1.5px solid #CBB394;
  background: #FFFDF9;
  color: #2B1B12;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.nibas-filter-drawer-close {
  display: none;
  border: 1px solid #DFCEB8;
  background: #FAF4EC;
  color: #2B1B12;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.bk-finder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bk-finder-footer-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.bk-finder-status {
  font-size: 0.86rem;
  color: var(--bk-muted);
  font-weight: 600;
}

/* 5. SHOP BY OCCASION & THEME SECTION */
.bk-occasions-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 240, 198, 0.55) 0%, transparent 45%),
    #FFFDF9;
  padding: 56px 0 60px;
  border-top: 1px solid var(--sandal-border);
}

.bk-occasions-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bk-occasion-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFDF9;
  border: 1.5px solid #E5D4B8;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  box-shadow: 0 6px 18px rgba(74, 46, 24, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bk-occasion-card:hover {
  transform: translateY(-5px);
  border-color: #D4AF37;
  box-shadow: 0 16px 34px rgba(74, 46, 24, 0.15);
}

.bk-occasion-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #F5EBDD;
}

.bk-occasion-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bk-occasion-card:hover .bk-occasion-img-wrap img {
  transform: scale(1.06);
}

.bk-occasion-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(36, 19, 12, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.65);
  color: #FFE8A3;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bk-occasion-info {
  padding: 12px 12px 14px;
}

.bk-occasion-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #2B1B12;
  margin: 0 0 4px;
}

.bk-occasion-info p {
  font-size: 0.74rem;
  color: var(--bk-muted);
  margin: 0;
  line-height: 1.4;
}

/* 6. OFFICIAL MENU CARD 4-SHEET GALLERY */
.bk-menu-sheets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.bk-menu-sheet-card {
  position: relative;
  background: #FFFDF9;
  border: 1.5px solid #DFC496;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(74, 46, 24, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.bk-menu-sheet-card:hover {
  transform: translateY(-5px);
  border-color: #C49A3C;
  box-shadow: 0 18px 36px rgba(74, 46, 24, 0.18);
}

.bk-menu-sheet-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4.6;
  overflow: hidden;
  background: #FAF4EC;
}

.bk-menu-sheet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bk-menu-sheet-zoom-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(36, 19, 12, 0.9);
  border: 1px solid #D4AF37;
  color: #FFE8A3;
  font-size: 0.72rem;
  font-weight: 700;
}

.bk-menu-sheet-caption {
  padding: 12px 14px;
  text-align: center;
}

.bk-menu-sheet-caption h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #2B1B12;
  margin: 0 0 3px;
}

.bk-menu-sheet-caption p {
  font-size: 0.75rem;
  color: var(--bk-muted);
  margin: 0;
}

/* 7. PRODUCT CARDS: 3D TILT, SPECULAR SHEEN, WISHLIST, ZOOM CHIP & DELIVERY PILL */
.tilt-3d-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-sheen-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.bk-prod-card:hover .bk-prod-media {
  box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.55);
}

.bk-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(223, 206, 184, 0.9);
  background: rgba(255, 253, 249, 0.94);
  color: #8C7565;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(43, 27, 18, 0.14);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.bk-wishlist-btn:hover,
.bk-wishlist-btn.is-liked {
  color: #B8292F;
  border-color: #B8292F;
  transform: scale(1.1);
}

.bk-quick-zoom-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.65);
  background: rgba(36, 19, 12, 0.86);
  color: #FFE8A3;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bk-quick-zoom-chip:hover {
  background: #2B160E;
  transform: scale(1.05);
}

.bk-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FAF2E1;
  border: 1px solid #DFC496;
  color: #6B491A;
  margin-top: 6px;
}

/* 8. VERIFIED REVIEW SCREENSHOT THUMBNAIL */
.bk-review-proof-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #DFC496;
  background: #FAF4EC;
  color: #2B1B12;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: zoom-in;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.bk-review-proof-btn:hover {
  border-color: #B8292F;
  background: #FFFDF9;
}

.bk-review-proof-btn img {
  width: 28px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #DFCEB8;
}

/* 9. PRODUCT MODAL LOUPE MAGNIFIER, SERVING GUIDE & LIVE INSCRIPTION PREVIEW */
.zoom-loupe-lens {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  box-shadow: 0 12px 32px rgba(20, 10, 4, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  background-repeat: no-repeat;
  z-index: 20;
  transform: translate(-50%, -50%);
}

.zoom-loupe-lens.hidden {
  display: none !important;
}

.zoom-loupe-toggle-btn.active {
  background: #2B160E !important;
  color: #FFE8A3 !important;
  border-color: #D4AF37 !important;
}

.studio-luxury-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.studio-serving-pill,
.studio-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #FAF4EC;
  border: 1px solid #DFC496;
  color: #463125;
}

.cake-msg-preview-pill {
  margin-top: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF0DF 100%);
  border: 1px dashed #C49A3C;
  font-family: 'Dancing Script', 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #7A2328;
  text-align: center;
}

.cake-msg-preview-pill.hidden {
  display: none;
}

/* 10. CART DRAWER GIFT MODE */
.cart-gift-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FAF4EC;
  border: 1px solid #DFCEB8;
}

.cart-gift-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2B1B12;
  cursor: pointer;
}

.cart-gift-fields {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cart-gift-fields.hidden {
  display: none;
}

.cart-gift-fields input[type="text"] {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #CBB394;
  font-size: 0.8rem;
}

/* 11. UNIVERSAL IMAGE ZOOM LIGHTBOX */
.nibas-lightbox-window {
  position: relative;
  width: min(94vw, 980px);
  height: min(90vh, 840px);
  background: #1C0F0A;
  border: 1.5px solid #D4AF37;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.nibas-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #2B160E;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: #FFFDF9;
}

.nibas-lightbox-topbar h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: #FFE8A3;
}

.nibas-lightbox-topbar p {
  margin: 0;
  font-size: 0.74rem;
  color: #E7D5BA;
}

.nibas-lightbox-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #351E14 0%, #160B07 100%);
  cursor: zoom-in;
}

.nibas-lightbox-stage img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transition: transform 0.08s ease-out;
  user-select: none;
}

.nibas-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #24130C;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFFDF9;
}

.nibas-lightbox-toolbar button {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(255, 253, 249, 0.1);
  color: #FFFDF9;
  font-weight: 700;
  cursor: pointer;
}

/* 12. ADMIN PASSWORD PROTECTION GATE MODAL */
.admin-login-card {
  width: min(92vw, 430px);
  background: #FFFDF9;
  border: 2px solid #D4AF37;
  border-radius: 22px;
  padding: 28px 26px 24px;
  box-shadow: 0 26px 64px rgba(20, 10, 4, 0.45);
  text-align: center;
  position: relative;
}

.admin-login-card.shake {
  animation: adminLoginShake 0.38s ease;
}

@keyframes adminLoginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-6px); }
}

.admin-login-shield {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2B160E 0%, #4A2719 100%);
  border: 2px solid #D4AF37;
  color: #FFE8A3;
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-card h3 {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  color: #2B1B12;
  margin: 0 0 6px;
}

.admin-login-sub {
  font-size: 0.82rem;
  color: var(--bk-muted);
  margin: 0 0 18px;
}

.admin-pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.admin-pw-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBB394;
  background: #FAF4EC;
  font-size: 0.94rem;
  color: #2B1B12;
  outline: none;
}

.admin-pw-input-wrap input:focus {
  border-color: #B8292F;
  background: #FFFFFF;
}

.admin-pw-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 4px;
}

.admin-login-error {
  color: #B8292F;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 12px;
  min-height: 18px;
}

.admin-login-actions {
  display: flex;
  gap: 10px;
}

.admin-login-submit {
  flex: 1;
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2B160E 0%, #4A2719 100%);
  color: #FFE8A3;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-login-cancel {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #CBB394;
  background: #FAF4EC;
  color: #2B1B12;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

/* 13. LIVE ON-PAGE ADMIN EDIT BAR & ON-PAGE INLINE CONTROLS */
.admin-live-edit-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 980;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #24130C 0%, #3E2115 100%);
  border: 1.5px solid #D4AF37;
  color: #FFFDF9;
  box-shadow: 0 14px 34px rgba(15, 7, 3, 0.45);
}

.admin-live-edit-bar.hidden {
  display: none !important;
}

.admin-live-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(255, 253, 249, 0.12);
  color: #FFE8A3;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-live-pill.is-active {
  background: #D4AF37;
  color: #24130C;
}

.admin-inline-editable {
  position: relative;
}

body.admin-live-edit-mode .admin-inline-editable {
  outline: 2px dashed rgba(212, 175, 55, 0.85);
  outline-offset: 4px;
  border-radius: 10px;
}

.admin-inline-overlay-actions {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 25;
  gap: 4px;
}

body.admin-live-edit-mode .admin-inline-editable > .admin-inline-overlay-actions {
  display: inline-flex;
}

.admin-inline-chip-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #D4AF37;
  background: #24130C;
  color: #FFE8A3;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.admin-inline-chip-btn.danger {
  background: #941E23;
  border-color: #FCA5A5;
  color: #FFFFFF;
}

.inline-quick-edit-card {
  width: min(94vw, 540px);
  background: #FFFDF9;
  border: 2px solid #D4AF37;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(20, 10, 4, 0.45);
}

/* 14. RESPONSIVE ADJUSTMENTS */
@media (max-width: 1180px) {
  .bk-occasions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bk-menu-sheets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .bk-shop-layout,
  .bk-home-finder-layout {
    grid-template-columns: 1fr;
  }
  .bk-finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nibas-mobile-filter-bar {
    display: flex;
  }
  #categoryFilterSidebar {
    display: none;
  }
  #categoryFilterSidebar.is-drawer-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 1250;
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
    box-shadow: 16px 0 40px rgba(20, 10, 4, 0.35);
  }
  #categoryFilterSidebar.is-drawer-open .nibas-filter-drawer-close {
    display: inline-flex;
  }
  .admin-live-edit-bar {
    bottom: 72px;
    max-width: 94vw;
  }
}

@media (max-width: 680px) {
  .bk-header-inner {
    gap: 8px !important;
    min-height: 58px !important;
  }
  .bk-header-left {
    gap: 8px !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  .bk-location-pill {
    display: none !important;
  }
  .bk-brand-avatar {
    width: 30px !important;
    height: 30px !important;
  }
  .bk-brand-wordmark {
    font-size: 1.02rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bk-header-actions {
    gap: 2px !important;
  }
  .bk-util-btn {
    min-width: 38px !important;
    padding: 4px 5px !important;
  }
  .bk-util-icon {
    font-size: 1rem !important;
  }
  .bk-util-label {
    font-size: 0.58rem !important;
  }
  .bk-cart-count {
    top: -5px !important;
    right: -9px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 0.6rem !important;
  }
}

@media (max-width: 480px) {
  #headerQuickPayBtn {
    display: none !important;
  }
  .bk-brand-link {
    min-width: 0;
    gap: 6px !important;
  }
  .bk-brand-wordmark {
    font-size: 0.9rem !important;
    max-width: 118px;
  }
  .bk-header-back-btn {
    padding: 4px 7px !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 768px) {
  .bk-hero-stage-viewport {
    height: auto !important;
    min-height: 250px;
    padding: 4px 12px 6px;
  }
  .bk-hero-3d-canvas:not(.hidden) {
    height: min(44vh, 330px) !important;
  }
  .bk-hero-img.bk-hero-glitter-photo {
    width: auto !important;
    max-width: 100% !important;
    max-height: min(54vh, 420px) !important;
  }
  .bk-hero-name-row {
    margin-top: 12px !important;
  }
}

@media (max-width: 600px) {
  .bk-occasions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bk-finder-grid {
    grid-template-columns: 1fr;
  }
  .bk-menu-sheets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
