:root {
  --tdpg-dnn-bg-1: #030917;
  --tdpg-dnn-bg-2: #071327;
  --tdpg-dnn-bg-3: #0b1d36;
  --tdpg-dnn-panel: linear-gradient(180deg, rgba(7, 18, 36, .96) 0%, rgba(5, 12, 24, .98) 100%);
  --tdpg-dnn-border: rgba(45, 99, 170, .32);
  --tdpg-dnn-border-2: rgba(0, 229, 255, .22);
  --tdpg-dnn-text: #eef6ff;
  --tdpg-dnn-muted: #90a8c8;
  --tdpg-dnn-accent: #00d9ff;
  --tdpg-dnn-accent-2: #7a3cff;
  --tdpg-dnn-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.tdpg-product-active.single-product div.product,
.tdpg-product-active.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 34px;
  align-items: start;
}

.tdpg-product-active.single-product div.product .images,
.tdpg-product-active.woocommerce div.product .images,
.tdpg-product-active.single-product div.product .tdpg-wrap,
.tdpg-product-active.woocommerce div.product .tdpg-wrap {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.tdpg-product-active.single-product div.product .summary.entry-summary,
.tdpg-product-active.woocommerce div.product .summary.entry-summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  position: sticky;
  top: 96px;
  background: var(--tdpg-dnn-panel) !important;
  border: 1px solid var(--tdpg-dnn-border) !important;
  border-radius: 26px !important;
  box-shadow: var(--tdpg-dnn-shadow) !important;
  padding: 28px !important;
  overflow: hidden;
}

.tdpg-product-active.single-product div.product .summary.entry-summary::before,
.tdpg-product-active.woocommerce div.product .summary.entry-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(122, 60, 255, .16), transparent 30%),
    radial-gradient(circle at top left, rgba(0, 217, 255, .10), transparent 24%);
}

.tdpg-product-active.single-product div.product .summary.entry-summary > *,
.tdpg-product-active.woocommerce div.product .summary.entry-summary > * {
  position: relative;
  z-index: 1;
}

.tdpg-product-active.single-product div.product .woocommerce-tabs,
.tdpg-product-active.single-product div.product .related,
.tdpg-product-active.single-product div.product .upsells,
.tdpg-product-active.woocommerce div.product .woocommerce-tabs,
.tdpg-product-active.woocommerce div.product .related,
.tdpg-product-active.woocommerce div.product .upsells {
  grid-column: 1 / -1;
  width: 100% !important;
  clear: both !important;
}

.tdpg-wrap {
  color: var(--tdpg-dnn-text);
}

.tdpg-shell {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 19, 39, .98) 0%, rgba(4, 12, 25, .99) 100%);
  border: 1px solid var(--tdpg-dnn-border);
  box-shadow: var(--tdpg-dnn-shadow);
  overflow: hidden;
}

.tdpg-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(0, 217, 255, .12), transparent 24%),
    radial-gradient(circle at top right, rgba(122, 60, 255, .14), transparent 30%);
}

.tdpg-stage-area {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 720px;
  background: linear-gradient(180deg, #f5f8fc 0%, #e8eef6 100%);
  border: 1px solid rgba(255, 255, 255, .08);
}

.tdpg-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0));
}

.tdpg-stage-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tdpg-counter,
.tdpg-modal-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 18, 36, .80);
  border: 1px solid rgba(0, 217, 255, .18);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.tdpg-counter-current,
.tdpg-modal-counter-current {
  color: var(--tdpg-dnn-accent);
}

.tdpg-stage-toolbar {
  display: flex;
  gap: 10px;
}

.tdpg-icon-btn,
.tdpg-nav,
.tdpg-modal-close,
.tdpg-modal-nav,
.tdpg-thumb {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.tdpg-icon-btn,
.tdpg-nav,
.tdpg-modal-close,
.tdpg-modal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 18, 36, .82);
  color: #fff;
  border: 1px solid rgba(0, 217, 255, .18);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.tdpg-icon-btn:hover,
.tdpg-nav:hover,
.tdpg-modal-close:hover,
.tdpg-modal-nav:hover {
  transform: translateY(-1px);
  background: rgba(9, 27, 48, .94);
  border-color: rgba(0, 217, 255, .40);
  box-shadow: 0 18px 34px rgba(0,0,0,.32);
}

.tdpg-icon-btn,
.tdpg-modal-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.tdpg-nav,
.tdpg-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  z-index: 4;
}

.tdpg-prev,
.tdpg-modal-prev {
  left: 16px;
}

.tdpg-next,
.tdpg-modal-next {
  right: 16px;
}

.tdpg-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  padding: 28px;
}

.tdpg-main-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 18px;
  user-select: none;
  transition: transform .28s ease;
}

.tdpg-stage:hover .tdpg-main-image {
  transform: scale(1.01);
}

.tdpg-thumbs-wrap {
  margin-top: 16px;
}

.tdpg-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tdpg-thumb {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 26, 48, .95) 0%, rgba(5, 11, 21, 1) 100%);
  border: 1px solid rgba(59, 106, 177, .26);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tdpg-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, .36);
}

.tdpg-thumb.is-active {
  border-color: var(--tdpg-dnn-accent);
  box-shadow: 0 0 0 1px rgba(0, 217, 255, .18), 0 16px 30px rgba(0,0,0,.28);
}

.tdpg-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tdpg-wrap svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tdpg-modal[hidden] {
  display: none !important;
}

.tdpg-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.tdpg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 14, .86);
  backdrop-filter: blur(10px);
}

.tdpg-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 1380px);
  height: min(92vh, 960px);
  margin: 4vh auto;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.tdpg-modal-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}

.tdpg-modal-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.tdpg-modal-stage-shell {
  position: relative;
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(9, 18, 34, .96) 0%, rgba(4, 10, 20, .98) 100%);
  border: 1px solid rgba(45, 99, 170, .32);
  overflow: hidden;
  box-shadow: var(--tdpg-dnn-shadow);
}

.tdpg-modal-stage-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 78px;
}

.tdpg-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.36);
}

.tdpg-download-all.is-loading {
  opacity: .72;
  pointer-events: none;
}

.tdpg-product-active .summary.entry-summary .product_title.entry-title {
  color: #fff !important;
  font-size: clamp(30px, 2.4vw, 46px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  margin: 0 0 14px !important;
}

.tdpg-product-active .summary.entry-summary p.price,
.tdpg-product-active .summary.entry-summary span.price {
  margin: 0 0 20px !important;
}

.tdpg-product-active .summary.entry-summary .price .amount,
.tdpg-product-active .summary.entry-summary .price .woocommerce-Price-amount {
  color: var(--tdpg-dnn-accent) !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  text-shadow: 0 0 22px rgba(0, 217, 255, .16);
}

.tdpg-product-active .tdpu-single-export-card {
  width: 100%;
  margin: 0 0 18px !important;
  padding: 18px !important;
  background: linear-gradient(180deg, rgba(5, 13, 26, .86) 0%, rgba(8, 18, 35, .96) 100%) !important;
  border: 1px solid rgba(45, 99, 170, .22) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 40px rgba(0,0,0,.22) !important;
}

.tdpg-product-active .tdpu-single-export-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-wrap {
  text-align: left !important;
}

.tdpg-product-active .tdpu-single-export-card .dnn-hub-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 0 !important;
}

.tdpg-product-active .tdpu-single-export-card .tdml-toolbar {
  margin-top: 0 !important;
  display: block !important;
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-btn,
.tdpg-product-active .tdpu-single-export-card .hub-exportar-shopee-btn,
.tdpg-product-active .tdpu-single-export-card .hub-exportar-tiktok-btn,
.tdpg-product-active .tdpu-single-export-card .tdml-toolbar .tdml-icon-btn {
  width: 100% !important;
  min-height: 52px !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-btn:hover,
.tdpg-product-active .tdpu-single-export-card .hub-exportar-shopee-btn:hover,
.tdpg-product-active .tdpu-single-export-card .hub-exportar-tiktok-btn:hover,
.tdpg-product-active .tdpu-single-export-card .tdml-toolbar .tdml-icon-btn:hover {
  transform: translateY(-1px);
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-btn {
  background: linear-gradient(90deg, #13d2d8 0%, #0a7890 100%) !important;
  border: 1px solid rgba(0, 217, 255, .25) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 188, 212, .18) !important;
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-shopee-btn {
  background: linear-gradient(90deg, rgba(255,124,0,.14) 0%, rgba(255,124,0,.05) 100%) !important;
  border: 1px solid rgba(255,124,0,.40) !important;
  color: #fff !important;
}

.tdpg-product-active .tdpu-single-export-card .hub-exportar-tiktok-btn {
  background: linear-gradient(90deg, rgba(15, 25, 49, .92) 0%, rgba(8, 14, 30, .98) 100%) !important;
  border: 1px solid rgba(93, 110, 255, .24) !important;
  color: #fff !important;
}

.tdpg-product-active .tdpu-single-export-card .tdml-toolbar .tdml-icon-btn {
  background: linear-gradient(90deg, #7a3cff 0%, #5900ff 100%) !important;
  border: 1px solid rgba(149, 109, 255, .28) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(122, 60, 255, .22) !important;
}

.tdpg-product-active .tdpu-single-export-card .dnn-hub-select {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 50px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  background: rgba(9, 18, 38, .92) !important;
  border: 1px solid rgba(66, 93, 136, .24) !important;
  color: #dbeafe !important;
  font-weight: 700 !important;
}

.tdpg-product-active .tdpu-single-export-card .dnn-hub-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--tdpg-dnn-accent);
}

.tdpg-product-active .tdpu-single-sizes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 14px 0 12px !important;
}

.tdpg-product-active .tdpu-single-swatch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(9, 18, 38, .96) !important;
  border: 1px solid rgba(66, 93, 136, .24) !important;
  color: #fff !important;
}

.tdpg-product-active .tdpu-single-swatch small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  color: #c7d2fe !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.tdpg-product-active .tdpu-single-stock-total {
  color: #d7e7fb !important;
  font-size: 15px !important;
  margin: 0 0 14px !important;
}

.tdpg-product-active .tdpu-single-status-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.tdpg-product-active .tdpu-single-status-line {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.04) !important;
  color: #d7e7fb !important;
}

.tdpg-product-active .tdpu-single-status-line .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  margin-top: 6px !important;
  flex: 0 0 10px !important;
}

.tdpg-product-active .tdpu-single-status-line.is-no .dot {
  background: #ff5d5d !important;
  box-shadow: 0 0 0 4px rgba(255,93,93,.10) !important;
}

.tdpg-product-active .tdpu-single-status-line.is-ok .dot {
  background: #17d96b !important;
  box-shadow: 0 0 0 4px rgba(23,217,107,.10) !important;
}

@media (max-width: 1180px) {
  .tdpg-product-active.single-product div.product,
  .tdpg-product-active.woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tdpg-product-active.single-product div.product .summary.entry-summary,
  .tdpg-product-active.woocommerce div.product .summary.entry-summary {
    position: relative;
    top: auto;
  }

  .tdpg-stage-area,
  .tdpg-stage {
    min-height: 560px;
  }

  .tdpg-main-image {
    max-height: 600px;
  }
}

@media (max-width: 767px) {
  .tdpg-shell {
    padding: 12px;
    border-radius: 20px;
  }

  .tdpg-stage-area,
  .tdpg-stage {
    min-height: 400px;
  }

  .tdpg-stage {
    padding: 16px;
  }

  .tdpg-main-image {
    max-height: 430px;
    border-radius: 14px;
  }

  .tdpg-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .tdpg-nav,
  .tdpg-modal-nav {
    width: 42px;
    height: 42px;
  }

  .tdpg-product-active.single-product div.product .summary.entry-summary,
  .tdpg-product-active.woocommerce div.product .summary.entry-summary {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .tdpg-product-active .summary.entry-summary .product_title.entry-title {
    font-size: 28px !important;
  }

  .tdpg-product-active .tdpu-single-export-card .dnn-hub-actions {
    grid-template-columns: 1fr !important;
  }

  .tdpg-modal-dialog {
    width: 96vw;
    height: 92vh;
    margin: 4vh auto;
  }

  .tdpg-modal-head {
    grid-template-columns: 1fr auto;
  }

  .tdpg-modal-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .tdpg-modal-title {
    white-space: normal;
    font-size: 16px;
  }

  .tdpg-modal-stage-wrap {
    padding: 18px 52px;
  }
}
