.qtc-dji-catalog,
.qtc-dji-catalog * {
  box-sizing: border-box;
  font-family: "Open Sans", Arial, sans-serif;
}

.qtc-dji-catalog {
  width: 100%;
  background: #f4f5f6;
  padding: clamp(36px, 4vw, 54px) 0 clamp(44px, 5vw, 64px);
  color: #111827;
}

.qtc-dji-catalog__container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.qtc-dji-catalog__heading {
  max-width: 860px;
  margin: 0 auto 22px;
  text-align: center;
}

.qtc-dji-catalog__kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #4a4f56;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.qtc-dji-catalog__heading h2 {
  margin: 0;
  color: #05070a;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.qtc-dji-catalog__heading p {
  max-width: 720px;
  margin: 12px auto 0;
  color: #5f6670;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.qtc-dji-catalog__filterbox {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, .06);
}

.qtc-dji-catalog__selectrow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.qtc-dji-catalog__field {
  display: block;
  min-width: 0;
}

.qtc-dji-catalog__field > span {
  display: block;
  margin: 0 0 8px 4px;
  color: #4b5563;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.qtc-dji-catalog__field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 999px;
  background-color: #fff;
  color: #111827;
  padding: 0 44px 0 18px;
  font-size: 14px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 24, 39, .04);
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111827 50%),
    linear-gradient(135deg, #111827 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.qtc-dji-catalog__field select:hover {
  border-color: rgba(17, 24, 39, .16);
}

.qtc-dji-catalog__field select:focus {
  border-color: rgba(0, 0, 0, .28);
  box-shadow: 0 10px 22px rgba(17, 24, 39, .04), 0 0 0 4px rgba(0, 0, 0, .06);
}

.qtc-dji-catalog .qtc-dji-catalog__clear,
.qtc-dji-catalog .qtc-dji-catalog__clear:visited {
  min-height: 46px !important;
  border: 1px solid #000 !important;
  border-radius: 999px !important;
  background: #000 !important;
  color: #fff !important;
  padding: 0 22px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .16) !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease !important;
}

.qtc-dji-catalog .qtc-dji-catalog__clear:hover,
.qtc-dji-catalog .qtc-dji-catalog__clear:focus,
.qtc-dji-catalog .qtc-dji-catalog__clear:active {
  background: #1a1a1a !important;
  border-color: #1a1a1a !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 20px 34px rgba(0, 0, 0, .22) !important;
  outline: none !important;
}

.qtc-dji-catalog__meta {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qtc-dji-catalog__meta p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.qtc-dji-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.qtc-dji-product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 24, 39, .045);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.qtc-dji-product-card[hidden] {
  display: none !important;
}

.qtc-dji-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 24, 39, .15);
  box-shadow: 0 24px 48px rgba(17, 24, 39, .10);
}

.qtc-dji-product-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.qtc-dji-product-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #2a2d31;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.qtc-dji-product-badge--cameras {
  background: #e5e7eb;
  color: #111827;
}

.qtc-dji-product-badge--audio {
  background: #dff5fb;
  color: #006f9a;
}

.qtc-dji-product-badge--stabilizers {
  background: #f1e7f7;
  color: #7a478e;
}

.qtc-dji-product-badge--sale {
  background: #e11d48;
  color: #fff;
}

.qtc-dji-product-badge--out {
  background: #f3f4f6;
  color: #6b7280;
}

.qtc-dji-product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .88;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(17, 24, 39, .045), transparent 42%), #fff;
  padding: 34px 18px 18px;
  text-decoration: none !important;
}

.qtc-dji-product-card__image img {
  width: 100%;
  height: 100%;
  max-width: 210px;
  object-fit: contain;
  display: block;
  transition: opacity .35s ease, transform .45s ease, filter .45s ease;
}

.qtc-dji-product-card__img-main {
  position: relative;
  z-index: 1;
}

.qtc-dji-product-card__img-hover {
  position: absolute;
  inset: 34px 18px 18px;
  z-index: 2;
  width: calc(100% - 36px) !important;
  height: calc(100% - 52px) !important;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .qtc-dji-product-card--has-hover:hover .qtc-dji-product-card__img-main {
    opacity: 0;
    transform: scale(.98);
  }

  .qtc-dji-product-card:hover .qtc-dji-product-card__img-hover {
    opacity: 1;
    transform: scale(1.08);
    filter: saturate(1.04) contrast(1.03);
  }
}

.qtc-dji-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 16px 16px;
}

.qtc-dji-product-family {
  margin: 0 0 5px;
  color: #4b5563;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.qtc-dji-product-title {
  margin: 0;
  color: #0a0d12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.qtc-dji-product-title a,
.qtc-dji-product-title a:hover,
.qtc-dji-product-title a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.qtc-dji-product-sku {
  margin: 6px 0 0;
  color: #a0a5a5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.qtc-dji-product-price {
  margin: 18px 0 14px;
  color: #05070a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.qtc-dji-product-price del {
  margin-right: 5px;
  color: #8a9098;
  font-size: .72em;
  font-weight: 700;
  opacity: 1;
}

.qtc-dji-product-price ins {
  color: inherit;
  text-decoration: none;
}

.qtc-dji-product-price .woocommerce-Price-currencySymbol {
  margin-right: 1px;
}

.qtc-dji-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.qtc-dji-product-wa {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 10px;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.qtc-dji-product-wa svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 14px;
}

.qtc-dji-product-wa:hover {
  transform: translateY(-2px);
}

.qtc-dji-product-wa--main {
  border: 1px solid #05070a;
  background: #05070a;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .14);
}

.qtc-dji-product-wa--main:hover,
.qtc-dji-product-wa--main:focus {
  background: #000;
  border-color: #000;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(17, 24, 39, .18);
}

.qtc-dji-product-wa--secondary {
  border: 1px solid rgba(17, 24, 39, .08);
  background: #fff;
  color: #111827 !important;
}

.qtc-dji-product-wa--secondary:hover,
.qtc-dji-product-wa--secondary:focus {
  border-color: rgba(17, 24, 39, .18);
  background: #f7f8f9;
  color: #111827 !important;
}

.qtc-dji-catalog__empty {
  max-width: 560px;
  margin: 36px auto 0;
  padding: 34px 24px;
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .06);
}

.qtc-dji-catalog__empty[hidden] {
  display: none !important;
}

.qtc-dji-catalog__empty h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.qtc-dji-catalog__empty p {
  margin: 10px auto 22px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.qtc-dji-catalog__empty button,
.qtc-dji-catalog__empty button:hover,
.qtc-dji-catalog__empty button:focus,
.qtc-dji-catalog__empty button:active {
  min-height: 46px !important;
  border: 1px solid #111827 !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  padding: 0 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.qtc-dji-admin-warning {
  padding: 16px 18px;
  border-left: 4px solid #d63638;
  background: #fff;
  color: #1d2327;
}

@media (max-width: 1120px) {
  .qtc-dji-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qtc-dji-catalog__selectrow {
    grid-template-columns: 1fr 1fr;
  }

  .qtc-dji-catalog__clear {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .qtc-dji-catalog__container {
    width: min(100% - 30px, 1180px);
  }

  .qtc-dji-catalog__filterbox {
    border-radius: 24px;
  }

  .qtc-dji-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .qtc-dji-catalog {
    padding: 34px 0 44px;
  }

  .qtc-dji-catalog__container {
    width: min(100% - 24px, 1180px);
  }

  .qtc-dji-catalog__heading {
    margin-bottom: 20px;
    text-align: left;
  }

  .qtc-dji-catalog__heading h2 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .qtc-dji-catalog__heading p {
    margin-left: 0;
    margin-right: 0;
    font-size: 15px;
  }

  .qtc-dji-catalog__filterbox {
    padding: 14px;
    border-radius: 22px;
  }

  .qtc-dji-catalog__selectrow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qtc-dji-catalog__clear {
    grid-column: auto;
    width: 100%;
  }

  .qtc-dji-catalog__meta {
    margin-bottom: 14px;
  }

  .qtc-dji-catalog__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qtc-dji-product-card__image {
    aspect-ratio: 1 / .72;
    padding-top: 38px;
  }

  .qtc-dji-product-card__image img {
    max-width: 235px;
  }
}

@media (max-width: 380px) {
  .qtc-dji-product-actions {
    grid-template-columns: 1fr;
  }

  .qtc-dji-product-wa {
    min-height: 40px;
    font-size: 12px;
  }
}

/* =========================================================
   QTC DJI Catalog — Mobile UX 1.2.0
   ========================================================= */
.qtc-dji-catalog,
.qtc-dji-catalog__container,
.qtc-dji-catalog__grid,
.qtc-dji-product-card {
  max-width: 100%;
}

.qtc-dji-catalog {
  overflow-x: clip;
}

.qtc-dji-catalog__selectrow > *,
.qtc-dji-product-card__body,
.qtc-dji-product-actions,
.qtc-dji-product-wa {
  min-width: 0;
}

.qtc-dji-product-title,
.qtc-dji-product-price,
.qtc-dji-product-wa {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .qtc-dji-catalog {
    padding: 30px 0 40px;
  }

  .qtc-dji-catalog__container {
    width: calc(100% - 24px);
  }

  .qtc-dji-catalog__heading {
    max-width: none;
    margin-bottom: 18px;
    text-align: left;
  }

  .qtc-dji-catalog__kicker {
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: .20em;
  }

  .qtc-dji-catalog__heading h2 {
    max-width: 100%;
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: balance;
  }

  .qtc-dji-catalog__heading p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .qtc-dji-catalog__filterbox {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, .055);
  }

  .qtc-dji-catalog__selectrow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .qtc-dji-catalog__field > span {
    margin: 0 0 6px 2px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .qtc-dji-catalog__field select {
    min-height: 44px;
    padding: 0 34px 0 13px;
    border-radius: 14px;
    background-position:
      calc(100% - 17px) 19px,
      calc(100% - 12px) 19px;
    background-size: 5px 5px, 5px 5px;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
  }

  .qtc-dji-catalog__field:nth-child(3),
  .qtc-dji-catalog__clear {
    grid-column: 1 / -1;
  }

  .qtc-dji-catalog .qtc-dji-catalog__clear,
  .qtc-dji-catalog .qtc-dji-catalog__clear:visited {
    width: 100%;
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .qtc-dji-catalog__meta {
    margin-bottom: 12px;
  }

  .qtc-dji-catalog__meta p {
    font-size: 12px;
  }

  .qtc-dji-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .qtc-dji-product-card {
    border-radius: 15px;
    box-shadow: 0 9px 20px rgba(17, 24, 39, .045);
    transform: none !important;
  }

  .qtc-dji-product-card__badges {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 4px;
  }

  .qtc-dji-product-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 7px;
    letter-spacing: .05em;
  }

  .qtc-dji-product-card__image {
    aspect-ratio: 1 / .90;
    padding: 30px 10px 10px;
  }

  .qtc-dji-product-card__image img {
    max-width: 150px;
  }

  .qtc-dji-product-card__body {
    padding: 0 11px 11px;
  }

  .qtc-dji-product-family {
    margin-bottom: 4px;
    font-size: 7px;
    letter-spacing: .08em;
  }

  .qtc-dji-product-title {
    font-size: 13px;
    line-height: 1.22;
    letter-spacing: -.02em;
  }

  .qtc-dji-product-sku {
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.2;
  }

  .qtc-dji-product-price {
    margin: 12px 0 10px;
    font-size: 15px;
    line-height: 1.25;
  }

  .qtc-dji-product-price del {
    display: block;
    margin: 0 0 2px;
  }

  .qtc-dji-product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .qtc-dji-product-wa {
    min-height: 36px;
    gap: 5px;
    padding: 0 7px;
    font-size: 9px;
    white-space: normal;
    text-align: center;
  }

  .qtc-dji-product-wa svg {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .qtc-dji-catalog__empty {
    margin-top: 20px;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .qtc-dji-catalog__empty h3 {
    font-size: 20px;
  }

  .qtc-dji-catalog__empty p {
    margin-bottom: 18px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .qtc-dji-catalog__container {
    width: calc(100% - 20px);
  }

  .qtc-dji-catalog__selectrow {
    grid-template-columns: 1fr;
  }

  .qtc-dji-catalog__field:nth-child(3),
  .qtc-dji-catalog__clear {
    grid-column: auto;
  }

  .qtc-dji-catalog__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qtc-dji-product-card {
    display: grid;
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    align-items: stretch;
  }

  .qtc-dji-product-card__badges {
    max-width: calc(38% - 16px);
  }

  .qtc-dji-product-card__image {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
    padding: 32px 8px 12px;
  }

  .qtc-dji-product-card__image img {
    max-width: 118px;
  }

  .qtc-dji-product-card__body {
    padding: 15px 11px 11px;
  }

  .qtc-dji-product-title {
    font-size: 14px;
  }

  .qtc-dji-product-price {
    margin-top: 10px;
    font-size: 16px;
  }

  .qtc-dji-product-actions {
    margin-top: auto;
  }

  .qtc-dji-product-wa {
    min-height: 34px;
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .qtc-dji-product-card {
    grid-template-columns: 1fr;
  }

  .qtc-dji-product-card__badges {
    max-width: none;
  }

  .qtc-dji-product-card__image {
    min-height: 165px;
  }

  .qtc-dji-product-card__image img {
    max-width: 145px;
  }
}

@supports not (overflow: clip) {
  .qtc-dji-catalog {
    overflow-x: hidden;
  }
}

/* QTC Catálogos por Categoría 2.1.0 */
.qtc-dji-product-actions--single {
  grid-template-columns: 1fr;
}


.qtc-dji-product-view,
.qtc-dji-product-view:visited {
  min-height: 38px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #05070a;
  border-radius: 999px;
  background: #05070a;
  color: #fff !important;
  padding: 0 14px;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.qtc-dji-product-view:hover,
.qtc-dji-product-view:focus {
  background: #000;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 24, 39, .18);
}
