/* =========================================================
   Slick Tools — Superdrug-inspired retail homepage
   Clean · Light · High contrast · Pink accent #ee0088
   ========================================================= */

/* ---- Global readability fixes ---- */
.section-title,
.sd-heading,
.h-title {
  color: #1b1b1f;
}

.section-desc,
.sd-subheading {
  color: rgba(27, 27, 31, 0.62);
}

.section-muted {
  background: #f7f5f6;
}

.section-muted .section-title,
.section-muted .sd-heading {
  color: #1b1b1f;
}

.text-muted {
  color: rgba(27, 27, 31, 0.58);
  font-size: 13px;
}

.footer-beauty .text-muted,
.section-dark .text-muted {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Hero carousel ---- */
.sd-hero {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.sd-hero-track {
  position: relative;
  min-height: clamp(380px, 52vw, 520px);
}

.sd-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.sd-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.sd-slide-media {
  position: absolute;
  inset: 0;
  display: block;
}

.sd-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.sd-slide-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 38%,
    rgba(255, 255, 255, 0.15) 68%,
    transparent 100%
  );
}

.sd-slide-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  min-height: clamp(380px, 52vw, 520px);
  display: flex;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.sd-slide-panel {
  max-width: 480px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 10, 12, 0.12);
  border: 1px solid rgba(27, 27, 31, 0.06);
}

.sd-slide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.sd-slide-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1b1b1f;
  margin: 0 0 12px;
}

.sd-slide-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(27, 27, 31, 0.68);
  margin: 0 0 20px;
}

.sd-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sd-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(27, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #1b1b1f;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 10, 12, 0.1);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sd-hero-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.sd-hero-arrow.prev { left: 16px; }
.sd-hero-arrow.next { right: 16px; }

.sd-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.sd-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 27, 31, 0.25);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.sd-hero-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ---- Trust strip ---- */
.sd-trust-strip {
  background: var(--accent);
  color: #fff;
  padding: 12px 0;
}

.sd-trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 13px;
  font-weight: 600;
}

.sd-trust-inner span {
  white-space: nowrap;
}

/* ---- Section headings ---- */
.sd-quick-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sd-heading {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #1b1b1f;
}

.sd-subheading {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(27, 27, 31, 0.62);
}

.sd-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.sd-link:hover {
  text-decoration: underline;
}

/* ---- Quick category pills ---- */
.sd-quick-cats {
  padding: 24px 0;
  background: #fff;
  border-bottom: 1px solid rgba(27, 27, 31, 0.06);
}

.sd-quick-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.sd-quick-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f7f5f6;
  border: 1px solid rgba(27, 27, 31, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1f;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sd-quick-pill:hover {
  background: rgba(238, 0, 136, 0.08);
  border-color: rgba(238, 0, 136, 0.25);
  color: var(--accent);
}

/* ---- Promo offer tiles ---- */
.sd-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sd-offer-card {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(27, 27, 31, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sd-offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 10, 12, 0.12);
}

.sd-offer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sd-offer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 27, 31, 0.05) 0%, rgba(27, 27, 31, 0.72) 100%);
}

.sd-offer-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sd-offer-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb8dc;
  margin-bottom: 8px;
}

.sd-offer-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.sd-offer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
  line-height: 1.45;
}

.sd-offer-cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* ---- Category placeholder ---- */
.cat-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(238, 0, 136, 0.08), #f7f5f6);
}

/* ---- Light newsletter panel ---- */
.sd-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 8px 32px rgba(20, 10, 12, 0.06);
}

.sd-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sd-newsletter-form .input {
  min-width: 260px;
  background: #f7f5f6;
  border-color: rgba(27, 27, 31, 0.12);
  color: #1b1b1f;
}

/* ---- Dark section contrast (about etc.) ---- */
.section-dark {
  background: #1b1b1f;
  padding: 48px 0;
}

.section-dark .sd-heading,
.section-dark .section-title {
  color: #fff;
}

.section-dark .sd-subheading,
.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .sd-offers-grid {
    grid-template-columns: 1fr;
  }

  .sd-slide-media::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.88) 55%,
      rgba(255, 255, 255, 0.96) 100%
    );
  }

  .sd-slide-inner {
    align-items: flex-end;
    padding-bottom: 56px;
  }

  .sd-slide-panel {
    max-width: 100%;
    width: 100%;
  }

  .sd-hero-arrow {
    display: none;
  }

  .sd-trust-inner {
    font-size: 12px;
    gap: 8px 16px;
  }
}

@media (max-width: 600px) {
  .sd-slide-panel {
    padding: 20px;
  }

  .sd-newsletter {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-slide,
  .sd-offer-card {
    transition: none;
  }
}
