/**
 * CUSTOM CSS
 * File này dành cho các tùy chỉnh riêng của bạn
 * Thêm CSS mới vào đây thay vì sửa các file gốc
 */

/* ==================== CUSTOM VARIABLES ==================== */
:root {
  /* Colors - Ocean Blue Theme */
  --color-primary: #0891b2; /* Cyan 600 - Xanh nước biển chính */
  --color-primary-hover: #0e7490; /* Cyan 700 - Xanh đậm khi hover */
  --color-primary-light: #06b6d4; /* Cyan 500 - Xanh sáng */
  --color-primary-dark: #155e75; /* Cyan 800 - Xanh đậm */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-600: #525252;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ==================== UTILITY CLASSES ==================== */

/* Text Colors */
.text-primary {
  color: var(--color-primary);
}

.text-white {
  color: var(--color-white);
}

.text-gray-600 {
  color: var(--color-gray-600);
}

/* Background Colors */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-gray-100 {
  background-color: var(--color-gray-100);
}

/* Hover Effects */
.hover-primary:hover {
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.hover-scale:hover {
  transform: scale(1.05);
  transition: var(--transition-fast);
}

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ==================== CUSTOM COMPONENTS ==================== */

/* Custom Button */
.btn-custom {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-custom-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-custom-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Custom Card */
.card-custom {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

/* ==================== RESPONSIVE HELPERS ==================== */

/* Hide on Mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on Desktop */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-normal);
}

.animate-slideInUp {
  animation: slideInUp var(--transition-normal);
}

.animate-slideInDown {
  animation: slideInDown var(--transition-normal);
}

/* ==================== SCROLLING ANIMATIONS ==================== */

/* Infinite scroll left animation for header */
@keyframes scroll-left-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll-left-infinite {
  animation: scroll-left-infinite 20s linear infinite;
}

/* Pause animation on hover */
.animate-scroll-left-infinite:hover {
  animation-play-state: paused;
}

/* ==================== SCROLLBAR STYLES ==================== */

/* Hide scrollbar but keep functionality */
.scrollbar-none {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-none::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ==================== YOUR CUSTOM STYLES BELOW ==================== */

/* Thêm CSS tùy chỉnh của bạn ở đây */

/* ==================== HEADER STYLES ==================== */

/* Header solid background - Xanh dương đậm #1800ad */
header#header {
  background-color: #1800ad !important;
  background: #1800ad !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header fixed positioning */
header#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Logo hover effect */
header a[title="thanhngalaptop"]:hover {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* Search input focus effect */
header input[placeholder*="Bạn muốn mua gì"]:focus {
  outline: 2px solid #1800ad;
  outline-offset: 2px;
}

/* Button hover effects in header */
header button:hover,
header span[data-slot="button"]:hover {
  background-color: #0f0069 !important;
  border-color: #0f0069 !important;
  transition: all 0.3s ease;
}

/* Cart button - border nhạt + background sáng */
.button__cart {
  position: relative;
  border-color: rgba(67, 56, 202, 0.4) !important; /* Màu nhạt */
  background-color: rgba(67, 56, 202, 0.08) !important; /* Background sáng nhẹ */
  transition: all 0.3s ease;
}

.button__cart:hover {
  border-color: rgba(67, 56, 202, 0.7) !important; /* Hover đậm hơn */
  background-color: rgba(67, 56, 202, 0.15) !important; /* Background đậm hơn */
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ==================== RESPONSIVE HEADER ==================== */

@media (max-width: 768px) {
  header#header {
    padding: 0.5rem 0;
  }
  
  /* Mobile menu compact */
  header .max-w-screen-xl {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ==================== Z-INDEX UTILITIES ==================== */

.z-1000 {
  z-index: 1000;
}

.z-20 {
  z-index: 20;
}

.z-10 {
  z-index: 10;
}

/* ==================== SHADOW UTILITIES ==================== */

.shadow-bottom-50 {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shadow-bottom-400 {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}


/* ==================== RESPONSIVE - HIDE NEWS SECTION ON MOBILE ==================== */
/* Ẩn mục "Tin mới nhất" trên điện thoại (màn hình < 768px) */
@media (max-width: 767px) {
  .news-section-latest {
    display: none !important;
  }
}

/* ==================== MEGA MENU STYLES ==================== */

/* Mega menu animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in-fast {
    animation: fadeIn 0.2s ease-out;
}

/* ==================== MEGA MENU ==================== */

/* Mega menu styles removed - will be re-implemented */

.menu-item {
    position: relative;
}

.menu-item:hover,
.menu-item.active {
    background-color: #e0f2fe !important;
}

.mt-6 {
    margin-top: 16px;
}

/* Category menu active state */
.menu-item.active > a {
  background-color: #f0f9ff;
  border-left: 3px solid #3b82f6;
}

.menu-item.active > a p {
  color: #3b82f6;
}

/* ==================== NOTIFICATION ANIMATIONS ==================== */

/* Slide in from right animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* Cart badge pulse animation */
.cart-badge {
  animation: badgePulse 0.5s ease-out;
}

@keyframes badgePulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ==================== BRAND LOGO PLACEHOLDERS ==================== */
.brand-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.brand-logo-placeholder:hover {
  transform: scale(1.1);
}

.brand-link:hover .brand-logo-placeholder {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

