/* Hot Deals Manager Frontend Styles */

.hot-deals-sections-wrapper {
  width: 100%;
}

/* Multiple deals wrapper */
.hot-deals-sections-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Spacing for multiple deals (not the first one) */
.hot-deals-section-spacing {
  margin-top: 32px;
}

.hot-deals-section {
  background-color: #fef3f2;
  display: grid;
  gap: 24px;
  text-align: center;
  width: 100%;
}

.hot-deals-navigation {
  display: grid;
  grid-template-columns: 1fr;
  padding: 16px 16px 0;
}

@media (min-width: 768px) {
  .home .hot-deals-navigation {
    padding: 16px 72px;
  }
}

.hot-deals-see-all-container {
  display: none;
}

.hot-deals-see-all-container-mobile {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px 16px;
}

.hot-deals-see-all-link {
  padding: 4px 12px;
  background: #fff;
  font-size: 12px;
  border-radius: 4px;
}

.hot-deals-see-all-link-mobile {
  width: 100%;
  background: #fff;
  font-size: 12px;
  border-radius: 4px;
}

.hot-deals-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hot-deals-header-right {
  display: flex;
  justify-content: end;
}

@media (min-width: 768px) {
  .hot-deals-header {
    display: flex;
    justify-items: center;
  }

  .hot-deals-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .hot-deals-header {
    display: flex;
    justify-items: center;
    gap: 16px;
  }

  .hot-deals-see-all-container {
    display: flex;
    justify-items: center;
    justify-content: end;
    align-items: center;
  }

  .hot-deals-see-all-container-mobile {
    display: none;
  }
}

.hot-deals-header .hot-deals-header-left {
  display: flex;
  justify-items: center;
  gap: 4px;
}

.hot-deals-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hot-deals-title {
  display: flex;
  align-items: center;
  flex-direction: row; /* Default: row when no description */
}

/* When description exists, change title layout */
.hot-deals-title:has(.hot-deals-description) {
  flex-direction: column;
  align-items: flex-start;
}

.hot-deals-title:has(.hot-deals-description) h2 {
  font-size: 14px;
}

.hot-deals-title h2 {
  font-size: 18px;
  font-weight: 600;
  align-self: center;
  margin: 0;
}

.hot-deals-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hot-deals-icon div,
.hot-deals-icon img {
  align-self: center;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.hot-deals-description {
  font-size: 10px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.hot-deals-description p {
  margin-bottom: 0 !important;
}

/* Countdown Styles */
.hot-deals-countdown-container {
  margin-bottom: 30px;
}

.countdown-label-main {
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.hot-deals-countdown {
  display: flex;
  align-items: center;
  max-height: 33px;
  min-width: 170px;
  justify-content: center;
  gap: 8px;
  background-color: #ffff;
  padding: 4px 16px;
  border-radius: 56px;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-icon {
  width: 16px;
  height: 16px;
  color: #666;
}

.countdown-unit {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.countdown-item {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: inline;
}

.countdown-separator {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: inline;
}

.countdown-label {
  font-weight: normal;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hot-deals-products-container {
  overflow-x: auto;
  padding-bottom: 16px;
}

.hot-deals-products-container::-webkit-scrollbar {
  display: none;
}

/* Products Grid */
.hot-deals-products-wrapper {
  gap: 16px;
  display: flex;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .hot-deals-products-wrapper {
    padding: 0 72px;
  }
}

.hot-deals-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.hot-deals-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  width: 180px;
  height: 100%;
  border-radius: 12px;
  padding: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.hot-deals-product-card .product-image {
  text-align: center;
  margin-bottom: 15px;
}

.hot-deals-product-card .product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hot-deals-product-card .product-title {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-deals-product-card .product-details {
  margin-top: 0;
}

.hot-deals-product-card .product-price {
  display: inline-flex;
  margin-bottom: 10px;
  font-weight: 600;
  color: #c93667;
  text-transform: none;
  line-height: 140%;
  font-size: 14px;
  text-decoration: none;
}

.hot-deals-product-card .product-price:has(del) {
  gap: 4px;
}

.hot-deals-product-card .product-price del {
  display: inline-block;
  order: 2;
  font-weight: 400;
  font-size: 10px;
  text-decoration: line-through;
  color: #8f9aa3;
}

.hot-deals-product-card .product-price ins {
  order: 1;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.hot-deals-product-card .product-description {
  color: #666;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hot-deals-button {
  margin-top: auto;
}

.hot-deals-button.wp-block-button__link {
  display: inline-block;
  background-color: #c93b3b;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.hot-deals-product-card .choose-options-btn {
  width: 100%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hot-deals-products {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hot-deals-button.wp-block-button__link {
    padding: 10px 20px;
  }
}
