/* Custom Polish & Micro-Interactions for Duy Phát Fashion */

/* Typography tracking & clean rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Category item subtle hover effect */
.category-item img {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.category-item:hover img {
  transform: scale(1.08);
}

/* Product Card Image Zoom */
.product-card-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

/* Pill Search Focus Transition */
#search-input:focus {
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Infinite Marquee Ticker */
@keyframes tickerMarquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ========================================================================= */
/* HIỆU ỨNG BÓNG ĐÈN PHÁT SÁNG VÀNG SOI CHỮ CLOTHES SHOP STUDIO             */
/* ========================================================================= */

.lamp-logo-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Chùm tia sáng vàng rực rỡ tỏa xuống từ chao đèn (Golden Light Cone Beam) */
.lamp-light-cone {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 65px;
  background: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.7) 0%, rgba(245, 158, 11, 0.3) 50%, rgba(245, 158, 11, 0) 85%);
  clip-path: polygon(42% 0%, 58% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  filter: blur(2.5px);
  z-index: 1;
}

/* Vầng sáng vàng ấm áp phủ lên các con chữ */
.lamp-glow-aura {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 45px;
  background: radial-gradient(ellipse at center, rgba(253, 224, 71, 0.35) 0%, rgba(245, 158, 11, 0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  filter: blur(4px);
  z-index: 1;
}

/* Khi di chuột vào khu vực bóng đèn hoặc logo */
.lamp-logo-wrapper:hover .lamp-light-cone,
.lamp-logo-wrapper:hover .lamp-glow-aura {
  opacity: 1;
}

/* Dây tóc bóng đèn và khung đèn bừng sáng vàng khi hover */
.lamp-logo-wrapper:hover .lamp-svg-icon {
  stroke: #d97706 !important;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6));
  transition: all 0.3s ease;
}

.lamp-logo-wrapper:hover .lamp-bulb-core {
  fill: #f59e0b !important;
  stroke: #fbbf24 !important;
  filter: drop-shadow(0 0 6px #f59e0b) drop-shadow(0 0 12px #fbbf24);
  transition: all 0.3s ease;
}

/* Chữ CLOTHES SHOP được ánh sáng vàng soi rọi */
.lamp-logo-wrapper:hover .lamp-text-title {
  color: #111111;
  text-shadow: 0 0 18px rgba(245, 158, 11, 0.75), 0 0 4px #fbbf24;
  transition: all 0.3s ease;
}

/* Chữ S T U D I O được ánh sáng vàng soi rọi */
.lamp-logo-wrapper:hover .lamp-text-subtitle {
  color: #92400e !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  transition: all 0.3s ease;
}

/* Color Variant Swatch Dots (Matching Uniqlo & Libé style) */
.color-dot {
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.color-dot:hover {
  transform: scale(1.2);
}
.color-dot.active-swatch {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #111111;
  transform: scale(1.15);
}

/* Size selector buttons */
.modal-size-btn {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-size-btn:hover {
  border-color: #111111;
  color: #111111;
}
.modal-size-btn.active-size {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Navigation Drawer Slide */
#mobile-nav-drawer {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-nav-drawer.open,
#mobile-nav-drawer.translate-x-0 {
  transform: translateX(0) !important;
}
#mobile-nav-drawer.-translate-x-full {
  transform: translateX(-100%) !important;
}

/* Hide scrollbar for horizontally scrollable chip bars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Quick Filter Chip active states */
.quick-chip {
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-chip:hover {
  transform: translateY(-1px);
}
.quick-chip.active {
  background-color: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Shipping Progress Bar Animated Glow */
#shipping-progress-fill {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

/* Floating Back-to-Top */
#back-to-top-btn {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
#back-to-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Mobile Bottom Dock */
#mobile-bottom-dock {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

/* ========================================================================= */
/* CRO & UX/UI ENHANCEMENTS: CONTACT HUB, SIZE CALCULATOR, FACETED FILTER   */
/* ========================================================================= */

/* Floating Contact Hub & Pulse Wave */
.contact-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background-color: #10b981;
  opacity: 0.75;
  animation: contactPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes contactPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.floating-contact-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

/* Filter Tag / Swatch Active State */
.filter-swatch.active {
  ring-width: 2px;
  --tw-ring-color: #000000;
  transform: scale(1.08);
}

.filter-pill.active {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* Tab active indicator */
.tab-btn.active {
  color: #000000 !important;
  border-bottom-color: #000000 !important;
}

/* Review Photo Zoom */
.review-thumb {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

