.daily-deals-hyva {
  font-family: 'Almarai', 'Open Sans', sans-serif;
}

.daily-deals-hyva[dir="rtl"] {
  direction: rtl;
}

.daily-deals-hyva[dir="ltr"] {
  direction: ltr;
}

.daily-deals-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px;
  margin-bottom: 32px;
}

.daily-deals-title {
  font-size: 32px;
  font-weight: 700;
  color: #55585b;
  margin: 0;
  text-align: start;
}

.daily-deals-view-all {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  color: #ee3a54;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.daily-deals-view-all svg {
  width: 20px;
  height: 20px;
  stroke: #ee3a54;
}

.daily-deals-hyva[dir="rtl"] .daily-deals-view-all svg {
  transform: scaleX(-1);
}

.daily-deals-track {
  display: flex;
  gap: 13.33px;
  overflow-x: auto;
  padding: 0 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.daily-deals-track::-webkit-scrollbar {
  display: none;
}

.daily-deals-carousel {
  position: relative;
  padding: 0 24px;
}

.daily-deals-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d8d8d8;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ee3a54;
  z-index: 2;
}

.daily-deals-nav svg {
  width: 20px;
  height: 20px;
  stroke: #ee3a54;
}

.daily-deals-nav--next {
  right: 8px;
}

.daily-deals-nav--prev {
  left: 8px;
}

.daily-deals-indicators {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
  min-height: 32px;
}

.daily-deals-indicator {
  flex-shrink: 0;
  height: 12px;
  width: 12px;
  background: rgba(238, 58, 84, 0.25);
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s, background-color 0.3s, border-radius 0.3s;
}

@media (max-width: 767px) {
  .daily-deals-hyva {
    padding: 0;
    background: #ffffff;
  }

  .daily-deals-header {
    padding: 0 0 0 0;
    margin-bottom: 25px;
    align-items: center;
  }

  .daily-deals-title {
    font-size: 24px;
    line-height: 33.745px;
    color: #55585b;
    text-align: start;
    width: 100%;
  }

  .daily-deals-view-all {
    font-size: 12.76px;
    gap: 4px;
    color: #ee3a54;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .daily-deals-view-all svg {
    width: 25px;
    height: 25px;
  }

  .daily-deals-track {
    gap: 26px;
    padding: 0 0 16px;
  }

  .daily-deals-card {
    width: 185px;
    flex: 0 0 185px;
    max-width: 185px;
    border: 0.873px solid #d8d8d8;
    border-radius: 7px;
    padding: 8.733px;
    background: #ffffff;
    gap: 10.67px;
    min-height: 370px;
  }

  .daily-deals-card-top {
    margin-bottom: 10.48px;
  }

  .daily-deals-badge {
    font-size: 9.439px;
    padding: 2.832px 9.439px;
    border-radius: 0.944px;
    background: #da4242;
  }

  .daily-deals-wishlist {
    width: 27.1px;
    height: 27.1px;
  }

  .daily-deals-image {
    height: 140px;
  }

  .daily-deals-image img {
    max-height: 140px;
    object-fit: contain;
  }

  .daily-deals-rating-row {
    gap: 7.9px;
  }

  .daily-deals-rating-stars {
    transform: scale(0.7);
    transform-origin: right center;
  }

  .daily-deals-rating-value {
    font-size: 11.86px;
    color: #808080;
  }

  .daily-deals-name {
    font-size: 12.226px;
    line-height: 17.466px;
    color: #202020;
    margin: 0 0 3.5px;
  }

  .daily-deals-shipping {
    display: flex;
    align-items: center;
    gap: 5.33px;
    font-size: 12px;
    line-height: 1.116;
    font-weight: 700;
    color: #515151;
    margin-bottom: 3.5px;
  }

  .daily-deals-shipping svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .daily-deals-price-row {
    align-items: center;
  }

  .daily-deals-price-current {
    font-size: 15.102px;
    line-height: 16.99px;
    color: #0e0d0d;
  }

  .daily-deals-price-old {
    font-size: 10.383px;
    line-height: 13.592px;
    color: #666666;
  }

  .daily-deals-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 12.275px;
    background: #ee3a54;
  }

  .daily-deals-cart-btn svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .daily-deals-nav {
    display: none;
  }

  .daily-deals-indicators {
    display: none;
  }
}

.daily-deals-indicator.is-active,
.daily-deals-indicator[aria-current="true"] {
  width: 24px;
  border-radius: 6px;
  background: #ee3a54;
}


.daily-deals-card {
  background: #fff;
  border: 1.33px solid #d8d8d8;
  box-sizing: border-box;
  border-radius: 10.67px;
  padding: 13.33px;
  flex: 0 0 212px;
  max-width: 212px;
  min-height: 493px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
}

.daily-deals-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.daily-deals-badge {
  background: #da4242;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 13.33px;
  border-radius: 1.33px;
}

.daily-deals-wishlist {
  width: 33.33px;
  height: 33.33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ee3a54;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.daily-deals-wishlist svg {
  width: 22px;
  height: 22px;
}

.daily-deals-wishlist svg path {
  stroke: #ee3a54;
  fill: transparent;
  transition: fill 0.2s;
}

.daily-deals-wishlist.is-active svg path {
  fill: #ee3a54;
}

.daily-deals-wishlist.is-loading {
  opacity: 0.5;
}

.daily-deals-image {
  height: 213px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-deals-image img {
  max-height: 213px;
  width: 100%;
  object-fit: contain;
}

.daily-deals-rating-row {
  display: flex;
  align-items: center;
  gap: 5.33px;
  min-height: 16px;
  background: transparent !important;
}

.daily-deals-rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
}

.daily-deals-rating-stars svg {
  width: 16px !important;
  height: 16px !important;
}

.daily-deals-rating-stars .is-filled {
  fill: #c09300 !important;
  stroke: #c09300 !important;
}

.daily-deals-rating-stars .is-empty {
  fill: none !important;
  stroke: #d1d5db !important;
}

.daily-deals-rating-value {
  font-size: 12px;
  font-weight: 600;
  color: #808080;
  margin-right: 4px;
}

/* Groups product title + shipping + price with tighter Figma-spec gap (5.33px) */
.daily-deals-info {
  display: flex;
  flex-direction: column;
  gap: 5.33px;
  width: 100%;
  margin-top: auto;
}

.daily-deals-name {
  font-size: 14px;
  font-weight: 400;
  color: #202020;
  line-height: 20px;
  text-decoration: none;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-deals-hyva[dir="rtl"] .daily-deals-name {
  text-align: right;
}

.daily-deals-shipping {
  display: flex;
  align-items: center;
  gap: 5.33px;
  font-size: 13.33px;
  line-height: 1.116;
  font-weight: 700;
  color: #515151;
  min-height: 21.33px;
}

/* Animated badge container */
.daily-deals-shipping--animated {
  position: relative;
  overflow: hidden;
  height: 21.33px;
}

.daily-deals-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 5.33px;
}

.daily-deals-shipping--animated .daily-deals-shipping-badge {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
}

.daily-deals-shipping svg {
  width: 21.33px;
  height: 21.33px;
  flex-shrink: 0;
}

.daily-deals-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.daily-deals-price-row form {
  margin: 0;
}

.daily-deals-price {
  display: flex;
  flex-direction: column;
  gap: 5.33px;
}

.daily-deals-price-current {
  font-size: 16px;
  font-weight: 700;
  color: #0e0d0d;
}

.daily-deals-price-old {
  font-size: 11px;
  color: #666;
  text-decoration: line-through;
}

.daily-deals-cart-btn {
  width: 53.33px;
  height: 53.33px;
  border-radius: 15.1px;
  background: #ee3a54;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.daily-deals-cart-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.daily-deals-cart-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.daily-deals-out-of-stock {
  min-width: 53.33px;
  min-height: 53.33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #d32f44;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   MOBILE OVERRIDES — placed AFTER default card styles for correct cascade
   ========================================================================== */
@media (max-width: 767px) {
  .daily-deals-header {
    padding: 0 16px;
  }

  .daily-deals-carousel {
    padding: 0 16px;
  }

  .daily-deals-track {
    padding: 0 0 12px;
    gap: 26px;
  }

  /* --- Card shell --- */
  .daily-deals-card {
    width: calc(50% - 13px);
    flex: 0 0 calc(50% - 13px);
    max-width: calc(50% - 13px);
    min-height: auto;
    overflow: hidden;
    border: 0.873px solid #d8d8d8;
    border-radius: 6px;
    padding: 8.733px;
    gap: 10.48px;
  }

  .daily-deals-card-top {
    margin-bottom: 0;
  }

  /* --- Badge --- */
  .daily-deals-badge {
    font-size: 9.439px;
    font-weight: 600;
    padding: 2.832px 9.439px;
    border-radius: 0.944px;
  }

  /* --- Wishlist heart --- */
  .daily-deals-wishlist {
    width: 21.68px;
    height: 21.68px;
  }

  .daily-deals-wishlist svg {
    width: 21.68px;
    height: 21.68px;
  }

  /* --- Product image --- */
  .daily-deals-image {
    height: 160px;
    overflow: hidden;
    width: 100%;
  }

  .daily-deals-card .product-image-container {
    width: 100% !important;
    height: auto;
  }

  .daily-deals-image img {
    max-height: 160px;
    max-width: 100%;
    width: 100%;
    object-fit: contain;
  }

  /* --- Rating row --- */
  .daily-deals-rating-row {
    gap: 3.953px;
  }

  .daily-deals-rating-stars {
    transform: none;
  }

  .daily-deals-rating-stars svg {
    width: 15.81px !important;
    height: 15.81px !important;
  }

  .daily-deals-rating-value {
    font-size: 11.86px;
    color: #808080;
  }

  /* --- Info section (title + shipping + price) --- */
  .daily-deals-info {
    gap: 3.493px;
  }

  .daily-deals-name {
    font-size: 12.226px;
    line-height: 1.429em;
    color: #202020;
    min-height: unset;
    margin: 0;
  }

  /* --- Shipping --- */
  .daily-deals-shipping {
    font-size: 10px;
    gap: 4px;
    margin-bottom: 0;
    min-height: 18px;
  }

  .daily-deals-shipping--animated {
    height: 18px;
  }

  .daily-deals-shipping svg {
    width: 16px;
    height: 16px;
  }

  /* --- Price --- */
  .daily-deals-price {
    gap: 3.776px;
  }

  .daily-deals-price-current {
    font-size: 15.102px;
    line-height: 1.125em;
    color: #0e0d0d;
  }

  .daily-deals-price-old {
    font-size: 10.383px;
    line-height: 1.309em;
    color: #666666;
  }

  /* --- Cart button --- */
  .daily-deals-cart-btn {
    width: 37.94px;
    height: 37.94px;
    border-radius: 12.275px;
    background: #ee3a54;
  }

  .daily-deals-cart-btn svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .daily-deals-out-of-stock {
    min-width: 37.94px;
    min-height: 37.94px;
    font-size: 11px;
  }

  /* --- Hide nav & indicators on mobile --- */
  .daily-deals-nav {
    display: none;
  }

  .daily-deals-indicators {
    display: none;
  }
}

/* ==========================================================================
   TABLET STYLES - Daily Deals (768px - 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .daily-deals-indicators {
    display: none !important;
  }
}

/* ==========================================================================
   DESKTOP STYLES - Daily Deals (1025px+) — always show exactly 6 cards
   ========================================================================== */
@media (min-width: 1025px) {
  .daily-deals-track {
    gap: 13.33px;
  }

  .daily-deals-card {
    flex: 0 0 calc((100% - 5 * 13.33px) / 6);
    max-width: calc((100% - 5 * 13.33px) / 6);
  }
}
