/* ============================================================
   AFS FIREBALL — WooCommerce Theme (White Edition v2)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Utility buttons ──────────────────────────────────────── */
.fb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
  border: none; transition: var(--trans); text-decoration: none;
}
.fb-btn-primary {
  background: var(--fire-red); color: #fff;
  box-shadow: 0 3px 14px rgba(232,50,10,.28);
}
.fb-btn-primary:hover {
  background: var(--fire-orange); color: #fff;
  box-shadow: 0 5px 20px rgba(232,50,10,.38); transform: translateY(-1px);
}
.fb-btn-outline {
  background: transparent; color: var(--fire-red); border: 2px solid var(--fire-red);
}
.fb-btn-outline:hover { background: var(--fire-red); color: #fff; }
.fb-btn-ghost {
  background: var(--section-bg); color: var(--text-body); border: 1.5px solid var(--border);
}
.fb-btn-ghost:hover { border-color: var(--fire-orange); color: var(--fire-orange); }

/* Badges */
.fire-badge {
  display: inline-block; padding: 3px 10px; border-radius: 30px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.fire-badge-sale { background: #e8320a; color: #fff; }
.fire-badge-new  { background: #f59e0b; color: #fff; }
.fire-badge-hot  { background: #111; color: #fff; }

/* Section heading */
.section-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; color: #111; display: inline-block;
}
.section-heading::after {
  content: ''; display: block; width: 40px; height: 3px; margin-top: 8px;
  background: var(--fire-red); border-radius: 2px;
}

/* ── WooCommerce Breadcrumb ──────────────────────────────── */
.woocommerce-breadcrumb {
  background: transparent; padding: 16px 0; font-size: .8rem; color: var(--text-muted);
}
.woocommerce-breadcrumb a { color: var(--text-muted); }
.woocommerce-breadcrumb a:hover { color: var(--fire-orange); }

/* ══════════════════════════════════════════════════════════════
   SHOP PAGE
   ══════════════════════════════════════════════════════════════ */
.fb-shop-wrapper {
  max-width: 1440px; margin: 0 auto; padding: 32px 24px;
  display: grid; gap: 32px; grid-template-columns: 264px 1fr;
  grid-template-areas: "sidebar main";
}
@media(max-width:1024px) { .fb-shop-wrapper { grid-template-columns: 1fr; grid-template-areas: "main"; } .fb-shop-sidebar { display: none; } }

/* Sidebar */
.fb-shop-sidebar { grid-area: sidebar; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; }
.fb-filter-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; transition: var(--trans);
}
.fb-filter-card:hover { border-color: #ffd0c4; }
.fb-filter-title {
  font-family: var(--font-head); font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-light); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.fb-filter-card.collapsed .fb-filter-body { display: none; }
.fb-filter-body { display: flex; flex-direction: column; gap: 8px; }

.fb-checkbox-item { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .85rem; color: var(--text-body); transition: var(--trans); }
.fb-checkbox-item:hover { color: var(--fire-red); }
.fb-checkbox-item input[type="checkbox"] { display: none; }
.fb-checkbox-box { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--trans); }
.fb-checkbox-item input:checked ~ .fb-checkbox-box { background: var(--fire-red); border-color: var(--fire-red); }
.fb-checkbox-item input:checked ~ .fb-checkbox-box::after { content: '✓'; color: #fff; font-size: .68rem; font-weight: 700; }
.fb-checkbox-count { margin-left: auto; color: var(--text-muted); font-size: .72rem; }

/* Price range */
.fb-range-track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 20px 0; }
.fb-range-fill { position: absolute; height: 100%; background: var(--fire-red); border-radius: 2px; }
.fb-range-input { width: 100%; height: 4px; background: transparent; outline: none; border: none; -webkit-appearance: none; position: absolute; top: 0; pointer-events: none; }
.fb-range-input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: all; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2.5px solid var(--fire-red); cursor: pointer; box-shadow: 0 2px 8px rgba(232,50,10,.25); }
.fb-price-inputs { display: flex; gap: 10px; }
.fb-price-input-wrap { flex: 1; display: flex; align-items: center; gap: 6px; background: var(--section-bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; }
.fb-price-input-wrap span { color: var(--text-muted); font-size: .82rem; }
.fb-price-input-wrap input { background: transparent; border: none; outline: none; color: var(--text-body); font-size: .875rem; width: 100%; }

/* Color swatches */
.fb-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-color-swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: var(--trans); position: relative; }
.fb-color-swatch:hover, .fb-color-swatch.active { border-color: var(--fire-red); transform: scale(1.1); }
.fb-color-swatch.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }

/* Star filter */
.fb-star-filter { display: flex; flex-direction: column; gap: 8px; }
.fb-star-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .83rem; color: var(--text-muted); transition: var(--trans); }
.fb-star-row:hover, .fb-star-row.active { color: #111; }
.fb-stars { color: var(--fire-gold); font-size: .78rem; }

/* Shop topbar */
.fb-shop-main { grid-area: main; }
.fb-shop-topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px; padding: 14px 18px; background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
}
.fb-shop-count { font-size: .85rem; color: var(--text-muted); }
.fb-shop-count strong { color: var(--text-body); }
.fb-shop-controls { display: flex; align-items: center; gap: 12px; }
.fb-view-toggle { display: flex; gap: 3px; }
.fb-view-btn { width: 34px; height: 34px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer; transition: var(--trans); }
.fb-view-btn.active, .fb-view-btn:hover { background: var(--fire-red); border-color: var(--fire-red); color: #fff; }
.fb-sort-select { background: #f9fafb; border: 1.5px solid var(--border); color: var(--text-body); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .83rem; outline: none; cursor: pointer; transition: var(--trans); }
.fb-sort-select:focus { border-color: var(--fire-orange); }
.fb-mobile-filter-btn { display: none; align-items: center; gap: 8px; background: var(--fire-red); color: #fff; border: none; border-radius: var(--radius-sm); padding: 8px 16px; font-weight: 600; cursor: pointer; font-size: .82rem; }
@media(max-width:1024px) { .fb-mobile-filter-btn { display: flex !important; } }

/* Active filters */
.fb-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fb-active-filter-tag { display: inline-flex; align-items: center; gap: 6px; background: #fff5f3; border: 1.5px solid #fca5a5; border-radius: 20px; padding: 3px 10px; font-size: .76rem; color: #e8320a; cursor: pointer; }
.fb-active-filter-tag:hover { background: #fee2e2; }

/* ── PRODUCT GRID ────────────────────────────────────────── */
.fb-products-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fb-products-grid.list-view { grid-template-columns: 1fr; }

/* ── PRODUCT CARD ────────────────────────────────────────── */
.fb-product-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; position: relative; transition: var(--trans);
  display: flex; flex-direction: column;
}
.fb-product-card:hover { border-color: #fca5a5; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fb-product-card.list-view { flex-direction: row; max-height: 190px; }
.fb-product-card.list-view .fb-card-image { width: 190px; flex-shrink: 0; max-height: 190px; }
.fb-product-card.list-view .fb-card-body { flex: 1; }

.fb-card-image { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f9fafb; }
.fb-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.fb-product-card:hover .fb-card-image img { transform: scale(1.05); }

.fb-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }

.fb-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: var(--trans); z-index: 3; }
.fb-product-card:hover .fb-card-overlay { opacity: 1; }
.fb-overlay-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: none; color: #374151; cursor: pointer; transition: var(--trans); transform: translateY(8px); }
.fb-product-card:hover .fb-overlay-btn { transform: translateY(0); }
.fb-overlay-btn:hover { background: var(--fire-red); color: #fff; transform: translateY(-2px) scale(1.08); }
.fb-overlay-btn:nth-child(2) { transition-delay: .05s; }
.fb-overlay-btn:nth-child(3) { transition-delay: .1s; }

.fb-card-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.fb-card-category { font-size: .7rem; color: var(--fire-orange); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; margin-bottom: 5px; }
.fb-card-title { font-family: var(--font-head); font-size: .9rem; font-weight: 600; color: #111; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-card-title a { color: inherit; text-decoration: none; }
.fb-card-title a:hover { color: var(--fire-red); }

.fb-card-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.fb-rating-stars { color: var(--fire-gold); font-size: .72rem; }
.fb-rating-count { color: var(--text-muted); font-size: .72rem; }

.fb-card-price { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.fb-price-current { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: #111; }
.fb-price-original { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }
.fb-price-discount { font-size: .7rem; font-weight: 700; color: var(--fire-red); background: #fff5f3; padding: 2px 6px; border-radius: 4px; }

.fb-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.fb-card-add-to-cart {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: #111; color: #fff; font-weight: 700; font-size: .78rem;
  letter-spacing: .3px; border: none; cursor: pointer; transition: var(--trans); text-transform: uppercase;
}
.fb-card-add-to-cart:hover { background: var(--fire-red); box-shadow: 0 4px 14px rgba(232,50,10,.3); transform: translateY(-1px); }
.fb-card-wish { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--section-bg); border: 1.5px solid var(--border); color: var(--text-muted); cursor: pointer; transition: var(--trans); flex-shrink: 0; }
.fb-card-wish:hover, .fb-card-wish.active { background: #fff5f3; border-color: var(--fire-red); color: var(--fire-red); }

/* ── PAGINATION ──────────────────────────────────────────── */
.fb-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.fb-page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--border); color: var(--text-body); cursor: pointer; font-weight: 600; transition: var(--trans); font-size: .85rem; }
.fb-page-btn:hover { border-color: var(--fire-red); color: var(--fire-red); }
.fb-page-btn.active { background: var(--fire-red); border-color: var(--fire-red); color: #fff; }

/* ── Mobile filter drawer ────────────────────────────────── */
.fb-filter-drawer { position: fixed; inset: 0; z-index: 9999; display: none; }
.fb-filter-drawer.open { display: flex; }
.fb-filter-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.fb-filter-panel { position: relative; width: 300px; height: 100%; background: #fff; border-right: 1.5px solid var(--border); overflow-y: auto; padding: 24px; transform: translateX(-100%); transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; gap: 18px; }
.fb-filter-drawer.open .fb-filter-panel { transform: translateX(0); }
.fb-filter-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.fb-filter-drawer-head h3 { font-size: 1rem; color: #111; margin: 0; }
.fb-drawer-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.3rem; transition: var(--trans); }
.fb-drawer-close:hover { color: var(--fire-red); }

/* ── CART PAGE ───────────────────────────────────────────── */
.fb-cart-page { max-width: 1280px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
@media(max-width:900px) { .fb-cart-page { grid-template-columns: 1fr; } }
.fb-cart-head { font-size: 1.7rem; font-weight: 800; color: #111; margin-bottom: 22px; }
.fb-cart-table { width: 100%; border-collapse: collapse; }
.fb-cart-table thead th { padding: 13px 16px; text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); border-bottom: 1.5px solid var(--border); background: var(--section-bg); }
.fb-cart-row { border-bottom: 1.5px solid var(--border); transition: var(--trans); }
.fb-cart-row:hover { background: #fafafa; }
.fb-cart-row td { padding: 18px 16px; vertical-align: middle; }
.fb-cart-product-cell { display: flex; align-items: center; gap: 14px; }
.fb-cart-product-img { width: 68px; height: 68px; border-radius: var(--radius-sm); object-fit: cover; border: 1.5px solid var(--border); }
.fb-cart-product-name { font-weight: 600; font-size: .875rem; color: #111; }
.fb-cart-product-meta { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.fb-cart-price { font-weight: 600; color: var(--text-body); }
.fb-cart-line-total { font-weight: 800; color: #111; }
.fb-cart-remove { background: transparent; border: none; color: var(--text-muted); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.fb-cart-remove:hover { background: #fee2e2; color: #dc2626; }
.fb-cart-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.fb-coupon-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-coupon-input { background: #f9fafb; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: #111; font-size: .875rem; outline: none; transition: var(--trans); min-width: 190px; }
.fb-coupon-input:focus { border-color: var(--fire-orange); background: #fff; }
.fb-coupon-input::placeholder { color: var(--text-muted); }
.fb-coupon-btn { padding: 10px 18px; background: transparent; border: 1.5px solid var(--fire-orange); color: var(--fire-orange); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: var(--trans); font-size: .83rem; }
.fb-coupon-btn:hover { background: var(--fire-orange); color: #fff; }
.fb-coupon-applied { display: flex; align-items: center; gap: 8px; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: var(--radius-sm); padding: 8px 14px; font-size: .83rem; color: #166534; margin-top: 8px; }
.fb-coupon-applied .remove-coupon { color: #dc2626; cursor: pointer; margin-left: 4px; font-weight: 700; }
.fb-cart-update-btn { padding: 10px 18px; background: #fff; border: 1.5px solid var(--border); color: var(--text-body); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: var(--trans); font-size: .83rem; }
.fb-cart-update-btn:hover { border-color: var(--fire-orange); color: var(--fire-orange); }

/* Cart totals */
.fb-cart-totals { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 88px; }
.fb-cart-totals-title { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 18px; }
.fb-totals-line { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1.5px solid var(--border); font-size: .875rem; }
.fb-totals-line:last-of-type { border-bottom: none; }
.fb-totals-label { color: var(--text-muted); }
.fb-totals-value { font-weight: 600; color: #111; }
.fb-totals-line.discount-line .fb-totals-value { color: #16a34a; }
.fb-totals-line.total-line .fb-totals-label { color: #111; font-weight: 700; font-size: .95rem; }
.fb-totals-line.total-line .fb-totals-value { color: var(--fire-red); font-size: 1.25rem; font-weight: 800; font-family: var(--font-head); }
.fb-checkout-btn { width: 100%; padding: 15px; margin-top: 18px; background: var(--fire-red); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font-head); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: var(--trans); display: flex; align-items: center; justify-content: center; gap: 8px; }
.fb-checkout-btn:hover { background: var(--fire-orange); box-shadow: 0 5px 18px rgba(232,50,10,.32); transform: translateY(-1px); }
.fb-continue-shopping { display: block; text-align: center; margin-top: 12px; color: var(--text-muted); font-size: .83rem; transition: var(--trans); }
.fb-continue-shopping:hover { color: var(--fire-red); }
.fb-cart-trust { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; padding-top: 18px; border-top: 1.5px solid var(--border); }
.fb-cart-trust-item { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-muted); }
.fb-empty-cart { text-align: center; padding: 80px 24px; }
.fb-empty-cart-icon { font-size: 4.5rem; margin-bottom: 18px; opacity: .3; }
.fb-empty-cart h2 { font-size: 1.4rem; color: #111; margin-bottom: 10px; }
.fb-empty-cart p { color: var(--text-muted); margin-bottom: 24px; }

/* ── CHECKOUT ─────────────────────────────────────────────── */
.fb-checkout-page { max-width: 1280px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 380px; gap: 36px; }
@media(max-width:960px) { .fb-checkout-page { grid-template-columns: 1fr; } }
.fb-checkout-steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); }
.fb-step { display: flex; align-items: center; gap: 8px; flex: 1; padding: 13px 18px; background: #f9fafb; font-size: .78rem; font-weight: 600; color: var(--text-muted); position: relative; border-right: 1.5px solid var(--border); }
.fb-step:last-child { border-right: none; }
.fb-step.active { background: #fff5f3; color: var(--fire-red); }
.fb-step.done { background: #f0fdf4; color: #16a34a; }
.fb-step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; background: var(--border); color: var(--text-muted); flex-shrink: 0; }
.fb-step.active .fb-step-num { background: var(--fire-red); color: #fff; }
.fb-step.done .fb-step-num { background: #16a34a; color: #fff; }
.fb-checkout-coupon-notice { background: #fffbeb; border: 1.5px solid #fcd34d; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; font-size: .875rem; color: #92400e; cursor: pointer; transition: var(--trans); }
.fb-checkout-coupon-notice:hover { border-color: var(--fire-gold); }
.fb-coupon-expand { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 22px; display: none; }
.fb-coupon-expand.open { display: block; }
.fb-coupon-expand-inner { display: flex; gap: 8px; }
.fb-coupon-expand-input { flex: 1; padding: 11px 14px; background: #f9fafb; border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: #111; font-size: .875rem; outline: none; transition: var(--trans); }
.fb-coupon-expand-input:focus { border-color: var(--fire-orange); background: #fff; }
.fb-section-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.fb-section-card-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 20px; color: #111; display: flex; align-items: center; gap: 8px; }
.fb-section-card-title svg { color: var(--fire-red); }
.fb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fb-form-row.full { grid-template-columns: 1fr; }
.fb-form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width:600px) { .fb-form-row, .fb-form-row.triple { grid-template-columns: 1fr; } }
.fb-field { display: flex; flex-direction: column; gap: 5px; }
.fb-field label { font-size: .76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.fb-field label .required { color: var(--fire-red); }
.fb-field input, .fb-field select, .fb-field textarea { background: #f9fafb; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; color: #111; font-size: .875rem; outline: none; transition: var(--trans); font-family: var(--font-body); }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus { border-color: var(--fire-orange); box-shadow: 0 0 0 3px rgba(232,50,10,.07); background: #fff; }
.fb-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.fb-field textarea { resize: vertical; min-height: 76px; }
.fb-field input::placeholder, .fb-field textarea::placeholder { color: var(--text-muted); }
.fb-payment-methods { display: flex; flex-direction: column; gap: 10px; }
.fb-payment-option { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: var(--trans); }
.fb-payment-option.selected { border-color: var(--fire-orange); }
.fb-payment-label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: .875rem; color: #111; }
.fb-payment-label input[type="radio"] { display: none; }
.fb-payment-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--trans); }
.fb-payment-option.selected .fb-payment-radio { border-color: var(--fire-orange); }
.fb-payment-option.selected .fb-payment-radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--fire-orange); display: block; }
.fb-payment-desc { padding: 0 16px 14px; font-size: .82rem; color: var(--text-muted); line-height: 1.6; border-top: 1.5px solid var(--border); display: none; }
.fb-payment-option.selected .fb-payment-desc { display: block; }
.fb-order-summary { position: sticky; top: 88px; }
.fb-order-summary-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.fb-order-summary-head { padding: 18px 22px; background: #f9fafb; border-bottom: 1.5px solid var(--border); font-weight: 700; color: #111; font-size: .9rem; }
.fb-order-items { padding: 12px 20px; max-height: 280px; overflow-y: auto; }
.fb-order-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--border); }
.fb-order-item:last-child { border-bottom: none; }
.fb-order-item-img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; border: 1.5px solid var(--border); flex-shrink: 0; position: relative; }
.fb-order-item-qty { position: absolute; top: -6px; right: -6px; background: var(--fire-red); color: #fff; width: 17px; height: 17px; border-radius: 50%; font-size: .63rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fb-order-item-info { flex: 1; min-width: 0; }
.fb-order-item-name { font-size: .83rem; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-order-item-var { font-size: .72rem; color: var(--text-muted); }
.fb-order-item-price { font-weight: 700; color: var(--fire-red); white-space: nowrap; font-size: .875rem; }
.fb-order-summary-totals { padding: 14px 22px; border-top: 1.5px solid var(--border); }
.fb-place-order-btn { width: 100%; padding: 16px; margin: 18px 0 0; background: var(--fire-red); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font-head); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: var(--trans); display: flex; align-items: center; justify-content: center; gap: 8px; }
.fb-place-order-btn:hover { background: var(--fire-orange); box-shadow: var(--shadow-fire); transform: translateY(-1px); }

/* ── AUTH PAGE ───────────────────────────────────────────── */
.fb-auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--section-bg); }
.fb-auth-container { width: 100%; max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
@media(max-width:700px) { .fb-auth-container { grid-template-columns: 1fr; } .fb-auth-hero { display: none; } }
.fb-auth-hero { background: linear-gradient(155deg, #1a0500, #3d0d00); padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.fb-auth-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(232,50,10,.4) 0%, transparent 65%); }
.fb-auth-hero-content { position: relative; z-index: 1; }
.fb-auth-hero-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 28px; }
.fb-auth-hero-logo span { color: var(--fire-orange); }
.fb-auth-hero h2 { font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.fb-auth-hero p { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.7; margin-bottom: 24px; }
.fb-auth-hero-perks { display: flex; flex-direction: column; gap: 10px; }
.fb-auth-perk { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: rgba(255,255,255,.75); }
.fb-auth-perk svg { color: var(--fire-orange); flex-shrink: 0; }
.fb-auth-form-side { padding: 44px 36px; }
.fb-auth-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.fb-auth-tab { padding: 11px 18px; background: transparent; border: none; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: var(--trans); }
.fb-auth-tab.active { color: var(--fire-red); border-bottom-color: var(--fire-red); }
.fb-auth-form-section { display: none; }
.fb-auth-form-section.active { display: block; }
.fb-auth-form { display: flex; flex-direction: column; gap: 14px; }
.fb-auth-field { display: flex; flex-direction: column; gap: 5px; }
.fb-auth-field label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.fb-auth-input { background: #f9fafb; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: #111; font-size: .9rem; outline: none; transition: var(--trans); font-family: var(--font-body); }
.fb-auth-input:focus { border-color: var(--fire-orange); box-shadow: 0 0 0 3px rgba(232,50,10,.07); background: #fff; }
.fb-auth-input-wrap { position: relative; }
.fb-auth-input-wrap .fb-auth-input { width: 100%; padding-right: 44px; }
.fb-eye-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: var(--trans); }
.fb-eye-toggle:hover { color: var(--fire-orange); }
.fb-auth-forgot { text-align: right; }
.fb-auth-forgot a { font-size: .78rem; color: var(--text-muted); }
.fb-auth-forgot a:hover { color: var(--fire-red); }
.fb-auth-submit { width: 100%; padding: 13px; background: var(--fire-red); color: #fff; border: none; border-radius: var(--radius-sm); font-family: var(--font-head); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: var(--trans); }
.fb-auth-submit:hover { background: var(--fire-orange); box-shadow: 0 5px 18px rgba(232,50,10,.32); }
.fb-auth-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .78rem; }
.fb-auth-divider::before, .fb-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fb-auth-terms { font-size: .73rem; color: var(--text-muted); text-align: center; line-height: 1.6; }
.fb-auth-terms a { color: var(--fire-orange); }
.fb-auth-bottom-link { text-align: center; font-size: .83rem; color: var(--text-muted); }
.fb-auth-bottom-link a { color: var(--fire-red); font-weight: 600; }

/* Auth popup */
.fb-auth-popup { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.fb-auth-popup.open { display: flex; }
.fb-auth-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); }
.fb-auth-popup-box { position: relative; width: 100%; max-width: 460px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: popIn .3s cubic-bezier(.4,0,.2,1); }
@keyframes popIn { from { opacity:0; transform:scale(.93) translateY(16px); } to { opacity:1; transform:scale(1) translateY(0); } }
.fb-auth-popup-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--section-bg); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--trans); }
.fb-auth-popup-close:hover { background: #fee2e2; color: var(--fire-red); }
.fb-auth-popup-inner { padding: 32px 28px; }
.fb-auth-popup-logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 900; margin-bottom: 6px; color: #111; }
.fb-auth-popup-logo span { color: var(--fire-orange); }
.fb-auth-popup-tagline { color: var(--text-muted); font-size: .83rem; margin-bottom: 22px; }

/* Wishlist page */
.fb-wishlist-page { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
.fb-wishlist-table { width: 100%; border-collapse: collapse; }
.fb-wishlist-table thead th { padding: 12px 16px; text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); border-bottom: 1.5px solid var(--border); }
.fb-wishlist-table tr { border-bottom: 1.5px solid var(--border); transition: var(--trans); }
.fb-wishlist-table tr:hover { background: #fafafa; }
.fb-wishlist-table td { padding: 16px 16px; vertical-align: middle; }

/* Header icons */
.fb-header-actions { display: flex; align-items: center; gap: 6px; }
.fb-header-icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f9fafb; border: 1.5px solid var(--border); color: #374151; cursor: pointer; transition: var(--trans); text-decoration: none; }
.fb-header-icon-btn:hover { background: #fff5f3; border-color: var(--fire-red); color: var(--fire-red); }
.fb-header-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; background: var(--fire-red); color: #fff; border-radius: 9px; font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-family: var(--font-head); box-shadow: 0 2px 6px rgba(232,50,10,.4); }

/* Mini cart */
.fb-mini-cart-wrap { position: relative; }
.fb-mini-cart-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 500; display: none; overflow: hidden; }
.fb-mini-cart-wrap:hover .fb-mini-cart-dropdown, .fb-mini-cart-dropdown.open { display: block; animation: dropIn .22s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.fb-mini-cart-head { padding: 14px 18px; border-bottom: 1.5px solid var(--border); font-weight: 700; color: #111; font-size: .875rem; background: #f9fafb; }
.fb-mini-cart-items { max-height: 260px; overflow-y: auto; padding: 8px 0; }
.fb-mini-cart-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; transition: var(--trans); }
.fb-mini-cart-item:hover { background: #fafafa; }
.fb-mini-cart-img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.fb-mini-cart-info { flex: 1; min-width: 0; }
.fb-mini-cart-name { font-size: .83rem; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-mini-cart-meta { font-size: .72rem; color: var(--text-muted); }
.fb-mini-cart-price { font-weight: 700; color: var(--fire-red); white-space: nowrap; font-size: .875rem; }
.fb-mini-cart-remove { background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: var(--trans); }
.fb-mini-cart-remove:hover { color: #dc2626; }
.fb-mini-cart-footer { padding: 14px 18px; border-top: 1.5px solid var(--border); }
.fb-mini-cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; color: #111; font-size: .875rem; }
.fb-mini-cart-total span:last-child { color: var(--fire-red); }
.fb-mini-cart-actions { display: flex; gap: 8px; }
.fb-mini-cart-actions a { flex: 1; text-align: center; padding: 9px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; transition: var(--trans); }
.fb-view-cart-link { background: var(--section-bg); border: 1.5px solid var(--border); color: #374151; }
.fb-view-cart-link:hover { border-color: var(--fire-orange); color: var(--fire-orange); }
.fb-checkout-link { background: var(--fire-red); color: #fff; }
.fb-checkout-link:hover { background: var(--fire-orange); color: #fff; }

/* Toast */
.fb-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; }
.fb-toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 270px; max-width: 340px; animation: toastIn .3s ease; }
.fb-toast.success { border-left: 4px solid #16a34a; }
.fb-toast.error { border-left: 4px solid var(--fire-red); }
.fb-toast.info { border-left: 4px solid var(--fire-orange); }
.fb-toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.fb-toast-text { flex: 1; font-size: .83rem; color: #111; }
.fb-toast-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: .875rem; }
@keyframes toastIn { from{ opacity:0; transform:translateX(100%) } to{ opacity:1; transform:translateX(0) } }
.fb-toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastOut { to{ opacity:0; transform:translateX(100%) } }

/* Quick view */
.fb-quickview-overlay { position: fixed; inset: 0; z-index: 99998; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.fb-quickview-overlay.open { display: flex; }
.fb-quickview-box { position: relative; width: 100%; max-width: 820px; max-height: 90vh; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: auto; box-shadow: var(--shadow-lg); animation: popIn .3s ease; }
.fb-quickview-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #f9fafb; border: none; color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--trans); }
.fb-quickview-close:hover { background: #fee2e2; color: var(--fire-red); }
.fb-quickview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media(max-width:600px) { .fb-quickview-grid { grid-template-columns: 1fr; } }
.fb-quickview-img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.fb-quickview-info { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Skeletons */
.fb-product-skeleton { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.skeleton-img { aspect-ratio: 1/1; background: linear-gradient(90deg,#f3f4f6 25%,#e9ecef 50%,#f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line { height: 11px; border-radius: 5px; margin: 8px 16px; background: linear-gradient(90deg,#f3f4f6 25%,#e9ecef 50%,#f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line.w60 { width: 60%; } .skeleton-line.w80 { width: 80%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes spin { to { transform: rotate(360deg); } }
