/* ============================================================
   RAYLOM PROFESSIONAL FEATURES
   Advanced · Modern · Interactive
   ============================================================ */

/* ============================================================
   ANNOUNCEMENT BAR — ROTATING MESSAGES
   ============================================================ */
.announcement-rotator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-rotator .rotating-text {
  display: inline-block;
  animation: rotateText 12s linear infinite;
}

@keyframes rotateText {
  0%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  35%,
  65% {
    opacity: 0;
    transform: translateY(-10px);
  }
  70%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ANNOUNCEMENT BAR - LIVE VISITOR COUNTER
   ============================================================ */
.live-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
}

.live-visitor-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}

@keyframes livePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* ============================================================
   NEWSLETTER POPUP - ENHANCED
   ============================================================ */
.newsletter-popup {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.newsletter-popup.show {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup-inner {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.newsletter-popup-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.newsletter-popup.show .newsletter-popup-inner {
  transform: translateY(0) scale(1);
}

.newsletter-popup-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-popup-close:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.newsletter-popup-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0f172a;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.newsletter-popup-inner h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.2;
}

.newsletter-popup-inner p {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.newsletter-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-popup-form input {
  padding: 15px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.newsletter-popup-form input:focus {
  border-color: #d4af37;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.newsletter-popup-form button {
  padding: 15px 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.newsletter-popup-form button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.newsletter-popup-form button:hover::before {
  transform: translateY(0);
}

.newsletter-popup-form button span,
.newsletter-popup-form button {
  position: relative;
  z-index: 2;
}

.newsletter-popup-form button:hover {
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.35);
}

.newsletter-popup-note {
  display: block;
  margin-top: 14px;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.newsletter-popup-note i {
  color: #22c55e;
}

/* ============================================================
   BACK TO TOP — PROGRESS RING
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #d4af37;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.35);
  color: #fff;
}

.back-to-top-progress {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    #d4af37 0deg,
    #d4af37 var(--scroll-deg, 0deg),
    transparent var(--scroll-deg, 0deg)
  );
  z-index: -1;
  opacity: 0.7;
}

/* ============================================================
   TOAST NOTIFICATION — ENHANCED
   ============================================================ */
.custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.custom-toast i {
  color: #d4af37;
  font-size: 1.1rem;
}

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.quick-view-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 20px;
}

.quick-view-modal.show {
  opacity: 1;
  visibility: visible;
}

.quick-view-content {
  background: #fff;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-view-modal.show .quick-view-content {
  transform: scale(1);
}

.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0f172a;
  transition: all 0.3s ease;
  z-index: 10;
}

.quick-view-close:hover {
  background: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.quick-view-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 32px;
}

.quick-view-image {
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.quick-view-details h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.quick-view-price {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4af37;
  margin-bottom: 16px;
}

.quick-view-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.quick-view-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 767px) {
  .quick-view-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .quick-view-details h3 {
    font-size: 1.2rem;
  }
  .quick-view-price {
    font-size: 1.4rem;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  z-index: 9998;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #0f172a;
  flex-shrink: 0;
}

.cookie-content {
  flex: 1;
}

.cookie-content h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.cookie-content p {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  flex: 1;
}

.cookie-btn.accept:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

.cookie-btn.decline {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.cookie-btn.decline:hover {
  background: #f1f5f9;
}

@media (max-width: 575px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }

  .cookie-content h6 {
    font-size: 0.82rem;
  }
  .cookie-content p {
    font-size: 0.72rem;
  }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.search-overlay.show {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}

.search-input-wrap {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  border: none;
  font-size: 1.05rem;
  outline: none;
  background: transparent;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 1.3rem;
}

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-close:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

@media (max-width: 575px) {
  .search-overlay {
    padding-top: 60px;
  }
  .search-input {
    font-size: 0.92rem;
    padding: 16px 50px 16px 18px;
  }
  .search-icon {
    font-size: 1.1rem;
    right: 16px;
  }
}

/* ============================================================
   PRODUCT COMPARISON FLOATING BAR
   ============================================================ */
.compare-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: #0f172a;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.compare-bar.show {
  transform: translateX(-50%) translateY(0);
}

.compare-count {
  background: #d4af37;
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.compare-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
  border: none;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ============================================================
   TRUST BADGES FLOATING
   ============================================================ */
.trust-badges-floating {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.trust-badge-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.trust-badge-item:hover {
  transform: scale(1.15) translateX(5px);
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.35);
}

.trust-badge-item::after {
  content: attr(data-label);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.trust-badge-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 991px) {
  .trust-badges-floating {
    display: none;
  }
}

/* ============================================================
   STICKY ADD TO CART (Mobile)
   ============================================================ */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.1);
  border-top: 1px solid #f1f5f9;
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cart-bar.show {
  transform: translateY(0);
}

.sticky-cart-info {
  flex: 1;
}

.sticky-cart-price {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.sticky-cart-name {
  font-size: 0.75rem;
  color: #64748b;
}

.sticky-cart-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sticky-cart-btn:hover {
  color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================
   PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #d4af37;
  letter-spacing: 4px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  border-radius: 50px;
  width: 0%;
  animation: loaderFill 1.5s ease-in-out infinite;
}

@keyframes loaderFill {
  0% {
    width: 0%;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 100%;
  }
}
