/* ================================================
   SentraPonsel — styles.css
   ================================================ */

/* ── ROOT VARIABLES ── */
:root {
  --blue:       #1565C0;
  --blue-mid:   #1976D2;
  --blue-light: #2196F3;
  --blue-accent:#64B5F6;
  --blue-pale:  #EFF3FB;
  --red:        #EE4D2D;
  --red-dark:   #C62828;
  --yellow:     #FFD700;
  --orange:     #FF9800;
  --green:      #26AA99;
  --green-lt:   #E0F7F4;
  --white:      #ffffff;
  --gray-bg:    #EFF3FB;
  --gray-light: #EEEEEE;
  --gray-text:  #757575;
  --text-dark:  #212121;
  --text-mid:   #555555;
  --text-muted: #999999;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(13,43,110,0.14);
  --navy:       #0D2B6E;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-bg);
  color: var(--text-dark);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { height: 4px; width: 4px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ======================================
   TOPBAR
====================================== */
.topbar {
  background: var(--red-dark);
  color: white;
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #ffd0c8; text-decoration: none; margin-left: 16px; }
.topbar a:hover { color: white; }

/* ======================================
   HEADER
====================================== */
header {
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 40%, #EE4D2D 100%);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── LOGO ── */
.logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.logo .logo-sentra {
  color: var(--navy);
  background: white;
  padding: 2px 6px 2px 8px;
  border-radius: 5px 0 0 5px;
  line-height: 1.2;
}
.logo .logo-ponsel {
  color: white;
  background: var(--red);
  padding: 2px 8px 2px 6px;
  border-radius: 0 5px 5px 0;
  line-height: 1.2;
}

/* ── SEARCH BAR ── */
.search-bar {
  flex: 1;
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  max-width: 580px;
}
.search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}
.search-bar button {
  background: var(--red);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--red-dark); }

/* ── HEADER ACTIONS ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.header-actions a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.header-actions a:hover { opacity: 0.85; }
.header-actions a .icon { font-size: 22px; }
.cart-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
}

/* ======================================
   NAVIGATION
====================================== */
nav {
  background: linear-gradient(90deg, #1565C0 0%, #1976D2 55%, #EE4D2D 100%);
  padding: 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  color: #cce4ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  display: block;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: white;
  border-bottom-color: var(--yellow);
  background: rgba(255,255,255,0.12);
}

/* ======================================
   CONTAINER & SECTION
====================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 16px;
}
.section-inner {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 14px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 3px solid var(--red);
  border-left: 5px solid var(--blue-mid);
  box-shadow: var(--shadow);
}
.section-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header a {
  color: var(--red);
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--red);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.section-header a:hover { background: var(--red); color: white; }

/* ======================================
   HERO BANNER SLIDER
====================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  margin: 16px auto;
  max-width: 1200px;
  padding: 0 16px;
}
.slider-wrap {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 280px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13,43,110,0.2);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s linear;
}
.slide.active .slide-bg { transform: scale(1.04); }
.slide-content {
  position: absolute;
  inset: 0;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.slide-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  backdrop-filter: blur(6px);
}
.slide-content h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.slide-content p {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  margin-bottom: 20px;
  max-width: 340px;
  line-height: 1.5;
}
.slide-cta {
  border: none;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: all 0.25s;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.slide-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(0,0,0,0.25); }
.slide-deco {
  position: absolute;
  right: 28px;
  bottom: 4px;
  font-size: 150px;
  line-height: 1;
  opacity: 0.22;
  pointer-events: none;
  transition: transform 0.5s ease;
  user-select: none;
}
.slide.active .slide-deco { transform: scale(1.08) translateY(-6px); }
.slide-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--red);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  box-shadow: 0 3px 12px rgba(238,77,45,0.45);
  animation: badge-spin 6s ease-in-out infinite;
  z-index: 3;
}
.slide-badge .sb-pct { font-size: 18px; line-height: 1; }
.slide-badge .sb-off { font-size: 9px; font-weight: 700; opacity: 0.9; }
@keyframes badge-spin { 0%,100%{transform:rotate(-5deg) scale(1)} 50%{transform:rotate(5deg) scale(1.07)} }

/* Slider countdown */
.slide-countdown { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.sc-label { font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 600; }
.sc-box {
  background: rgba(0,0,0,0.35);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 5px;
  min-width: 36px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.sc-sep { color: rgba(255,255,255,0.7); font-weight: 700; font-size: 16px; }

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  line-height: 1;
}
.slider-arrow:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.sdot.active { width: 22px; border-radius: 4px; background: white; }

/* Progress thumbs */
.slider-thumbs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 10;
  overflow: hidden;
}
.sthumb {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.sthumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s linear;
}
.sthumb.active::after { transform: scaleX(1); transition: transform 5s linear; }
.sthumb:hover { background: rgba(255,255,255,0.45); }

/* Slide number & pause */
.slide-num {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slider-pause {
  position: absolute;
  bottom: 16px; right: 14px;
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.slider-pause:hover { background: rgba(0,0,0,0.5); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide.active .slide-content { animation: slideIn 0.5s 0.1s ease both; }

/* Mini banners */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.mini-banner {
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
  height: 134px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mini-banner:hover { transform: translateY(-2px); }
.mini-banner.red { background: linear-gradient(135deg, #EE4D2D, #C62828); }
.mini-banner.blue { background: linear-gradient(135deg, #1976D2, #EE4D2D); }
.mini-banner h3 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mini-banner p { color: rgba(255,255,255,0.8); font-size: 12px; }
.mini-banner .icon { font-size: 50px; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: 0.3; }

/* ======================================
   PROMO STRIP
====================================== */
.promo-strip {
  background: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.promo-strip-inner {
  background: white;
  border-radius: 8px;
  display: flex;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.promo-strip-inner::-webkit-scrollbar { display: none; }
.promo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  min-width: 100px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.promo-item:hover { background: #FFF0ED; }
.promo-item:hover span { color: var(--red); }
.promo-item .icon { font-size: 28px; margin-bottom: 6px; }
.promo-item span { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-dark); }

/* ======================================
   FLASH SALE HEADER
====================================== */
.flash-header {
  background: linear-gradient(90deg, #EE4D2D 0%, #C62828 50%, #1565C0 100%);
  padding: 14px 20px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.flash-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: white;
}
.countdown-box {
  background: white;
  color: var(--red-dark);
  font-weight: 800;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 34px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
}
.flash-header a { color: #FFFFDD; font-size: 13px; text-decoration: none; font-weight: 600; }
.flash-header a:hover { color: white; text-decoration: underline; }

/* ======================================
   PRODUCT GRID
====================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: white;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.product-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background: white;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.product-card {
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: 0 4px 20px rgba(238,77,45,0.15);
  z-index: 2;
  transform: translateY(-2px);
  border-top: 2px solid var(--red);
}
.product-img {
  width: 100%;
  height: 180px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  overflow: hidden;
  position: relative;
}
.product-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  margin: 0;
  display: block;
}
.product-info { padding: 10px 12px 12px; }
.product-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { font-size: 15px; font-weight: 700; color: var(--red); }
.product-original {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 4px;
}
.product-discount {
  background: #FFF0ED;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 4px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.product-sold { font-size: 11px; color: #999; }
.product-rating { font-size: 11px; color: var(--orange); }

/* Badges */
.badge-flash {
  position: absolute;
  top: 8px;
  left: 0;
  background: linear-gradient(90deg, #EE4D2D, #FF7043);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px 3px 6px;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}
.badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Stock bar */
.stock-bar { height: 4px; background: #eee; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.stock-fill { height: 100%; background: linear-gradient(90deg, #FF7043, #EE4D2D); border-radius: 2px; }

/* ======================================
   CATEGORY GRID
====================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  background: white;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}
.cat-item:hover { background: #FFF0ED; }
.cat-item:hover .cat-icon { box-shadow: 0 0 0 3px var(--red); }
.cat-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.cat-item span { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-dark); }

/* ======================================
   BRAND STRIP
====================================== */
.brand-strip {
  background: white;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 3px solid var(--red);
}
.brand-btn {
  border: 2px solid #DBEAFE;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  background: white;
  color: var(--blue-mid);
  font-family: 'Poppins', sans-serif;
}
.brand-btn:hover { border-color: var(--red); color: white; background: var(--red); }

/* ======================================
   BANNER ROW
====================================== */
.banner-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 16px;
}
.banner-card {
  border-radius: 8px;
  padding: 20px 24px;
  cursor: pointer;
  transition: transform 0.2s;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.banner-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; font-family: 'Nunito', sans-serif; }
.banner-card p { font-size: 12px; opacity: 0.85; }
.banner-card .bg-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 56px; opacity: 0.2; }

/* ======================================
   FOOTER
====================================== */
footer {
  background: var(--blue);
  color: #cce4ff;
  margin-top: 32px;
  padding: 40px 0 20px;
  border-top: 4px solid var(--red);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo { font-size: 22px; display: inline-flex; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; opacity: 0.8; margin-top: 8px; }
.footer-col h4 {
  color: #FF6B4A;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(238,77,45,0.3);
  padding-bottom: 8px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #9ec5f5; font-size: 13px; text-decoration: none; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 8px;
}

/* Payment badges */
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: white;
  font-weight: 600;
}

/* ======================================
   HALAMAN DETAIL PRODUK
====================================== */
.produk-wrap { max-width:1200px; margin:0 auto; padding:14px 16px 48px; }

/* Breadcrumb */
.produk-breadcrumb {
  display:flex; gap:6px; align-items:center;
  font-size:12px; color:#999; margin-bottom:16px; flex-wrap:wrap;
}
.produk-breadcrumb a { color:#1565C0; text-decoration:none; }
.produk-breadcrumb a:hover { color:#EE4D2D; }
.produk-breadcrumb .sep { color:#DDD; }

/* Grid 2 kolom */
.produk-main-grid {
  display:grid; grid-template-columns:1fr 360px;
  gap:20px; align-items:start;
}

/* Card umum */
.pd-card {
  background:white; border-radius:10px;
  box-shadow:0 2px 12px rgba(0,0,0,0.07);
  overflow:hidden; margin-bottom:16px;
}
.pd-card:last-child { margin-bottom:0; }
.pd-card-head {
  padding:13px 20px;
  border-left:5px solid #1976D2; border-bottom:2px solid #EEE;
}
.pd-card-head h3 {
  font-family:'Nunito',sans-serif; font-size:15px; font-weight:800;
  color:#1565C0; display:flex; align-items:center; gap:7px; margin:0;
}
.pd-card-body { padding:20px; }

/* Galeri */
.galeri-wrap { padding:16px 16px 10px; }
.galeri-main {
  width:100%; height:380px; background:#F8F9FF;
  border-radius:8px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:10px; border:1px solid #EEE;
  cursor:zoom-in; position:relative;
}
.galeri-main img {
  width:100%; height:100%;
  object-fit:contain; padding:12px;
  transition:opacity 0.15s ease;
}
.galeri-main:hover img { opacity:0.92; }
.galeri-count {
  position:absolute; bottom:8px; right:10px;
  background:rgba(0,0,0,0.45); color:white;
  font-size:11px; font-weight:600;
  padding:3px 8px; border-radius:10px;
}
.galeri-nav {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,0.85); border:none; border-radius:50%;
  width:36px; height:36px; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.15); transition:all 0.2s; color:#555;
}
.galeri-nav:hover { background:white; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.galeri-nav.prev { left:8px; }
.galeri-nav.next { right:8px; }
.galeri-thumbs {
  display:flex; gap:8px; overflow-x:auto; padding:0 0 4px;
}
.galeri-thumbs::-webkit-scrollbar { height:3px; }
.galeri-thumbs::-webkit-scrollbar-thumb { background:#EE4D2D; border-radius:3px; }
.gthumb {
  width:66px; height:66px; flex-shrink:0;
  border-radius:7px; overflow:hidden;
  border:2px solid #EEE; cursor:pointer;
  background:#F8F9FF; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center;
}
.gthumb img { width:100%; height:100%; object-fit:contain; padding:4px; }
.gthumb:hover { border-color:#1976D2; }
.gthumb.active { border-color:#EE4D2D; box-shadow:0 0 0 2px rgba(238,77,45,0.2); }

/* Nama & meta */
.produk-nama {
  font-family:'Nunito',sans-serif; font-size:22px; font-weight:900;
  color:#212121; line-height:1.3; margin-bottom:8px; padding:14px 20px 0;
}
.produk-meta-bar {
  display:flex; align-items:center; gap:8px;
  padding:6px 20px 12px; border-bottom:1px solid #F0F0F0; flex-wrap:wrap;
}
.stok-badge {
  display:inline-flex; align-items:center; gap:4px;
  font-size:12px; font-weight:700; padding:3px 9px; border-radius:5px;
}
.stok-ada   { background:#E0F7F4; color:#00796B; }
.stok-habis { background:#FFF0ED; color:#EE4D2D; }
.disc-badge-sm { background:#EE4D2D; color:white; font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; }

/* Share */
.share-bar {
  display:flex; align-items:center; gap:8px;
  padding:10px 20px 14px; flex-wrap:wrap;
}
.share-label { font-size:12px; color:#999; font-weight:600; }
.share-btn {
  width:32px; height:32px; border-radius:50%;
  border:none; cursor:pointer; font-size:14px; font-weight:700;
  transition:all 0.2s; display:flex; align-items:center; justify-content:center;
}
.share-btn:hover { transform:scale(1.12); box-shadow:0 2px 8px rgba(0,0,0,0.2); }

/* Tabel info */
.info-table { width:100%; border-collapse:collapse; font-size:13px; }
.info-table tr { border-bottom:1px solid #F5F5F5; }
.info-table tr:last-child { border-bottom:none; }
.info-table tr:nth-child(even) { background:#FAFBFF; }
.info-table td { padding:10px 14px; vertical-align:top; }
.info-table td:first-child { color:#999; font-weight:500; width:36%; }
.info-table td:last-child { font-weight:600; color:#212121; }

/* Tag */
.tag-list { display:flex; flex-wrap:wrap; gap:5px; }
.tag-item { background:#EFF3FB; color:#1565C0; font-size:11px; font-weight:600; padding:2px 9px; border-radius:10px; }

/* Marketplace */
.mp-section { padding:12px 20px 16px; border-top:1px solid #F5F5F5; }
.mp-label { font-size:11px; font-weight:700; color:#999; letter-spacing:1px; margin-bottom:8px; }
.mp-row { display:flex; gap:8px; flex-wrap:wrap; }
.mp-btn {
  padding:7px 14px; border-radius:6px; font-size:12px; font-weight:700;
  text-decoration:none; transition:all 0.2s;
  display:inline-flex; align-items:center; gap:5px;
}
.mp-btn:hover { opacity:0.85; transform:translateY(-1px); }

/* Deskripsi */
.deskripsi-content { font-size:14px; color:#555; line-height:1.85; }
.deskripsi-content p  { margin-bottom:10px; }
.deskripsi-content ul,
.deskripsi-content ol { padding-left:20px; margin-bottom:10px; }
.deskripsi-content li { margin-bottom:4px; }
.deskripsi-content b,
.deskripsi-content strong { color:#212121; }

/* Buy Box */
.buy-box {
  background:white; border-radius:10px;
  box-shadow:0 2px 12px rgba(0,0,0,0.07);
  overflow:hidden; position:sticky; top:80px;
}
.bb-head { background:linear-gradient(135deg,#1565C0,#1976D2 55%,#EE4D2D); padding:16px 20px; }
.bb-store {
  font-size:11px; color:rgba(255,255,255,0.75);
  margin-bottom:5px; display:flex; align-items:center; gap:5px; flex-wrap:wrap;
}
.bb-official { background:rgba(255,255,255,0.2); font-size:9px; padding:1px 6px; border-radius:3px; font-weight:700; }
.bb-nama { font-family:'Nunito',sans-serif; font-size:15px; font-weight:800; color:white; line-height:1.35; }
.bb-body { padding:18px 20px; }
.bb-harga-coret { font-size:13px; color:#bbb; text-decoration:line-through; margin-bottom:3px; }
.bb-harga-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.bb-harga { font-family:'Nunito',sans-serif; font-size:28px; font-weight:900; color:#EE4D2D; line-height:1; }
.bb-disc  { background:#EE4D2D; color:white; font-size:12px; font-weight:700; padding:3px 9px; border-radius:5px; }
.bb-hemat { font-size:12px; color:#26AA99; font-weight:600; margin-bottom:12px; }
.bb-cicilan {
  background:#EFF3FB; border-radius:6px; padding:9px 12px;
  font-size:12px; color:#1976D2;
  display:flex; align-items:center; gap:6px; margin-bottom:14px;
}
.bb-divider { height:1px; background:#EEE; margin:14px 0; }
.bb-stok-row { display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:12px; }
.bb-stok-row .lbl { color:#999; }
.bb-ship {
  background:#F0F7FF; border:1px solid #C5DCF7; border-radius:6px;
  padding:10px 12px; font-size:12px; color:#555;
  margin-bottom:14px; display:flex; gap:8px; align-items:flex-start;
}
.bb-ship .ic { font-size:18px; flex-shrink:0; }

/* Tombol buy box */
.btn-k {
  width:100%; background:white; border:2px solid #1976D2; color:#1976D2;
  padding:11px; border-radius:7px; font-size:14px; font-weight:700;
  cursor:pointer; font-family:'Poppins',sans-serif; margin-bottom:9px;
  transition:all 0.2s; display:flex; align-items:center; justify-content:center; gap:7px;
}
.btn-k:hover { background:#EFF3FB; }
.btn-b {
  width:100%; background:linear-gradient(135deg,#EE4D2D,#C62828); color:white;
  border:none; padding:13px; border-radius:7px; font-size:15px; font-weight:700;
  cursor:pointer; font-family:'Poppins',sans-serif; margin-bottom:9px;
  box-shadow:0 4px 14px rgba(238,77,45,0.3); transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:7px;
}
.btn-b:hover { transform:translateY(-2px); box-shadow:0 7px 20px rgba(238,77,45,0.4); }
.btn-habis {
  width:100%; background:#DDD; color:#999; border:none;
  padding:13px; border-radius:7px; font-size:15px; font-weight:700;
  cursor:not-allowed; font-family:'Poppins',sans-serif; margin-bottom:9px;
}
.btn-w {
  width:100%; background:white; border:1.5px solid #EEE; color:#555;
  padding:9px; border-radius:7px; font-size:13px; font-weight:600;
  cursor:pointer; font-family:'Poppins',sans-serif; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.btn-w:hover, .btn-w.active { border-color:#EE4D2D; color:#EE4D2D; background:#FFF0ED; }

/* Garansi */
.guar-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:14px; }
.guar-item {
  background:#EFF3FB; border-radius:6px; padding:8px 10px;
  font-size:11px; color:#555; display:flex; align-items:center; gap:5px;
}

/* Produk terkait */
.terkait-wrap { margin-top:20px; }

/* Lightbox */
.lightbox {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.92); z-index:9990;
  align-items:center; justify-content:center; flex-direction:column;
}
.lightbox.open { display:flex; }
.lb-close {
  position:absolute; top:16px; right:20px; background:none;
  border:none; color:white; font-size:32px; cursor:pointer; z-index:9991; line-height:1;
}
.lb-img-wrap {
  position:relative; max-width:90vw; max-height:85vh;
  display:flex; align-items:center; justify-content:center;
}
.lb-img-wrap img { max-width:90vw; max-height:82vh; object-fit:contain; border-radius:8px; }
.lb-nav {
  position:absolute; background:rgba(255,255,255,0.15); border:none;
  color:white; font-size:28px; width:44px; height:44px; border-radius:50%;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background 0.2s;
}
.lb-nav:hover { background:rgba(255,255,255,0.3); }
.lb-nav.prev { left:-52px; }
.lb-nav.next { right:-52px; }
.lb-counter { color:rgba(255,255,255,0.6); font-size:13px; margin-top:14px; }

/* ======================================
   TOMBOL AKSI PRODUK CARD
====================================== */
.product-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
}
.btn-beli-card {
  flex: 1;
  background: #EE4D2D;
  color: white;
  border: none;
  padding: 8px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-beli-card:hover { background: #C62828; }
.btn-beli-card:disabled { background: #ccc; cursor: not-allowed; }
.btn-wish-card {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: white;
  border: 1.5px solid #EEEEEE;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.btn-wish-card:hover { border-color: #EE4D2D; background: #FFF0ED; }
.btn-wish-card.active { background: #FFF0ED; border-color: #EE4D2D; }

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-row  { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .mini-banner { flex: 1; }
  .produk-main-grid { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}
@media (max-width: 768px) {
  .product-grid  { grid-template-columns: repeat(3, 1fr); }
  .product-row   { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .banner-row    { grid-template-columns: 1fr; }
  .header-inner  { flex-wrap: wrap; gap: 10px; }
  .search-bar    { max-width: 100%; order: 3; flex: 0 0 100%; }
  .header-actions { gap: 12px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 20px; }
  .galeri-main   { height: 280px; }
}
@media (max-width: 480px) {
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .product-row   { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-icon      { width: 60px; height: 60px; font-size: 28px; }
  .footer-inner  { grid-template-columns: 1fr; }
  .hero-side     { display: none; }
  .guar-grid     { grid-template-columns: 1fr; }
  .produk-nama   { font-size: 18px; }
  .galeri-main   { height: 220px; }
  .lb-nav.prev   { left: -14px; }
  .lb-nav.next   { right: -14px; }
}
