/* TokoBandung Modern Theme — inspired by HobbyCetak, product-first e-commerce */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0B4EA2;
  --primary-dark: #083B7A;
  --accent: #20BCEB;
  --orange: #FF8A00;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --footer: #0a3d7a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container: min(1160px, calc(100% - 32px));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
}

#page_wrapper {
  overflow-x: hidden;
  max-width: 100vw;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

img { max-width: 100%; height: auto; }

.container { width: var(--container); max-width: 100%; }

/* ===== TOP PROMO BAR ===== */
#site-top-bar.sticky-topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border: 0;
  padding: 8px 0;
}
.site-top-message {
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.site-top-message strong,
.site-top-message b {
  font-weight: 800 !important;
}

/* ===== HEADER ===== */
#masthead.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 8px 0;
}
.site-header .row {
  width: 100%;
  margin: 0;
  padding: 0;
}
.site-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-branding {
  flex: 0 0 auto;
  min-width: 0;
}
.site-branding .site-logo-img,
.site-branding .sticky-logo-img,
.site-branding .mobile-logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.menu-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}
.menu-main-navigation {
  flex-wrap: nowrap !important;
  gap: 6px !important;
  justify-content: center;
}
.menu-main-navigation > .menu-item > a {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: .2s ease;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.menu-main-navigation .menu-item-has-children > a::after {
  margin-left: 4px;
  font-size: 10px;
}
.menu-main-navigation > .menu-item > a:hover,
.menu-main-navigation > .menu-item.current-menu-item > a {
  color: var(--primary);
  background: rgba(11, 78, 162, 0.08);
}
.site-tools {
  flex: 0 0 auto;
}
.site-tools-list {
  gap: 8px !important;
  margin: 0 !important;
  flex-wrap: nowrap;
}
.site-tools .tools_button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: .2s ease;
}
.site-tools .tools_button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(11, 78, 162, 0.06);
}
.shopping_bag_items_number {
  background: var(--orange) !important;
  font-size: 11px;
  font-weight: 700;
}

/* Desktop search — compact, end of bar */
.tb-header-search {
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
  min-width: 0;
  display: none;
}
.tb-header-search form {
  display: flex;
  gap: 6px;
}
.tb-header-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
}
.tb-header-search button {
  min-height: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .tb-header-search {
    display: block;
    margin-left: auto;
  }
  .site-tools .search-button { display: none; }
}
@media (min-width: 1200px) {
  .tb-header-search {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
  }
  .menu-main-navigation { gap: 10px !important; }
  .menu-main-navigation > .menu-item > a { font-size: 14px; padding: 8px 12px; }
}

/* Mobile menu — di luar .top-headers-wrapper agar tidak tertutup navbar */
.mobile-menu {
  position: fixed;
  inset: 0;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.menu-open .top-headers-wrapper {
  visibility: hidden;
  pointer-events: none;
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw) !important;
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  padding: 0 !important;
}
.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  flex-shrink: 0;
}
.mobile-menu-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mobile-menu-header__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px;
  flex-shrink: 0;
}
.mobile-menu-header__brand span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mobile-menu-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.tb-mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
}
.tb-mobile-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  box-sizing: border-box;
}
.tb-mobile-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}
.tb-mobile-search button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}
.mobile-navigation {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 24px !important;
}
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu-label {
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-menu-divider {
  height: 1px;
  margin: 6px 16px;
  background: var(--border);
  list-style: none;
}
.mobile-menu-item {
  border-bottom: none;
}
.mobile-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-item a i {
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  color: var(--primary);
  font-size: 15px;
}
.mobile-menu-item a span {
  flex: 1;
  min-width: 0;
}
.mobile-menu-item a:hover,
.mobile-menu-item a:focus {
  background: rgba(11, 78, 162, 0.06);
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 18px;
  box-shadow: 0 8px 20px rgba(11, 78, 162, 0.22);
}
.btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-1px);
}
.btn-orange, .tb-btn-orange {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  min-height: 44px;
}
.btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  border-radius: 12px;
  min-height: 44px;
}

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }
.section-title, h2.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section-description, .section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 24px;
}

/* ===== HERO (homepage) ===== */
.tokobandung-home .hero-section,
.tb-hero {
  position: relative;
  min-height: auto;
  height: auto;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #0a6eb8 100%);
}
.tokobandung-home .hero-background {
  display: none;
}
.tokobandung-home .hero-overlay { display: none; }
.tokobandung-home .hero-content {
  height: auto;
  padding: 48px 0 40px;
}
.tb-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 992px) {
  .tb-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .tokobandung-home .hero-content { padding: 64px 0 56px; }
}
.tb-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.tokobandung-home .hero-subtitle {
  letter-spacing: .12em;
  font-size: 12px;
  opacity: .85;
  text-transform: uppercase;
}
.tokobandung-home .hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-align: left;
}
.tokobandung-home .hero-description {
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  opacity: .92;
  margin-bottom: 24px;
  text-align: left;
  max-width: 560px;
}
.tokobandung-home .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.tokobandung-home .hero-buttons .btn { margin: 0; text-transform: none; letter-spacing: 0; border-radius: 12px; }
.tb-hero-visual {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.tb-hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tb-hero-visual-grid img {
  aspect-ratio: 1;
  object-fit: contain;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 14px;
  width: 100%;
}

/* Hero search */
.tb-hero-search {
  margin-top: -20px;
  position: relative;
  z-index: 5;
  padding-bottom: 8px;
}
.tb-hero-search .tb-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.tb-hero-search form { display: flex; gap: 10px; }
.tb-hero-search input {
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
}
.tb-hero-search button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ===== CATEGORY GRID ===== */
.category-grid,
.categories-section .row:last-of-type { /* keep */ }
.tb-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .tb-category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .tb-category-grid { grid-template-columns: repeat(6, 1fr); }
}
.tb-category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: .2s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.tb-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  color: var(--primary);
}
.tb-category-card__img {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-category-card__img img {
  width: 100%;
  height: 100%;
  max-width: 64px !important;
  object-fit: contain;
  display: block;
}
.tb-category-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}
.tb-category-card span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
}

/* Legacy category cards — soften */
.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

/* ===== PRODUCT CARD ===== */
.product-grid,
.featured-products-section .row:has(.product-card),
.page-products .products-grid {
  --cols: 2;
}
@media (min-width: 768px) { .product-grid { --cols: 3; } }
@media (min-width: 1024px) { .product-grid { --cols: 4; } }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}
.product-card .product-image {
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card .product-content {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.product-card .product-actions .btn {
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
}
.tb-digital-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Products page */
.page-products .product-card,
.products-page .product-item {
  margin-bottom: 16px;
}
.page-products .container.py-5,
.products-page-wrap {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}

/* ===== KEUNGGULAN BELANJA ===== */
.tb-keunggulan {
  padding-top: 16px;
  padding-bottom: 48px;
  background: var(--bg);
}
.tb-keunggulan__title {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.tb-keunggulan__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.tb-keunggulan__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  min-height: 100%;
}
.tb-keunggulan__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-keunggulan__icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}
.tb-keunggulan__text h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.tb-keunggulan__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.tb-keunggulan__banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #0a3d7a, var(--primary));
  border-radius: 16px;
  color: #fff;
}
.tb-keunggulan__banner-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-keunggulan__banner-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.tb-keunggulan__banner-copy {
  flex: 1;
  min-width: 0;
}
.tb-keunggulan__banner-copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}
.tb-keunggulan__banner-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.tb-keunggulan__banner-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.tb-keunggulan__banner-btn:hover {
  background: #c2410c;
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 991px) {
  .tb-keunggulan__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .tb-keunggulan {
    padding-bottom: 36px;
  }
  .tb-keunggulan__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tb-keunggulan__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    gap: 10px;
  }
  .tb-keunggulan__icon {
    width: 48px;
    height: 48px;
  }
  .tb-keunggulan__icon img {
    width: 48px;
    height: 48px;
  }
  .tb-keunggulan__text h3 {
    font-size: 13px;
  }
  .tb-keunggulan__text p {
    font-size: 11px;
    line-height: 1.35;
  }
  .tb-keunggulan__banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  .tb-keunggulan__banner-icon {
    margin: 0 auto;
  }
  .tb-keunggulan__banner-copy {
    text-align: center;
    width: 100%;
  }
  .tb-keunggulan__banner-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== FOOTER ===== */
.site-footer-tb {
  display: block !important;
  visibility: visible !important;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100vw;
  flex-shrink: 0;
  clear: both;
  background: linear-gradient(135deg, #0a3d7a, var(--primary));
  color: #fff;
  padding: 40px 0 24px;
  margin-top: auto;
}
.site-footer-tb .container {
  display: block !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
}
.site-footer-tb h5,
.site-footer-tb h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 14px;
}
.site-footer-tb a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.site-footer-tb a:hover { color: rgba(255, 255, 255, 0.85); }

/* ===== FOOTER DESKTOP (≥768px) — 4 kolom standar ===== */
@media (min-width: 768px) {
  .site-footer-tb {
    padding: 48px 0 24px;
  }
  .footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 40px;
    align-items: start;
    padding-bottom: 32px;
    margin-bottom: 24px;
    border-bottom: none;
  }
  .footer-top {
    text-align: left;
    margin: 0;
  }
  .footer-top__brand {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }
  .footer-top__desc {
    max-width: none;
    margin: 0 0 16px;
  }
  .footer-top__contact {
    margin: 0 0 16px;
  }
  .footer-top__social {
    justify-content: flex-start;
  }
  .footer-mid {
    display: contents;
  }
  .footer-mid__col h6,
  .footer-legal__title {
    margin-bottom: 14px;
  }
  .footer-mid__col li,
  .footer-legal__list li {
    margin-bottom: 10px;
  }
  .footer-legal {
    text-align: left;
    margin: 0;
  }
  .footer-legal__list {
    margin: 0;
    padding: 0;
  }
  .footer-legal__list li {
    display: block;
  }
  .footer-legal__list li + li::before {
    content: none;
  }
  .site-footer-tb .footer-bottom {
    text-align: left;
    border-top: none;
    padding-top: 0;
  }
}

/* ===== FOOTER MOBILE (<768px) — center + 2 kolom ===== */
@media (max-width: 767px) {
  .footer-main {
    display: block;
  }
  .footer-top {
    text-align: center;
    margin-bottom: 28px;
  }
  .footer-top__brand {
    margin-bottom: 12px;
    font-size: 1.1rem;
  }
  .footer-top__desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 16px;
  }
  .footer-top__contact {
    margin: 0 auto 16px;
    padding: 0;
  }
  .footer-top__contact li {
    margin-bottom: 8px;
    font-size: 14px;
  }
  .footer-top__social {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .footer-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  .footer-mid__col h6 {
    margin-bottom: 12px;
  }
  .footer-mid__col ul {
    margin: 0;
    padding: 0;
  }
  .footer-mid__col li {
    margin-bottom: 8px;
  }
  .footer-legal {
    text-align: center;
    margin-bottom: 24px;
  }
  .footer-legal__title {
    margin-bottom: 10px;
  }
  .footer-legal__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-legal__list li {
    display: inline;
    margin: 0;
  }
  .footer-legal__list li + li::before {
    content: '|';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
  }
  .site-footer-tb .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

.site-footer-tb .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-right: 0;
  font-size: 18px;
}
.site-footer-tb .social-links a:hover {
  background: #0066cc;
  color: #fff;
}

.footer-top__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
}
.footer-top__contact li {
  font-size: 14px;
  color: #fff;
}
.footer-top__contact li i {
  color: #fff;
}

.site-footer-tb .footer-bottom {
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.site-footer-tb .footer-bottom a {
  color: #fff;
}
.site-footer-tb .footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Hide old broken footer if replaced */
footer.bg-dark:not(.site-footer-tb) { display: none; }

/* Floating WhatsApp */
.tb-wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.tb-wa-float:hover {
  color: #fff;
  background: #20ba5a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}
.tb-wa-float .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  line-height: 1;
}
@media (max-width: 767px) {
  .tb-wa-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* ===== STATIC PAGES ===== */
.static-page .container.py-5,
body.static-page main,
.static-page-wrap {
  padding-top: 32px;
  padding-bottom: 48px;
}
.tb-page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 28px;
  text-align: center;
}
.tb-page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.tb-page-hero p { opacity: .9; margin: 0; }
.static-page .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.static-page .accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.static-page .accordion-button {
  font-weight: 700;
  min-height: 52px;
}
.static-page .accordion-button:not(.collapsed) {
  background: rgba(11, 78, 162, 0.08);
  color: var(--primary);
}

/* ===== CHECKOUT ===== */
body.page-checkout #page_wrapper,
.page-checkout .container-fluid {
  background: var(--bg);
}
.page-checkout .card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.page-checkout .card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  padding: 14px 18px;
}
.page-checkout .card-body { padding: 18px; }
.page-checkout .form-control,
.page-checkout .form-select {
  min-height: 44px;
  border-radius: 10px;
  border-color: var(--border);
  font-size: 15px;
}
.page-checkout .form-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.page-checkout #checkout-submit-btn,
.page-checkout .btn-primary.btn-lg {
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
@media (min-width: 992px) {
  .page-checkout .checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
  }
  .page-checkout .checkout-summary-sticky {
    position: sticky;
    top: 88px;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767px) {
  .col-lg-3.col-md-6.mb-4:has(.product-card),
  .featured-products-section .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .featured-products-section .row { margin-left: -8px; margin-right: -8px; }
  .product-card .product-title { font-size: 13px; }
  .product-card .product-price { font-size: .95rem; }
  .product-card .product-image { padding: 14px; }
  .tokobandung-home .hero-content { padding: 36px 0 28px; }
  .tokobandung-home .hero-title,
  .tokobandung-home .hero-description { text-align: center; }
  .tokobandung-home .hero-buttons { justify-content: center; }
  .tb-hero-badges { justify-content: center; }
  .site-header-wrapper {
    padding: 0 10px;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .site-branding .mobile-logo-img { height: 34px; max-width: 120px; }
  .site-tools-list { gap: 6px !important; }
  .site-tools .tools_button { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .tb-hero-search form { flex-direction: column; }
  .tb-hero-search button { width: 100%; }
}

/* ===== NAVBAR V2 (referensi) ===== */
.tb-nav-wrap {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}
.tb-nav-wrap.at-top {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}
body.tokobandung-home .top-headers-wrapper.at-top {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08) !important;
}
.tb-promo-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 7px 16px;
}
.tb-promo-bar__inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.tb-nav {
  background: #fff;
}
.tb-nav__container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.tb-nav__top {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.tb-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.tb-nav__brand-name {
  display: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.tb-nav__logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
/* Jangan biarkan layout-fix * { max-width:100% } menciutkan elemen navbar */
.tb-nav__container > * {
  max-width: none;
}
.tb-nav__logo {
  max-width: 140px !important;
}
.tb-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.tb-nav__search {
  flex: 1 1 auto;
  display: none;
  align-items: center;
  gap: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.tb-nav__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 0 16px;
  font-size: 14px;
  background: #fff;
}
.tb-nav__search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 78, 162, 0.12);
}
.tb-nav__search button {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
.tb-nav__actions {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tb-nav__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  position: relative;
  transition: color .2s, background .2s;
}
.tb-nav__action i {
  font-size: 18px;
  color: var(--primary);
}
.tb-nav__action:hover {
  color: var(--primary);
  background: rgba(11, 78, 162, 0.06);
}
.tb-nav__action--cart .shopping_bag_items_number {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tb-nav__bottom {
  display: none;
  padding: 0;
  background: #fff;
}
.tb-nav__bottom .tb-nav__container {
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.tb-nav__categories {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-nav__categories:hover {
  background: var(--primary-dark);
  color: #fff !important;
}
.tb-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tb-nav__menu::-webkit-scrollbar { display: none; }
.tb-nav__menu-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: .2s;
}
.tb-nav__menu-link:hover,
.tb-nav__menu-link.is-active {
  color: var(--primary);
  background: rgba(11, 78, 162, 0.08);
}
.tb-nav__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-nav__location i {
  color: var(--primary);
}
.tb-nav__location strong {
  color: var(--text);
}

@media (min-width: 768px) {
  .tb-nav__container {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .tb-nav__toggle { display: none !important; }
  .tb-nav__brand { display: flex !important; flex-shrink: 0; }
  .tb-nav__brand-name { display: block; }
  .tb-nav__search {
    display: flex !important;
    flex: 1 1 auto;
    max-width: none;
    margin: 0 8px 0 4px;
  }
  .tb-nav__actions { display: flex !important; flex-shrink: 0; }
  .tb-nav__logo { height: 38px; max-width: 44px !important; width: auto; }
}
@media (min-width: 992px) {
  .tb-nav__bottom { display: block; }
}

@media (max-width: 767px) {
  .tb-nav__container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tb-nav__top { padding: 8px 0; }
  .tb-nav__toggle {
    display: flex !important;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .tb-nav__brand,
  .tb-nav__brand-name { display: none !important; }
  .tb-nav__search {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    margin: 0;
  }
  .tb-nav__search input {
    height: 36px;
    font-size: 11px;
    padding: 0 8px;
    max-width: none !important;
    flex: 1;
    min-width: 0;
  }
  .tb-nav__search button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-shrink: 0;
  }
  .tb-nav__actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
    margin: 0;
  }
  .tb-nav__action--help { display: none !important; }
  .tb-nav__action {
    padding: 4px 5px;
    min-width: 32px;
    min-height: 32px;
  }
  .tb-nav__action span { display: none !important; }
  .tb-nav__action i { font-size: 16px; }
}

/* ===== HERO V2 ===== */
.tb-hero-v2 {
  padding: 20px 0 8px;
  background: var(--bg);
}
.tb-hero-v2__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #E8F2FC;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 78, 162, 0.08);
}
.tb-hero-v2__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 82% 88%;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transform-origin: 85% 90%;
  opacity: 1;
  z-index: 0;
}
.tb-hero-v2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(232, 242, 252, 0.88) 0%, rgba(232, 242, 252, 0.72) 40%, rgba(232, 242, 252, 0.35) 70%, rgba(232, 242, 252, 0.15) 100%);
  z-index: 1;
}
.tb-hero-v2__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 24px 20px;
  align-items: center;
}
.tb-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 78, 162, 0.1);
  border: 1px solid rgba(11, 78, 162, 0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tb-hero-v2__title {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 14px;
}
.tb-hero-v2__title span {
  color: var(--primary);
}
.tb-hero-v2__desc {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 520px;
}
.tb-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tb-hero-v2__btn-primary {
  box-shadow: 0 8px 24px rgba(11, 78, 162, 0.25);
}
.tb-hero-v2__btn-outline {
  background: #fff !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 700;
  border-radius: 12px;
}
.tb-hero-v2__btn-outline:hover {
  background: rgba(11, 78, 162, 0.06) !important;
  color: var(--primary-dark) !important;
}
.tb-hero-v2__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.tb-hero-v2__figure {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
}
.tb-hero-v2__trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(11, 78, 162, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}
.tb-hero-v2__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.tb-hero-v2__trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.tb-hero-v2__trust-icon--blue { background: rgba(11, 78, 162, 0.12); color: var(--primary); }
.tb-hero-v2__trust-icon--orange { background: rgba(255, 138, 0, 0.15); color: var(--orange); }
.tb-hero-v2__trust-icon--green { background: rgba(34, 197, 94, 0.15); color: #16a34a; }

/* Homepage — komunitas partnership hero */
.tb-hero-v2--komunitas {
  padding: 0;
}
.tb-hero-v2--komunitas .tb-hero-v2__card {
  background: linear-gradient(135deg, #eef6ff 0%, #fff8ef 100%);
  border-color: rgba(255, 138, 0, 0.12);
}
.tb-hero-v2__overlay--komunitas {
  background: linear-gradient(105deg, rgba(238, 246, 255, 0.92) 0%, rgba(238, 246, 255, 0.78) 42%, rgba(255, 248, 239, 0.45) 72%, rgba(255, 248, 239, 0.2) 100%);
}
.tb-hero-v2--komunitas .tb-hero-v2__badge {
  background: rgba(255, 138, 0, 0.12);
  border-color: rgba(255, 138, 0, 0.2);
  color: #c2410c;
}
.tb-hero-v2--komunitas .tb-hero-v2__title span {
  color: var(--orange);
}
.tb-hero-v2--komunitas .tb-hero-v2__trust {
  border-top-color: rgba(255, 138, 0, 0.1);
}

@media (min-width: 992px) {
  .tb-hero-v2__body {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 40px 36px 24px;
  }
  .tb-hero-v2__visual { min-height: 280px; }
  .tb-hero-v2__figure { max-width: 100%; }
  .tb-hero-v2__bg {
    background-position: 88% 92%;
    transform: scale(1.12);
    transform-origin: 90% 95%;
  }
}

@media (max-width: 767px) {
  .tb-hero-v2 { padding: 12px 0 4px; }
  .tb-hero-v2__body { padding: 24px 18px 16px; text-align: center; }
  .tb-hero-v2__desc { margin-left: auto; margin-right: auto; }
  .tb-hero-v2__actions { justify-content: center; }
  .tb-hero-v2__visual { min-height: 200px; margin-top: 8px; }
  .tb-hero-v2__figure { max-width: min(100%, 360px); margin: 0 auto; }
  .tb-hero-v2__trust {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px 8px;
    padding: 10px 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tb-hero-v2__trust::-webkit-scrollbar { display: none; }
  .tb-hero-v2__trust-item {
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .tb-hero-v2__trust-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 10px;
  }
}

/* ===== HOMEPAGE PRODUCT SHOWCASE ===== */
.tb-home-showcase {
  background: var(--bg);
}
.tb-home-showcase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tb-home-showcase__head--stack {
  align-items: flex-start;
}
.tb-home-showcase__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tb-home-showcase__title-wrap--digital {
  margin-bottom: 6px;
}
.tb-home-showcase__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.tb-home-showcase__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 78, 162, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.tb-home-showcase__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
}
.tb-home-showcase__more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.tb-home-showcase__more:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
.tb-home-grid {
  display: grid;
  gap: 16px;
}
.tb-home-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .tb-home-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Listing pages product grid */
.tb-listing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .tb-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tb-listing-grid .tb-pcard {
  height: 100%;
}

/* Product card — referensi mockup */
.tb-pcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tb-pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
.tb-pcard__media {
  position: relative;
  display: block;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  overflow: hidden;
}
.tb-pcard__media-inner {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}
.tb-pcard__media img {
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tb-pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.2;
}
.tb-pcard__badge--blue { background: var(--primary); }
.tb-pcard__badge--green { background: #16a34a; }
.tb-pcard__badge--orange { background: var(--orange); }
.tb-pcard__badge--navy { background: #1e3a5f; }
.tb-pcard__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.tb-pcard__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
}
.tb-pcard__title a {
  color: var(--text);
  text-decoration: none;
}
.tb-pcard__title a:hover { color: var(--primary); }
.tb-pcard__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.tb-pcard__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.tb-pcard__rating .fa-star {
  color: #f59e0b;
  font-size: 11px;
}
.tb-pcard__reviews {
  color: var(--muted);
  font-weight: 500;
}
.tb-pcard__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.tb-pcard__icon-btn {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
  padding: 0;
  font-size: 16px;
}
.tb-pcard__icon-btn:hover {
  border-color: var(--primary);
  background: rgba(11, 78, 162, 0.06);
  color: var(--primary-dark);
}
.tb-pcard__icon-btn--wa {
  color: #25d366;
}
.tb-pcard__icon-btn--wa:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  color: #128c7e;
}
.tb-pcard__buy-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.tb-pcard__buy-btn:hover {
  background: rgba(11, 78, 162, 0.06);
}

@media (max-width: 767px) {
  .tb-pcard__title { font-size: 13px; min-height: auto; }
  .tb-pcard__price { font-size: 1rem; }
  .tb-pcard__icon-btn { min-height: 38px; font-size: 15px; }
}
