/* Anees Theme - Stylesheet */
/* Design: Minimal, Calm, Soft UI — Sage Green & Warm Neutrals */

/* ===== Base Styles ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

[data-qumra-loading="true"] {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}

.active {
  color: var(--color-primary);
}

.removing {
  transform: translateX(-100%);
  opacity: 0;
  transition: all 0.4s ease-out;
}

/* ===== Line Clamp ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Button Styles ===== */
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.625rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.4s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 2px 12px rgba(124, 154, 142, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 0.625rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.4s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* ===== Scrollbar ===== */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== Swiper Custom Styles ===== */
.swiper-pagination-bullet {
  background: var(--color-primary) !important;
  opacity: 0.35;
  transition: all 0.4s ease-out;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  transform: scale(1.15);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
  background: rgba(255, 255, 255, 0.92);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: bold;
}

.swiper-outside-pagination .swiper-wrapper {
  align-items: stretch;
}
.swiper-outside-pagination .swiper-slide {
  height: auto;
}

.swiper-outside-pagination {
  overflow-x: clip;
  overflow-y: visible;
}

.swiper-outside-pagination > .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 1.5rem;
}

/* ===== Toast Notifications ===== */
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: toastIn 0.4s ease-out;
}

.toast-success { background-color: var(--color-toast-success); }
.toast-error { background-color: var(--color-toast-error); }
.toast-warning { background-color: var(--color-toast-warning); }
.toast-info { background-color: var(--color-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  opacity: var(--overlay-opacity);
  z-index: 40;
  backdrop-filter: blur(3px);
}

/* ===== Drawer ===== */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--color-drawer-bg);
  z-index: 50;
  overflow-y: auto;
  transition: transform 0.4s ease-out;
}

html[dir="rtl"] .drawer-start {
  right: 0;
  transform: translateX(100%);
}

html[dir="ltr"] .drawer-start {
  left: 0;
  transform: translateX(-100%);
}

html[dir="rtl"] .drawer-end {
  left: 0;
  transform: translateX(-100%);
}

html[dir="ltr"] .drawer-end {
  right: 0;
  transform: translateX(100%);
}

.drawer.open {
  transform: translateX(0) !important;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }

/* ===== Hero Text Reveal Animations ===== */

/* Decorative accent line — draws + shimmer glow */
.hero-accent-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary, #D4B896));
  border-radius: 1px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
  opacity: 0;
  position: relative;
}

.hero-accent-line.is-visible {
  width: 60px;
  opacity: 1;
}

.hero-accent-line.is-visible::after {
  content: "";
  position: absolute;
  inset: -3px 0;
  background: inherit;
  filter: blur(6px);
  opacity: 0.6;
  animation: accentPulse 2.5s ease-in-out 1s infinite;
}

@keyframes accentPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Word-by-word — 3D rotateX flip + blur clear */
.hero-word-mask {
  vertical-align: bottom;
  perspective: 800px;
}

.hero-word {
  transform: translateY(105%) rotateX(-80deg);
  filter: blur(4px);
  opacity: 0;
  transform-origin: center bottom;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease-out;
}

.hero-word.is-visible {
  transform: translateY(0) rotateX(0deg);
  filter: blur(0);
  opacity: 1;
}

/* Title shimmer sweep after words revealed */
.hero-title-words.shimmer-active {
  background: linear-gradient(
    120deg,
    currentColor 0%,
    currentColor 40%,
    rgba(255,255,255,0.9) 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 3s ease-in-out 0.5s 1 forwards;
}

@keyframes titleShimmer {
  0% { background-position: 150% center; }
  100% { background-position: -50% center; }
}

/* After shimmer finishes, restore solid color */
.hero-title-words.shimmer-done {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* Subtitle — character-by-character fade from below */
.hero-subtitle {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-subtitle.is-visible {
  opacity: 1;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  filter: blur(3px);
  transition:
    opacity 0.4s ease-out,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease-out;
}

.hero-char.is-visible {
  opacity: 0.9;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Space between words in subtitle */
.hero-char-space {
  display: inline-block;
  width: 0.3em;
}

/* Button — soft rise + scale-in */
.hero-btn-wrap {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn-wrap.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scroll indicator */
.hero-scroll-indicator {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-scroll-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-char,
  .hero-subtitle,
  .hero-btn-wrap,
  .hero-accent-line {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero-title-words.shimmer-active {
    animation: none !important;
    background: none;
    -webkit-text-fill-color: unset;
  }
}

/* ===== Hero CTA — Animated Border Button ===== */
.hero-cta {
  --cta-line: #ffffff;
  --cta-splash: var(--color-cta-splash);
  position: relative;
  z-index: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 52px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--cta-text, rgba(255, 255, 255, 0.9));
  letter-spacing: 3px;
  background: transparent;
  border-radius: 300px;
  transition: background 0.3s ease, letter-spacing 0.3s ease, color 0.3s ease;
}
.hero-cta__text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Top & bottom border lines */
.hero-cta::before,
.hero-cta::after,
.hero-cta__text::before,
.hero-cta__text::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: var(--cta-line);
  transition: all 0.5s ease;
}

.hero-cta::before {
  top: 0;
  left: 50px;
  width: calc(100% - 50px * 2 - 14px);
}
.hero-cta::after {
  top: 0;
  right: 50px;
  width: 7px;
}
.hero-cta__text::before {
  bottom: 0;
  right: 50px;
  width: calc(100% - 50px * 2 - 14px);
}
.hero-cta__text::after {
  bottom: 0;
  left: 50px;
  width: 7px;
}

/* Side rounded caps */
.hero-cta__line {
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  overflow: hidden;
}
.hero-cta__line::before {
  content: "";
  position: absolute;
  top: 0;
  width: 150%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 300px;
  border: solid 3px var(--cta-line);
}
.hero-cta__line:nth-child(1),
.hero-cta__line:nth-child(1)::before {
  left: 0;
}
.hero-cta__line:nth-child(2),
.hero-cta__line:nth-child(2)::before {
  right: 0;
}

/* Hover — lines swap width + background fill */
.hero-cta:hover {
  letter-spacing: 6px;
  background: var(--cta-hover-bg, #ffffff);
  color: var(--cta-hover-text, transparent);
}
.hero-cta:hover::before,
.hero-cta:hover .hero-cta__text::before {
  width: 7px;
}
.hero-cta:hover::after,
.hero-cta:hover .hero-cta__text::after {
  width: calc(100% - 50px * 2 - 14px);
}


/* Responsive — slightly smaller on mobile */
@media (max-width: 640px) {
  .hero-cta {
    width: 190px;
    height: 48px;
    font-size: 12px;
    letter-spacing: 2px;
  }
  .hero-cta:hover {
    letter-spacing: 4px;
  }
}

/* Scroll indicator — late gentle fade */
.hero-scroll-indicator {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.hero-scroll-indicator.is-visible {
  opacity: 0.6;
  transform: translateY(0);
}

/* Safety fallback — if Alpine doesn't run, show everything after 3s */
@keyframes heroFallbackReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.hero-accent-line   { animation: heroFallbackReveal 0.01ms 3s forwards; }
.hero-word          { animation: heroFallbackReveal 0.01ms 3s forwards; }
.hero-subtitle      { animation: heroFallbackReveal 0.01ms 3s forwards; }
.hero-btn-wrap      { animation: heroFallbackReveal 0.01ms 3s forwards; }

/* When Alpine IS working, disable the fallback */
.hero-accent-line.is-visible,
.hero-word.is-visible,
.hero-subtitle.is-visible,
.hero-btn-wrap.is-visible {
  animation: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-subtitle,
  .hero-btn-wrap,
  .hero-accent-line,
  .hero-scroll-indicator {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .hero-word {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
  .hero-subtitle {
    opacity: 0.9;
    filter: blur(0);
    transform: translateY(0);
  }
  .hero-btn-wrap {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .hero-accent-line {
    width: 60px;
    opacity: 1;
  }
}

/* ===== Product Card ===== */
.pcard {
  --sb-w: 48px;
  --sb-color: var(--card-sb-color, var(--color-text, #31353d));
  --sb-accent: var(--card-sb-accent, var(--color-primary, #7C9A8E));
  position: relative;
  background: var(--color-card-bg);
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
}

/* ---- Figure / Image ---- */
.pcard__figure {
  position: relative;
  margin: 0;
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.pcard__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.pcard:hover .pcard__image {
  transform: scale(1.03);
}

.pcard__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--color-surface);
}

.pcard__badges {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcard__badge {
  background: var(--color-card-badge);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(229, 62, 62, 0.25);
}

.pcard__badge--oos {
  background: var(--color-text-secondary, #636E72);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---- Description row ---- */
.pcard__desc {
  position: relative;
  z-index: 2;
  background: var(--color-card-bg);
  display: flex;
  align-items: stretch;
}

.pcard__info {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}

.pcard__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sb-color);
  margin: 0 0 4px;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__title a {
  color: inherit;
  text-decoration: none;
}

.pcard__title a:hover {
  color: var(--sb-accent);
}

.pcard__old-price {
  font-size: 0.75rem;
  color: var(--color-card-old-price);
  text-decoration: line-through;
  margin: 0;
  white-space: nowrap;
}
.pcard__old-price--hidden {
  visibility: hidden;
}

/* ---- Large price ---- */
.pcard__price {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 10px;
  color: var(--sb-accent);
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---- Sidebar ---- */
.pcard__sidebar {
  position: absolute;
  top: 0;
  inset-inline-end: calc(var(--sb-w) * -1);
  width: var(--sb-w);
  height: 100%;
  background: var(--sb-color);
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-start-start-radius: 4px;
  border-end-start-radius: 4px;
  transition: inset-inline-end 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pcard:hover .pcard__sidebar {
  inset-inline-end: 0;
}

/* ---- Sidebar buttons ---- */
.pcard__sb-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sb-w);
  height: var(--sb-w);
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease;
}

.pcard__sb-btn:hover {
  background: var(--sb-accent);
}

.pcard__sb-btn span {
  position: absolute;
  inset-inline-end: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sb-color);
  color: #fff;
  height: var(--sb-w);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1;
  border-start-start-radius: 4px;
  border-end-start-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pcard__sb-btn:hover span {
  opacity: 1;
  pointer-events: auto;
}

.pcard__sb-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Disabled button (OOS / stock limit) */
.pcard__sb-btn--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pcard__sb-btn--disabled:hover {
  background: transparent;
}

/* ---- Color dots in sidebar ---- */
.pcard__sb-colors {
  position: absolute;
  inset-inline-end: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sb-color);
  padding: 8px 12px;
  border-start-start-radius: 8px;
  border-end-start-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pcard__sb-colors.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pcard__sb-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pcard__sb-dot:hover {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.pcard__sb-dot--active {
  transform: scale(1.2);
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--sb-color), 0 0 0 4px #fff;
}

/* ---- Product Card Grid ---- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 769px) {
  .pcard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1025px) {
  .pcard-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ---- Mobile & Tablet: action bar on image ---- */
@media (max-width: 768px) {
  .pcard {
    max-width: none;
  }

  .pcard__sidebar {
    position: absolute;
    top: auto;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    z-index: 5;
    background: color-mix(in srgb, var(--sb-color) 70%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    transition: none;
  }

  .pcard:hover .pcard__sidebar {
    inset-inline-end: 0;
  }

  .pcard__sb-btn {
    flex: 1;
    width: auto;
    height: 38px;
    justify-content: center;
    border-bottom: none;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease;
  }

  .pcard__sb-btn:last-child {
    border-inline-end: none;
  }

  .pcard__sb-btn:hover {
    width: auto;
  }

  .pcard__sb-btn:active {
    background: var(--sb-accent);
  }

  .pcard__sb-btn span {
    display: none;
  }

  .pcard__sb-icon {
    width: 16px;
    height: 16px;
  }

  .pcard__sb-btn--disabled:active {
    background: transparent;
  }

  .pcard__sb-btn--colors {
    flex: 0 1 auto;
    padding: 0 8px;
  }

  .pcard__sb-btn--colors:hover {
    min-width: auto;
    padding-inline-end: 8px;
  }

  .pcard__sb-colors {
    position: absolute;
    bottom: 100%;
    inset-inline-end: 0;
    top: auto;
    transform: none;
    display: flex;
    opacity: 0;
    pointer-events: none;
    gap: 5px;
    padding: 8px 10px;
    background: var(--sb-color);
    border-radius: 8px 8px 0 0;
    border-start-start-radius: 8px;
    border-start-end-radius: 8px;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    transition: opacity 0.2s ease;
  }

  .pcard__sb-colors.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .pcard__sb-dot {
    width: 14px;
    height: 14px;
  }

  .pcard__price {
    font-size: 1rem;
    min-width: 56px;
    padding: 0 6px;
  }

  .pcard__title {
    font-size: 0.82rem;
  }

  .pcard__info {
    padding: 10px 10px;
  }

  .pcard__old-price {
    font-size: 0.68rem;
  }

  .pcard__badges {
    top: 6px;
    inset-inline-start: 6px;
  }

  .pcard__badge {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  /* Shop page: single column on mobile */
  .shop-products-grid.grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ===== Loading & Success Animations ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-check {
  animation: checkPop 0.4s ease;
}

/* ===== Cart Item Enter ===== */
@keyframes cartItemEnter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item-enter {
  animation: cartItemEnter 0.3s ease-out;
}

/* ===== Rating Stars ===== */
.stars {
  display: inline-flex;
  gap: 2px;
}

.stars .star-filled { color: var(--color-star); }
.stars .star-empty { color: var(--color-border); }

/* ===== Price Range Slider ===== */
.price-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.price-slider .slider-track {
  position: absolute;
  width: 100%;
  height: 5px;
  background: var(--color-border);
  border-radius: 9999px;
}

.price-slider .slider-range {
  position: absolute;
  height: 5px;
  background: var(--color-primary);
  border-radius: 9999px;
}

.price-slider input[type="range"] {
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
  height: 5px;
  outline: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.price-slider input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.price-slider input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

/* ===== Brand Marquee ===== */
.brand-marquee {
  --marquee-gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.brand-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, var(--marquee-bg, var(--color-background)), transparent);
}
.brand-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, var(--marquee-bg, var(--color-background)), transparent);
}

/* Track — holds two copies side by side */
.brand-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-speed, 30s) linear infinite;
}

.brand-marquee__track--reverse {
  animation-direction: reverse;
}

/* Pause on hover */
.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

/* Inner — one set of items */
.brand-marquee__inner {
  display: flex;
  flex-shrink: 0;
  gap: var(--marquee-gap);
  padding-inline-end: var(--marquee-gap);
}

/* Individual brand card */
.brand-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 72px;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.brand-marquee__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 154, 142, 0.12);
  border-color: var(--color-primary, #7C9A8E);
}

/* Brand fallback (no image) */
.brand-marquee__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Keyframe — scrolls one full copy width for seamless loop */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .brand-marquee__inner:nth-child(2) {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand-marquee__item {
    min-width: 110px;
    height: 60px;
    padding: 0 1rem;
    border-radius: 12px;
  }
  .brand-marquee::before,
  .brand-marquee::after {
    width: 40px;
  }
}


/* ===== Article Blog Card ===== */
.acard {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.acard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}
.acard:hover .acard__bg {
  transform: scale(1.05);
}

.acard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(55, 65, 60, 0.4);
  transition: background 0.4s ease;
}
.acard:hover .acard__overlay {
  background: rgba(55, 65, 60, 0.75);
}

.acard__gradient {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 60%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.acard__header {
  position: relative;
  z-index: 3;
  padding: 2.5rem 1.5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
}

.acard__title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acard__line {
  width: 40px;
  height: 3px;
  border: 0;
  margin: 1rem auto;
  background: var(--color-primary, #7C9A8E);
  border-radius: 2px;
}

.acard__intro {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acard__excerpt {
  position: absolute;
  bottom: 70px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 3;
  padding: 0 2rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.acard:hover .acard__excerpt {
  opacity: 1;
  transform: translateY(0);
}

.acard__bottom {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 3;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
}

.acard__meta-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.acard__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.acard__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.acard:hover .acard__btn {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
  transform: translateX(2px);
}

[dir="rtl"] .acard:hover .acard__btn {
  transform: translateX(-2px);
}

/* No image fallback */
.acard--no-image {
  background: linear-gradient(135deg, var(--color-primary, #7C9A8E) 0%, var(--color-text) 100%);
}
.acard__bg--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary, #7C9A8E) 0%, var(--color-text) 100%);
}

@media (max-width: 640px) {
  .acard {
    height: 360px;
  }
  .acard__header {
    padding-top: 2rem;
  }
  .acard__excerpt {
    padding: 0 1.5rem;
    bottom: 60px;
  }
}


/* ===== Testimonials Rotating Card ===== */
.tcard {
  --tcard-width: 260px;
  --tcard-radius: 105px;
  --tcard-avatar: 48px;
  --tcard-circle-peek: 26px;
  --tcard-disc-inset: -169%;
  --tcard-rotate-dur: 600ms;
  --tcard-reveal-dur: 300ms;
  --tcard-reveal-delay: 120ms;

  position: relative;
  width: var(--tcard-width);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(124,154,142,0.08) 0%, var(--color-surface, #F5F3EF) 35%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  outline: 1px solid rgba(124,154,142,0.15);
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .tcard {
    --tcard-width: 320px;
    --tcard-radius: 130px;
    --tcard-avatar: 56px;
    --tcard-circle-peek: 32px;
    --tcard-disc-inset: -182%;
  }
}

/* Background image + overlay */
.tcard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Has-background modifier — light text */
.tcard--has-bg .tcard__circle { z-index: 2; }
.tcard--has-bg .tcard__contents { position: relative; z-index: 1; }
.tcard--has-bg .tcard__review-name { color: #fff; }
.tcard--has-bg .tcard__review-text:not([style*="color"]) { color: rgba(255,255,255,0.8); }
.tcard--has-bg .tcard__review-role { color: rgba(255,255,255,0.6); }
.tcard--has-bg .tcard__review-quote { color: rgba(255,255,255,0.3); }
.tcard--has-bg .tcard__review-stars svg.text-gray-300 { color: rgba(255,255,255,0.2); }
.tcard--has-bg .tcard__nav-btn { color: rgba(255,255,255,0.6); }
.tcard--has-bg .tcard__nav-btn:hover { color: #fff; }
.tcard--has-bg .tcard__nav-count { color: rgba(255,255,255,0.4); }

/* Rotating circle container — positioned so avatars peek into the card */
.tcard__circle {
  position: absolute;
  top: calc(var(--tcard-radius) * -1 + var(--tcard-circle-peek));
  left: 50%;
  translate: -50% 0;
  width: var(--tcard-avatar);
  height: var(--tcard-avatar);
  z-index: 2;
  transition: rotate var(--tcard-rotate-dur) cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Circle background disc */
.tcard__circle::before {
  content: '';
  position: absolute;
  inset: var(--tcard-disc-inset);
  margin: auto;
  border-radius: 50%;
  background: var(--color-primary, #7C9A8E);
  z-index: 1;
  box-shadow:
    inset 2px 2px 10px rgba(0,0,0,0.1),
    3px 3px 8px rgba(0,0,0,0.12);
  outline: 1.5px dashed rgba(255,255,255,0.2);
  outline-offset: -8px;
}

/* Avatar positioning on circle */
.tcard__avatar {
  --angle: calc((360deg / var(--items, 6)) * (var(--i, 1) - 1));
  position: absolute;
  inset: 0;
  margin: auto;
  transform: rotate(var(--angle)) translate(var(--tcard-radius)) rotate(90deg);
  display: grid;
  place-content: center;
  pointer-events: none;
  z-index: 2;
}

.tcard__avatar:nth-child(1) { --i: 1; }
.tcard__avatar:nth-child(2) { --i: 2; }
.tcard__avatar:nth-child(3) { --i: 3; }
.tcard__avatar:nth-child(4) { --i: 4; }
.tcard__avatar:nth-child(5) { --i: 5; }
.tcard__avatar:nth-child(6) { --i: 6; }
.tcard__avatar:nth-child(7) { --i: 7; }
.tcard__avatar:nth-child(8) { --i: 8; }

/* Avatar image & letter fallback */
.tcard__avatar-img,
.tcard__avatar-letter {
  width: var(--tcard-avatar);
  height: var(--tcard-avatar);
  border-radius: 50%;
  rotate: 180deg;
  border: 2px solid rgba(255,255,255,0.35);
  filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.2));
  transition: border-color 300ms ease, transform 300ms ease;
  pointer-events: auto;
  cursor: pointer;
}

.tcard__avatar-img {
  object-fit: cover;
}

.tcard__avatar-letter {
  display: grid;
  place-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary, #7C9A8E);
  background: var(--color-card-bg);
}

.tcard__avatar--active .tcard__avatar-img,
.tcard__avatar--active .tcard__avatar-letter {
  border-color: #fff;
  transform: scale(1.15);
}

/* Content area — flex column: reviews grow, nav sticks to bottom */
.tcard__contents {
  padding: calc(var(--tcard-circle-peek) + var(--tcard-avatar) + 8px) 0.85rem 0.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stacked reviews area */
.tcard__reviews-stack {
  display: grid;
  flex: 1;
  min-height: 0;
}

/* Each review */
.tcard__review {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.tcard__review.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Fade-in reveal (no translate to avoid layout shifting) */
.tcard__review-quote,
.tcard__review-name,
.tcard__review-stars,
.tcard__review-text,
.tcard__review-role {
  opacity: 0;
  transition: opacity var(--tcard-reveal-dur) ease;
}

.tcard__review.is-active .tcard__review-quote { opacity: 1; transition-delay: var(--tcard-reveal-delay); }
.tcard__review.is-active .tcard__review-name { opacity: 1; transition-delay: calc(var(--tcard-reveal-delay) * 2); }
.tcard__review.is-active .tcard__review-stars { opacity: 1; transition-delay: calc(var(--tcard-reveal-delay) * 3); }
.tcard__review.is-active .tcard__review-text { opacity: 1; transition-delay: calc(var(--tcard-reveal-delay) * 4); }
.tcard__review.is-active .tcard__review-role { opacity: 1; transition-delay: calc(var(--tcard-reveal-delay) * 5); }

.tcard__review-quote {
  color: var(--color-primary, #7C9A8E);
  line-height: 1;
  display: flex;
  justify-content: center;
}

.tcard__review-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text, #2D3436);
}

.tcard__review-stars {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
}

.tcard__review-text {
  font-size: 0.68rem;
  line-height: 1.65;
  color: var(--color-text-secondary, #6B7B75);
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  flex: 1;
  margin-top: 0.2rem;
  max-width: 100%;
}

/* Reset margins/sizing on rich-text children inside review text */
.tcard__review-text > * {
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tcard__review-role {
  font-size: 0.6rem;
  color: var(--color-text-secondary, #6B7B75);
  opacity: 0.65;
}

/* Navigation — pinned at bottom */
.tcard__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0 0.15rem;
  flex-shrink: 0;
  margin-top: auto;
}

.tcard__nav-btn {
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
  color: var(--color-text-secondary, #6B7B75);
  transition: color 200ms ease;
  display: flex;
  align-items: center;
}

.tcard__nav-btn:hover {
  color: var(--color-primary, #7C9A8E);
}

.tcard__nav-count {
  font-size: 0.62rem;
  color: var(--color-text-secondary, #6B7B75);
  opacity: 0.5;
  min-width: 2rem;
  text-align: center;
}

/* ===== Promo Banner Animated Button ===== */
.promo-btn {
  --pbtn-color: var(--color-promo-accent);
  --pbtn-bg: transparent;
  --pbtn-text: #FFFFFF;
  --pbtn-border: #FFFFFF;
  position: relative;
  display: inline-block;
  padding: 14px 56px;
  border: 3px solid var(--pbtn-border);
  background-color: var(--pbtn-bg);
  border-radius: 999px;
  color: var(--pbtn-text);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.5s ease;
}

/* Sizes */
.promo-btn--small {
  padding: 10px 44px;
  font-size: 0.85rem;
}
.promo-btn--small .promo-btn__arrow { width: 18px; height: 18px; }
.promo-btn--medium {
  padding: 14px 56px;
  font-size: 1rem;
}
.promo-btn--large {
  padding: 18px 68px;
  font-size: 1.15rem;
}
.promo-btn--large .promo-btn__arrow { width: 28px; height: 28px; }

/* Text — centered, shifts right on hover */
.promo-btn__text {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 0.5s ease;
}

/* Arrows — both absolute positioned */
.promo-btn__arrow {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  z-index: 1;
  transition: all 0.5s ease;
}
.promo-btn__arrow path {
  fill: var(--pbtn-text) !important;
}

/* Arrow 1: starts on LEFT, visible */
.promo-btn__arrow:not(.promo-btn__arrow--hover) {
  left: 18px;
  transform: translateY(-50%) scaleX(-1);
}

/* Arrow 2: on RIGHT, hidden */
.promo-btn__arrow--hover {
  right: 18px;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
}

/* Circle expansion */
.promo-btn__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--pbtn-color);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
}

/* ===== Hover ===== */
.promo-btn:hover {
  border-color: var(--pbtn-color);
}

/* Text shifts right */
.promo-btn:hover .promo-btn__text {
  transform: translateX(6px);
}

/* Arrow 1 (left) fades out, slides further left */
.promo-btn:hover .promo-btn__arrow:not(.promo-btn__arrow--hover) {
  transform: translateY(-50%) scaleX(-1) translateX(10px);
  opacity: 0;
}

/* Arrow 2 (right) fades in */
.promo-btn:hover .promo-btn__arrow--hover {
  transform: translateY(-50%) translateX(-4px);
  opacity: 1;
}

/* Circle expands */
.promo-btn:hover .promo-btn__circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}
.promo-btn--small:hover .promo-btn__circle {
  width: 180px;
  height: 180px;
}
.promo-btn--large:hover .promo-btn__circle {
  width: 280px;
  height: 280px;
}

/* ===== Collection Expanding Panels ===== */
.col-expand {
  display: flex;
  gap: 5px;
  padding: 0.4em;
  border-radius: 8px;
  height: 380px;
  overflow: hidden;
}

/* Each panel/strip — bg set via inline style */
.col-expand__panel {
  position: relative;
  height: 100%;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  transition: flex 0.5s ease;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.col-expand__panel:hover {
  flex: 4;
}

/* Background image — always visible */
.col-expand__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Overlay — color & opacity via inline style, fades on hover */
.col-expand__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.col-expand__panel:hover .col-expand__overlay {
  opacity: 0 !important;
}

/* Gradient — for panels without image */
.col-expand__grad {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  background: linear-gradient(135deg, rgba(124,154,142,0.25), rgba(212,184,150,0.15));
}

.col-expand__panel:hover .col-expand__grad {
  opacity: 1;
}

/* Title — rotated vertically, straightens on hover */
.col-expand__label {
  position: relative;
  z-index: 2;
  min-width: 14em;
  padding: 0.5em;
  text-align: center;
  transform: rotate(-90deg);
  transition: all 0.5s;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

[dir="rtl"] .col-expand__label {
  transform: rotate(90deg);
}

.col-expand__panel:hover .col-expand__label {
  transform: rotate(0);
  color: #fff;
}

/* Product count — slides in on hover */
.col-expand__count {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.15s;
  margin-top: 0.25rem;
}

.col-expand__panel:hover .col-expand__count {
  opacity: 1;
  transform: translateY(0);
}

/* Skeleton */
.col-expand--skeleton .col-expand__panel {
  border-style: dashed;
  cursor: default;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
  .col-expand { height: 320px; }
}

@media (max-width: 768px) {
  .col-expand { height: 280px; }
  .col-expand__label { font-size: 0.82rem; min-width: 11em; }
}

/* Responsive — Mobile: vertical accordion */
@media (max-width: 640px) {
  .col-expand {
    flex-direction: column;
    height: auto;
    gap: 4px;
  }
  .col-expand__panel {
    height: 52px;
    flex: none;
    flex-direction: row;
    transition: height 0.5s ease;
  }
  .col-expand__panel:hover {
    height: 180px;
    flex: none;
    flex-direction: column;
  }
  .col-expand__label {
    transform: rotate(0);
    min-width: auto;
    font-size: 0.85rem;
  }
  [dir="rtl"] .col-expand__label {
    transform: rotate(0);
  }
  .col-expand__panel:hover .col-expand__label {
    transform: rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .col-expand__panel,
  .col-expand__label,
  .col-expand__bg,
  .col-expand__overlay,
  .col-expand__grad {
    transition: none !important;
  }
  .col-expand__overlay { opacity: 0.3 !important; }
  .col-expand__count { opacity: 1; transform: none; }
}

/* ===== Footer — Split + CTA Band ===== */
.anees-footer {
  margin-top: auto;
}

/* CTA Newsletter Band */
.footer-cta {
  background: var(--color-primary);
  padding: 2.5rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.footer-cta__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-cta__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-cta__form {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
}

.footer-cta__input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  min-width: 240px;
  transition: all 0.3s;
}

.footer-cta__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.footer-cta__input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  transition: all 0.3s;
}

.footer-cta__btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-cta { padding: 1.75rem 0; border-radius: 1rem 1rem 0 0; }
  .footer-cta__inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-cta__title { font-size: 1.05rem; }
  .footer-cta__subtitle { font-size: 0.75rem; }
  .footer-cta__form { width: 100%; }
  .footer-cta__input { flex: 1; min-width: 0; font-size: 0.8rem; padding: 0.55rem 0.85rem; }
  .footer-cta__btn { font-size: 0.8rem; padding: 0.55rem 1rem; }
}

@media (max-width: 380px) {
  .footer-cta { padding: 1.5rem 0; }
  .footer-cta__title { font-size: 0.95rem; }
  .footer-cta__subtitle { font-size: 0.7rem; }
  .footer-cta__form { flex-direction: column; gap: 0.5rem; }
  .footer-cta__input { width: 100%; font-size: 0.8rem; }
  .footer-cta__btn { width: 100%; justify-content: center; }
}

/* Footer Body */
.footer-body {
  color: #fff;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}

.footer-link {
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
  transition: color 0.2s, padding-inline-start 0.2s;
  display: inline-block;
}

.footer-link:hover {
  color: var(--ft-hover, var(--color-primary-light));
  padding-inline-start: 4px;
}

/* Contact Items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-contact-item--link {
  transition: color 0.2s;
}

.footer-contact-item--link:hover {
  color: var(--color-primary-light);
}

/* WhatsApp CTA */
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  transition: all 0.3s;
}

.footer-wa-btn:hover {
  background: #1ebe57;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Social Icons */
.footer-social-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Article Page — Social Media Post Style ===== */
.article-post {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--color-card-bg, #fff);
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  overflow: hidden;
}

.article-post__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.article-post__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.article-post__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-post__meta {
  flex: 1;
  min-width: 0;
}

.article-post__store-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.article-post__date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.article-post__category {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(124,154,142,0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  white-space: nowrap;
}

/* Post Image */
.article-post__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Engagement Bar */
.article-post__engagement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.article-post__views {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.article-post__share-btns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-post__share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.2s;
}

.article-post__share-btn:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* Post Body */
.article-post__body {
  padding: 1.25rem;
}

.article-post__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .article-post__title { font-size: 1.625rem; }
}

/* Tags as hashtags */
.article-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0 1.25rem 1.25rem;
}

.article-post__tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s;
}

.article-post__tag:hover {
  color: var(--color-primary-dark);
}

/* Related / Suggested Section */
.article-suggested {
  max-width: 64rem;
  margin: 0 auto;
}

.article-suggested__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  padding-inline-start: 0.25rem;
}

.article-suggested__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-primary);
  border-radius: 2px;
  margin-inline-end: 0.5rem;
  vertical-align: middle;
}
