/* ================================================================
   FIREBALL V2 — Gallery Slider · Buy Now · Header · Mega Menu · Search
   ================================================================ */

/* ── Product Layout ─────────────────────────────────────────── */
.fb-product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-bottom: 48px; align-items: start;
}
@media(max-width:900px) { .fb-product-layout { grid-template-columns: 1fr; gap: 32px; } }

/* ── Gallery Root ─────────────────────────────────────────────  */
.fb-gallery-root { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }

/* ── Main Slider ─────────────────────────────────────────────── */
.fb-slider-main {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: var(--dark-card); border: 1px solid var(--dark-border);
  aspect-ratio: 1 / 1; user-select: none;
}
.fb-slider-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .42s cubic-bezier(.4,0,.2,1); will-change: transform;
}
.fb-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fb-slide img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.fb-slider-main:hover .fb-slide.active img { transform: scale(1.03); }

/* Arrows */
.fb-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(13,13,13,.8); backdrop-filter: blur(6px);
  border: 1px solid var(--dark-border); color: var(--text-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--trans); z-index: 10; opacity: 0;
}
.fb-slider-main:hover .fb-slider-arrow { opacity: 1; }
.fb-slider-prev { left: 12px; }
.fb-slider-next { right: 12px; }
.fb-slider-arrow:hover { background: var(--fire-red); border-color: var(--fire-red); color: #fff; }
.fb-slider-arrow:active { transform: translateY(-50%) scale(.93); }

/* Counter */
.fb-slider-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  border-radius: 20px; padding: 4px 12px;
  font-size: .75rem; color: rgba(255,255,255,.8); font-family: var(--font-head); font-weight: 600;
}
.fb-slider-current { color: var(--fire-orange); }

/* Zoom btn */
.fb-gallery-zoom-btn {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(13,13,13,.75); backdrop-filter: blur(6px);
  border: 1px solid var(--dark-border); color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--trans); opacity: 0;
}
.fb-slider-main:hover .fb-gallery-zoom-btn { opacity: 1; }
.fb-gallery-zoom-btn:hover { background: var(--fire-red); color: #fff; border-color: var(--fire-red); }

/* ── Thumbnails ──────────────────────────────────────────────── */
.fb-slider-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: var(--dark-border) transparent;
}
.fb-slider-thumbs::-webkit-scrollbar { height: 4px; }
.fb-slider-thumbs::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 2px; }
.fb-slider-thumb {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: var(--trans); background: var(--dark-card);
}
.fb-slider-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fb-slider-thumb:hover img { transform: scale(1.07); }
.fb-slider-thumb.active { border-color: var(--fire-orange); box-shadow: 0 0 0 2px rgba(255,107,26,.25); }
.fb-slider-thumb:hover:not(.active) { border-color: rgba(255,107,26,.4); }

/* ── Lightbox ────────────────────────────────────────────────── */
.fb-lightbox {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,.95); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.fb-lightbox.open { display: flex; animation: lbFade .25s ease; }
@keyframes lbFade { from{opacity:0} to{opacity:1} }
.fb-lightbox-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; max-height: 90vh; }
.fb-lightbox-img { max-width: 86vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-md); }
.fb-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.fb-lightbox-close:hover { background: var(--fire-red); border-color: var(--fire-red); }
.fb-lightbox-prev, .fb-lightbox-next {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.fb-lightbox-prev:hover, .fb-lightbox-next:hover { background: var(--fire-red); border-color: var(--fire-red); }
.fb-lightbox-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); border-radius: 20px; padding: 6px 16px;
  font-size: .8rem; color: rgba(255,255,255,.7); font-family: var(--font-head);
}

/* ── Buy Now ─────────────────────────────────────────────────── */
.fb-buy-now-cta {
  flex: 1; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid var(--fire-orange); color: var(--fire-orange);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--trans);
}
.fb-buy-now-cta:hover {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  border-color: transparent; color: #000;
  box-shadow: 0 6px 28px rgba(255,170,0,.35); transform: translateY(-1px);
}
.fb-buy-now-cta:active { transform: translateY(0); }
.fb-buy-now-cta.loading { opacity: .75; pointer-events: none; }
.fb-qty-label-row { margin-bottom: 6px; }
.fb-qty-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.fb-wishlist-heart-btn { flex-shrink: 0; }

/* ── FIREBALL HEADER BAR ─────────────────────────────────────── */
.fb-header-bar {
  background: rgba(8,8,8,.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--dark-border);
  position: sticky; top: 0; z-index: 900;
  padding: 0 40px; height: 68px;
  display: flex; align-items: center; gap: 28px;
}
@media(max-width:1024px) { .fb-header-bar { padding: 0 20px; gap: 16px; } }
.fb-header-logo {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 900;
  color: #fff; text-decoration: none; white-space: nowrap; flex-shrink: 0; letter-spacing: -.5px;
}
.fb-header-logo span { color: var(--fire-orange); }
.fb-header-logo-img { height: 38px; width: auto; }
.fb-header-nav { flex: 1; display: flex; align-items: stretch; justify-content: center; }
.fb-header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Auth buttons */
.fb-header-auth { display: flex; align-items: center; gap: 8px; }
.fb-auth-link-btn {
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .4px; text-transform: uppercase; cursor: pointer;
  transition: var(--trans); text-decoration: none; border: none; display: inline-flex; align-items: center; gap: 6px;
}
.fb-auth-link-btn.ghost {
  background: transparent; color: var(--text-light); border: 1px solid var(--dark-border);
}
.fb-auth-link-btn.ghost:hover { border-color: var(--fire-orange); color: var(--fire-orange); }
.fb-auth-link-btn.fire {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange)); color: #fff;
}
.fb-auth-link-btn.fire:hover {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-gold));
  box-shadow: 0 4px 16px rgba(232,50,10,.4); color: #fff;
}

/* User avatar */
.fb-user-avatar-wrap { position: relative; }
.fb-user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: #fff;
  cursor: pointer; text-decoration: none; border: 2px solid rgba(255,107,26,.35);
  transition: var(--trans); box-shadow: 0 0 0 0 rgba(232,50,10,.4);
}
.fb-user-avatar:hover { border-color: var(--fire-orange); box-shadow: 0 0 0 4px rgba(232,50,10,.15); color: #fff; }
.fb-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 230px; background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); z-index: 500;
  display: none; overflow: hidden;
}
.fb-user-avatar-wrap:hover .fb-user-dropdown { display: block; animation: dropIn .2s ease; }
.fb-user-dropdown-head {
  padding: 16px 18px; border-bottom: 1px solid var(--dark-border);
  background: linear-gradient(135deg, rgba(232,50,10,.1), transparent);
}
.fb-user-dropdown-name { font-weight: 700; font-size: .9rem; }
.fb-user-dropdown-email { font-size: .72rem; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-user-dropdown-links { padding: 6px 0; }
.fb-user-dropdown-links a {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px;
  font-size: .84rem; color: var(--text-light); text-decoration: none; transition: var(--trans);
}
.fb-user-dropdown-links a:hover { background: rgba(255,255,255,.04); color: var(--fire-orange); }
.fb-user-dropdown-links a svg { color: var(--text-muted); flex-shrink: 0; }
.fb-user-dropdown-links a:hover svg { color: var(--fire-orange); }
.fb-udl-logout { color: #f87171 !important; }
.fb-udl-logout:hover { background: rgba(232,50,10,.08) !important; color: var(--fire-red) !important; }
.fb-udl-divider { height: 1px; background: var(--dark-border); margin: 4px 18px; }

/* ── AJAX Search ─────────────────────────────────────────────── */
.fb-search-wrap { position: relative; }
.fb-search-toggle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--dark-border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--trans);
}
.fb-search-toggle-btn:hover, .fb-search-toggle-btn.active {
  border-color: var(--fire-orange); color: var(--fire-orange); background: rgba(232,50,10,.08);
}
.fb-search-box {
  position: absolute; top: calc(100% + 12px); right: 0; width: 380px;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--radius-md); box-shadow: 0 16px 48px rgba(0,0,0,.55);
  z-index: 500; display: none; overflow: hidden;
}
.fb-search-box.open { display: block; animation: dropIn .22s ease; }
@media(max-width:480px) { .fb-search-box { width: 100vw; right: -16px; } }
.fb-search-input-row {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--dark-border); padding: 13px 16px;
}
.fb-search-input-row svg { color: var(--text-muted); flex-shrink: 0; }
.fb-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-primary); font-size: .95rem; font-family: var(--font-body);
}
.fb-search-input::placeholder { color: var(--text-muted); }
.fb-search-clear {
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 1rem; transition: var(--trans); display: none;
}
.fb-search-clear:hover { color: var(--fire-red); }
.fb-search-results { max-height: 340px; overflow-y: auto; }
.fb-search-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  text-decoration: none; transition: var(--trans); border-bottom: 1px solid var(--dark-border);
}
.fb-search-item:last-child { border-bottom: none; }
.fb-search-item:hover { background: rgba(255,255,255,.04); }
.fb-search-item-img {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; border: 1px solid var(--dark-border); flex-shrink: 0;
}
.fb-search-item-info { flex: 1; min-width: 0; }
.fb-search-item-name { font-size: .875rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-search-item-cat { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.fb-search-item-price { font-size: .875rem; font-weight: 700; color: var(--fire-orange); white-space: nowrap; }
.fb-search-state { padding: 20px; text-align: center; color: var(--text-muted); font-size: .85rem; }
.fb-search-footer { padding: 12px 16px; border-top: 1px solid var(--dark-border); text-align: center; font-size: .82rem; }
.fb-search-footer a { color: var(--fire-orange); font-weight: 600; }
.fb-search-spinner {
  width: 20px; height: 20px; border: 2px solid var(--dark-border);
  border-top-color: var(--fire-orange); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto;
}
mark.fb-hl { background: none; color: var(--fire-orange); font-weight: 700; }

/* ── MEGA MENU ───────────────────────────────────────────────── */
.fb-main-nav { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; height: 100%; }
.fb-nav-item { position: static; display: flex; align-items: stretch; }
.fb-nav-link {
  display: flex; align-items: center; gap: 5px; padding: 0 15px;
  color: var(--text-primary); font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
  text-decoration: none; background: none; border: none; cursor: pointer;
  white-space: nowrap; position: relative; transition: color .2s;
}
.fb-nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 15px; right: 15px;
  height: 2px; background: var(--fire-orange);
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.fb-nav-item:hover > .fb-nav-link::after { transform: scaleX(1); }
.fb-nav-item:hover > .fb-nav-link { color: var(--fire-orange); }
.fb-chevron { font-size: .55rem; color: var(--text-muted); transition: transform .25s; margin-left: 2px; }
.fb-nav-item:hover > .fb-nav-link .fb-chevron { transform: rotate(180deg); color: var(--fire-orange); }

/* Mega panel */
.fb-mega-panel {
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(10,10,10,.98); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(232,50,10,.2); border-bottom: 1px solid var(--dark-border);
  z-index: 800; display: none; padding: 40px 64px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
@media(max-width:1024px) { .fb-mega-panel { padding: 28px 24px; } }
.fb-nav-item:hover .fb-mega-panel { display: block; animation: megaSlide .25s ease; }
@keyframes megaSlide { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.fb-mega-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 40px; grid-template-columns: 240px 1fr; }
.fb-mega-featured-col { display: flex; flex-direction: column; gap: 16px; }
.fb-mega-featured-card {
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius-md);
  overflow: hidden; position: relative; text-decoration: none; display: block; transition: var(--trans);
}
.fb-mega-featured-card:hover { border-color: rgba(232,50,10,.4); transform: translateY(-2px); box-shadow: var(--shadow-fire); }
.fb-mega-featured-card img { width: 100%; height: 160px; object-fit: cover; }
.fb-mega-featured-body { padding: 14px; }
.fb-mega-featured-cat { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--fire-orange); margin-bottom: 4px; }
.fb-mega-featured-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fb-mega-featured-price { font-size: .875rem; font-weight: 800; color: var(--fire-orange); font-family: var(--font-head); }
.fb-mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px; }
.fb-mega-col-title {
  font-family: var(--font-head); font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--fire-orange);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--dark-border);
}
.fb-mega-links { display: flex; flex-direction: column; gap: 4px; }
.fb-mega-link {
  display: flex; align-items: center; gap: 8px; font-size: .84rem;
  color: var(--text-light); text-decoration: none; padding: 6px 0; transition: var(--trans);
}
.fb-mega-link:hover { color: var(--fire-orange); padding-left: 4px; }
.fb-mega-link-count { margin-left: auto; font-size: .7rem; color: var(--text-muted); }

/* Simple dropdown */
.fb-nav-dropdown {
  position: absolute; top: 68px; left: 0; min-width: 200px;
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,.4); z-index: 800;
  display: none; overflow: hidden;
}
.fb-nav-item:hover .fb-nav-dropdown { display: block; animation: dropIn .2s ease; }
.fb-nav-dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: .84rem;
  color: var(--text-light); text-decoration: none; transition: var(--trans);
  border-bottom: 1px solid var(--dark-border);
}
.fb-nav-dropdown a:last-child { border-bottom: none; }
.fb-nav-dropdown a:hover { background: rgba(232,50,10,.08); color: var(--fire-orange); }

/* ── Hamburger / Mobile nav ──────────────────────────────────── */
.fb-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.fb-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--trans); }
.fb-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fb-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fb-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(max-width:960px) { .fb-header-nav { display: none !important; } .fb-hamburger { display: flex; } }
.fb-mobile-nav-overlay {
  display: none; position: fixed; inset: 0; top: 68px;
  background: var(--dark-card); z-index: 899; overflow-y: auto;
  flex-direction: column; border-top: 1px solid var(--dark-border);
}
.fb-mobile-nav-overlay.open { display: flex; }
.fb-mobile-nav-item { border-bottom: 1px solid var(--dark-border); }
.fb-mobile-nav-item > a, .fb-mobile-nav-item > button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; font-family: var(--font-head); font-size: .9rem;
  font-weight: 600; color: var(--text-primary); text-decoration: none;
  background: none; border: none; width: 100%; cursor: pointer; transition: var(--trans);
}
.fb-mobile-nav-item > a:hover, .fb-mobile-nav-item > button:hover { color: var(--fire-orange); background: rgba(232,50,10,.05); }
.fb-mobile-subnav { display: none; background: rgba(0,0,0,.3); }
.fb-mobile-subnav.open { display: block; }
.fb-mobile-subnav a { display: block; padding: 11px 44px; font-size: .84rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: var(--trans); }
.fb-mobile-subnav a:hover { color: var(--fire-orange); }

.fb-single-product {
  padding: 26px 0 72px;
}

.fb-single-shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.fb-product-layout {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 34px;
  align-items: start;
}

.fb-gallery-root {
  gap: 16px;
  top: 110px;
}

.fb-slider-main {
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 26, .10), transparent 34%),
    linear-gradient(180deg, #fff, #f7f8fa);
  border: 1px solid #eceff3;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .08);
}

.fb-slide {
  padding: 20px;
}

.fb-slide img {
  border-radius: 22px;
}

.fb-gallery-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.fb-img-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-img-badge-stack .fire-badge {
  background: rgba(255, 255, 255, .94);
  color: #111827;
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.fb-slider-arrow {
  opacity: 1;
  background: rgba(255, 255, 255, .95);
  color: #111827;
  border-color: #e7eaf0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.fb-slider-counter {
  background: rgba(17, 24, 39, .78);
  color: rgba(255, 255, 255, .92);
}

.fb-gallery-zoom-btn {
  opacity: 1;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .95);
  color: #111827;
  border-color: #e7eaf0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.fb-slider-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.fb-slider-thumb {
  width: 88px;
  height: 88px;
  appearance: none;
  padding: 0;
  border-radius: 18px;
  border: 1px solid #e8ebef;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
  cursor: pointer;
}

.fb-slider-thumb.active {
  border-color: var(--fire-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .16);
}

.fb-product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fb-info-card {
  background: #fff;
  border: 1px solid #ebedf1;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .06);
  padding: 28px;
}

.fb-card-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.fb-card-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.fb-card-heading p {
  margin: 0;
  color: #6b7280;
  font-size: .92rem;
  line-height: 1.65;
}

.fb-product-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.fb-product-brand,
.fb-inline-meta {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4b5563;
}

.fb-product-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #101828;
}

.fb-product-rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.fb-prod-stars,
.fb-prod-rating-val,
.fb-prod-review-link {
  color: #111827;
}

.fb-prod-stars {
  letter-spacing: .08em;
  color: #f59e0b;
}

.fb-prod-review-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 600;
}

.fb-prod-review-link:hover {
  color: var(--fire-red);
}

.fb-prod-in-stock {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  font-size: .78rem;
  font-weight: 700;
}

.fb-prod-out-stock {
  background: #fef2f2;
  color: #b91c1c;
}

.fb-product-price-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 20px;
}

.fb-prod-current-price,
.fb-prod-current-price .amount {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.fb-prod-original-price,
.fb-prod-original-price .amount {
  color: #94a3b8;
  font-size: 1rem;
}

.fb-prod-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff3eb;
  color: #c2410c;
  font-size: .82rem;
  font-weight: 700;
}

.fb-product-short-desc,
.fb-description,
.fb-review-text {
  color: #4b5563;
  line-height: 1.78;
  font-size: .98rem;
}

.fb-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fb-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid #e8ebef;
  color: #334155;
  font-size: .85rem;
  font-weight: 600;
}

.fb-variation-grid {
  display: grid;
  gap: 18px;
}

.fb-variation-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fbfcfe;
  border: 1px solid #edf1f5;
}

.fb-variation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fb-variation-label {
  font-size: .88rem;
  font-weight: 700;
  color: #111827;
}

.fb-variation-selected {
  font-size: .8rem;
  color: #6b7280;
  font-weight: 600;
}

.fb-variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-swatch {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #dbe1e8;
  background: #fff;
  color: #334155;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}

.fb-swatch:hover,
.fb-swatch.active {
  border-color: var(--fire-orange);
  color: var(--fire-red);
  background: #fff7f2;
  box-shadow: 0 8px 18px rgba(255, 107, 26, .12);
}

.fb-variation-select-wrap {
  position: relative;
}

.fb-variation-select-wrap select,
.fb-variable-form .variations select {
  width: 100%;
  background: #fff !important;
  border: 1px solid #dde3ea !important;
  color: #111827 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.fb-reset-variations {
  display: inline-flex;
  margin: 14px 0 0;
  color: var(--fire-red);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.fb-reset-variations:hover {
  color: var(--fire-orange);
}

.fb-variation-summary {
  margin-top: 18px;
}

.fb-variation-summary .woocommerce-variation {
  display: block !important;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8f4;
  border: 1px solid #ffd7c4;
  color: #7c2d12;
  line-height: 1.7;
}

.fb-variation-summary .woocommerce-variation-price {
  margin-bottom: 8px;
  color: #111827;
  font-weight: 800;
}

.fb-variation-summary .woocommerce-variation-availability p {
  margin: 0;
  color: #166534;
  font-weight: 700;
}

.fb-atc-form .single_variation_wrap {
  margin-top: 18px;
}

.fb-atc-form .variations_button {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-qty-label-row {
  margin: 0;
}

.fb-qty-label {
  color: #6b7280;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fb-atc-form .quantity {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  padding: 6px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.fb-atc-form .quantity input.qty {
  width: 100%;
  min-width: 72px;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.fb-atc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fb-add-to-cart-btn,
.fb-buy-now-cta,
.fb-external-product-row a {
  min-height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  text-decoration: none;
  transition: var(--trans);
}

.fb-add-to-cart-btn {
  background: #111827 !important;
  color: #fff !important;
  border: 1px solid #111827 !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .14);
}

.fb-add-to-cart-btn:hover {
  background: #000 !important;
  border-color: #000 !important;
  transform: translateY(-1px);
}

.fb-buy-now-cta {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.fb-buy-now-cta:hover {
  color: #111827;
  border-color: #9ca3af;
  background: #f9fafb;
  transform: translateY(-1px);
}

.fb-buy-now-cta.loading {
  opacity: .8;
  pointer-events: none;
}

.fb-add-to-cart-btn.disabled,
.fb-buy-now-cta.disabled {
  opacity: .55;
  pointer-events: none;
}

.fb-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fb-trust-item {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fbfcfe;
  border: 1px solid #edf1f5;
  color: #475569;
  font-size: .85rem;
  font-weight: 600;
}

.fb-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fb-stock-html,
.fb-stock-html p {
  margin: 18px 0 0;
  color: #166534;
  font-weight: 700;
}

.fb-product-meta {
  display: grid;
  gap: 12px;
}

.fb-meta-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.fb-meta-row:last-child {
  border-bottom: none;
}

.fb-meta-key {
  color: #6b7280;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fb-meta-val {
  color: #111827;
  font-weight: 600;
  text-align: right;
}

.fb-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}

.fb-share-label {
  font-size: .82rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fb-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

.fb-share-btn:hover {
  color: var(--fire-red);
  border-color: #fdba74;
  background: #fff7ed;
}

.fb-product-tabs {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #ebedf1;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .05);
}

.fb-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.fb-tab-btn {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--trans);
}

.fb-tab-btn.active,
.fb-tab-btn:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.fb-tab-pane {
  display: none;
}

.fb-tab-pane.active {
  display: block;
}

.fb-info-table {
  width: 100%;
  border-collapse: collapse;
}

.fb-info-table th,
.fb-info-table td {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.fb-info-table th {
  width: 220px;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fb-info-table td {
  color: #334155;
}

.fb-reviews-summary {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-bottom: 26px;
  padding: 22px;
  border-radius: 24px;
  background: #fbfcfe;
  border: 1px solid #edf1f5;
}

.fb-review-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fb-review-score-big {
  font-size: 3rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.fb-review-score-stars {
  margin-top: 10px;
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: .12em;
}

.fb-review-score-count {
  margin-top: 8px;
  color: #6b7280;
}

.fb-rating-bars {
  display: grid;
  gap: 12px;
}

.fb-rating-bar-row {
  display: grid;
  grid-template-columns: 62px 1fr 46px;
  gap: 12px;
  align-items: center;
  color: #475569;
  font-size: .88rem;
}

.fb-rating-bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.fb-rating-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.fb-review-list {
  display: grid;
  gap: 16px;
}

.fb-review-item {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #edf1f5;
}

.fb-review-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.fb-reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.fb-reviewer-name {
  color: #111827;
  font-weight: 700;
}

.fb-reviewer-date {
  color: #94a3b8;
  font-size: .82rem;
}

.fb-review-stars {
  color: #f59e0b;
  margin-top: 4px;
}

.fb-empty-review {
  color: #6b7280;
}

.fb-related-products {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1024px) {
  .fb-product-layout {
    grid-template-columns: 1fr;
  }

  .fb-gallery-root {
    position: relative;
    top: 0;
  }

  .fb-trust-badges,
  .fb-atc-row,
  .fb-reviews-summary {
    grid-template-columns: 1fr;
  }

  .fb-meta-row {
    flex-direction: column;
  }

  .fb-meta-val {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .fb-single-product {
    padding-bottom: 48px;
  }

  .fb-info-card,
  .fb-product-tabs {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .fb-slider-main {
    border-radius: 22px;
  }

  .fb-slide {
    padding: 14px;
  }

  .fb-slider-thumb {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .fb-product-title {
    font-size: 1.8rem;
  }

  .fb-tab-nav {
    flex-direction: column;
  }

  .fb-tab-btn {
    width: 100%;
    justify-content: center;
  }
}
