
/* ============================================================
   BD Basket — Banggood-Style Homepage (bgg-* prefix)
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.bgg-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── TOP HERO ROW ───────────────────────────────────────────── */
.bgg-top {
  background: #f0f0f0;
  padding: 6px 0 0;
}
.bgg-top-inner {
  display: flex;
  gap: 0;
  align-items: stretch;
}
/* Right column: hero + coupon stacked, sidebar stretches alongside both */
.bgg-top-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 350px;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.bgg-sidebar {
  width: 215px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 4px 0 0 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.bgg-sidebar-hd {
  background: var(--primary, #FF6600);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.bgg-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  flex: 1;
  overflow-y: auto;
}
.bgg-sidebar-list::-webkit-scrollbar { width: 3px; }
.bgg-sidebar-list::-webkit-scrollbar-thumb { background: #eee; border-radius: 4px; }
.bgg-sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: .82rem;
  color: #333;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-bottom: 1px solid #f7f7f7;
}
.bgg-sidebar-link i:first-child {
  font-size: 1rem;
  color: var(--primary, #FF6600);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.bgg-sidebar-link span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgg-sb-arrow {
  margin-left: auto;
  font-size: .9rem;
  color: #ccc;
  flex-shrink: 0;
}
.bgg-sidebar-link:hover {
  background: #fff3e6;
  color: var(--primary, #FF6600);
}
.bgg-sidebar-link:hover .bgg-sb-arrow { color: var(--primary, #FF6600); }
.bgg-sidebar-all {
  border-top: 1px solid #f0f0f0;
  font-weight: 600;
  color: var(--primary, #FF6600);
}
.bgg-sidebar-all i:first-child { color: var(--primary, #FF6600); }

/* ── HERO CAROUSEL ──────────────────────────────────────────── */
.bgg-hero-area {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0 4px 0 0;
}
.bgg-hero-swiper {
  width: 100%;
  height: 350px;
}
.bgg-slide {
  display: flex;
  align-items: center;
  height: 350px;
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
}

/* Slide colour themes */
.bgg-slide-1 { background: linear-gradient(135deg, #c43d00 0%, #FF6600 50%, #FF9500 100%); }
.bgg-slide-2 { background: linear-gradient(135deg, #0d1b6e 0%, #1565c0 55%, #1e88e5 100%); }
.bgg-slide-3 { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%); }
.bgg-slide-4 { background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 55%, #9c27b0 100%); }

.bgg-slide-body {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 52%;
}
.bgg-slide-tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.bgg-slide-h {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.bgg-slide-h em {
  font-style: normal;
  color: #ffe066;
  display: block;
}
.bgg-slide-2 .bgg-slide-h em,
.bgg-slide-3 .bgg-slide-h em,
.bgg-slide-4 .bgg-slide-h em { color: #fff176; }
.bgg-slide-p {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  margin: 0 0 24px;
  line-height: 1.5;
}
.bgg-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary, #FF6600);
  font-weight: 700;
  font-size: .88rem;
  padding: 11px 26px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.bgg-slide-2 .bgg-slide-btn { color: #1565c0; }
.bgg-slide-3 .bgg-slide-btn { color: #2e7d32; }
.bgg-slide-4 .bgg-slide-btn { color: #7b1fa2; }
.bgg-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }

/* Decorative right side */
.bgg-slide-deco {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  z-index: 1;
}
.bgg-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
}
.bgg-dc-1 { width: 250px; height: 250px; top: 5px; left: 5px; }
.bgg-dc-2 { width: 180px; height: 180px; top: 40px; left: 40px; background: rgba(255,255,255,.07); }
.bgg-deco-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 6.5rem;
  color: rgba(255,255,255,.22);
  line-height: 1;
}
.bgg-deco-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: #fff;
  color: var(--primary, #FF6600);
  font-weight: 900;
  font-size: 1.2rem;
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  letter-spacing: 1px;
}
.bgg-slide-2 .bgg-deco-badge { color: #1565c0; }
.bgg-slide-3 .bgg-deco-badge { color: #2e7d32; }
.bgg-slide-4 .bgg-deco-badge { color: #7b1fa2; }

/* Hero pagination */
.bgg-hero-dots { bottom: 14px !important; }
.bgg-hero-dots .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.5); opacity: 1;
}
.bgg-hero-dots .swiper-pagination-bullet-active {
  background: #fff; width: 24px; border-radius: 4px;
  transition: width .3s;
}
.bgg-hero-prev, .bgg-hero-next {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.92);
  border-radius: 50%; color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  --swiper-navigation-size: 16px;
}
.bgg-hero-prev:hover, .bgg-hero-next:hover { background: #fff; }
.bgg-hero-prev { left: 12px; }
.bgg-hero-next { right: 12px; }

/* ── CATEGORY STRIP — Today's Best Selling Category ────────── */
.bgg-cat-strip {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 12px 0 14px;
}
.bgg-cat-strip-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bgg-cat-strip-hd-dot {
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--primary, #FF6600);
  border-radius: 2px;
  flex-shrink: 0;
}
.bgg-cat-strip-hd-title {
  font-size: .92rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.2px;
  flex: 1;
}
.bgg-cat-strip-hd-more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary, #FF6600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  border: 1px solid var(--primary, #FF6600);
  padding: 3px 10px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bgg-cat-strip-hd-more:hover {
  background: var(--primary, #FF6600);
  color: #fff;
}
.bgg-cat-strip-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bgg-cat-strip-inner::-webkit-scrollbar { display: none; }
.bgg-cat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  flex: 1;
  min-width: 72px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: transform .18s;
}
.bgg-cat-strip-item:hover { transform: translateY(-3px); }
.bgg-cat-strip-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.bgg-cat-strip-name {
  font-size: .72rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.25;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgg-cat-strip-item:hover .bgg-cat-strip-name { color: var(--primary, #FF6600); }

/* ── FEATURE BAR ────────────────────────────────────────────── */
.bgg-feat-bar {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 14px 0;
}
.bgg-feat-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.bgg-feat-inner::-webkit-scrollbar { display: none; }
.bgg-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px;
  flex: 1;
  min-width: 140px;
  white-space: nowrap;
}
.bgg-feat i {
  font-size: 1.55rem;
  color: var(--primary, #FF6600);
  flex-shrink: 0;
}
.bgg-feat div {
  display: flex;
  flex-direction: column;
}
.bgg-feat b { font-size: .8rem; font-weight: 700; color: #222; }
.bgg-feat small { font-size: .7rem; color: #999; }
.bgg-feat-sep {
  width: 1px; height: 30px;
  background: #e8e8e8; flex-shrink: 0;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.bgg-section {
  background: #fff;
  margin: 10px 0 0;
  padding: 20px 0 24px;
}
.bgg-section-alt { background: #fafafa; }
.bgg-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.bgg-sec-hd-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bgg-sec-dot {
  display: inline-block;
  width: 4px; height: 22px;
  background: var(--primary, #FF6600);
  border-radius: 2px; flex-shrink: 0;
}
.bgg-sec-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin: 0;
  letter-spacing: -.3px;
}
.bgg-flash-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary, #FF6600);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.bgg-see-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary, #FF6600);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 12px;
  border: 1px solid var(--primary, #FF6600);
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bgg-see-all:hover { background: var(--primary, #FF6600); color: #fff; }

/* Countdown */
.bgg-countdown { display: flex; align-items: center; gap: 4px; }
.bgg-cd-unit { display: inline-flex; align-items: baseline; gap: 2px; }
.bgg-cd-unit span {
  font-size: .88rem; font-weight: 800; color: #fff;
  background: #111; padding: 2px 6px; border-radius: 3px;
  min-width: 28px; text-align: center; display: inline-block;
}
.bgg-cd-unit em { font-style: normal; font-size: .68rem; color: #888; }
.bgg-cd-sep { font-weight: 800; color: #888; }

/* ── PRODUCT SWIPER ─────────────────────────────────────────── */
.bgg-swiper-wrap { position: relative; padding: 0 4px; }
.bgg-prod-swiper { width: 100%; padding-bottom: 4px; }
.bgg-prod-swiper .swiper-button-prev,
.bgg-prod-swiper .swiper-button-next {
  width: 32px; height: 32px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  --swiper-navigation-size: 14px;
  color: #444;
  top: 36%;
}
.bgg-prod-swiper .swiper-button-prev { left: -2px; }
.bgg-prod-swiper .swiper-button-next { right: -2px; }
.bgg-prod-swiper .swiper-button-prev:hover,
.bgg-prod-swiper .swiper-button-next:hover {
  background: var(--primary, #FF6600);
  color: #fff;
  border-color: var(--primary, #FF6600);
}

/* ── PRODUCT GRID ───────────────────────────────────────────── */
.bgg-prod-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) { .bgg-prod-grid { grid-template-columns: repeat(5,1fr); } }
@media (max-width: 900px)  { .bgg-prod-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 640px)  { .bgg-prod-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px)  { .bgg-prod-grid { grid-template-columns: repeat(2,1fr); } }

/* ── HIT CATEGORIES GRID ────────────────────────────────────── */
.bgg-hit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .bgg-hit-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 768px)  { .bgg-hit-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px)  { .bgg-hit-grid { grid-template-columns: repeat(2,1fr); } }

.bgg-hit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bgg-hit-card:hover {
  box-shadow: 0 6px 20px rgba(255,102,0,.14);
  transform: translateY(-3px);
  border-color: var(--primary, #FF6600);
}
.bgg-hit-thumb {
  width: 76px; height: 76px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.bgg-hit-label {
  font-size: .78rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgg-hit-card:hover .bgg-hit-label { color: var(--primary, #FF6600); }

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.bgg-nl {
  background: linear-gradient(135deg, #FF6600 0%, #FF9500 100%);
  padding: 40px 0;
  margin-top: 10px;
}
.bgg-nl-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.bgg-nl-icon { font-size: 3.2rem; color: rgba(255,255,255,.65); flex-shrink: 0; }
.bgg-nl-copy { flex: 1; min-width: 200px; }
.bgg-nl-copy h3 { color: #fff; font-weight: 800; font-size: 1.3rem; margin: 0 0 4px; }
.bgg-nl-copy p  { color: rgba(255,255,255,.85); font-size: .88rem; margin: 0; }
.bgg-nl-form { display: flex; gap: 0; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.bgg-nl-inp {
  border: none; outline: none;
  padding: 12px 18px; font-size: .9rem;
  border-radius: 4px 0 0 4px;
  width: 300px;
  background: rgba(255,255,255,.95);
  color: #111;
}
.bgg-nl-inp::placeholder { color: #aaa; }
.bgg-nl-btn {
  background: #111; color: #fff;
  font-weight: 700; font-size: .88rem;
  border: none; padding: 12px 24px;
  border-radius: 0 4px 4px 0;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.bgg-nl-btn:hover { background: #333; }
.bgg-nl-msg { width: 100%; margin-top: 8px; color: rgba(255,255,255,.9); font-size: .82rem; }

/* ── COUPONS + MINI PRODUCTS ROW ───────────────────────────── */
.bgg-deals-row {
  background: #fff;
  margin: 10px 0 0;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}
.bgg-deals-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Left column — coupons */
.bgg-coupons-col {
  width: 32%;
  flex-shrink: 0;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bgg-coupons-hd {
  font-size: .92rem;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.bgg-coupons-hd i {
  font-size: 1.1rem;
  color: var(--primary, #FF6600);
}
.bgg-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bgg-cpn-card {
  display: flex;
  align-items: stretch;
  border: 1.5px dashed var(--cpn-bd, #FF6600);
  background: var(--cpn-bg, #fff3e6);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.bgg-cpn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.bgg-cpn-left {
  background: var(--cpn-tx, #FF6600);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-width: 62px;
  flex-shrink: 0;
  line-height: 1;
  gap: 2px;
}
.bgg-cpn-num {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.bgg-cpn-off {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .9;
}
.bgg-cpn-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  gap: 4px;
  flex: 1;
}
.bgg-cpn-cat {
  font-size: .78rem;
  font-weight: 700;
  color: var(--cpn-tx, #FF6600);
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgg-cpn-btn {
  font-size: .7rem;
  font-weight: 600;
  color: var(--cpn-tx, #FF6600);
  border: 1px solid var(--cpn-tx, #FF6600);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
  line-height: 1.6;
  transition: background .15s, color .15s;
}
.bgg-cpn-card:hover .bgg-cpn-btn {
  background: var(--cpn-tx, #FF6600);
  color: #fff;
}

/* Vertical divider */
.bgg-deals-sep {
  width: 1px;
  background: #eee;
  flex-shrink: 0;
  margin: 0 22px;
}

/* Right column — mini products */
.bgg-mini-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bgg-mini-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .92rem;
  font-weight: 800;
  color: #111;
}
.bgg-mini-more {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary, #FF6600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--primary, #FF6600);
  padding: 3px 10px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bgg-mini-more:hover {
  background: var(--primary, #FF6600);
  color: #fff;
}
.bgg-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bgg-mini-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  padding-bottom: 8px;
}
.bgg-mini-card:hover {
  box-shadow: 0 4px 16px rgba(255,102,0,.14);
  transform: translateY(-2px);
  border-color: var(--primary, #FF6600);
}
.bgg-mini-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.bgg-mini-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform .2s;
}
.bgg-mini-card:hover .bgg-mini-img-wrap img { transform: scale(1.05); }
.bgg-mini-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary, #FF6600);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1.4;
}
.bgg-mini-price {
  font-size: .82rem;
  font-weight: 800;
  color: var(--primary, #FF6600);
  padding: 0 8px;
  line-height: 1.2;
}
.bgg-mini-old {
  font-size: .7rem;
  color: #aaa;
  text-decoration: line-through;
  padding: 0 8px;
  line-height: 1;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .bgg-sidebar { display: none; }
  .bgg-hero-area { border-radius: 4px 4px 0 0; }
  .bgg-hero-swiper, .bgg-slide { height: 350px; }
  .bgg-top-right { height: 350px; }
  .bgg-slide { padding: 36px 44px; }
  .bgg-slide-h { font-size: 2.1rem; }
  .bgg-slide-deco { width: 200px; height: 200px; right: 28px; }
}
@media (max-width: 767px) {
  .bgg-hero-swiper, .bgg-slide { height: 300px; }
  .bgg-top-inner { min-height: 300px; }
  .bgg-slide { padding: 26px 30px; }
  .bgg-slide-h { font-size: 1.6rem; }
  .bgg-slide-body { max-width: 62%; }
  .bgg-slide-deco { width: 160px; height: 160px; right: 16px; }
  .bgg-deco-icon { font-size: 4.5rem; }
  .bgg-slide-p { display: none; }
  .bgg-nl-inp { width: 220px; }
  .bgg-cat-strip-icon { width: 50px; height: 50px; font-size: 1.4rem; border-radius: 10px; }
  .bgg-cat-strip-hd-title { font-size: .82rem; }
}
@media (max-width: 480px) {
  .bgg-hero-swiper, .bgg-slide { height: 220px; }
  .bgg-top-inner { min-height: 220px; }
  .bgg-slide { padding: 20px 22px; }
  .bgg-slide-h { font-size: 1.2rem; }
  .bgg-slide-tag { font-size: .64rem; }
  .bgg-slide-btn { padding: 8px 16px; font-size: .78rem; }
  .bgg-slide-deco { display: none; }
  .bgg-slide-body { max-width: 100%; }
  .bgg-nl-inner { gap: 16px; }
  .bgg-nl-form { flex-direction: column; width: 100%; }
  .bgg-nl-inp { width: 100%; border-radius: 4px; }
  .bgg-nl-btn { width: 100%; border-radius: 4px; }
  .bgg-cat-strip-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .bgg-feat { padding: 4px 12px; min-width: 120px; }
}

/* ── REAL IMAGE SLIDES ──────────────────────────────────── */
.bgg-real-slide {
  display: block;
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.bgg-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1199px) { .bgg-real-slide { height: 350px; } }
@media (max-width: 767px)  { .bgg-real-slide { height: 260px; } }
@media (max-width: 480px)  { .bgg-real-slide { height: 200px; } }

/* ── GET MORE COUPONS ROW ───────────────────────────────── */
.bgg-mc-section {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 138px;
}
.bgg-mc-info {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #FF6600 0%, #FF9500 100%);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bgg-mc-title {
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
}
.bgg-mc-go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-decoration: none;
  align-self: flex-start;
  transition: background .15s;
}
.bgg-mc-go:hover { background: rgba(255,255,255,.4); color: #fff; }
.bgg-mc-coupons { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.bgg-mc-cpn-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border-radius: 4px;
  padding: 5px 8px;
  text-decoration: none;
  transition: background .15s;
}
.bgg-mc-cpn-item:hover { background: rgba(255,255,255,.30); }
.bgg-mc-cpn-info {
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #fff;
  flex-shrink: 0;
}
.bgg-mc-cpn-num {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.bgg-mc-cpn-head {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.bgg-mc-cpn-pc  { font-size: .72rem; font-weight: 800; color: #fff; }
.bgg-mc-cpn-off { font-size: .58rem; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .4px; }
.bgg-mc-cpn-over {
  font-size: .68rem;
  color: rgba(255,255,255,.88);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgg-mc-products {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}
.bgg-mc-products::-webkit-scrollbar { display: none; }
.bgg-mc-pi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex: 1;
  min-width: 90px;
  padding: 6px 8px;
  border-right: 1px solid #f0f0f0;
  transition: background .15s;
}
.bgg-mc-pi:last-child { border-right: none; }
.bgg-mc-pi:hover { background: #fff8f4; }
.bgg-mc-pi-img {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bgg-mc-pi-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bgg-mc-pi-price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary, #FF6600);
  text-align: center;
  line-height: 1.2;
}
.bgg-mc-pi-old {
  font-size: .68rem;
  color: #aaa;
  text-decoration: line-through;
  text-align: center;
}

/* ── DISCOVER NEW + TOP BRANDS ──────────────────────────── */
.bgg-disc-brands {
  background: #fff;
  margin-top: 8px;
}
.bgg-disc-brands-inner {
  display: flex;
  align-items: stretch;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}
.bgg-disc-col,
.bgg-brands-col {
  flex: 1;
  padding: 16px;
  min-width: 0;
}
.bgg-db-sep {
  width: 1px;
  background: #f0f0f0;
  flex-shrink: 0;
}
.bgg-db-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.bgg-db-title {
  font-size: .95rem;
  font-weight: 800;
  color: #111;
}
.bgg-db-more {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary, #FF6600);
  text-decoration: none;
  border: 1px solid var(--primary, #FF6600);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bgg-db-more:hover { background: var(--primary, #FF6600); color: #fff; }
.bgg-disc-list {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bgg-disc-item {
  flex: 1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: transform .15s;
}
.bgg-disc-item:hover { transform: translateY(-2px); }
.bgg-disc-img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
.bgg-disc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.bgg-disc-price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary, #FF6600);
  text-align: center;
}
.bgg-brands-list {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bgg-brand-item {
  flex: 1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  transition: transform .15s;
}
.bgg-brand-item:hover { transform: translateY(-2px); }
.bgg-brand-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}
.bgg-brand-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bgg-brand-logo {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.bgg-brand-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ── HOT CATEGORIES ─────────────────────────────────────── */
.bgg-hot-cate-section {
  background: #fff;
  margin-top: 8px;
  padding: 0 0 4px;
}
.bgg-hot-cate-row {
  display: flex;
  gap: 0;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  min-height: 340px;
}
.bgg-hot-featured {
  width: 210px;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
}
.bgg-hot-feat-hd {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}
.bgg-hot-feat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.bgg-hot-feat-name {
  font-size: .88rem;
  font-weight: 800;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  transition: color .15s;
}
.bgg-hot-feat-link:hover .bgg-hot-feat-name { color: var(--primary, #FF6600); }
.bgg-hot-feat-go {
  font-size: .72rem;
  color: var(--primary, #FF6600);
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.bgg-hot-feat-products { flex: 1; display: flex; flex-direction: column; }
.bgg-hot-feat-pi {
  display: block;
  border-bottom: 1px solid #f5f5f5;
  overflow: hidden;
  flex: 1;
  transition: background .15s;
}
.bgg-hot-feat-pi:last-child { border-bottom: none; }
.bgg-hot-feat-pi:hover { background: #fff8f4; }
.bgg-hot-feat-pi img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  padding: 6px;
  display: block;
}
.bgg-hot-right-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
}
.bgg-hot-cat-box {
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 10px 8px;
}
.bgg-hot-cat-box:nth-child(3n)   { border-right: none; }
.bgg-hot-cat-box:nth-last-child(-n+3) { border-bottom: none; }
.bgg-hot-cat-hd-link {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}
.bgg-hot-cat-name {
  font-size: .78rem;
  font-weight: 700;
  color: #111;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s;
}
.bgg-hot-cat-hd-link:hover .bgg-hot-cat-name { color: var(--primary, #FF6600); }
.bgg-hot-cat-prow { display: flex; gap: 4px; }
.bgg-hot-cat-pi {
  flex: 1;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  transition: border-color .15s;
}
.bgg-hot-cat-pi:hover { border-color: var(--primary, #FF6600); }
.bgg-hot-cat-pi img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 3px;
  display: block;
}

/* Hot categories responsive */
@media (max-width: 900px) {
  .bgg-hot-featured { width: 160px; }
  .bgg-hot-right-grid { grid-template-columns: repeat(2, 1fr); }
  .bgg-hot-cat-box:nth-child(3n)       { border-right: 1px solid #f0f0f0; }
  .bgg-hot-cat-box:nth-child(2n)       { border-right: none; }
  .bgg-hot-cat-box:nth-last-child(-n+3){ border-bottom: 1px solid #f0f0f0; }
  .bgg-hot-cat-box:nth-last-child(-n+2){ border-bottom: none; }
}
@media (max-width: 640px) {
  .bgg-hot-featured { display: none; }
  .bgg-hot-right-grid { grid-template-columns: repeat(2, 1fr); }
}

/* MC row responsive */
@media (max-width: 768px) {
  .bgg-mc-info { width: 160px; }
  .bgg-mc-pi-img { width: 76px; height: 76px; }
}
@media (max-width: 480px) {
  .bgg-mc-section { flex-wrap: wrap; }
  .bgg-mc-info { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .bgg-mc-title { width: 100%; }
  .bgg-mc-coupons { flex-direction: row; gap: 6px; width: 100%; }
  .bgg-mc-cpn-item { flex: 1; }
  .bgg-mc-products { padding: 6px 4px; }
}

/* Discover+brands responsive */
@media (max-width: 640px) {
  .bgg-disc-brands-inner { flex-direction: column; }
  .bgg-db-sep { width: 100%; height: 1px; }
}

/* Deals row responsive */
@media (max-width: 900px) {
  .bgg-deals-inner { flex-wrap: wrap; }
  .bgg-coupons-col { width: 100%; padding-right: 0; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .bgg-coupons-hd { width: 100%; }
  .bgg-coupons-list { flex-direction: row; gap: 10px; width: 100%; }
  .bgg-cpn-card { flex: 1; min-width: 140px; }
  .bgg-deals-sep { display: none; }
  .bgg-mini-col { width: 100%; }
  .bgg-mini-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .bgg-coupons-list { flex-direction: column; }
  .bgg-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .bgg-cpn-num { font-size: 1.3rem; }
}

/* ============================================================
   PRODUCT CARD (bgg-card)
   ============================================================ */
.bgg-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bgg-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  border-color: #e0e0e0;
  transform: translateY(-3px);
}

/* Image area */
.bgg-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}
.bgg-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .3s;
  display: block;
}
.bgg-card:hover .bgg-card-img { transform: scale(1.06); }

/* Badges */
.bgg-card-badges {
  position: absolute;
  top: 7px; left: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.bgg-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.6;
  letter-spacing: .3px;
}
.bgg-badge-new  { background: #22c55e; color: #fff; }
.bgg-badge-sale { background: var(--primary, #FF6600); color: #fff; }

/* Hover action buttons */
.bgg-card-actions {
  position: absolute;
  top: 7px; right: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .2s, transform .2s;
  z-index: 2;
}
.bgg-card:hover .bgg-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.bgg-card-act {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  color: #555;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.13);
  transition: background .15s, color .15s;
  padding: 0;
}
.bgg-card-act:hover { background: var(--primary, #FF6600); color: #fff; }
.bgg-card-act.active i { color: #ef4444; }

/* Body */
.bgg-card-body {
  padding: 8px 10px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bgg-card-cat {
  font-size: .66rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.bgg-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color .15s;
  margin-top: 2px;
}
.bgg-card-name:hover { color: var(--primary, #FF6600); }
.bgg-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
  flex-wrap: wrap;
}
.bgg-card-now {
  font-size: .9rem;
  font-weight: 800;
  color: var(--primary, #FF6600);
  line-height: 1;
}
.bgg-card-old {
  font-size: .72rem;
  color: #ccc;
  text-decoration: line-through;
  font-weight: 400;
}

/* Footer */
.bgg-card-foot {
  padding: 0 10px 10px;
  flex-shrink: 0;
}
.bgg-atc-btn {
  width: 100%;
  background: #fff;
  border: 1px solid var(--primary, #FF6600);
  color: var(--primary, #FF6600);
  font-size: .76rem;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .15s, color .15s;
  line-height: 1;
}
.bgg-atc-btn:hover,
.bgg-atc-btn:disabled { background: var(--primary, #FF6600); color: #fff; }

/* ============================================================
   SHOP PAGE
   ============================================================ */

/* Hero / breadcrumb bar */
.bgg-shop-hero {
  background: #f7f7f7;
  border-bottom: 1px solid #ebebeb;
  padding: 14px 0;
}
.bgg-shop-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.bgg-shop-hero-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  margin: 0;
}
.bgg-shop-hero-title em { font-style: normal; color: var(--primary, #FF6600); }
.bgg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: #999;
  flex-wrap: wrap;
}
.bgg-breadcrumb a { color: #666; text-decoration: none; transition: color .15s; }
.bgg-breadcrumb a:hover { color: var(--primary, #FF6600); }
.bgg-breadcrumb i { font-size: .82rem; }
.bgg-breadcrumb span { color: #333; }

/* Layout */
.bgg-shop-body { padding: 20px 0 40px; background: #f5f5f5; }
.bgg-shop-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Sidebar */
.bgg-shop-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bgg-filter-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}
.bgg-filter-head {
  font-size: .82rem;
  font-weight: 800;
  color: #111;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafafa;
}
.bgg-filter-head i { color: var(--primary, #FF6600); font-size: .9rem; }
.bgg-filter-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.bgg-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  font-size: .8rem;
  color: #444;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.bgg-filter-link:hover { background: #fff8f4; color: var(--primary, #FF6600); }
.bgg-filter-link.active {
  color: var(--primary, #FF6600);
  font-weight: 700;
  border-left-color: var(--primary, #FF6600);
  background: #fff3e6;
}
.bgg-filter-count {
  font-size: .68rem;
  background: #f0f0f0;
  color: #888;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
}
.bgg-filter-link.active .bgg-filter-count { background: rgba(255,102,0,.12); color: var(--primary, #FF6600); }

/* Price filter */
.bgg-filter-body { padding: 12px 14px; }
.bgg-price-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}
.bgg-price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bgg-price-field label { font-size: .68rem; color: #999; font-weight: 600; }
.bgg-price-field input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: .78rem;
  color: #333;
  outline: none;
  transition: border-color .15s;
}
.bgg-price-field input:focus { border-color: var(--primary, #FF6600); }
.bgg-price-dash { font-size: .8rem; color: #bbb; padding-bottom: 7px; flex-shrink: 0; }
.bgg-filter-apply {
  width: 100%;
  background: var(--primary, #FF6600);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.bgg-filter-apply:hover { background: #e55a00; }

/* Clear filters */
.bgg-filter-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: #e53935;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  background: #fff;
  transition: background .15s;
}
.bgg-filter-clear:hover { background: #ffebee; color: #c62828; }

/* Main product area */
.bgg-shop-main { flex: 1; min-width: 0; }

/* Toolbar */
.bgg-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.bgg-toolbar-info { font-size: .8rem; color: #888; }
.bgg-toolbar-info strong { color: #111; }
.bgg-toolbar-info em { font-style: normal; color: var(--primary, #FF6600); }
.bgg-toolbar-right { display: flex; align-items: center; gap: 10px; }
.bgg-filter-toggle {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  color: #444;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.bgg-filter-toggle:hover { border-color: var(--primary, #FF6600); color: var(--primary, #FF6600); }
.bgg-sort-form { display: flex; align-items: center; gap: 6px; }
.bgg-sort-select {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: .78rem;
  color: #333;
  outline: none;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
}
.bgg-sort-select:focus { border-color: var(--primary, #FF6600); }

/* Product grid */
.bgg-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1400px) { .bgg-shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .bgg-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .bgg-shop-grid { grid-template-columns: repeat(2, 1fr); } }

/* Pagination */
.bgg-pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.bgg-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.bgg-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.bgg-page-btn:hover { background: #fff3e6; border-color: var(--primary, #FF6600); color: var(--primary, #FF6600); }
.bgg-page-btn.active { background: var(--primary, #FF6600); border-color: var(--primary, #FF6600); color: #fff; }
.bgg-page-btn.disabled { color: #ccc; cursor: default; pointer-events: none; background: #fafafa; }

/* Empty state */
.bgg-shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  text-align: center;
}
.bgg-shop-empty img { max-width: 130px; opacity: .7; }
.bgg-shop-empty h3 { font-size: 1.1rem; font-weight: 800; color: #222; margin: 0; }
.bgg-shop-empty p { font-size: .88rem; color: #888; margin: 0; }
.bgg-shop-empty em { font-style: normal; color: var(--primary, #FF6600); }
.bgg-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary, #FF6600);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s;
}
.bgg-empty-btn:hover { background: #e55a00; color: #fff; }

/* Shop responsive */
@media (max-width: 900px) {
  .bgg-shop-sidebar {
    position: fixed;
    top: 0; left: -260px;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    z-index: 1050;
    padding: 16px;
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
    transition: left .3s;
    gap: 10px;
  }
  .bgg-shop-sidebar.bgg-sidebar-open { left: 0; }
  .bgg-filter-toggle { display: flex; }
}

/* ============================================================
   PRODUCT DETAIL PAGE (bgg-pd-*)
   ============================================================ */
.bgg-pd-page { padding: 24px 0 48px; background: #f5f5f5; }

/* Main two-column layout */
.bgg-pd-main {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
@media (max-width: 768px) { .bgg-pd-main { flex-direction: column; padding: 16px; } }

/* Gallery */
.bgg-pd-gallery { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .bgg-pd-gallery { width: 320px; } }
@media (max-width: 768px) { .bgg-pd-gallery { width: 100%; } }

.bgg-pd-img-main {
  position: relative;
  aspect-ratio: 1/1;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgg-pd-img-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s;
}
.bgg-pd-img-main:hover img { transform: scale(1.04); }
.bgg-pd-disc-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary, #FF6600); color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
}
.bgg-pd-new-badge {
  position: absolute; top: 10px; right: 10px;
  background: #22c55e; color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
}

/* Thumbs */
.bgg-pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.bgg-pd-thumb {
  width: 64px; height: 64px;
  border: 2px solid #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s;
}
.bgg-pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.bgg-pd-thumb.active { border-color: var(--primary, #FF6600); }
.bgg-pd-thumb:hover { border-color: var(--primary, #FF6600); }

/* Info panel */
.bgg-pd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bgg-pd-cat {
  font-size: .72rem; font-weight: 700; color: var(--primary, #FF6600);
  text-decoration: none; text-transform: uppercase; letter-spacing: .5px;
  transition: opacity .15s;
}
.bgg-pd-cat:hover { opacity: .75; }
.bgg-pd-title {
  font-size: 1.25rem; font-weight: 800; color: #111;
  line-height: 1.35; margin: 0;
}
@media (max-width: 640px) { .bgg-pd-title { font-size: 1.05rem; } }

/* Price */
.bgg-pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bgg-pd-price {
  font-size: 1.8rem; font-weight: 900;
  color: var(--primary, #FF6600); line-height: 1;
}
.bgg-pd-old { font-size: 1rem; color: #ccc; text-decoration: line-through; }
.bgg-pd-save {
  font-size: .75rem; font-weight: 800;
  background: #fff3e6; color: var(--primary, #FF6600);
  padding: 3px 8px; border-radius: 4px;
}

/* Variants */
.bgg-pd-variants { display: flex; flex-direction: column; gap: 8px; }
.bgg-pd-var-label { font-size: .8rem; font-weight: 700; color: #555; }
.bgg-pd-var-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bgg-pd-var-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 7px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px; background: #fff;
  cursor: pointer; font-size: .78rem; font-weight: 600; color: #333;
  transition: border-color .15s, background .15s, color .15s;
}
.bgg-pd-var-btn:hover { border-color: var(--primary, #FF6600); color: var(--primary, #FF6600); }
.bgg-pd-var-btn.active { border-color: var(--primary, #FF6600); background: #fff3e6; color: var(--primary, #FF6600); }
.bgg-pd-var-price { font-size: .72rem; font-weight: 800; color: var(--primary, #FF6600); }
.bgg-pd-var-err { font-size: .78rem; color: #e53935; min-height: 18px; }

/* Quantity */
.bgg-pd-qty-row { display: flex; align-items: center; gap: 12px; }
.bgg-pd-qty-label { font-size: .82rem; font-weight: 700; color: #555; }
.bgg-pd-qty { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.bgg-pd-qty-btn {
  width: 38px; height: 38px; border: none; background: #f7f7f7;
  color: #444; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.bgg-pd-qty-btn:hover { background: var(--primary, #FF6600); color: #fff; }
.bgg-pd-qty-input {
  width: 52px; height: 38px; border: none; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0;
  text-align: center; font-size: .9rem; font-weight: 700; color: #111; outline: none;
}

/* Actions */
.bgg-pd-actions { display: flex; gap: 10px; }
.bgg-pd-atc {
  flex: 1; background: var(--primary, #FF6600); color: #fff;
  border: 2px solid var(--primary, #FF6600);
  border-radius: 6px; font-size: .9rem; font-weight: 800;
  padding: 12px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s, border-color .15s;
}
.bgg-pd-atc:hover { background: #e55a00; border-color: #e55a00; }
.bgg-pd-wish {
  width: 48px; height: 48px; flex-shrink: 0;
  border: 2px solid #e0e0e0; border-radius: 6px;
  background: #fff; color: #555; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.bgg-pd-wish:hover { border-color: #ef4444; color: #ef4444; }
.bgg-pd-wish.active { border-color: #ef4444; color: #ef4444; }

/* Meta */
.bgg-pd-meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-top: 1px solid #f0f0f0; }
.bgg-pd-meta-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.bgg-pd-meta-row span { color: #999; min-width: 90px; }
.bgg-pd-meta-row strong, .bgg-pd-meta-row a { color: #222; text-decoration: none; font-weight: 600; }
.bgg-pd-meta-row a:hover { color: var(--primary, #FF6600); }

/* Trust badges */
.bgg-pd-trust {
  display: flex; gap: 0;
  border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden;
}
.bgg-pd-trust-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; text-align: center;
  border-right: 1px solid #f0f0f0; font-size: .68rem; color: #666;
}
.bgg-pd-trust-item:last-child { border-right: none; }
.bgg-pd-trust-item i { font-size: 1.2rem; color: var(--primary, #FF6600); }
@media (max-width: 480px) { .bgg-pd-trust { flex-wrap: wrap; }
  .bgg-pd-trust-item { flex: 1 1 50%; border-bottom: 1px solid #f0f0f0; }
}

/* Description block */
.bgg-pd-desc-block {
  background: #fff; border: 1px solid #f0f0f0; border-radius: 8px;
  overflow: hidden; margin-bottom: 16px;
}
.bgg-pd-desc-head {
  font-size: .88rem; font-weight: 800; color: #111;
  padding: 12px 20px; background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.bgg-pd-desc-body {
  padding: 18px 20px; font-size: .85rem; color: #555;
  line-height: 1.75; max-width: 780px;
}

/* Related products */
.bgg-pd-related { margin-top: 8px; }
.bgg-pd-rel-hd {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.bgg-pd-rel-title { font-size: 1rem; font-weight: 800; color: #111; flex: 1; }

/* ============================================================
   CART PAGE (bgg-cart-*)
   ============================================================ */
.bgg-cart-page { padding: 24px 0 48px; background: #f5f5f5; min-height: 60vh; }

/* Empty */
.bgg-cart-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 70px 20px; text-align: center;
  background: #fff; border-radius: 8px; border: 1px solid #f0f0f0;
}
.bgg-cart-empty img { max-width: 150px; opacity: .75; }
.bgg-cart-empty h3 { font-size: 1.2rem; font-weight: 800; color: #222; margin: 0; }
.bgg-cart-empty p  { font-size: .88rem; color: #888; margin: 0; }

/* Two-column layout */
.bgg-cart-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 900px) { .bgg-cart-layout { flex-direction: column; } }

/* Items panel */
.bgg-cart-items {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 8px;
  overflow: hidden;
}

/* Header row */
.bgg-cart-head {
  display: grid;
  grid-template-columns: 1fr 100px 140px 100px 44px;
  gap: 0;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: .75rem; font-weight: 700; color: #888;
  text-transform: uppercase; letter-spacing: .4px;
}
@media (max-width: 640px) {
  .bgg-cart-head { grid-template-columns: 1fr 90px 40px; }
  .bgg-cart-head span:nth-child(2),
  .bgg-cart-head span:nth-child(4) { display: none; }
}

/* Cart row */
.bgg-cart-row {
  display: grid;
  grid-template-columns: 1fr 100px 140px 100px 44px;
  align-items: center;
  gap: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #f8f8f8;
  transition: background .15s;
}
.bgg-cart-row:last-child { border-bottom: none; }
.bgg-cart-row:hover { background: #fafafa; }
@media (max-width: 640px) {
  .bgg-cart-row { grid-template-columns: 1fr 90px 40px; }
  .bgg-cart-price, .bgg-cart-line { display: none; }
}

/* Product cell */
.bgg-cart-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bgg-cart-img {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: 6px; object-fit: contain;
  border: 1px solid #f0f0f0; background: #fafafa; padding: 4px;
}
.bgg-cart-prod-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bgg-cart-prod-name {
  font-size: .82rem; font-weight: 600; color: #222;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.bgg-cart-variant {
  font-size: .7rem; color: #888;
  display: flex; align-items: center; gap: 3px;
}

/* Price / line total */
.bgg-cart-price { font-size: .82rem; color: #666; }
.bgg-cart-line  { font-size: .88rem; font-weight: 800; color: var(--primary, #FF6600); }

/* Qty controls */
.bgg-cart-qty { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; width: fit-content; }
.bgg-qty-btn {
  width: 32px; height: 34px; border: none; background: #f7f7f7;
  color: #444; font-size: .95rem; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.bgg-qty-btn:hover { background: var(--primary, #FF6600); color: #fff; }
.bgg-qty-input {
  width: 44px; height: 34px; border: none;
  border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0;
  text-align: center; font-size: .82rem; font-weight: 700; color: #111; outline: none;
}

/* Remove button */
.bgg-cart-remove {
  width: 34px; height: 34px; border: 1px solid #ffcdd2; border-radius: 4px;
  background: #fff; color: #e53935; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.bgg-cart-remove:hover { background: #e53935; color: #fff; border-color: #e53935; }

/* Footer row */
.bgg-cart-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-top: 1px solid #f0f0f0; background: #fafafa;
  flex-wrap: wrap; gap: 10px;
}
.bgg-cart-continue {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 600; color: #555;
  text-decoration: none; transition: color .15s;
}
.bgg-cart-continue:hover { color: var(--primary, #FF6600); }
.bgg-cart-clear {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; color: #e53935;
  border: 1px solid #ffcdd2; background: #fff;
  padding: 6px 14px; border-radius: 4px; cursor: pointer;
  transition: background .15s;
}
.bgg-cart-clear:hover { background: #ffebee; }

/* Summary panel */
.bgg-cart-summary {
  width: 320px; flex-shrink: 0;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 8px;
  overflow: hidden; position: sticky; top: 80px;
}
@media (max-width: 900px) { .bgg-cart-summary { width: 100%; position: static; } }

.bgg-summary-head {
  font-size: .9rem; font-weight: 800; color: #111;
  padding: 14px 18px; background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.bgg-summary-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bgg-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .85rem; color: #555;
}
.bgg-summary-row strong { color: #111; font-weight: 700; }
.bgg-free-ship { color: #22c55e !important; font-size: .82rem; }
.bgg-summary-divider { height: 1px; background: #f0f0f0; }
.bgg-summary-total { font-size: 1rem; font-weight: 800; }
.bgg-summary-total span { color: #111; }
.bgg-summary-total strong { font-size: 1.2rem; color: var(--primary, #FF6600); }

.bgg-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: calc(100% - 36px); margin: 0 18px 14px;
  background: var(--primary, #FF6600); color: #fff;
  border: none; border-radius: 6px; padding: 13px;
  font-size: .9rem; font-weight: 800; cursor: pointer;
  transition: background .15s;
}
.bgg-checkout-btn:hover { background: #e55a00; }

.bgg-summary-trust {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 0 18px 12px; font-size: .72rem; color: #888; flex-wrap: wrap;
}
.bgg-summary-trust span { display: flex; align-items: center; gap: 4px; }
.bgg-summary-trust i { color: var(--primary, #FF6600); }

.bgg-summary-payments {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px 16px; border-top: 1px solid #f0f0f0;
}
.bgg-summary-payments img { height: 22px; opacity: .7; }

/* ============================================================
   CHECKOUT PAGE (bgg-co-*)
   ============================================================ */
.bgg-checkout-steps { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 14px 0; }
.bgg-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.bgg-step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bgg-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #e0e0e0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #bbb;
}
.bgg-step.active .bgg-step-num { border-color: var(--primary,#FF6600); background: var(--primary,#FF6600); color: #fff; }
.bgg-step.done .bgg-step-num { border-color: #22c55e; background: #22c55e; color: #fff; font-size: .9rem; }
.bgg-step-label { font-size: .72rem; font-weight: 600; color: #bbb; }
.bgg-step.active .bgg-step-label { color: var(--primary,#FF6600); }
.bgg-step.done  .bgg-step-label { color: #22c55e; }
.bgg-step-line { flex: 1; max-width: 80px; height: 2px; background: #e0e0e0; }
.bgg-step-line.done { background: #22c55e; }

.bgg-co-page { padding: 24px 0 48px; background: #f5f5f5; }
.bgg-co-layout { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 900px) { .bgg-co-layout { flex-direction: column; } }

/* Card */
.bgg-co-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.bgg-co-left  { flex: 1; min-width: 0; }
.bgg-co-right { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }
@media (max-width: 900px) { .bgg-co-right { width: 100%; position: static; } }

.bgg-co-card-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 800; color: #111;
  padding: 13px 18px; background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.bgg-co-card-head i { color: var(--primary,#FF6600); }
.bgg-co-card-body { padding: 16px 18px; }
.bgg-co-card-foot { padding: 0 18px 18px; }

/* Shipping address */
.bgg-co-addr { display: flex; flex-direction: column; gap: 8px; }
.bgg-co-addr-row { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #333; }
.bgg-co-addr-row i { color: var(--primary,#FF6600); font-size: .9rem; width: 16px; flex-shrink: 0; }
.bgg-co-edit-addr {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; color: var(--primary,#FF6600);
  text-decoration: none; margin-top: 10px;
  border: 1px solid var(--primary,#FF6600); padding: 4px 12px; border-radius: 4px;
  transition: background .15s;
}
.bgg-co-edit-addr:hover { background: #fff3e6; }
.bgg-co-no-addr { font-size: .84rem; color: #888; margin: 0; }
.bgg-co-no-addr a { color: var(--primary,#FF6600); }

/* Order items list */
.bgg-co-items { padding: 8px 0; }
.bgg-co-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; text-align: center; }
.bgg-co-empty img { max-width: 100px; opacity: .65; }
.bgg-co-empty p { font-size: .84rem; color: #888; margin: 0; }
.bgg-co-empty a { color: var(--primary,#FF6600); }

.bgg-co-item {
  display: grid;
  grid-template-columns: 60px 1fr 130px 90px 36px;
  align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #f8f8f8;
  transition: background .15s;
}
.bgg-co-item:last-child { border-bottom: none; }
.bgg-co-item:hover { background: #fafafa; }
@media (max-width: 640px) {
  .bgg-co-item { grid-template-columns: 56px 1fr 100px 36px; }
  .bgg-co-item-line { display: none; }
}
.bgg-co-item-img { width: 60px; height: 60px; border-radius: 6px; object-fit: contain; border: 1px solid #f0f0f0; background: #fafafa; padding: 3px; }
.bgg-co-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bgg-co-item-name { font-size: .8rem; font-weight: 600; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bgg-co-item-var  { font-size: .68rem; color: #999; display: flex; align-items: center; gap: 3px; }
.bgg-co-item-price{ font-size: .75rem; color: #888; }
.bgg-co-item-line { font-size: .85rem; font-weight: 800; color: var(--primary,#FF6600); text-align: right; }

/* Order summary card */
.bgg-co-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: #555; padding: 4px 0; }
.bgg-co-sum-row strong { color: #111; font-weight: 700; }
.bgg-co-sum-divider { height: 1px; background: #f0f0f0; margin: 10px 0; }
.bgg-co-sum-total { font-size: 1rem; font-weight: 800; padding-top: 4px; }
.bgg-co-sum-total strong { font-size: 1.3rem; color: var(--primary,#FF6600); }

.bgg-place-order-btn {
  width: 100%; background: var(--primary,#FF6600); color: #fff;
  border: none; border-radius: 6px; padding: 14px;
  font-size: .92rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s; margin-bottom: 12px;
}
.bgg-place-order-btn:hover { background: #e55a00; }
.bgg-place-order-btn:disabled { opacity: .7; cursor: not-allowed; }

.bgg-co-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .72rem; color: #888; margin-bottom: 12px;
}
.bgg-co-secure i { color: #22c55e; }
.bgg-co-pay-icons { display: flex; justify-content: center; gap: 8px; }
.bgg-co-pay-icons img { height: 20px; opacity: .65; }

/* ============================================================
   Auth Pages (Login / Register)  bgg-auth-*
   ============================================================ */

.bgg-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  padding: 32px 16px;
}

.bgg-auth-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
}

/* Left panel */
.bgg-auth-left {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ff6a00 0%, #ee0979 100%);
  color: #fff;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bgg-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bgg-auth-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  padding: 4px;
}

.bgg-auth-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.bgg-auth-tagline {
  font-size: .9rem;
  opacity: .88;
  line-height: 1.5;
}

.bgg-auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.bgg-auth-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
}

.bgg-auth-perk i {
  font-size: 1.2rem;
  opacity: .9;
}

/* Right panel */
.bgg-auth-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.bgg-auth-form-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bgg-auth-hd {
  margin-bottom: 4px;
}

.bgg-auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.bgg-auth-sub {
  color: #6b7280;
  font-size: .9rem;
  margin: 0;
}

/* Alert */
.bgg-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .875rem;
}

.bgg-auth-alert i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.bgg-auth-alert ul { margin: 0; padding-left: 16px; }
.bgg-auth-alert li { margin-bottom: 2px; }

.bgg-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bgg-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Fields */
.bgg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bgg-label {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .02em;
}

.bgg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bgg-input-icon {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
}

.bgg-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 40px 0 38px;
  font-size: .9rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
}

.bgg-input:focus {
  border-color: #ff6a00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}

.bgg-input-err {
  border-color: #ef4444 !important;
}

.bgg-pass-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1rem;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color .15s;
}

.bgg-pass-toggle:hover { color: #374151; }

/* Field row (remember me) */
.bgg-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bgg-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.bgg-check {
  width: 15px;
  height: 15px;
  accent-color: #ff6a00;
  cursor: pointer;
}

/* Submit button */
.bgg-auth-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .18s, transform .12s;
  margin-top: 4px;
}

.bgg-auth-btn:hover  { opacity: .92; }
.bgg-auth-btn:active { transform: scale(.98); }

/* Switch link */
.bgg-auth-switch {
  text-align: center;
  font-size: .875rem;
  color: #6b7280;
}

.bgg-auth-switch a {
  color: #ff6a00;
  font-weight: 600;
  text-decoration: none;
}

.bgg-auth-switch a:hover { text-decoration: underline; }

/* Back link */
.bgg-auth-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: .83rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color .15s;
}

.bgg-auth-back:hover { color: #374151; }

/* Responsive */
@media (max-width: 680px) {
  .bgg-auth-card { flex-direction: column; min-height: auto; border-radius: 12px; }
  .bgg-auth-left { width: 100%; padding: 28px 24px; gap: 16px; }
  .bgg-auth-perks { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .bgg-auth-right { padding: 28px 20px; }
}


/* ============================================================
   Thank-You Page  bgg-ty-*
   ============================================================ */

.bgg-ty-page {
  min-height: 80vh;
  padding: 48px 16px 64px;
  background: #f3f4f6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bgg-ty-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  padding: 48px 40px;
  max-width: 620px;
  width: 100%;
  text-align: center;
}

/* Animated check circle */
.bgg-ty-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.bgg-ty-circle {
  width: 80px;
  height: 80px;
}

.bgg-ty-check {
  width: 80px;
  height: 80px;
}

.bgg-ty-circle-bg {
  stroke: #22c55e;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: bggCircleDraw .6s ease forwards;
}

.bgg-ty-checkmark {
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: bggCheckDraw .4s .55s ease forwards;
}

@keyframes bggCircleDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes bggCheckDraw {
  to { stroke-dashoffset: 0; }
}

/* Headings */
.bgg-ty-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.bgg-ty-sub {
  color: #6b7280;
  font-size: .95rem;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Meta grid */
.bgg-ty-meta {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bgg-ty-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .875rem;
}

.bgg-ty-meta-row span { color: #6b7280; flex-shrink: 0; }
.bgg-ty-meta-row strong { color: #111827; text-align: right; word-break: break-word; }

/* Items */
.bgg-ty-items-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  text-align: left;
}

.bgg-ty-items-head {
  background: #f9fafb;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
}

.bgg-ty-items { padding: 4px 0; }

.bgg-ty-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bgg-ty-item:last-child { border-bottom: none; }

.bgg-ty-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.bgg-ty-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bgg-ty-item-name {
  font-size: .875rem;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgg-ty-item-var {
  font-size: .78rem;
  color: #9ca3af;
}

.bgg-ty-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.bgg-ty-item-qty  { font-size: .78rem; color: #9ca3af; }
.bgg-ty-item-price{ font-size: .9rem; font-weight: 600; color: #111827; }

/* Totals */
.bgg-ty-totals {
  padding: 12px 16px 14px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bgg-ty-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: #374151;
}

.bgg-ty-total-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 2px 0;
}

.bgg-ty-grand {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

/* Actions */
.bgg-ty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.bgg-ty-btn-shop,
.bgg-ty-btn-orders {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .18s, transform .12s;
}

.bgg-ty-btn-shop {
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: #fff;
}

.bgg-ty-btn-orders {
  background: #f3f4f6;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}

.bgg-ty-btn-shop:hover,
.bgg-ty-btn-orders:hover { opacity: .88; transform: translateY(-1px); }

/* Trust row */
.bgg-ty-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.bgg-ty-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #9ca3af;
}

.bgg-ty-trust-item i { font-size: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .bgg-ty-card  { padding: 32px 20px; }
  .bgg-ty-title { font-size: 1.5rem; }
  .bgg-ty-actions { flex-direction: column; align-items: stretch; }
  .bgg-ty-btn-shop,
  .bgg-ty-btn-orders { justify-content: center; }
}


/* ============================================================
   Account Pages  bgg-acc-*
   ============================================================ */

.bgg-acc-page {
  padding: 36px 0 64px;
  background: #f3f4f6;
  min-height: 70vh;
}

.bgg-acc-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.bgg-acc-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 80px;
}

.bgg-acc-avatar-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.bgg-acc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bgg-acc-avatar i { font-size: 1.4rem; color: #fff; }
.bgg-acc-avatar-info { min-width: 0; }

.bgg-acc-avatar-name {
  font-size: .875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgg-acc-avatar-email {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgg-acc-nav {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}

.bgg-acc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: .875rem;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s, color .15s;
}

.bgg-acc-nav-link:last-child { border-bottom: none; }
.bgg-acc-nav-link i { font-size: 1.05rem; color: #9ca3af; transition: color .15s; }
.bgg-acc-nav-link:hover { background: #fef3ec; color: #ff6a00; }
.bgg-acc-nav-link:hover i { color: #ff6a00; }
.bgg-acc-nav-link.active { background: #fff5ee; color: #ff6a00; font-weight: 600; }
.bgg-acc-nav-link.active i { color: #ff6a00; }
.bgg-acc-nav-logout { color: #ef4444; }
.bgg-acc-nav-logout i { color: #ef4444; }
.bgg-acc-nav-logout:hover { background: #fef2f2; color: #ef4444; }

.bgg-acc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bgg-acc-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}

.bgg-acc-card-head {
  padding: 14px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
}

.bgg-acc-card-head i { color: #ff6a00; font-size: 1rem; }
.bgg-acc-card-body { padding: 24px 20px; }

.bgg-acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bgg-field-full { grid-column: 1 / -1; }

.bgg-acc-divider {
  position: relative;
  text-align: center;
  margin: 20px 0 16px;
}

.bgg-acc-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.bgg-acc-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bgg-acc-form-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.bgg-acc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bgg-acc-meta-item { display: flex; flex-direction: column; gap: 4px; }

.bgg-acc-meta-label {
  font-size: .75rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bgg-acc-meta-val { font-size: .9rem; font-weight: 600; color: #111827; }

.bgg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}
.bgg-status-active   { background: #f0fdf4; color: #166534; }
.bgg-status-inactive { background: #f3f4f6; color: #6b7280; }

.bgg-ord-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bgg-ord-refresh-btn {
  height: 44px;
  width: 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.bgg-ord-refresh-btn:hover { background: #fff5ee; border-color: #ff6a00; color: #ff6a00; }

.bgg-ord-table-wrap { overflow-x: auto; }

.bgg-ord-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.bgg-ord-table thead tr { border-bottom: 2px solid #f3f4f6; }

.bgg-ord-table th {
  padding: 10px 12px;
  font-size: .75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}

.bgg-ord-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

.bgg-ord-table tr:last-child td { border-bottom: none; }
.bgg-ord-table tr:hover td { background: #fafafa; }
.bgg-ord-ref  { font-weight: 600; color: #111827; }
.bgg-ord-date { color: #6b7280; font-size: .82rem; }

.bgg-ord-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.bgg-badge-pending   { background: #fef9c3; color: #854d0e; }
.bgg-badge-confirmed { background: #f0fdf4; color: #166534; }
.bgg-badge-cancelled { background: #fef2f2; color: #991b1b; }
.bgg-badge-default   { background: #f3f4f6; color: #6b7280; }

.bgg-ord-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: #ff6a00;
  border: 1.5px solid #fde8d8;
  background: #fff5ee;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.bgg-ord-view-btn:hover { background: #fde8d8; }

.bgg-ord-pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.bgg-acc-empty {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}
.bgg-acc-empty i { font-size: 3.5rem; color: #e5e7eb; display: block; margin-bottom: 12px; }
.bgg-acc-empty p { margin: 0 0 20px; font-size: .95rem; }

.bgg-ord-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: flex-start;
}

.bgg-ord-sum-card { position: sticky; top: 80px; }

.bgg-ord-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.bgg-ord-header-col { display: flex; flex-direction: column; gap: 4px; }
.bgg-ord-meta-label { font-size: .75rem; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.bgg-ord-meta-val   { font-size: .9rem; font-weight: 600; color: #111827; }

.bgg-ord-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  transition: background .15s;
}
.bgg-ord-print-btn:hover { background: #f3f4f6; }

@media (max-width: 900px) {
  .bgg-acc-layout { flex-direction: column; }
  .bgg-acc-sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .bgg-acc-avatar-wrap { flex: 1; min-width: 200px; }
  .bgg-acc-nav { flex: 1; min-width: 200px; flex-direction: row; border-radius: 10px; }
  .bgg-acc-nav-link { border-bottom: none; border-right: 1px solid #f3f4f6; }
  .bgg-acc-nav-link:last-child { border-right: none; }
}

@media (max-width: 680px) {
  .bgg-acc-grid { grid-template-columns: 1fr; }
  .bgg-acc-meta-grid { grid-template-columns: 1fr; }
  .bgg-ord-detail-layout { grid-template-columns: 1fr; }
  .bgg-ord-sum-card { position: static; }
  .bgg-acc-nav { flex-direction: column; }
  .bgg-acc-nav-link { border-right: none; border-bottom: 1px solid #f3f4f6; }
}

@media print {
  .bgg-acc-sidebar, .bgg-shop-hero, .bgg-ord-print-btn { display: none !important; }
  .bgg-acc-layout { display: block; }
  .bgg-acc-card { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* ============================================================
   Mobile Nav & Bottom Bar  bgg-mob-*  bgg-bottom-nav
   ============================================================ */

/* ---- Offcanvas shell ---- */
.bgg-mob-offcanvas {
  width: 300px !important;
  border-right: none !important;
}

/* ---- Header ---- */
.bgg-mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}

.bgg-mob-logo-link { display: flex; align-items: center; text-decoration: none; }
.bgg-mob-logo-img  { max-height: 36px; max-width: 120px; object-fit: contain; }
.bgg-mob-logo-text { font-size: 1.1rem; font-weight: 800; color: #ff6a00; }

.bgg-mob-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  font-size: 1.2rem;
  transition: background .15s;
}
.bgg-mob-close:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

/* ---- User block ---- */
.bgg-mob-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff5ee, #fef3ec);
  border-bottom: 1px solid #fde8d8;
}

.bgg-mob-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bgg-mob-avatar i { font-size: 1.25rem; color: #fff; }

.bgg-mob-user-info { min-width: 0; }

.bgg-mob-user-name {
  font-size: .875rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bgg-mob-user-links {
  font-size: .78rem;
  color: #6b7280;
  margin-top: 2px;
}
.bgg-mob-user-links a { color: #ff6a00; text-decoration: none; font-weight: 600; }
.bgg-mob-user-links a:hover { text-decoration: underline; }
.bgg-mob-user-links span { margin: 0 4px; }

.bgg-mob-auth-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.bgg-mob-signin,
.bgg-mob-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}

.bgg-mob-signin {
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  color: #fff;
}

.bgg-mob-register {
  background: #fff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}

.bgg-mob-signin:hover,
.bgg-mob-register:hover { opacity: .85; }

/* ---- Search ---- */
.bgg-mob-search {
  padding: 12px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.bgg-mob-search-inner {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 0 10px;
  gap: 6px;
}

.bgg-mob-search-inner i { color: #9ca3af; font-size: .95rem; flex-shrink: 0; }

.bgg-mob-search-inner input {
  flex: 1;
  border: none;
  background: none;
  height: 38px;
  font-size: .875rem;
  color: #111827;
  outline: none;
}

.bgg-mob-search-inner button {
  background: none;
  border: none;
  color: #ff6a00;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ---- Body / nav links ---- */
.bgg-mob-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 80px;
}

.bgg-mob-section-label {
  padding: 12px 18px 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 4px;
}

.bgg-mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  font-size: .875rem;
  color: #374151;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.bgg-mob-link i {
  font-size: 1.1rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color .15s;
}

.bgg-mob-link:hover {
  background: #fff5ee;
  color: #ff6a00;
  border-left-color: #ff6a00;
}
.bgg-mob-link:hover i { color: #ff6a00; }

.bgg-mob-link-active {
  background: #fff5ee;
  color: #ff6a00;
  font-weight: 600;
  border-left-color: #ff6a00;
}
.bgg-mob-link-active i { color: #ff6a00; }

.bgg-mob-link-danger { color: #ef4444; }
.bgg-mob-link-danger i { color: #ef4444; }
.bgg-mob-link-danger:hover { background: #fef2f2; color: #ef4444; border-left-color: #ef4444; }

/* ============================================================
   Bottom Navigation Bar
   ============================================================ */

.bgg-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: stretch;
  z-index: 1030;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}

.bgg-bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .65rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 4px;
  transition: color .15s, background .15s;
  position: relative;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bgg-bn-item i { font-size: 1.3rem; line-height: 1; }

.bgg-bn-item:hover,
.bgg-bn-active {
  color: #ff6a00;
  background: #fff5ee;
}

.bgg-bn-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bgg-bn-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: #ff6a00;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.bgg-bn-badge-wish { background: #ef4444; }

/* Push page content above bottom nav on mobile */
@media (max-width: 1199px) {
  body { padding-bottom: 60px; }
  #ox-scroll-top { bottom: 76px !important; }
}
