/* ============================================================
   GlowDailyHub — Component Styles (components.css)
   Premium, Pinterest-inspired reusable UI components.
   ============================================================ */


/* ─── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: rgba(250, 247, 245, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.navbar--scrolled {
  background: rgba(250, 247, 245, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-md);
}

.navbar--scrolled .navbar__container {
  height: 60px;
}

.navbar__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition-base);
}

/* Logo */
.navbar__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__logo-sparkle {
  font-size: 1.1em;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

/* Navigation Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--smoke);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-rose);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.navbar__nav a:hover {
  color: var(--charcoal);
}

.navbar__nav a:hover::after {
  transform: scaleX(1);
}

.navbar__nav a.active {
  color: var(--charcoal);
  font-weight: var(--fw-semibold);
}

.navbar__nav a.active::after {
  transform: scaleX(1);
}

/* Category-specific link hover colors */
.navbar__nav a[data-category="room-design"]:hover,
.navbar__nav a[data-category="room-design"].active {
  color: var(--cat-room);
}
.navbar__nav a[data-category="room-design"]::after {
  background: var(--cat-room);
}

.navbar__nav a[data-category="hairstyles"]:hover,
.navbar__nav a[data-category="hairstyles"].active {
  color: var(--cat-hair);
}
.navbar__nav a[data-category="hairstyles"]::after {
  background: var(--cat-hair);
}

.navbar__nav a[data-category="nail-designs"]:hover,
.navbar__nav a[data-category="nail-designs"].active {
  color: var(--cat-nail);
}
.navbar__nav a[data-category="nail-designs"]::after {
  background: var(--cat-nail);
}

/* Navbar Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--smoke);
  transition: all var(--transition-fast);
}

.navbar__search-btn:hover {
  background: var(--soft-blush);
  color: var(--charcoal);
}

.navbar__search-btn svg {
  width: 20px;
  height: 20px;
}

.navbar__pinterest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent-rose);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
}

.navbar__pinterest-btn:hover {
  background: var(--accent-rose-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-rose);
}

.navbar__pinterest-btn svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.navbar__hamburger:hover {
  background: var(--soft-blush);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navbar Responsive */
@media (max-width: 1024px) {
  .navbar__nav {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .navbar__nav,
  .navbar__pinterest-btn {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__container {
    height: 64px;
  }

  .navbar--scrolled .navbar__container {
    height: 56px;
  }
}


/* ─── CARD (Pinterest-style Image Card) ────────────────────── */
.card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card Image */
/* responsive_image() wraps the <img> in a <picture>. display:contents makes
   that wrapper transparent so every existing image style (width/height,
   object-fit, hover transforms) keeps applying exactly as before. */
picture {
  display: contents;
}

.card__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--soft-blush);
}

.card__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .card__image {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Card Overlay */
.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-sm);
  pointer-events: none;
}

.card:hover .card__overlay {
  opacity: 1;
  pointer-events: all;
}

/* Pin/Save Button */
.card__pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--accent-rose);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  cursor: pointer;
}

.card__pin-btn:hover {
  background: var(--accent-rose-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* Like Button */
.card__like-btn {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-size: var(--text-md);
  transition: all var(--transition-fast);
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.card__like-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.card__like-btn.liked {
  color: var(--accent-rose);
}

/* Card Body */
.card__body {
  padding: var(--space-md);
}

.card__badge {
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--smoke);
}

.card__meta-saves {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card__meta-saves svg {
  width: 14px;
  height: 14px;
}

/* Card — Category accent borders */
.card--room-design {
  border-bottom: 3px solid var(--cat-room);
}

.card--hairstyles {
  border-bottom: 3px solid var(--cat-hair);
}

.card--nail-designs {
  border-bottom: 3px solid var(--cat-nail);
}

/* Card — Skeleton Loading */
.card--skeleton {
  pointer-events: none;
}

.card--skeleton .card__image-wrap {
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.card--skeleton .card__title {
  height: 16px;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.card--skeleton .card__meta {
  height: 12px;
  width: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}


/* ─── BADGE ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.badge--room-design {
  background: rgba(212, 168, 83, 0.12);
  color: #B8923F;
}

.badge--hairstyles {
  background: rgba(233, 69, 96, 0.12);
  color: #C73650;
}

.badge--nail-designs {
  background: rgba(167, 139, 250, 0.12);
  color: #8B6FE0;
}

.badge--featured {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(232, 201, 122, 0.15));
  color: var(--warm-gold-dark);
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.badge--new {
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent-rose);
}


/* ─── BUTTON ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-rose);
  outline-offset: 2px;
}

/* Primary */
.btn--primary {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-dark));
  color: var(--white);
  box-shadow: var(--shadow-md), 0 2px 8px rgba(233, 69, 96, 0.2);
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-rose);
  background: linear-gradient(135deg, var(--accent-rose-light), var(--accent-rose));
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* Secondary */
.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--accent-rose);
  color: var(--accent-rose);
}

.btn--secondary:hover {
  background: var(--accent-rose);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary:active {
  transform: translateY(0);
}

/* Pinterest */
.btn--pinterest {
  background: #E60023;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(230, 0, 35, 0.25);
}

.btn--pinterest:hover {
  background: #C7001F;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(230, 0, 35, 0.35);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--smoke);
}

.btn--ghost:hover {
  background: var(--soft-blush);
  color: var(--charcoal);
}

/* Gold */
.btn--gold {
  background: linear-gradient(135deg, var(--warm-gold), var(--warm-gold-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
}

.btn--gold:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-glow-gold);
}

/* Size Variants */
.btn--sm {
  padding: 6px 16px;
  font-size: var(--text-xs);
  gap: 4px;
}

.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-md);
  gap: 10px;
}

/* Icon-only button */
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon.btn--sm {
  width: 32px;
  height: 32px;
}

.btn--icon.btn--lg {
  width: 48px;
  height: 48px;
}


/* ─── PILLS (Subcategory Filter) ───────────────────────────── */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid #E5E7EB;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  color: var(--smoke);
}

.pill:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  background: rgba(233, 69, 96, 0.04);
}

.pill.active {
  background: var(--accent-rose);
  color: var(--white);
  border-color: var(--accent-rose);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

/* Category-specific active pill states */
.pill.active[data-category="room-design"] {
  background: var(--cat-room);
  border-color: var(--cat-room);
  box-shadow: 0 2px 8px rgba(212, 168, 83, 0.25);
}

.pill.active[data-category="hairstyles"] {
  background: var(--cat-hair);
  border-color: var(--cat-hair);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
}

.pill.active[data-category="nail-designs"] {
  background: var(--cat-nail);
  border-color: var(--cat-nail);
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.25);
}


/* ─── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-header__title-icon {
  font-size: 1.2em;
}

.section-header__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--accent-rose);
  transition: all var(--transition-fast);
}

.section-header__link:hover {
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-header__link-arrow {
  transition: transform var(--transition-fast);
}

.section-header__link:hover .section-header__link-arrow {
  transform: translateX(3px);
}


/* ─── CAROUSEL (Trending Items) ────────────────────────────── */
.carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-sm) 0 var(--space-md);
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .carousel__item {
    flex: 0 0 240px;
  }
}

/* Carousel Navigation */
.carousel-wrapper {
  position: relative;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel__nav:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.carousel__nav--prev {
  left: -16px;
}

.carousel__nav--next {
  right: -16px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-md) 0;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #E5E7EB;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel__dot.active {
  background: var(--accent-rose);
  width: 24px;
}


/* ─── COLLECTION CARD ──────────────────────────────────────── */
.collection-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.collection-card__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.collection-card__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collection-card:hover .collection-card__mosaic img {
  transform: scale(1.03);
}

.collection-card__body {
  padding: var(--space-md);
}

.collection-card__title {
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.collection-card__meta {
  font-size: var(--text-sm);
  color: var(--smoke);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ─── NEWSLETTER ───────────────────────────────────────────── */
.newsletter {
  background: linear-gradient(135deg, var(--soft-blush), var(--cream));
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  display: block;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.newsletter__subtitle {
  font-size: var(--text-base);
  color: var(--smoke);
  margin-bottom: var(--space-lg);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid #E5E7EB;
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  font-size: var(--text-base);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--smoke-light);
}

.newsletter__input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.newsletter__submit {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-dark));
  color: var(--white);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter__submit:hover {
  background: linear-gradient(135deg, var(--accent-rose-light), var(--accent-rose));
  box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.newsletter__note {
  font-size: var(--text-xs);
  color: var(--smoke);
  margin-top: var(--space-md);
}

.newsletter__message {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-top: var(--space-sm);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}

.newsletter__message--success {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.newsletter__message--error {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
}

[data-theme="dark"] .newsletter__message--success {
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
}

[data-theme="dark"] .newsletter__message--error {
  color: #F87171;
  background: rgba(248, 113, 113, 0.1);
}

.newsletter__submit-loading {
  display: inline-flex;
  align-items: center;
  animation: spin 1s linear infinite;
}

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

.newsletter__form--success .newsletter__input {
  border-color: #059669;
}

@media (max-width: 640px) {
  .newsletter {
    padding: var(--space-xl) var(--space-md);
  }

  .newsletter__form {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .newsletter__input {
    border-radius: var(--radius-full);
    border-right: 1.5px solid #E5E7EB;
  }

  .newsletter__input:focus {
    border-color: var(--accent-rose);
  }

  .newsletter__submit {
    border-radius: var(--radius-full);
  }
}


/* ─── PINTEREST CTA ────────────────────────────────────────── */
.pinterest-cta {
  background: linear-gradient(135deg, var(--midnight), var(--deep-navy));
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.pinterest-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.pinterest-cta__float {
  position: absolute;
  width: 80px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0.15;
  animation: float 4s ease-in-out infinite;
}

.pinterest-cta__float:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.pinterest-cta__float:nth-child(2) {
  top: 20%;
  right: 8%;
  animation-delay: 1s;
}

.pinterest-cta__float:nth-child(3) {
  bottom: 15%;
  left: 12%;
  animation-delay: 2s;
}

.pinterest-cta__float:nth-child(4) {
  bottom: 10%;
  right: 5%;
  animation-delay: 0.5s;
}

.pinterest-cta__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pinterest-cta__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.pinterest-cta__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  display: block;
}

.pinterest-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.pinterest-cta__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pinterest-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: #E60023;
  color: var(--white);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(230, 0, 35, 0.35);
}

.pinterest-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(230, 0, 35, 0.5);
}

.pinterest-cta__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.pinterest-cta__stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .pinterest-cta {
    padding: var(--space-2xl) var(--space-md);
  }

  .pinterest-cta__title {
    font-size: var(--text-2xl);
  }

  .pinterest-cta__float {
    display: none;
  }
}


/* ─── AD SLOT ──────────────────────────────────────────────── */
.ad-slot {
  background: var(--cloud);
  border: 1px dashed #E5E7EB;
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot::before {
  content: 'Advertisement';
  display: block;
  font-size: var(--text-xs);
  color: var(--smoke-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.ad-slot--leaderboard {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-slot--rectangle {
  min-height: 250px;
}

.ad-slot--in-feed {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
}


/* ─── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: var(--space-xl) 0;
}

.pagination__link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--smoke);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pagination__link:hover {
  background: var(--soft-blush);
  color: var(--charcoal);
}

.pagination__link.active {
  background: var(--accent-rose);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
}

.pagination__link--prev,
.pagination__link--next {
  font-weight: var(--fw-semibold);
  gap: 4px;
  width: auto;
  padding: 0 var(--space-md);
}

.pagination__link--prev:hover,
.pagination__link--next:hover {
  background: var(--soft-blush);
  color: var(--accent-rose);
}

.pagination__ellipsis {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--smoke-light);
  font-size: var(--text-sm);
}


/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, #FFF6F8 0%, #FFFFFF 55%);
  color: var(--smoke);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.18), rgba(167, 139, 250, 0.18), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
}

/* Brand */
.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.footer__logo-icon {
  display: inline-flex;
  color: var(--accent-rose);
}

.footer__logo-text {
  line-height: 1;
}

.footer__tagline {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--smoke);
}

/* Headings with rose underline */
.footer__heading {
  position: relative;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-lg);
  padding-bottom: 10px;
}

.footer__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--accent-rose);
}

/* Link lists */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  color: var(--smoke);
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--accent-rose);
}

/* Explore — icon badge links */
.footer__link--icon {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--fw-medium);
  color: var(--charcoal);
}

.footer__link-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent-rose);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer__link--icon:hover .footer__link-badge {
  background: var(--accent-rose);
  color: var(--white);
  transform: translateY(-1px);
}

/* Company — chevron rows */
.footer__link--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: 220px;
}

.footer__chevron {
  color: var(--smoke-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer__link--row:hover .footer__chevron {
  color: var(--accent-rose);
  transform: translateX(3px);
}

/* Follow Us */
.footer__social-intro {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--smoke);
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--smoke);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.footer__social-link svg {
  width: 19px;
  height: 19px;
}

.footer__social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Brand colors per network */
.footer__social-link--pinterest { color: #E60023; }
.footer__social-link--pinterest:hover { border-color: rgba(230, 0, 35, 0.4); }
.footer__social-link--instagram { color: #C13584; }
.footer__social-link--instagram:hover { border-color: rgba(193, 53, 132, 0.4); }
.footer__social-link--facebook { color: #1877F2; }
.footer__social-link--facebook:hover { border-color: rgba(24, 119, 242, 0.4); }
.footer__social-link--tiktok { color: #010101; }
.footer__social-link--tiktok:hover { border-color: rgba(0, 0, 0, 0.35); }
.footer__social-link--youtube { color: #FF0000; }
.footer__social-link--youtube:hover { border-color: rgba(255, 0, 0, 0.4); }
.footer__social-link--mail { color: var(--smoke); }
.footer__social-link--mail:hover { color: var(--accent-rose); border-color: rgba(233, 69, 96, 0.4); }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--smoke);
}

.footer__bottom p {
  margin: 0;
}

.footer__heart {
  color: var(--accent-rose);
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl) var(--space-xl);
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}


/* ─── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay-darker);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  padding: var(--space-lg);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: scaleIn 0.3s ease;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
}

.lightbox__close:hover {
  transform: rotate(90deg);
  background: var(--accent-rose);
  color: var(--white);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.lightbox__prev {
  left: -24px;
}

.lightbox__next {
  right: -24px;
}

.lightbox__info {
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.lightbox__caption {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.lightbox__actions {
  display: flex;
  gap: var(--space-sm);
}

.lightbox__action-btn {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lightbox__action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__counter {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  color: var(--white);
  font-size: var(--text-sm);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .lightbox__prev,
  .lightbox__next {
    width: 36px;
    height: 36px;
  }

  .lightbox__prev { left: var(--space-sm); }
  .lightbox__next { right: var(--space-sm); }

  .lightbox__close {
    top: var(--space-sm);
    right: var(--space-sm);
  }
}


/* ─── SEARCH OVERLAY ───────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 247, 245, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay__container {
  max-width: 640px;
  margin: 20vh auto 0;
  padding: 0 var(--space-lg);
}

.search-overlay__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  color: var(--smoke);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-overlay__close:hover {
  background: var(--soft-blush);
  color: var(--charcoal);
}

.search-overlay__input-wrap {
  position: relative;
}

.search-overlay__icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--smoke-light);
  font-size: var(--text-2xl);
}

.search-overlay__input {
  width: 100%;
  padding: 16px 24px 16px 40px;
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  border: none;
  border-bottom: 2px solid var(--accent-rose);
  background: transparent;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-overlay__input::placeholder {
  color: var(--smoke-light);
}

.search-overlay__input:focus {
  border-bottom-color: var(--accent-rose-dark);
}

.search-overlay__suggestions {
  margin-top: var(--space-xl);
}

.search-overlay__suggestions-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--smoke);
  margin-bottom: var(--space-md);
}

.search-overlay__suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--text-base);
  color: var(--charcoal);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-overlay__suggestion-item:hover {
  color: var(--accent-rose);
}

.search-overlay__suggestion-icon {
  color: var(--smoke-light);
  font-size: var(--text-md);
}


/* ─── MOBILE MENU ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cloud);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu__close:hover {
  background: var(--soft-blush);
}

.mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-fast);
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu__link-icon {
  font-size: var(--text-2xl);
}

.mobile-menu__link:hover {
  color: var(--accent-rose);
}

.mobile-menu__link[data-category="room-design"]:hover { color: var(--cat-room); }
.mobile-menu__link[data-category="hairstyles"]:hover  { color: var(--cat-hair); }
.mobile-menu__link[data-category="nail-designs"]:hover { color: var(--cat-nail); }

.mobile-menu__social {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--soft-blush);
  color: var(--smoke);
  transition: all var(--transition-fast);
}

.mobile-menu__social-link:hover {
  background: var(--accent-rose);
  color: var(--white);
}


/* ─── HERO SLIDER ──────────────────────────────────────────── */
.hero-slider {
  background: #FFFFFF;
  width: 100%;
  overflow: hidden;
}

.hero-slider__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 40px;
}

.hero-slider__track {
  position: relative;
  height: 520px;
}

/* ── Slide ─────────────────────────────────────────────────── */
.hero-slider__slide {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 48px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 800ms ease-in-out, transform 800ms ease-in-out;
  will-change: opacity, transform;
  pointer-events: none;
}

.hero-slider__slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.hero-slider__slide--exit {
  opacity: 0;
  transform: translateX(-20px);
  z-index: 1;
  pointer-events: none;
}

/* ── Staggered text animation ──────────────────────────────── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slider__slide--active .hero-slider__badge,
.hero-slider__slide--active .hero-slider__title,
.hero-slider__slide--active .hero-slider__desc,
.hero-slider__slide--active .hero-slider__btn,
.hero-slider__slide--active .hero-slider__controls {
  animation: heroFadeUp 600ms ease-out both;
}

.hero-slider__slide--active .hero-slider__badge    { animation-delay: 0ms; }
.hero-slider__slide--active .hero-slider__title    { animation-delay: 150ms; }
.hero-slider__slide--active .hero-slider__desc     { animation-delay: 300ms; }
.hero-slider__slide--active .hero-slider__btn      { animation-delay: 450ms; }
.hero-slider__slide--active .hero-slider__controls { animation-delay: 500ms; }

/* Reset animation for inactive slides */
.hero-slider__slide:not(.hero-slider__slide--active) .hero-slider__badge,
.hero-slider__slide:not(.hero-slider__slide--active) .hero-slider__title,
.hero-slider__slide:not(.hero-slider__slide--active) .hero-slider__desc,
.hero-slider__slide:not(.hero-slider__slide--active) .hero-slider__btn,
.hero-slider__slide:not(.hero-slider__slide--active) .hero-slider__controls {
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

/* ── Left Content ──────────────────────────────────────────── */
.hero-slider__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* ── Category Badge ────────────────────────────────────────── */
.hero-slider__badge {
  display: inline-block;
  background: #FCE7EF;
  color: #FF4F7B;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

/* ── Title ─────────────────────────────────────────────────── */
.hero-slider__title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  color: #111111;
  max-width: 600px;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

/* ── Description ───────────────────────────────────────────── */
.hero-slider__desc {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: #444444;
  max-width: 560px;
  margin: 0 0 28px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA Button ────────────────────────────────────────────── */
.hero-slider__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FF4F7B;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  margin-bottom: 32px;
}

.hero-slider__btn:hover {
  background: #E63E6D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 79, 123, 0.3);
  text-decoration: none;
}

.hero-slider__btn-arrow {
  font-size: 18px;
  transition: transform 250ms ease;
}

.hero-slider__btn:hover .hero-slider__btn-arrow {
  transform: translateX(4px);
}

/* ── Slider Controls ───────────────────────────────────────── */
.hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Arrows ────────────────────────────────────────────────── */
.hero-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 50%;
  color: #111111;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  padding: 0;
  flex-shrink: 0;
}

.hero-slider__arrow:hover {
  background: #FF4F7B;
  color: #FFFFFF;
  border-color: #FF4F7B;
  transform: scale(1.05);
}

.hero-slider__arrow svg {
  pointer-events: none;
}

/* ── Dots ──────────────────────────────────────────────────── */
.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D6D6D6;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.hero-slider__dot--active {
  background: #FF4F7B;
  transform: scale(1.2);
}

.hero-slider__dot:hover {
  background: #FF4F7B;
}

/* ── Right Image ───────────────────────────────────────────── */
.hero-slider__image-wrap {
  width: 100%;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  /* Soft tinted backdrop so the transparent cutout PNG blends in. */
  background: linear-gradient(120deg, #F3EBE2 0%, #FAF5EE 55%, #F2E8DC 100%);
}

/* Per-category backdrop, matched to each cutout PNG's tones */
.hero-slider__image-wrap--hairstyles {
  background: linear-gradient(120deg, #EFE6D9 0%, #FAF4EC 55%, #F1E7D8 100%);
}
.hero-slider__image-wrap--nail-designs {
  background: linear-gradient(120deg, #FFE0EA 0%, #FFF1F5 55%, #FDE6EE 100%);
}
.hero-slider__image-wrap--room-design {
  background: linear-gradient(120deg, #ECE6D9 0%, #FAF6EE 58%, #EAF0E2 100%);
}

.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* ── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-slider__container {
    padding: 40px 28px;
  }

  .hero-slider__slide {
    grid-template-columns: 50% 50%;
    gap: 32px;
  }

  .hero-slider__track {
    height: 440px;
  }

  .hero-slider__title {
    font-size: 48px;
  }

  .hero-slider__desc {
    font-size: 18px;
  }

  .hero-slider__image-wrap {
    height: 440px;
  }
}

/* ── Responsive: Mobile — image becomes the slide background ──── */
@media (max-width: 768px) {
  .hero-slider__container { padding: 18px 16px; }
  .hero-slider__track { height: auto; }

  .hero-slider__slide {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-template-columns: none;
    gap: 0;
    position: relative;
    min-height: 500px;
    border-radius: 18px;
    overflow: hidden;
  }
  .hero-slider__slide:not(.hero-slider__slide--active) { position: absolute; inset: 0; }

  /* slide image fills the whole card as a background */
  .hero-slider__image-wrap {
    position: absolute;
    inset: 0;
    order: 0;
    height: 100%;
    border-radius: 0;
    z-index: 0;
  }
  .hero-slider__image { width: 100%; height: 100%; object-fit: cover; }
  .hero-slider__image-wrap::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.42) 52%, rgba(0,0,0,.80) 100%);
  }

  /* text sits on top of the image */
  .hero-slider__content {
    order: 1;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 22px 26px;
    color: #fff;
  }
  .hero-slider__title { font-size: 30px; color: #fff; }
  .hero-slider__desc {
    font-size: 15px;
    color: rgba(255,255,255,.92);
    margin-bottom: 18px;
    -webkit-line-clamp: 3;
  }
  .hero-slider__badge {
    margin-bottom: 12px;
    background: rgba(255,255,255,.22);
    color: #fff;
  }
  .hero-slider__btn { height: 46px; padding: 0 22px; font-size: 15px; margin-bottom: 18px; }
  .hero-slider__arrow {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
  }
  .hero-slider__arrow:hover { background: rgba(255,255,255,.32); }
  .hero-slider__dot { background: rgba(255,255,255,.45); }
  .hero-slider__dot--active { background: #fff; }
}

@media (max-width: 480px) {
  .hero-slider__container {
    padding: 24px 16px;
  }

  .hero-slider__title {
    font-size: 28px;
  }

  .hero-slider__desc {
    font-size: 15px;
  }

  .hero-slider__image-wrap {
    height: 100%;
  }

  .hero-slider__slide { min-height: 440px; }

  .hero-slider__btn {
    height: 42px;
    font-size: 14px;
  }
}


/* ─── MASONRY ──────────────────────────────────────────────── */
.masonry {
  position: relative;
  width: 100%;
}

.masonry__item {
  position: absolute;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.masonry__sizer {
  visibility: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

/* CSS-only fallback masonry (when JS is unavailable) */
.masonry--css {
  position: relative;
  columns: 4;
  column-gap: var(--space-lg);
}

.masonry--css .masonry__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
  .masonry--css {
    columns: 3;
  }
}

@media (max-width: 640px) {
  .masonry--css {
    columns: 2;
    column-gap: var(--space-md);
  }

  .masonry--css .masonry__item {
    margin-bottom: var(--space-md);
  }
}


/* ─── GALLERY ──────────────────────────────────────────────── */
.gallery__intro {
  font-size: var(--text-lg);
  color: var(--smoke);
  max-width: 700px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery__item--full {
  grid-column: 1 / -1;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-md);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-overlay .card__pin-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.gallery__caption {
  font-size: var(--text-base);
  color: var(--smoke);
  margin-top: var(--space-xs);
}

.gallery__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--smoke);
  margin-top: var(--space-xs);
}


/* ─── BREADCRUMBS ──────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--smoke);
  padding: var(--space-md) 0;
  flex-wrap: wrap;
}

/* keep the whole trail on one line (wraps only if needed) */
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--accent-rose);
  transition: all var(--transition-fast);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs__separator {
  color: var(--smoke-light);
  font-size: var(--text-xs);
}

.breadcrumbs__current {
  color: var(--charcoal);
  font-weight: var(--fw-medium);
}


/* ─── AUTHOR CARD ──────────────────────────────────────────── */
.author-card {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-base);
}

.author-card:hover {
  box-shadow: var(--shadow-md);
}

.author-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--soft-blush);
}

.author-card__info {
  flex: 1;
  min-width: 0;
}

.author-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  color: var(--charcoal);
  margin-bottom: 2px;
}

.author-card__bio {
  font-size: var(--text-sm);
  color: var(--smoke);
  line-height: 1.5;
  margin-bottom: 2px;
}

.author-card__expertise {
  font-size: var(--text-xs);
  color: var(--accent-rose);
  font-weight: var(--fw-medium);
}


/* ─── LOADING STATES ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton--text-sm {
  height: 10px;
  width: 60%;
}

.skeleton--circle {
  border-radius: 50%;
}

.skeleton--image {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f0f0f0;
  border-top-color: var(--accent-rose);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner--lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.loading-more {
  text-align: center;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.loading-more__text {
  font-size: var(--text-sm);
  color: var(--smoke);
}


/* ─── TOAST / NOTIFICATION ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
  opacity: 0;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: #059669;
}

.toast--error {
  background: var(--accent-rose);
}


/* ─── BACK TO TOP ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--charcoal);
  cursor: pointer;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-rose);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-rose);
}

/* ─── BACK TO TOP BUTTON ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #E94560, #C73650);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(233, 69, 96, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, box-shadow .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(233, 69, 96, .55);
}
@media (max-width: 560px) {
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}
