/*
Theme Name: Xuong In Da Nang Tailwind
Theme URI: https://xuongindanang.com
Author: Bạn
Author URI: https://xuongindanang.com
Description: Theme xưởng in Đà Nẵng sử dụng Tailwind CDN.
Version: 1.0
Text Domain: xuongindanang
*/

/* Có thể thêm CSS nhỏ nếu cần override, còn lại dùng Tailwind */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f4f6; /* bg-gray-100 */
}

/* Marquee Animation - Giống React app xuongindanang.com */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.animate-marquee {
  will-change: transform;
}

/* Đảm bảo khoảng cách hợp lý giữa các phần text trong marquee */
.animate-marquee span {
  letter-spacing: normal;
  word-spacing: normal;
}

/* Emoji icons đậm hơn với shadow nổi bật */
.emoji-icon {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transform: scale(1.1);
  display: inline-block;
}

/* Animation chớp chớp cho icon điện thoại đỏ - 3 giây 1 lần */
@keyframes phoneBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.phone-icon-shake {
  animation: phoneBlink 3s ease-in-out infinite;
}

/* Animation nhẹ nhàng cho badge HOT - không tức mắt */
@keyframes hotBadgeGlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
  }
}

.hot-badge {
  animation: hotBadgeGlow 2s ease-in-out infinite;
  display: inline-block;
  transition: all 0.3s ease;
}

.hot-badge:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 0 12px 3px rgba(239, 68, 68, 0.4);
}

/* Animation nhảy lên xuống cho badge SALE */
@keyframes saleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.sale-badge {
  animation: saleBounce 1.5s ease-in-out infinite;
  display: inline-block;
}

/* Animation nhảy lên xuống cho logo đối tác */
@keyframes partnerBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.partner-logo-bounce {
  animation: partnerBounce 2s ease-in-out infinite;
  display: inline-block;
}

/* Pagination - Nút phân trang đẹp và rõ ràng */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-wrapper ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pagination-wrapper li {
  margin: 0;
  padding: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Nút số trang */
.pagination-wrapper a {
  background-color: #ffffff;
  color: #2563EB;
  border-color: #E5E7EB;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-wrapper a:hover {
  background-color: #2563EB;
  color: #ffffff;
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Trang hiện tại */
.pagination-wrapper .current,
.pagination-wrapper span.current {
  background-color: #2563EB;
  color: #ffffff;
  border-color: #2563EB;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  font-weight: 700;
}

/* Nút "Trước" và "Sau" */
.pagination-wrapper .prev a,
.pagination-wrapper .next a {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  color: #ffffff;
  border-color: #2563EB;
  font-weight: 700;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pagination-wrapper .prev a:hover,
.pagination-wrapper .next a:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

/* Animation nhấp nhảy cho nút "Sau" */
@keyframes paginationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pagination-wrapper .next a {
  animation: paginationPulse 2s ease-in-out infinite;
}

.pagination-wrapper .next a:hover {
  animation: none;
  transform: translateY(-3px) scale(1.05);
}

/* Disabled state */
.pagination-wrapper .prev.disabled,
.pagination-wrapper .next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-wrapper .prev.disabled a,
.pagination-wrapper .next.disabled a {
  background: #E5E7EB;
  color: #9CA3AF;
  border-color: #D1D5DB;
  box-shadow: none;
}

/* Responsive cho mobile */
@media (max-width: 640px) {
  .pagination-wrapper a,
  .pagination-wrapper span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  
  .pagination-wrapper .prev a,
  .pagination-wrapper .next a {
    min-width: 100px;
    font-size: 14px;
  }
}

/* Nút scroll sản phẩm mới */
#scroll-right-btn,
#scroll-corporate-gift-btn {
  animation: scrollButtonPulse 2s ease-in-out infinite;
}

@keyframes scrollButtonPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  }
}

#scroll-right-btn:hover,
#scroll-corporate-gift-btn:hover {
  animation: none;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.8);
}

#scroll-right-btn:active,
#scroll-corporate-gift-btn:active {
  transform: translateY(-50%) scale(1.05);
}

/* Hide scrollbar for gallery thumbnails */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Product Image Gallery Styles */
#product-main-image {
  position: relative;
}

#product-main-image img {
  transition: opacity 0.3s ease-in-out;
}

#image-lightbox {
  transition: opacity 0.3s ease-in-out;
}

#lightbox-image {
  transition: opacity 0.3s ease-in-out;
}