/* 
  URBAN PROJECT - Homepage Stylesheet
  Exact design match as provided in mockup
*/

/* ==========================================
   PAGE LOADER
   ========================================== */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-white);
}
.loader-logo span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 6px;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  text-align: center;
  margin-top: 4px;
}

/* ==========================================
   HERO WRAPPER: LEFT SIDEBAR + RIGHT SLIDER
   ========================================== */
.hero-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px 0 30px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 420px;
  box-sizing: border-box;
}

/* ==========================================
   LEFT SIDEBAR
   ========================================== */
.hero-sidebar {
  width: 200px;
  min-width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 35, 0.92);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-right: none;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  z-index: 2;
}

.sidebar-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  color: var(--text-gray);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 255, 0.07);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.sidebar-btn:last-child {
  border-bottom: none;
}

.sidebar-btn:hover {
  background: rgba(0, 245, 255, 0.06);
  color: var(--text-white);
  padding-left: 22px;
}

.sidebar-btn > i:first-child {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 6px rgba(0, 245, 255, 0.5);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-btn span {
  flex: 1;
}

.sidebar-arrow {
  font-size: 0.6rem !important;
  color: var(--text-muted) !important;
  opacity: 0.5;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.sidebar-btn:hover .sidebar-arrow {
  opacity: 1;
  color: var(--accent-cyan) !important;
  transform: translateX(3px);
}

/* ==========================================
   HERO SLIDER (RIGHT SIDE)
   ========================================== */
.hero-slider-section {
  flex: 1;
  min-width: 0;
}

.hero-slider-container {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.15), 0 8px 32px rgba(0,0,0,0.4);
}

.hero-slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 17, 31, 0.65);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--text-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
  width: 26px;
  border-radius: 5px;
}

/* ==========================================
   FEATURES BAR (Below hero)
   ========================================== */
.features-bar {
  max-width: 1400px;
  margin: 14px auto 0;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(10, 22, 35, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  font-size: 1.6rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
  min-width: 28px;
}

.feature-text h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-white);
}

.feature-text p {
  font-size: 0.72rem;
  color: var(--text-gray);
  margin-top: 2px;
}

/* ==========================================
   HOME SECTIONS
   ========================================== */
.home-section {
  padding: 70px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==========================================
   FEATURED CATEGORIES
   ========================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category-card {
  height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.category-vector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 17, 31, 0.95) 100%);
  z-index: 2;
}

.category-info {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.category-btn-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-btn-text i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.category-card:hover .category-vector { transform: scale(1.08); }
.category-card:hover .category-btn-text i { transform: translateX(4px); }
.category-card:hover { border-color: rgba(0, 245, 255, 0.4); box-shadow: 0 8px 30px rgba(0,245,255,0.08); }

/* ==========================================
   LIMITED EDITION BANNER
   ========================================== */
.limited-edition-banner {
  background: linear-gradient(135deg, rgba(255,0,127,0.1) 0%, rgba(0,198,255,0.04) 100%), var(--bg-secondary);
  border: 1px solid rgba(255, 0, 127, 0.18);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  border-radius: 20px;
  padding: 55px 60px;
  position: relative;
  overflow: hidden;
}

.limited-edition-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,0,127,0.12) 0%, transparent 70%);
  top: -80px;
  right: -80px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--accent-cyan);
  margin-bottom: 5px;
}

.hero-badge.pink {
  border-color: rgba(255, 0, 127, 0.3);
  color: var(--accent-pink);
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--text-white);
}

.hero-subheading {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 480px;
}

.banner-timer {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.timer-box {
  background: rgba(7, 17, 31, 0.7);
  border: 1px solid rgba(255, 0, 127, 0.2);
  border-radius: 8px;
  min-width: 70px;
  padding: 12px 8px;
  text-align: center;
}

.timer-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-pink);
  font-family: var(--font-heading);
  line-height: 1;
}

.timer-label {
  font-size: 0.68rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.banner-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
}

.banner-visual .vector-placeholder {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,198,255,0.06), rgba(7,17,31,0.9));
  animation: floatUp 5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255,0,127,0.25));
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: radial-gradient(ellipse at center, rgba(13,27,42,0.5) 0%, rgba(7,17,31,0.9) 100%);
  border-radius: 18px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  padding: 50px 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(0, 245, 255, 0.1);
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  text-shadow: 0 0 15px rgba(0,245,255,0.4);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 5px;
}

/* ==========================================
   INSTAGRAM STYLE GRID
   ========================================== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.instagram-item .vector-placeholder {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  color: var(--accent-cyan);
  font-size: 1.4rem;
}

.instagram-item:hover .instagram-overlay { opacity: 1; }
.instagram-item:hover .vector-placeholder { transform: scale(1.08); }

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.pdp-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  box-shadow: 0 0 10px rgba(255,0,127,0.3);
  flex-shrink: 0;
}

.user-info-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
}

.user-info-text p {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* ==========================================
   MOBILE BOTTOM NAV
   ========================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(7, 17, 31, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 245, 255, 0.12);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.mob-nav-btn i { font-size: 1.15rem; }
.mob-nav-btn.active,
.mob-nav-btn:hover { color: var(--accent-cyan); }

/* ==========================================
   TABLET RESPONSIVE (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
  .hero-wrapper {
    padding: 15px 20px 0;
    min-height: 360px;
  }

  .hero-sidebar {
    width: 175px;
    min-width: 175px;
  }

  .sidebar-btn {
    padding: 17px 14px;
    font-size: 0.72rem;
  }

  .hero-slider-container {
    min-height: 360px;
  }

  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 12px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .limited-edition-banner {
    grid-template-columns: 1fr;
    padding: 40px 35px;
    text-align: center;
  }

  .banner-timer { justify-content: center; }
  .hero-subheading { margin: 0 auto; }
  .banner-visual { display: none; }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
    gap: 30px;
  }

  .stat-item:not(:last-child)::after { display: none; }

  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-slider { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   MOBILE RESPONSIVE (max 768px)
   ========================================== */
@media (max-width: 768px) {

  /* Hero: vertical stack */
  .hero-wrapper {
    flex-direction: column;
    padding: 10px 12px 0;
    min-height: auto;
    gap: 8px;
  }

  /* Sidebar: horizontal row (scroll) */
  .hero-sidebar {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-right: 1px solid rgba(0, 245, 255, 0.15);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .hero-sidebar::-webkit-scrollbar { display: none; }

  .sidebar-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 14px;
    border-bottom: none;
    border-right: 1px solid rgba(0, 245, 255, 0.07);
    min-width: 95px;
    flex-shrink: 0;
    font-size: 0.65rem;
    gap: 5px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }
  .sidebar-btn:last-child { border-right: none; }
  .sidebar-btn:hover { padding-left: 14px; }
  .sidebar-arrow { display: none; }

  /* Slider: full width */
  .hero-slider-section { width: 100%; }
  .hero-slider-container {
    min-height: 200px;
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    aspect-ratio: 16/7;
  }

  .slider-arrow { display: none; }
  .slider-dot { width: 7px; height: 7px; }
  .slider-dot.active { width: 18px; }

  /* Features: 2x2 */
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px;
    margin-top: 8px;
    gap: 8px;
  }
  .feature-item { padding: 12px 14px; }
  .feature-icon-wrap { font-size: 1.3rem; }
  .feature-text h5 { font-size: 0.75rem; }
  .feature-text p { font-size: 0.68rem; }

  /* Sections */
  .home-section { padding: 45px 12px; }

  /* Categories: 2 cols */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card { height: 200px; padding: 16px; }
  .category-name { font-size: 0.95rem; }

  /* Products: 2 cols */
  .products-display-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Banner */
  .limited-edition-banner { padding: 28px 18px; }
  .hero-heading { font-size: 1.7rem !important; }
  .banner-timer { gap: 8px; }
  .timer-box { min-width: 56px; padding: 10px 6px; }
  .timer-num { font-size: 1.5rem; }

  /* Stats: 2x2 */
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 15px;
    gap: 24px;
  }

  /* Grid */
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* Testimonials: 1 col */
  .testimonials-slider { grid-template-columns: 1fr; }

  /* Mobile bottom nav */
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 65px; }
}

/* ==========================================
   SMALL PHONES (max 480px)
   ========================================== */
@media (max-width: 480px) {
  .hero-wrapper { padding: 8px; }
  .sidebar-btn { min-width: 82px; font-size: 0.6rem; padding: 11px 10px; }
  .features-bar { padding: 0 8px; gap: 6px; }
  .home-section { padding: 36px 8px; }
  .category-card { height: 180px; padding: 14px; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { padding: 24px 10px; gap: 18px; }
  .stat-number { font-size: 1.8rem; }
  .limited-edition-banner { padding: 22px 14px; }
}

/* ==========================================
   TRENDING PRODUCTS: COMPACT 7-COLUMN LAYOUT (Mockup Match)
   ========================================== */
#trending-products-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

#trending-products-grid .product-card {
  border-radius: var(--border-radius-sm) !important;
  padding: 0 !important;
}

#trending-products-grid .product-image-container {
  height: 200px !important;
}

#trending-products-grid .product-details-content {
  padding: 12px !important;
  gap: 6px !important;
}

#trending-products-grid .product-meta-row {
  font-size: 0.68rem !important;
  margin-bottom: 2px;
}

#trending-products-grid .product-rating {
  font-size: 0.68rem !important;
}

#trending-products-grid .product-title {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  height: 2.5em !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  text-align: center !important;
  margin: 2px 0 !important;
}

#trending-products-grid .product-price-row {
  font-size: 0.8rem !important;
  margin-bottom: 4px !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
}

#trending-products-grid .price-actual {
  font-size: 0.85rem !important;
}

#trending-products-grid .price-original {
  font-size: 0.72rem !important;
}

#trending-products-grid .product-add-cart-btn {
  font-size: 0.72rem !important;
  padding: 8px 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

#trending-products-grid .product-quickview-btn {
  font-size: 0.72rem !important;
  padding: 6px 8px !important;
}

/* Responsive adjustments for 7-column layout */
@media (max-width: 1366px) {
  #trending-products-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@media (max-width: 1100px) {
  #trending-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  #trending-products-grid .product-image-container {
    height: 220px !important;
  }
}

@media (max-width: 768px) {
  #trending-products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  #trending-products-grid .product-image-container {
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  #trending-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  #trending-products-grid .product-image-container {
    height: 170px !important;
  }
  #trending-products-grid .product-details-content {
    padding: 8px !important;
  }
  #trending-products-grid .product-title {
    font-size: 0.72rem !important;
  }
}
