/* ========================================
   Reusable Components
   ======================================== */

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  padding: 0.875rem 2rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--easing);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-button);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--grad-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}

.btn--outline:hover {
  background: var(--clr-primary);
  color: white;
  transform: translateY(-2px);
}

.btn--gold {
  background: transparent;
  color: var(--clr-gold);
  border: 1.5px solid var(--clr-gold);
}

.btn--gold:hover {
  background: var(--clr-gold);
  color: white;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

.btn--full {
  width: 100%;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* Mobile button adjustments */
@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
  }

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--fs-sm);
  }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-mobile);
  z-index: var(--z-nav);
  transition: all var(--duration-normal) var(--easing);
  background: rgba(26, 9, 53, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar--scrolled {
  background: rgba(250, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--container-pad);
  max-width: var(--container-xl);
  margin: 0 auto;
}

.navbar__logo {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: white;
  letter-spacing: var(--ls-wide);
  z-index: var(--z-overlay);
  transition: color var(--duration-normal) var(--easing);
}

.navbar__logo span {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__logo {
  color: var(--clr-text);
}

.navbar--scrolled .navbar__logo span {
  color: var(--clr-primary);
}

/* Desktop nav links - hidden on mobile */
.navbar__links {
  display: none;
  align-items: center;
  gap: var(--sp-xl);
}

.navbar__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  position: relative;
  padding: var(--sp-xs) 0;
  color: white;
  transition: color var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__link {
  color: var(--clr-text);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width var(--duration-normal) var(--easing), background var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__link::after {
  background: var(--clr-primary);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

/* Nav actions (cart icon) */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  z-index: var(--z-overlay);
}

@media (min-width: 768px) {
  .navbar__actions {
    gap: var(--sp-md);
  }
}

.navbar__cart {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--easing);
}

@media (min-width: 768px) {
  .navbar__cart {
    width: 40px;
    height: 40px;
  }
}

.navbar__cart:hover {
  background: var(--clr-bg-alt);
}

.navbar__auth-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 24px;
  transition: background 0.2s;
  text-decoration: none;
}

.navbar__auth-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-gold);
  color: #1a1a2e;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--ff-body);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.navbar__auth-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: white;
  font-family: var(--ff-body);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

@media (min-width: 768px) {
  .navbar__auth-name {
    display: block;
  }
}

.navbar--scrolled .navbar__auth-name {
  color: var(--clr-text);
}

.navbar__auth-link svg {
  stroke: white;
  transition: stroke var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__auth-link svg {
  stroke: var(--clr-text);
}

.navbar__auth-link:hover {
  background: var(--clr-bg-alt);
}

.navbar__cart-icon {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__cart-icon {
  stroke: var(--clr-text);
}

.navbar__cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--clr-accent);
  color: white;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--duration-fast) var(--easing);
}

.navbar__cart-badge--visible {
  transform: scale(1);
}

/* Navbar Wishlist */
.navbar__wishlist {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--easing);
}

@media (min-width: 768px) {
  .navbar__wishlist {
    width: 40px;
    height: 40px;
  }
}

.navbar__wishlist:hover {
  background: var(--clr-bg-alt);
}

.navbar__wishlist-icon {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--duration-normal) var(--easing);
}

.navbar--scrolled .navbar__wishlist-icon {
  stroke: var(--clr-text);
}

.navbar__wishlist-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: white;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 40px;
  z-index: var(--z-overlay);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--easing);
  transform-origin: center;
}

.navbar--scrolled .navbar__hamburger span {
  background: var(--clr-text);
}

.navbar__hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.navbar__hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--grad-hero);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--easing);
}

.mobile-menu__close {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: var(--sp-xs);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--easing), transform var(--duration-normal) var(--easing);
}

.mobile-menu__close:hover {
  transform: scale(1.15);
}

.mobile-menu--open .mobile-menu__close {
  opacity: 1;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  color: white;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--easing);
}

.mobile-menu--open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

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

/* ========== PRODUCT CARD ========== */
.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--easing);
  cursor: pointer;
}

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

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--clr-bg-alt);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--easing);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
}

.product-card:hover .product-card__image,
.product-card:hover .product-card__placeholder {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  background: var(--clr-accent);
  color: white;
  border-radius: var(--radius-full);
  z-index: 2;
  animation: badgePop 0.4s ease-out both;
}

/* Badge colour variants — clean purple & white theme */
.product-card__badge--new,
.product-card__badge--hot,
.product-card__badge--trending,
.product-card__badge--exclusive {
  background: #6c3483;
  color: #fff;
  animation: badgePop 0.4s ease-out both, badgeShine 3s ease-in-out infinite;
}
.product-card__badge--sale,
.product-card__badge--bestseller,
.product-card__badge--limited {
  background: #fff;
  color: #6c3483;
  border: 1.5px solid #6c3483;
  animation: badgePop 0.4s ease-out both, badgeShine 3s ease-in-out infinite;
}

/* Badge animations */
@keyframes badgePop {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes badgeShine {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 12px 2px rgba(255,255,255,0.4); }
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 4px 0 rgba(243,156,18,0.3); }
  50% { box-shadow: 0 0 14px 4px rgba(243,156,18,0.6); }
}

.product-card__badge--oos {
  background: #9ca3af;
}

.product-info__add-btn--oos {
  background: #9ca3af !important;
  cursor: not-allowed;
}

.product-card__wishlist-btn {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.product-card:hover .product-card__wishlist-btn {
  opacity: 1;
}

.product-card__wishlist-btn svg {
  width: 18px;
  height: 18px;
  color: var(--clr-text-muted);
  transition: all 0.3s ease;
}

.product-card__wishlist-btn:hover svg {
  color: #e74c71;
}

.product-card__wishlist-btn--active {
  opacity: 1;
}

.product-card__wishlist-btn--active svg {
  fill: #e74c71;
  stroke: #e74c71;
  color: #e74c71;
}

.product-card__quick-add {
  position: absolute;
  bottom: var(--sp-sm);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--easing);
}

.product-card:hover .product-card__quick-add {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-card__info {
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
}

.product-card__category {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--sp-2xs);
}

.product-card__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-xs);
}

.product-card__price {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-dark);
}

.product-card__price--old {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  text-decoration: line-through;
  margin-left: var(--sp-xs);
  font-weight: var(--fw-regular);
}

.product-card__discount {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.1);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* Hover slideshow dots */
.product-card__slide-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .product-card__slide-dots {
  opacity: 1;
}
.product-card__slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
}
.product-card__slide-dot--active {
  background: #fff;
}

/* ========== TESTIMONIAL CARD ========== */
.testimonial-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  text-align: center;
}

.testimonial-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--sp-md);
  border: 2px solid var(--clr-gold);
}

.testimonial-card__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--sp-md);
  color: var(--clr-gold);
}

.testimonial-card__text {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.testimonial-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.testimonial-card__location {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ========== MOBILE BOTTOM NAV ========== */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--clr-border);
  z-index: var(--z-nav);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-xs);
  font-size: 0.625rem;
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  transition: color var(--duration-fast) var(--easing);
  position: relative;
}

.bottom-nav__item--active,
.bottom-nav__item:hover {
  color: var(--clr-primary);
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(12px);
  width: 16px;
  height: 16px;
  background: var(--clr-accent);
  color: white;
  font-size: 0.5625rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom nav dark mode toggle */
.bottom-nav__theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
}
.bottom-nav__theme-toggle .theme-icon--sun,
.bottom-nav__theme-toggle .theme-icon--moon {
  width: 22px;
  height: 22px;
}
.bottom-nav__theme-toggle .theme-icon--sun { display: none; }
[data-theme="dark"] .bottom-nav__theme-toggle .theme-icon--moon { display: none; }
[data-theme="dark"] .bottom-nav__theme-toggle .theme-icon--sun { display: block; }

/* ========== TRUST STRIP ========== */
.trust-strip {
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-lg) 0;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md) var(--sp-sm);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.trust-strip__icon {
  width: 26px;
  height: 26px;
  color: var(--clr-gold);
  flex-shrink: 0;
}

.trust-strip__label {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--clr-text);
}

@media (min-width: 768px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-strip__label {
    font-size: 0.875rem;
  }
}

[data-theme="dark"] .trust-strip {
  background: var(--clr-bg-alt);
  border-color: var(--clr-border);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--clr-text);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}

.footer__brand-name {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  color: white;
  margin-bottom: var(--sp-sm);
}

.footer__brand-name span {
  color: var(--clr-primary-light);
}

.footer__tagline {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 280px;
}

.footer__heading {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--sp-md);
}

.footer__link {
  display: block;
  font-size: var(--fs-sm);
  padding: var(--sp-2xs) 0;
  transition: color var(--duration-fast) var(--easing);
}

.footer__link:hover {
  color: var(--clr-primary-light);
}

#footerCategories {
  display: flex;
  flex-direction: column;
}

#footerCategories .footer__link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__link--more {
  color: var(--clr-primary-light);
  font-weight: var(--fw-semibold);
}

.footer__social {
  display: flex;
  gap: var(--sp-sm);
}

.footer__social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--easing);
}

.footer__social-icon:hover {
  border-color: var(--clr-primary-light);
  background: var(--clr-primary);
  color: white;
}

.footer__social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-lg);
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ========== NEWSLETTER FORM ========== */
.newsletter {
  text-align: center;
  padding: var(--sp-3xl) var(--container-pad);
  background: var(--clr-bg-alt);
  border-radius: var(--radius-lg);
}

.newsletter__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
  max-width: 540px;
  margin: var(--sp-lg) auto 0;
}

.newsletter__form .btn {
  width: 100%;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--duration-fast) var(--easing);
}

.newsletter__input:focus {
  border-color: var(--clr-primary);
}

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

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--sp-md));
  right: var(--sp-md);
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--easing);
  z-index: var(--z-above);
}

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

.back-to-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- Floating Social Hub ---------- */
.floating-social {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--sp-md) + 56px);
  right: var(--sp-md);
  z-index: var(--z-above);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
}

.floating-social__trigger {
  width: 44px;
  height: 44px;
  background: var(--clr-primary, #917ABF);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-social__trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.floating-social__icon-close {
  display: none;
}

.floating-social.open .floating-social__icon-open {
  display: none;
}

.floating-social.open .floating-social__icon-close {
  display: block;
}

.floating-social__trigger svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

.floating-social__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.floating-social.open .floating-social__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-social__link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.floating-social__link:hover {
  transform: scale(1.12);
}

.floating-social__link svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.floating-social__link--instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.floating-social__link--facebook {
  background: #1877F2;
}

.floating-social__link--youtube {
  background: #FF0000;
}

.floating-social__link--whatsapp {
  background: #25D366;
}

.floating-social__link--whatsapp svg {
  fill: white;
  stroke: none;
}

/* Stagger animation for menu items */
.floating-social.open .floating-social__link:nth-child(1) { transition-delay: 0.05s; }
.floating-social.open .floating-social__link:nth-child(2) { transition-delay: 0.1s; }
.floating-social.open .floating-social__link:nth-child(3) { transition-delay: 0.15s; }
.floating-social.open .floating-social__link:nth-child(4) { transition-delay: 0.2s; }

/* Desktop: hide bottom nav, adjust back-to-top */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .back-to-top {
    bottom: var(--sp-xl);
    right: var(--sp-xl);
  }

  .floating-social {
    bottom: calc(var(--sp-xl) + 56px);
    right: var(--sp-xl);
  }

  .navbar__links {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .navbar {
    height: var(--nav-height);
  }

  .newsletter__form {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter__form .btn {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ========== SKELETON LOADERS ========== */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton-pulse {
  animation: skeletonPulse 1.4s ease-in-out infinite;
  background: var(--clr-border, #e5e5e5);
  border-radius: var(--radius-sm, 4px);
}

.skeleton-card {
  display: flex;
  flex-direction: column;
}

.skeleton-card__image {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md, 8px);
  margin-bottom: 12px;
}

.skeleton-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-card__line {
  height: 14px;
  border-radius: 4px;
}

/* ========== DARK MODE TOGGLE ========== */
.navbar__theme-toggle {
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
  color: white;
}

@media (min-width: 768px) {
  .navbar__theme-toggle {
    display: flex;
    width: 36px;
    height: 36px;
  }
}

.navbar--scrolled .navbar__theme-toggle {
  color: var(--clr-text);
}

.navbar__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar--scrolled .navbar__theme-toggle:hover {
  background: var(--clr-bg-alt);
}

.theme-icon {
  width: 17px;
  height: 17px;
}

@media (min-width: 768px) {
  .theme-icon {
    width: 20px;
    height: 20px;
  }
}

/* Show moon by default (light mode), sun in dark mode */
.theme-icon--sun { display: none; }
.theme-icon--moon { display: block; }

[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* ========== DARK MODE OVERRIDES ========== */
[data-theme="dark"] body {
  background: var(--clr-bg);
  color: var(--clr-text);
}

[data-theme="dark"] .navbar--scrolled {
  background: rgba(26, 17, 37, 0.95);
}

[data-theme="dark"] .navbar--scrolled .navbar__logo {
  color: var(--clr-text);
}

[data-theme="dark"] .navbar--scrolled .navbar__link {
  color: var(--clr-text);
}

[data-theme="dark"] .navbar--scrolled .navbar__theme-toggle {
  color: var(--clr-text);
}

[data-theme="dark"] .navbar--scrolled .navbar__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar__cart:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu */
[data-theme="dark"] .mobile-menu {
  background: var(--clr-bg);
}

[data-theme="dark"] .mobile-menu__link {
  color: var(--clr-text);
}

/* Mobile menu dark mode toggle — styled like .mobile-menu__link */
.mobile-menu__theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  color: white;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--easing);
}
.mobile-menu--open .mobile-menu__theme-toggle {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.4s;
}
.mobile-menu__theme-toggle .theme-icon {
  width: 26px;
  height: 26px;
}
.theme-label--dark { display: none; }
.theme-label--light { display: inline; }
[data-theme="dark"] .theme-label--dark { display: inline; }
[data-theme="dark"] .theme-label--light { display: none; }

/* Page header / breadcrumb area */
[data-theme="dark"] .page-header__bg {
  background: var(--grad-hero);
}

/* Cards and surfaces */
[data-theme="dark"] .product-card {
  background: var(--clr-surface);
}

[data-theme="dark"] .product-card__name {
  color: var(--clr-text);
}

/* Newsletter */
[data-theme="dark"] .newsletter {
  background: var(--clr-surface);
}

/* Footer stays dark in both modes */
[data-theme="dark"] .footer {
  background: #0D0A12;
}

/* Inputs & forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--clr-surface);
  color: var(--clr-text);
  border-color: var(--clr-border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--clr-text-light);
}

/* Blog cards */
[data-theme="dark"] .blog-card {
  border-bottom-color: var(--clr-border);
}

/* Back to top */
[data-theme="dark"] .back-to-top {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

/* Floating social */
[data-theme="dark"] .floating-social__menu {
  background: var(--clr-surface);
  box-shadow: var(--shadow-lg);
}

/* Skeleton loaders */
[data-theme="dark"] .skeleton-pulse {
  background: var(--clr-border);
}
