/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* =========================
   Hybrid CTA
========================= */
.dt-hybrid-cta {
  margin-top: 40px;
}

.dt-affiliate-list {
  margin-top: 20px;
}

.dt-affiliate-item {
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.dt-affiliate-item .price {
  display: block;
  font-weight: bold;
  margin: 4px 0;
}

.dt-affiliate-item .badge {
  display: inline-block;
  background: #f5a623;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

/* =========================
   Mode badge
========================= */
.dt-mode-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.dt-mode-badge.pre-order {
  background: #ff9800;
  color: #fff;
}

.dt-mode-badge.flash-sale {
  background: #e53935;
  color: #fff;
}

/* versi bold yang kamu pakai */
.dt-mode-badge.badge.pre-order{
  display:inline-block !important;
  position:static !important;
  top:auto !important;
  left:auto !important;

  padding:6px 12px !important;
  border-radius:8px !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;

  background:#111 !important;
  color:#fff !important;

  text-transform:uppercase !important;
  letter-spacing:.4px !important;

  width:auto !important;
  height:auto !important;
  min-width:unset !important;
  min-height:unset !important;
}

/* =========================
   Preorder notes
========================= */
.price .dt-po-price-note{
  display:block;
  margin-top:6px;
  font-size:12px;
  font-weight:600;
  color:#666;
}

.dt-po-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f1f1;
  color: #333;
  border-radius: 4px;
}

.dt-po-price-note {
  display: block;
  font-size: 13px;
  margin-top: 4px;
  color: #777;
}

.dt-po-note {
  font-size: 13px;
  color: #555;
  margin-top: 10px;
}

.dt-po-cart-label {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background: #eee;
  border-radius: 3px;
}

.dt-po-cart-note {
  font-size: 13px;
  color: #555;
  margin-top: 10px;
}

.dt-po-checkout-label {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background: #f1f1f1;
  border-radius: 3px;
}

.dt-po-checkout-note {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

/* =========================
   Flash Sale UI (pakai class lama kamu)
========================= */
.dt-flash-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:800;
  margin:6px 0;
}

.dt-flash-badge-live{
  background:#e74c3c;
  color:#fff;
}

.dt-flash-badge-ended{
  background:#333;
  color:#fff;
}

.dt-flash-note {
  color: #e53935;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Countdown */
.dt-flash-countdown {
  font-weight:bold;
  color:#e74c3c;
  margin:5px 0;
}

/* Countdown text span */
.dt-flash-countdown-text{
  font-weight:800;
}

/* Start/end time box */
.dt-flash-timebox{
  margin:6px 0 8px;
  font-size:13px;
  color:#333;
  opacity:.9;
}
.dt-flash-time-row{
  margin:2px 0;
}

/* Flash Sale price */
.dt-flash-price { color:#e74c3c; font-weight:bold; margin-left:5px; }

/* Force red price on number */
p.price .dt-flash-price,
p.price .dt-flash-price .amount,
p.price .dt-flash-price .amount bdi,
p.price .dt-flash-price .woocommerce-Price-currencySymbol{
  color:#e74c3c !important;
  font-weight:800 !important;
}
p.price .dt-flash-price{
  font-size:1.35em !important;
}

/* Regular strike */
p.price .dt-flash-strike,
p.price .dt-flash-strike .amount,
p.price .dt-flash-strike .amount bdi,
p.price .dt-flash-strike .woocommerce-Price-currencySymbol{
  color:#9aa0a6 !important;
  text-decoration:line-through !important;
  font-weight:600 !important;
}

/* Loop: strike target */
span.price .dt-flash-strike bdi{
  text-decoration: line-through !important;
}

span.price .dt-flash-strike,
span.price .dt-flash-strike bdi,
span.price .dt-flash-strike .amount,
span.price .dt-flash-strike .woocommerce-Price-currencySymbol{
  color:#9aa0a6 !important;
  opacity:.85 !important;
}

/* Stock bar */
.dt-flash-stock-wrap{
  margin:8px 0 6px;
}

.dt-flash-stock-bar{
  height:10px;
  border-radius:999px;
  background:#f1f1f1;
  overflow:hidden;
}

.dt-flash-stock-bar-fill{
  height:10px;
  background:#e74c3c;
  border-radius:999px;
}

.dt-flash-stock-text{
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  color: #666;
}

/*review*/
.detil-marketplace-review {
    margin-top:40px;
    padding:20px;
    border-top:1px solid #eee;
}

.detil-rating-summary {
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.detil-rating-score {
    font-size:40px;
    font-weight:bold;
}

.detil-review-actions {
    margin-top:20px;
}
.detil-review-item {
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.detil-review-header {
    display:flex;
    justify-content:space-between;
    margin-bottom:5px;
}

.detil-stars {
    color:#f6a623;
    font-size:14px;
}
.detil-review-photos {
    margin-top:10px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.detil-review-photos img {
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    transition:0.2s;
}

.detil-review-photos img:hover {
    opacity:0.8;
}

.detil-review-video {
    margin-top:10px;
}

.detil-review-video iframe {
    max-width:100%;
    border-radius:8px;
}
.detil-review-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;   /* ukuran desktop */
    aspect-ratio: 16 / 9;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.detil-review-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}



/*modal*/
.detil-modal {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.detil-modal-content {
    background:#fff;
    width:500px;
    max-width:95%;
    padding:20px;
    border-radius:10px;
}

.detil-close {
    float:right;
    cursor:pointer;
    font-size:22px;
}

.detil-rating-summary {
    margin-bottom: 20px;
}

.detil-rating-main {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detil-rating-media-stats {
    font-size: 14px;
    color: #666;
    display: flex;
    gap: 15px;
}

.detil-review-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 60px);
    gap: 6px;
    margin-bottom: 15px;
}

.detil-review-photo-grid img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}




/*************** ADD MOBILE ONLY CSS HERE  ***************/
@media only screen and (max-width: 48em) {

}
