/* Noon.com Style - Enhanced CSS with Tailwind Integration */

/* Custom Styles for Noon.com Design System */
:root {
  --noon-yellow: #FDDD00;
  --noon-black: #000000;
  --noon-gray: #F5F5F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #000;
  line-height: 1.6;
  background: #fff;
}

/* Accessibility: Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Product Card Styles - Noon.com Style */
.product-card-noon {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #E5E5E5;
}

.product-card-noon:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-card-noon img {
  transition: transform 0.3s ease;
}

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

/* Swiper Customization */
.swiper {
  padding-bottom: 40px;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--noon-yellow) !important;
  background: rgba(0, 0, 0, 0.5);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-button-next {
  right: 10px !important;
}

.swiper-button-prev {
  left: 10px !important;
}

.swiper-pagination-bullet {
  background: var(--noon-yellow) !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Hero Slider */
.hero-slider .swiper-slide {
  height: auto;
}

/* Category Cards */
.category-card-noon {
  text-decoration: none;
  color: inherit;
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-slider .swiper-slide {
    height: 300px;
  }

  .product-card-noon img {
    height: 200px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Focus Styles */
input:focus,
select:focus,
button:focus,
a:focus {
  outline: 2px solid var(--noon-yellow);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utility Classes */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Mobile Filter Bar (Sticky on Mobile) */
@media (max-width: 1023px) {
  aside {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    z-index: 50;
    transition: left 0.3s ease;
    overflow-y: auto;
  background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  aside.show {
    left: 0;
  }

  /* Filter Toggle Button on Mobile */
  .filter-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 40;
    background: var(--noon-yellow);
    color: black;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 24px;
  }
}

/* Overlay for mobile filter */
.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 45;
}

.filter-overlay.show {
  display: block;
}

/* Product Grid Responsive */
@media (max-width: 640px) {
  .product-card-noon img {
    height: 180px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  aside,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }
}