/* ============================================================
   Droppii Store — Custom CSS (app.css)
   Bổ sung cho Tailwind CSS CDN
   ============================================================ */

/* ========== BASE ========== */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A24;
  --navy: #1A1A2E;
  --gold: #FFD700;
  --shadow-primary: rgba(255, 107, 53, 0.3);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent zoom on iOS inputs */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ========== SCROLLBAR ========== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

/* ========== LINE CLAMP ========== */
.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;
}

/* ========== SAFE AREA (iPhone notch) ========== */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile nav spacing */
@media (max-width: 1023px) {
  main {
    padding-bottom: 5rem;
  }
}

/* ========== HERO GRADIENT & GLOWS ========== */
.hero-gradient {
  background: linear-gradient(135deg, #070714 0%, #0e0e24 40%, #1a082a 100%);
}
.hero-gradient-overlay {
  background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
}

@keyframes slow-glow {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
    filter: blur(80px);
  }
  33% {
    transform: translate(30px, -40px) scale(1.15);
    filter: blur(90px);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    filter: blur(70px);
  }
}
.animate-slow-glow-1 {
  animation: slow-glow 12s infinite alternate ease-in-out;
}
.animate-slow-glow-2 {
  animation: slow-glow 18s infinite alternate-reverse ease-in-out;
  animation-delay: 2s;
}

/* ========== GLASSMORPHISM ========== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: linear-gradient(135deg, #FF6B35, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-primary);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ========== PRODUCT CARD HOVER ========== */
.product-card {
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ========== SKELETON ANIMATION ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.dark .skeleton {
  background: linear-gradient(90deg, #2d2d3d 25%, #3d3d4d 50%, #2d2d3d 75%);
  background-size: 200% 100%;
}

/* ========== MARQUEE ========== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* ========== TOAST ANIMATION ========== */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* ========== IMAGE GALLERY ========== */
.product-gallery-thumb {
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* ========== PRICE STYLING ========== */
.price-current {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  color: var(--primary);
}
.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ========== BADGE ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

/* ========== STATUS COLORS ========== */
.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #E0E7FF; color: #3730A3; }
.status-shipping { background: #CFFAFE; color: #155E75; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* ========== DASHBOARD SIDEBAR ========== */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}
.sidebar-link.active {
  font-weight: 600;
}

/* ========== PULSE GLOW EFFECT ========== */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.6); }
}

/* ========== PRINT ========== */
@media print {
  header, footer, nav, .cookie-banner, #mobile-nav, .cart-drawer, .quick-order-modal { display: none !important; }
  main { padding: 0 !important; }
}

/* ========== ALPINE.JS CLOAK ========== */
[x-cloak] { display: none !important; }

/* ========== SEO PILLAR CONTENT (Premium Typography & Layout) ========== */
.seo-long-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151; /* gray-700 */
}

.dark .seo-long-content {
  color: #d1d5db; /* gray-300 */
}

.seo-quote-heading {
  font-size: 24px !important;
  font-weight: 600 !important;
  padding: 2rem !important;
  border-left: 6px solid var(--primary);
  background: linear-gradient(to right, rgba(255, 107, 53, 0.05), transparent);
  border-radius: 0 1.5rem 1.5rem 0;
  line-height: 1.4;
  margin-bottom: 2.5rem !important;
}

.dark .seo-quote-heading {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.seo-long-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.dark .seo-long-content h2 {
  color: white;
}

.seo-long-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.seo-long-content p {
  margin-bottom: 1.5rem;
}

/* Image styling in SEO Content */
.seo-image-container {
  margin: 2.5rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .seo-image-container {
  border-color: rgba(255, 255, 255, 0.1);
}

.seo-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.seo-image-container:hover img {
  transform: scale(1.03);
}

.seo-image-caption {
  padding: 1rem;
  background: #f9fafb;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.dark .seo-image-caption {
  background: #1f2937;
  color: #9ca3af;
}

.seo-long-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.seo-long-content li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.seo-long-content li::marker {
  color: var(--primary);
  font-weight: bold;
}

.seo-long-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 107, 53, 0.2);
  transition: all 0.2s;
}

.seo-long-content a:hover {
  background: rgba(255, 107, 53, 0.1);
  border-bottom-color: var(--primary);
}
