/* =========================================================
   صفحه اختصاصی تخفیف‌های ۲۴ ساعته امروز (Daily Deals)
   عینک صدف - Sadaf Optometry
   ========================================================= */

.today-deals-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  font-family: inherit;
}

/* ── Hero Banner ── */
.today-deals-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31103f 100%);
  border-radius: 24px;
  padding: 40px 30px;
  color: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.today-deals-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

.today-deals-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.today-deals-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.3;
}

.today-deals-title span {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.today-deals-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 0 28px;
  line-height: 1.7;
}

/* ── Countdown Timer ── */
.deals-timer-container {
  display: flex;
  align-items: center;
  gap: 16px;
  direction: ltr;
}

.timer-unit-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 18px;
  min-width: 75px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.timer-unit-box:hover {
  transform: translateY(-3px);
}

.timer-number {
  font-size: 28px;
  font-weight: 800;
  font-family: monospace, monospace;
  color: #f43f5e;
  line-height: 1;
  display: block;
}

.timer-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  display: block;
  font-weight: 600;
}

.timer-colon {
  font-size: 24px;
  font-weight: 800;
  color: #f43f5e;
  animation: blinkColon 1s infinite;
}

@keyframes blinkColon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── Section Header ── */
.deals-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.deals-count-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deals-count-info strong {
  color: #0f172a;
}

/* ── Products Grid ── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .today-deals-hero {
    padding: 30px 16px;
  }
  .today-deals-title {
    font-size: 22px;
  }
  .timer-unit-box {
    min-width: 60px;
    padding: 10px 12px;
  }
  .timer-number {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .deals-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ── Deal Card ── */
.deal-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.deal-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.deal-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #f8fafc;
  overflow: hidden;
}

.deal-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.4s ease;
}

.deal-card:hover .deal-card-img {
  transform: scale(1.06);
}

.deal-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.deal-card-tagline {
  font-size: 11px;
  color: #e11d48;
  background: #ffe4e6;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.deal-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.deal-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.deal-card-title a:hover {
  color: #e11d48;
}

.deal-card-price-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-card-prices {
  display: flex;
  flex-direction: column;
}

.deal-price-orig {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.deal-price-current {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.deal-price-current span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-right: 2px;
}

.deal-card-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.deal-card-btn:hover {
  background: #e11d48;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* ── Newest Deal Highlight & Card Timer ── */
.deal-card.is-newest {
  border: 2px solid #f43f5e;
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.25);
}

.deal-card-new-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  animation: pulseNewBadge 2s infinite alternate;
}

@keyframes pulseNewBadge {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.deal-card-timer {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  direction: ltr;
  align-self: flex-start;
}

.deal-card-timer i {
  color: #e11d48;
}

.deal-card.is-newest .deal-card-timer {
  background: #ffe4e6;
  color: #be123c;
}

/* ── How It Works Section ── */
.how-it-works-section {
  margin-top: 70px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 50px 30px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.how-it-works-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.how-it-works-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.how-it-works-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
}

.how-it-works-subtitle {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px 24px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
}

.step-icon-wrap {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}

.step-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.step-card-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

/* ── FAQ Section ── */
.deals-faq-section {
  margin-top: 60px;
}

.deals-faq-header {
  text-align: center;
  margin-bottom: 32px;
}

.deals-faq-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

.deals-faq-header p {
  font-size: 14px;
  color: #64748b;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.is-open {
  border-color: #f43f5e;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.08);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #e11d48;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: #ffe4e6;
  color: #e11d48;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* ── Trust Features ── */
.trust-features-section {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .trust-features-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .trust-features-section {
    grid-template-columns: repeat(1, 1fr);
  }
}

.trust-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}

.trust-feature-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
}

.trust-icon {
  width: 46px;
  height: 46px;
  background: #ffe4e6;
  color: #e11d48;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.trust-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}


