/* Header hot deals trigger and drawer */
.hot-deals-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 0 12px;
  padding: 6px 14px 6px 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #ff8a35 0%, #ff4f6d 62%, #e94482 100%);
  box-shadow: 0 10px 24px rgba(238, 85, 134, 0.26);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hot-deals-trigger::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -45%;
  z-index: -1;
  width: 35%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(18deg);
  transition: left 420ms ease;
}

.hot-deals-trigger:hover,
.hot-deals-trigger:focus-visible {
  color: #fff;
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(238, 85, 134, 0.34);
}

.hot-deals-trigger:hover::before,
.hot-deals-trigger:focus-visible::before {
  left: 120%;
}

.hot-deals-trigger:focus-visible {
  outline: 3px solid rgba(255, 138, 53, 0.26);
  outline-offset: 3px;
}

.hot-deals-trigger-icon {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #ff633f;
  background: #fff;
  box-shadow: 0 5px 12px rgba(126, 30, 52, 0.2);
}

.hot-deals-trigger-copy {
  display: flex;
  flex-direction: column;
  min-width: 82px;
  line-height: 1.05;
}

.hot-deals-trigger-copy strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hot-deals-trigger-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  white-space: nowrap;
}

.hot-deals-trigger-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45);
  animation: headerHotDealsPulse 2s infinite;
}

.hot-deals-offcanvas.offcanvas-box {
  width: min(440px, 100vw);
  border: 0;
  box-shadow: 24px 0 70px rgba(15, 22, 35, 0.2);
}

.hot-deals-offcanvas-header {
  align-items: flex-start;
  padding: 25px 25px 16px;
  border-bottom: 1px solid rgba(126, 134, 148, 0.14);
}

.hot-deals-offcanvas-header .offcanvas-title {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 800;
}

.hot-deals-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f16c35;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hot-deals-offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 18px 25px 28px;
}

.hot-deals-drawer-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 133, 54, 0.2);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 143, 62, 0.11), rgba(238, 85, 134, 0.07));
  font-size: 12px;
  line-height: 1.55;
}

.hot-deals-drawer-intro-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #ff963f, #ff4f6d);
  box-shadow: 0 7px 15px rgba(238, 85, 134, 0.22);
}

.header-hot-deals-list {
  display: grid;
  gap: 13px;
}

.header-hot-deals-loading {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
}

.header-hot-deals-spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(238, 85, 134, 0.22);
  border-top-color: #ee5586;
  border-radius: 50%;
  animation: headerHotDealsSpin 700ms linear infinite;
}

.header-hot-deal-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 126, 53, 0.23);
  border-radius: 15px;
  color: #27313e;
  background: linear-gradient(135deg, rgba(255, 151, 67, 0.1), rgba(255, 255, 255, 0.96) 43%, rgba(238, 85, 134, 0.07));
  box-shadow: 0 9px 25px rgba(23, 31, 48, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-hot-deal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ff963f, #ff4f6d, #e94482);
}

.header-hot-deal-card:hover {
  border-color: rgba(255, 104, 59, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(23, 31, 48, 0.12);
}

.header-hot-deal-card-top,
.header-hot-deal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-hot-deal-rank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, #ff913d, #ff4f6d);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.header-hot-deal-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e56a31;
  font-size: 10px;
  font-weight: 700;
}

.header-hot-deal-stock i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8138;
}

.header-hot-deal-card h3 {
  margin: 13px 0 4px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
}

.header-hot-deal-cpu {
  margin: 0;
  color: #626b78;
  font-size: 12px;
  line-height: 1.45;
}

.header-hot-deal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.header-hot-deal-spec {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(120, 129, 143, 0.07);
}

.header-hot-deal-spec > i,
.header-hot-deal-location-flag {
  grid-row: 1 / span 2;
  color: #f27839;
  font-size: 14px;
  text-align: center;
}

.header-hot-deal-location-flag {
  font-size: 18px;
  line-height: 1;
}

.header-hot-deal-spec span:not(.header-hot-deal-location-flag) {
  overflow: hidden;
  color: #8a9099;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-hot-deal-spec strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.25;
}

.header-hot-deal-card-footer {
  padding-top: 13px;
  border-top: 1px solid rgba(126, 134, 148, 0.12);
}

.header-hot-deal-price {
  display: flex;
  align-items: baseline;
  color: #f36f34;
  font-weight: 800;
}

.header-hot-deal-price small {
  margin-right: 4px;
  color: #8a9099;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-hot-deal-price strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.header-hot-deal-price span {
  margin-left: 3px;
  color: #8a9099;
  font-size: 10px;
  font-weight: 500;
}

.header-hot-deal-order {
  padding: 9px 14px;
  border-radius: 9px;
  color: #fff !important;
  background: linear-gradient(110deg, #ff913d, #ff4f6d);
  box-shadow: 0 7px 15px rgba(238, 85, 134, 0.2);
  font-size: 11px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-hot-deal-order:hover,
.header-hot-deal-order:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 19px rgba(238, 85, 134, 0.3);
}

.hot-deals-view-all {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(238, 85, 134, 0.35);
  font-size: 12px;
  font-weight: 700;
}

.header-hot-deals-error {
  padding: 22px 18px;
  border: 1px solid rgba(238, 85, 134, 0.2);
  border-radius: 13px;
  text-align: center;
  background: rgba(238, 85, 134, 0.06);
}

.header-hot-deals-error i {
  display: block;
  margin-bottom: 8px;
  color: #ee5586;
  font-size: 24px;
}

.header-hot-deals-empty-follow {
  line-height: 1.65;
}

.header-hot-deals-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 16px;
}

.header-hot-deals-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(238, 85, 134, 0.35);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.header-hot-deals-empty-link:hover,
.header-hot-deals-empty-link:focus-visible {
  border-color: currentColor;
  opacity: 0.82;
}

[data-background="dark"] .header-hot-deal-card,
[data-background="modern"] .header-hot-deal-card {
  color: #f4f6f8;
  background: linear-gradient(135deg, rgba(255, 151, 67, 0.14), rgba(24, 35, 45, 0.97) 45%, rgba(238, 85, 134, 0.1));
  box-shadow: 0 11px 27px rgba(0, 0, 0, 0.22);
}

[data-background="dark"] .header-hot-deal-cpu,
[data-background="modern"] .header-hot-deal-cpu {
  color: #aeb5bf;
}

[data-background="dark"] .header-hot-deal-spec,
[data-background="modern"] .header-hot-deal-spec {
  background: rgba(255, 255, 255, 0.055);
}

@keyframes headerHotDealsPulse {
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@keyframes headerHotDealsSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .hot-deals-trigger {
    margin: 0 7px;
    padding-right: 9px;
  }

  .hot-deals-trigger-copy {
    min-width: auto;
  }

  .hot-deals-trigger-copy small {
    display: none;
  }
}

@media (max-width: 767px) {
  .hot-deals-trigger {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 10px 0 0;
    padding: 6px;
    justify-content: center;
  }

  .hot-deals-trigger-copy {
    display: none;
  }

  .hot-deals-trigger-icon {
    width: 30px;
    height: 30px;
  }

  .hot-deals-trigger-dot {
    top: 2px;
    right: 2px;
  }

  .hot-deals-offcanvas-header {
    padding: 20px 18px 14px;
  }

  .hot-deals-offcanvas-body {
    padding: 16px 18px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hot-deals-trigger,
  .hot-deals-trigger::before,
  .header-hot-deal-card,
  .header-hot-deal-order {
    transition: none;
  }

  .hot-deals-trigger-dot,
  .header-hot-deals-spinner {
    animation: none;
  }
}
