/*
    SAHADROID FULL FLAT FACEBOOK STYLE — POPPINS FONT
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

:root {
  --fb-bg: #f0f2f5;
  --fb-card: #ffffff;
  --fb-border: #ccd0d5;
  --fb-border-light: #e4e6eb;
  --fb-text: #1c1e21;
  --fb-text-muted: #606770;
  --fb-blue: #1877f2;
  --fb-blue-hover: #166fe5;
}

* { 
  box-sizing: border-box; 
  border-radius: 0 !important; /* STRICT FULL FLAT OVERRIDE */
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--fb-text);
  font-family: 'Poppins', sans-serif;
  background: var(--fb-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
}

/* TOP HEADER (FACEBOOK STYLE) */
.fb-header {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    /* Tambahkan ini biar aman kalau ada elemen lain */
    z-index: 1000; 
}
.fb-logo {
  width: 36px;
  height: 36px;
  background: var(--fb-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fb-search-wrap {
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
}
.fb-search-wrap i {
  color: var(--fb-text-muted);
  margin-right: 6px;
  font-size: 12px;
}
.fb-search-wrap input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  color: var(--fb-text);
}
.fb-avatar-sm {
  width: 32px;
  height: 32px;
  background: var(--fb-blue);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CARDS */
.fb-card {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
}

/* FIXED HORIZONTAL SCROLL FILTER BAR */
.fb-filter-container {
  width: 100%;
  overflow: hidden;
}
.fb-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.fb-filter-scroll::-webkit-scrollbar {
  height: 4px;
}
.fb-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--fb-border);
}

.fb-chip {
  background: #ffffff;
  border: 1px solid var(--fb-border);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fb-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.1s;
}
.fb-chip:hover {
  background: var(--fb-bg);
  color: var(--fb-text);
}
.fb-chip.active {
  background: var(--fb-blue);
  color: #fff;
  border-color: var(--fb-blue);
}

/* PRODUCT MEDIA & TAGS */
.fb-post-media {
  width: 100%;
  height: 180px;
  background: #000;
  border-bottom: 1px solid var(--fb-border);
  overflow: hidden;
}
.fb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-price-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.fb-tag {
  display: inline-block;
  font-size: 9.5px;
  color: var(--fb-text);
  background: var(--fb-bg);
  border: 1px solid var(--fb-border-light);
  padding: 1px 4px;
}

/* BUTTONS (FACEBOOK BLUE & DARK) */
.btn-primary {
  background: var(--fb-blue);
  border-color: var(--fb-blue);
  font-size: 11px;
}
.btn-primary:hover {
  background: var(--fb-blue-hover);
  border-color: var(--fb-blue-hover);
}
.btn-dark {
  background: var(--fb-text);
  border-color: var(--fb-text);
  font-size: 11px;
}
.btn-dark:hover {
  background: #000;
  border-color: #000;
}
.btn-outline-dark {
  border-color: var(--fb-border);
  color: var(--fb-text);
  font-size: 11px;
  background: #fff;
}
.btn-outline-dark:hover {
  background: var(--fb-bg);
  color: var(--fb-text);
  border-color: var(--fb-text);
}

@media(max-width: 767px) {
  .fb-post-media { height: 160px; }
}



.detail-section {
  padding: 24px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  padding: 20px;
}

@media (max-width: 991px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery & Thumbnails */
.detail-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-image {
  position: relative;
  width: 100%;
  height: 340px;
  background: #000;
  border: 1px solid var(--fb-border);
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--fb-text);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  font-family: 'Poppins', sans-serif;
  z-index: 2;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.thumb-item {
  height: 60px;
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.1s, border-color 0.1s;
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
  border-color: var(--fb-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Detail Info Column */
.detail-info {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--fb-blue);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.detail-info h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fb-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.detail-description {
  font-size: 12.5px;
  color: var(--fb-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.detail-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--fb-text);
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.detail-meta {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--fb-text-muted);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--fb-border-light);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.1s;
}

.detail-btn.dark {
  background: var(--fb-text);
  color: #fff;
  border-color: var(--fb-text);
  flex-grow: 1;
}
.detail-btn.dark:hover {
  background: #000;
}

.detail-btn.outline {
  background: #fff;
  color: var(--fb-text);
  border-color: var(--fb-border);
}
.detail-btn.outline:hover {
  background: var(--fb-bg);
  border-color: var(--fb-text);
}

/* Tech block inside detail */
.tech-block {
  margin-top: auto;
  border-top: 1px solid var(--fb-border-light);
  padding-top: 14px;
}

.tech-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--fb-text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-list span {
  font-size: 10.5px;
  color: var(--fb-text);
  background: var(--fb-bg);
  border: 1px solid var(--fb-border-light);
  padding: 2px 6px;
}

/* Related Section Styling */
.related-section {
  padding: 24px 0;
  background: var(--fb-card);
  border-top: 1px solid var(--fb-border);
  margin-top: 24px;
}

.related-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.related-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fb-text);
  margin: 0;
}

.related-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--fb-blue);
  text-decoration: none;
}
.related-all:hover {
  text-decoration: underline;
}

.related-card {
  background: #fff;
  border: 1px solid var(--fb-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-image {
  width: 100%;
  height: 140px;
  background: #000;
  border-bottom: 1px solid var(--fb-border);
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-text);
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}

.related-body h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.related-tools span {
  font-size: 9.5px;
  background: var(--fb-bg);
  border: 1px solid var(--fb-border-light);
  color: var(--fb-text-muted);
  padding: 1px 4px;
}

.related-link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--fb-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.related-link:hover {
  text-decoration: underline;
}

.detail-loading, .empty {
  padding: 60px 0;
  text-align: center;
}