/* ===========================================
   Product Widgets CSS
   - Product Grid (.buhaweb-pg)
   - Product Detail (.buhaweb-pd)
   - Product Tabs (.buhaweb-pt)
   =========================================== */

/* ── Shared ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.buhaweb-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.buhaweb-star--filled {
  color: #eab308;
  font-size: 16px;
  font-variation-settings: 'FILL' 1;
}
.buhaweb-star--empty {
  color: #cbd5e1;
  font-size: 16px;
}

/* ═══════════════════════════════════════
   PRODUCT GRID — .buhaweb-pg
   ═══════════════════════════════════════ */

.buhaweb-pg__header {
  margin-bottom: 16px;
}
.buhaweb-pg__header-text { max-width: 100%; }
.buhaweb-pg__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.033em;
  margin: 0 0 8px;
}
.buhaweb-pg__desc {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

/* Toolbar: filter toggle + sort */
.buhaweb-pg__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.buhaweb-pg__mobile-filter-toggle {
  display: block;
}

.buhaweb-pg__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-left: auto;
}
.buhaweb-pg__sort-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}
.buhaweb-pg__sort-select {
  appearance: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
  min-width: 180px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.buhaweb-pg__sort-select:focus {
  outline: none;
  border-color: #98c700;
  box-shadow: 0 0 0 2px rgba(152,199,0,.15);
}

/* Layout */
.buhaweb-pg__layout {
  display: flex;
  gap: 32px;
}
.buhaweb-pg__layout--no-filter {
  display: block;
}
.buhaweb-pg__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Filter Sidebar */
.buhaweb-pg__filter {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 16px;
  align-self: flex-start;
}
.buhaweb-pg__filter-search {
  position: relative;
}
.buhaweb-pg__filter-search > .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
  pointer-events: none;
}
.buhaweb-pg__filter-search input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.buhaweb-pg__filter-search input:focus {
  outline: none;
  border-color: #98c700;
  box-shadow: 0 0 0 2px rgba(152,199,0,.15);
}
.buhaweb-pg__filter-search input::placeholder {
  color: #94a3b8;
}

.buhaweb-pg__filter-group--border {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}
.buhaweb-pg__filter-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
}
.buhaweb-pg__filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buhaweb-pg__filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.buhaweb-pg__filter-item input[type="checkbox"],
.buhaweb-pg__filter-item input[type="radio"] {
  accent-color: #98c700;
  width: 16px;
  height: 16px;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.buhaweb-pg__filter-item-text {
  color: #475569;
  flex: 1;
  transition: color 0.2s;
}
.buhaweb-pg__filter-item:hover .buhaweb-pg__filter-item-text {
  color: #98c700;
}
.buhaweb-pg__filter-item-count {
  color: #94a3b8;
  font-size: 12px;
}

/* Price filter */
.buhaweb-pg__filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.buhaweb-pg__filter-price-field {
  position: relative;
  flex: 1;
}
.buhaweb-pg__filter-price-field > span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 12px;
}
.buhaweb-pg__filter-price-field input {
  width: 100%;
  padding: 8px 8px 8px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.buhaweb-pg__filter-price-field input:focus {
  border-color: #98c700;
  box-shadow: 0 0 0 2px rgba(152,199,0,.15);
}
.buhaweb-pg__filter-price-field input::placeholder {
  color: #94a3b8;
}
.buhaweb-pg__filter-price-sep {
  color: #94a3b8;
}

.buhaweb-pg__filter-apply {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s, transform 0.15s;
}
.buhaweb-pg__filter-apply:hover {
  background: #1e293b;
}
.buhaweb-pg__filter-apply:active {
  transform: scale(0.98);
}
.buhaweb-pg__filter-reset {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.buhaweb-pg__filter-reset:hover {
  border-color: #ef4444;
  color: #ef4444;
  background-color: #fef2f2;
}

/* Mobile filter toggle */
.buhaweb-pg__mobile-filter-toggle {
  display: none;
}
.buhaweb-pg__mobile-filter-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.buhaweb-pg__mobile-filter-toggle button:hover {
  border-color: #98c700;
  background: #f8fafc;
  color: #0f172a;
}
.buhaweb-pg__mobile-filter-toggle button .material-symbols-outlined {
  font-size: 20px;
}

/* Product Grid */
.buhaweb-pg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card */
.buhaweb-pg__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.buhaweb-pg__card:hover {
  box-shadow: 0 20px 40px -12px rgba(152,199,0,0.08);
}

/* Card Image */
.buhaweb-pg__card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f1f5f9;
}
.buhaweb-pg__card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.buhaweb-pg__card:hover .buhaweb-pg__card-img {
  transform: scale(1.05);
}
.buhaweb-pg__card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}
.buhaweb-pg__card-img--placeholder .material-symbols-outlined {
  font-size: 48px;
  color: #cbd5e1;
}
.buhaweb-pg__card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}
.buhaweb-pg__card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 2;
}
.buhaweb-pg__card:hover .buhaweb-pg__card-wishlist {
  opacity: 1;
  transform: translateY(0);
}
.buhaweb-pg__card-wishlist:hover {
  color: #ef4444;
}
.buhaweb-pg__card-wishlist .material-symbols-outlined {
  font-size: 18px;
}

/* Card Body */
.buhaweb-pg__card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.buhaweb-pg__card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #98c700;
  margin-bottom: 6px;
}
.buhaweb-pg__card-title-link {
  text-decoration: none;
}
.buhaweb-pg__card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  color: #0f172a;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Rating */
.buhaweb-pg__card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.buhaweb-pg__card-rating .buhaweb-star--filled,
.buhaweb-pg__card-rating .buhaweb-star--empty {
  font-size: 14px;
}
.buhaweb-pg__card-rating-count {
  color: #94a3b8;
  font-size: 12px;
  margin-left: 4px;
}

/* Card Footer */
.buhaweb-pg__card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.buhaweb-pg__card-prices {
  display: flex;
  flex-direction: column;
}
.buhaweb-pg__card-original-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #94a3b8;
}
.buhaweb-pg__card-price {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

/* Add to Cart button */
.buhaweb-pg__card-atc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.buhaweb-pg__card-atc:hover {
  background: #98c700;
  color: #fff;
}
.buhaweb-pg__card-atc--success {
  background: #22c55e !important;
  color: #fff !important;
  pointer-events: none;
}
.buhaweb-pg__card-atc .material-symbols-outlined {
  font-size: 20px;
}

/* Loading */
.buhaweb-pg__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: #64748b;
  font-size: 14px;
}
.buhaweb-pg__spinner {
  animation: spin 1s linear infinite;
}

/* Pagination */
.buhaweb-pg__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.buhaweb-pg__pag-btn {
  min-width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.buhaweb-pg__pag-btn:hover:not(.disabled):not(.buhaweb-pg__pag-btn--active) {
  background: #e2e8f0;
}
.buhaweb-pg__pag-btn--active {
  background: #0f172a;
  color: #fff;
}
.buhaweb-pg__pag-btn--nav .material-symbols-outlined {
  font-size: 18px;
}
.buhaweb-pg__pag-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.buhaweb-pg__pag-dots {
  color: #94a3b8;
  padding: 0 4px;
}

.buhaweb-pg__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
  font-size: 15px;
}

/* Out of stock card */
.buhaweb-pg__card--out-of-stock .buhaweb-pg__card-img {
  opacity: 0.5;
  filter: grayscale(0.4);
}
.buhaweb-pg__card--out-of-stock .buhaweb-pg__card-price {
  color: #94a3b8;
}

/* ═══════════════════════════════════════
   PRODUCT DETAIL — .buhaweb-pd
   ═══════════════════════════════════════ */

.buhaweb-pd__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.buhaweb-pd__empty {
  text-align: center;
  padding: 32px;
  color: #64748b;
}

/* Gallery */
.buhaweb-pd__gallery-main {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f4e6;
  margin-bottom: 8px;
  position: relative;
}
.buhaweb-pd__gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.buhaweb-pd__gallery-main:hover .buhaweb-pd__gallery-main-img {
  transform: scale(1.05);
}
.buhaweb-pd__gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buhaweb-pd__gallery-placeholder .material-symbols-outlined {
  font-size: 64px;
  color: #cbd5e1;
}
.buhaweb-pd__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.buhaweb-pd__gallery-thumb {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: #f1f4e6;
  padding: 0;
}
.buhaweb-pd__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.buhaweb-pd__gallery-thumb:hover img {
  opacity: 1;
}
.buhaweb-pd__gallery-thumb--active,
.buhaweb-pd__gallery-thumb:hover {
  border-color: #98c700;
}
.buhaweb-pd__gallery-thumb--active {
  box-shadow: 0 0 0 2px rgba(152,199,0,0.2);
}
.buhaweb-pd__gallery-thumb--active img {
  opacity: 1;
}

/* Info */
.buhaweb-pd__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.buhaweb-pd__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.buhaweb-pd__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f4e6;
}
.buhaweb-pd__rating-score {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.buhaweb-pd__rating-count {
  font-size: 14px;
  color: #64748b;
}

/* Price */
.buhaweb-pd__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.buhaweb-pd__price-current {
  font-size: 32px;
  font-weight: 900;
  color: #98c700;
}
.buhaweb-pd__price-original {
  font-size: 18px;
  text-decoration: line-through;
  color: #94a3b8;
}
.buhaweb-pd__price-discount {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fef2f2;
  color: #ef4444;
}

/* Short desc */
.buhaweb-pd__short-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}
.buhaweb-pd__short-desc p { margin: 0 0 8px; }

/* Quantity */
.buhaweb-pd__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.buhaweb-pd__qty-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.buhaweb-pd__qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid #f1f4e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.buhaweb-pd__qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s;
}
.buhaweb-pd__qty-btn:hover {
  color: #98c700;
}
.buhaweb-pd__qty-btn .material-symbols-outlined {
  font-size: 20px;
}
.buhaweb-pd__qty-input {
  appearance: textfield;
  width: 48px;
  height: 40px;
  border: none;
  border-left: 1px solid #f1f4e6;
  border-right: 1px solid #f1f4e6;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
}
.buhaweb-pd__qty-input:focus {
  outline: none;
  box-shadow: none;
}
.buhaweb-pd__qty-input::-webkit-outer-spin-button,
.buhaweb-pd__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.buhaweb-pd__stock {
  font-size: 13px;
  color: #94a3b8;
}

/* Actions */
.buhaweb-pd__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.buhaweb-pd__btn-atc,
.buhaweb-pd__btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 1;
}
.buhaweb-pd__btn-atc {
  background: #98c700;
  color: #0f172a;
  box-shadow: 0 10px 15px -3px rgba(152,199,0,0.2);
}
.buhaweb-pd__btn-atc:hover {
  background: #7da600;
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(152,199,0,0.3);
}
.buhaweb-pd__btn-buy {
  background: #1e230f;
  color: #fff;
}
.buhaweb-pd__btn-buy:hover {
  background: #000;
}
.buhaweb-pd__btn-atc:active {
  transform: translateY(0);
}
.buhaweb-pd__btn-buy:active {
  transform: scale(0.95);
}
.buhaweb-pd__btn-atc .material-symbols-outlined,
.buhaweb-pd__btn-buy .material-symbols-outlined {
  font-size: 20px;
}

/* Trust Badges — Grid card style matching Figma */
.buhaweb-pd__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(241,244,230,0.5);
  border-radius: 12px;
}
.buhaweb-pd__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.buhaweb-pd__trust-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}
.buhaweb-pd__trust-icon {
  font-size: 20px;
  color: #98c700;
}
.buhaweb-pd__trust-text {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
}

/* ═══════════════════════════════════════
   PRODUCT TABS — .buhaweb-pt
   ═══════════════════════════════════════ */

.buhaweb-pt__tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  gap: 0;
  overflow-x: auto;
}
.buhaweb-pt__tab {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.buhaweb-pt__tab:hover {
  color: #0f172a;
}
.buhaweb-pt__tab--active {
  color: #98c700;
  border-bottom-color: #98c700;
}
.buhaweb-pt__panel {
  display: none;
  padding: 24px 0;
}
.buhaweb-pt__panel--active {
  display: block;
}
.buhaweb-pt__content {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}
.buhaweb-pt__content h2,
.buhaweb-pt__content h3,
.buhaweb-pt__content h4 {
  color: #0f172a;
  margin: 24px 0 12px;
}
.buhaweb-pt__content p { margin: 0 0 16px; }
.buhaweb-pt__content ul,
.buhaweb-pt__content ol {
  padding-left: 20px;
  margin: 0 0 16px;
}
.buhaweb-pt__content li { margin-bottom: 8px; }

/* Specs table */
.buhaweb-pt__specs {
  width: 100%;
  border-collapse: collapse;
}
.buhaweb-pt__specs th,
.buhaweb-pt__specs td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  text-align: left;
}
.buhaweb-pt__specs th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
  width: 35%;
}
.buhaweb-pt__specs td {
  color: #475569;
}

/* ─────────────────────────────── Reviews (new UI) ─────────────────────────────── */

/* Wrapper = khối nền xanh lá nhạt */
.buhaweb-pt__reviews-wrap {
  background-color: #f1f4e6;
  border-radius: 16px;
  padding: 32px;
  margin-top: 8px;
}

/* Title & subtitle */
.buhaweb-pt__reviews-title {
  font-size: 20px;
  font-weight: 700;
  color: #191d0c;
  margin: 0 0 4px;
}
.buhaweb-pt__reviews-subtitle {
  font-size: 13px;
  color: #8ba145;
  margin: 0 0 24px;
}

/* ── Summary Row ── */
.buhaweb-pt__summary-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e3eacd;
}
@media (min-width: 640px) {
  .buhaweb-pt__summary-row {
    flex-direction: row;
    align-items: center;
  }
}

/* Score block */
.buhaweb-pt__score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.buhaweb-pt__score-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #191d0c;
  margin: 0;
}
.buhaweb-pt__score-stars {
  display: flex;
  gap: 2px;
}
.buhaweb-pt__score-count {
  font-size: 13px;
  font-weight: 500;
  color: #8ba145;
  margin: 0;
}

/* Star icons */
.buhaweb-pt__star {
  font-size: 20px !important;
  line-height: 1;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.buhaweb-pt__star--primary { color: #98c700; }
.buhaweb-pt__star--yellow  { color: #facc15; }
.buhaweb-pt__star--orange  { color: #fb923c; }
.buhaweb-pt__star--red     { color: #f87171; }
.buhaweb-pt__star--empty   { color: #e5e7eb; }

/* Divider between score and breakdown */
.buhaweb-pt__summary-divider {
  width: 100%;
  height: 1px;
  background-color: #e3eacd;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .buhaweb-pt__summary-divider {
    width: 1px;
    height: 128px;
  }
}

/* Breakdown bars */
.buhaweb-pt__breakdown {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}
.buhaweb-pt__bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.buhaweb-pt__bar-label {
  display: flex;
  align-items: center;
  gap: 2px;
}
.buhaweb-pt__bar-num {
  font-size: 13px;
  font-weight: 700;
  color: #191d0c;
}
.buhaweb-pt__bar-label .buhaweb-pt__star {
  font-size: 14px !important;
}
.buhaweb-pt__bar-track {
  height: 10px;
  border-radius: 9999px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.buhaweb-pt__bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.buhaweb-pt__bar-fill--primary { background-color: #98c700; }
.buhaweb-pt__bar-fill--yellow  { background-color: #facc15; }
.buhaweb-pt__bar-fill--orange  { background-color: #fb923c; }
.buhaweb-pt__bar-fill--red     { background-color: #f87171; }
.buhaweb-pt__bar-pct {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #8ba145;
}

/* ── Review Cards ── */
.buhaweb-pt__review-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buhaweb-pt__review-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(25, 29, 12, 0.06);
}

/* Card head = avatar + meta */
.buhaweb-pt__review-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.buhaweb-pt__review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(152, 199, 0, 0.2);
  flex-shrink: 0;
}
.buhaweb-pt__review-meta {
  flex: 1;
  min-width: 0;
}
.buhaweb-pt__review-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.buhaweb-pt__review-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #191d0c;
  margin: 0 0 4px;
}
.buhaweb-pt__review-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.buhaweb-pt__review-stars .buhaweb-pt__star {
  font-size: 14px !important;
}
.buhaweb-pt__review-date {
  font-size: 12px;
  color: #8ba145;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card body */
.buhaweb-pt__review-body {
  font-size: 14px;
  line-height: 1.65;
  color: #5c6f1f;
  margin: 0 0 12px;
}

/* Card footer */
.buhaweb-pt__review-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #8ba145;
}
.buhaweb-pt__review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 600;
  font-size: 12px;
}
.buhaweb-pt__review-verified .material-symbols-outlined {
  font-size: 12px !important;
}

/* Empty state */
.buhaweb-pt__no-reviews {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
  font-size: 14px;
}

/* ── Load More ── */
.buhaweb-pt__loadmore {
  margin-top: 20px;
  text-align: center;
}
.buhaweb-pt__loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid #e3eacd;
  border-radius: 12px;
  background-color: #ffffff;
  color: #191d0c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.buhaweb-pt__loadmore-btn:hover {
  border-color: #98c700;
  color: #98c700;
  box-shadow: 0 2px 8px rgba(152, 199, 0, 0.12);
}
.buhaweb-pt__loadmore-btn .material-symbols-outlined {
  font-size: 18px !important;
  transition: transform 0.2s;
}
.buhaweb-pt__loadmore-btn:hover .material-symbols-outlined {
  transform: translateY(2px);
}
.buhaweb-pt__loadmore-count {
  color: #8ba145;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .buhaweb-pg__filter {
    display: none;
    width: auto !important;
  }
  .buhaweb-pg__filter--open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    width: 100% !important;
  }
  .buhaweb-pg__layout {
    flex-direction: column;
  }
  .buhaweb-pg__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .buhaweb-pd__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .buhaweb-pg__title {
    font-size: 24px;
  }
  .buhaweb-pd__title {
    font-size: 22px;
  }
  .buhaweb-pd__price-current {
    font-size: 22px;
  }
  .buhaweb-pd__actions {
    flex-direction: column;
  }
  .buhaweb-pt__tabs {
    gap: 0;
  }
  .buhaweb-pt__tab {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .buhaweb-pg__grid {
    grid-template-columns: 1fr;
  }
  .buhaweb-pg__header {
    flex-direction: column;
  }
  .buhaweb-pd__trust {
    flex-direction: column;
  }
}
