/* ==========================================
   LAYOUT — Soft, Premium Design
   ========================================== */

/* Hero */
.hero-banner {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: var(--imo-radius-xl);
  min-height: 480px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.hero-banner .hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-banner .container { position: relative; z-index: 2; width: 100%; }

.hero-slider { position: relative; overflow: hidden; border-radius: var(--imo-radius-xl); }
.hero-slider .carousel-item {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: var(--imo-radius-xl);
}
.hero-slider .hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(26,26,46,0.25) 60%, transparent 100%);
  z-index: 1;
}
.hero-slider .hero-overlay { position: absolute; inset: 0; z-index: 2; }
.hero-slider .carousel-inner { border-radius: var(--imo-radius-xl); }
.hero-slider .carousel-indicators { margin-bottom: 1.25rem; z-index: 10; }
.hero-slider .carousel-indicators [data-bs-slide-to] {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  opacity: 1;
  margin: 0 4px;
  transition: var(--imo-transition);
}
.hero-slider .carousel-indicators .active {
  background: var(--imo-accent);
  width: 24px;
  border-radius: 4px;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 48px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: 1; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  width: 40px; height: 40px;
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  background-size: 40%;
  transition: var(--imo-transition-fast);
}
.hero-slider .carousel-control-prev-icon:hover,
.hero-slider .carousel-control-next-icon:hover {
  background-color: rgba(255,255,255,0.25);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 480px;
  padding: 3rem 3rem 3.5rem;
  text-align: left;
  color: #fff;
  position: relative;
  z-index: 5;
  max-width: 650px;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 600px;
}
.hero-action-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.hero-btn {
  background: var(--imo-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--imo-radius-full);
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(var(--imo-primary-rgb), 0.4);
}
.hero-btn i {
  transition: transform 0.3s ease;
}
.hero-btn:hover {
  background: var(--imo-accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--imo-accent-rgb), 0.5);
}
.hero-btn:hover i {
  transform: translateX(4px);
}
.hero-btn-alt {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--imo-radius-full);
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-btn-alt:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Features — ICON STRIP */
.feature-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--imo-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.feature-item i {
  font-size: 1.25rem;
  color: var(--imo-accent);
}
.feature-item span { font-weight: 700; color: var(--imo-primary); }

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
}
.feature-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--imo-primary) 0%, var(--imo-primary-light) 100%);
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.feature-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--imo-primary); margin-bottom: 0.2rem; }
.feature-card p { color: var(--imo-text-light); font-size: 0.8rem; margin: 0; line-height: 1.5; }

/* Product Cards */
.product-card {
  border: 1px solid var(--imo-border-light);
  border-radius: var(--imo-radius-lg);
  overflow: hidden;
  transition: var(--imo-transition);
  background: #fff;
  box-shadow: var(--imo-shadow-sm);
}
.product-card:hover {
  box-shadow: var(--imo-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.product-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
  background: var(--imo-gray-50);
  aspect-ratio: 3/4;
}
.product-card .card-img-wrapper img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card:hover .card-img-wrapper img { transform: scale(1.05); }
.product-card .card-body { padding: 0.85rem; }
.product-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--imo-primary);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.product-card .product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--imo-primary);
}
.product-card .btn { font-size: 0.75rem; padding: 0.4rem 0.7rem; }

/* Sidebar */
.sidebar-card { position: sticky; top: 80px; }
.sidebar-card .card-header {
  background: linear-gradient(135deg, var(--imo-primary) 0%, var(--imo-primary-light) 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

/* Modern E-commerce Navbar Styles */
.user-pill:hover { border-color: var(--imo-primary) !important; }
.user-pill:hover .user-pill-icon { background: var(--imo-primary) !important; color: #fff !important; }
.search-pill:focus-within { border-color: var(--imo-primary) !important; box-shadow: 0 0 0 3px rgba(var(--imo-primary-rgb), 0.15) !important; background: #fff !important; }

/* Navbar Category Strip */
.modern-cat-strip { background: #fff; }
.modern-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--imo-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.modern-cat-link:hover { color: var(--imo-primary); }
.modern-cat-link.active { color: var(--imo-primary); border-bottom: 2px solid var(--imo-primary); }

/* Page Header */
.page-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--imo-border-light);
  padding: 1.75rem 0;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--imo-primary);
  letter-spacing: -0.02em;
}

/* Page Toolbar */
.page-toolbar {
  background: var(--imo-gray-50);
  border: 1px solid var(--imo-border);
  border-radius: var(--imo-radius-lg);
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Auth */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--imo-radius-xl);
  box-shadow: var(--imo-shadow-lg);
}
.auth-card .card-header {
  background: linear-gradient(135deg, var(--imo-primary) 0%, var(--imo-primary-light) 100%);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.auth-card .card-header h4 { font-weight: 800; margin: 0; }
.auth-card .card-body { padding: 1.5rem; }

/* Profile */
.profile-sidebar .profile-header {
  background: linear-gradient(135deg, var(--imo-primary) 0%, var(--imo-primary-light) 100%);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.profile-sidebar .profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  border: 2px solid rgba(255,255,255,0.2);
}
.profile-sidebar .profile-name { font-weight: 700; font-size: 1rem; }
.profile-sidebar .profile-email { opacity: 0.6; font-size: 0.78rem; }

@media (max-width: 767.98px) {
  .profile-sidebar .list-group {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid var(--imo-border-light);
  }
  .profile-sidebar .list-group::-webkit-scrollbar { display: none; }
  .profile-sidebar .list-group-item {
    border: none;
    border-bottom: 2px solid transparent;
    border-left: none !important;
    background: transparent !important;
    color: var(--imo-text-secondary);
    padding: 0.85rem 1rem;
    font-weight: 600;
  }
  .profile-sidebar .list-group-item.active {
    color: var(--imo-primary) !important;
    border-bottom-color: var(--imo-primary);
  }
}

/* Cart */
.cart-summary { position: sticky; top: 80px; }
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}
.cart-summary .summary-total {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 2px solid var(--imo-primary);
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Product Detail */
.product-gallery .main-image {
  border-radius: var(--imo-radius-lg);
  overflow: hidden;
  background: var(--imo-gray-50);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .main-image img { max-height: 380px; width: 100%; object-fit: contain; }
.product-gallery .thumb-grid { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.product-gallery .thumb {
  width: 64px; height: 64px;
  border-radius: var(--imo-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--imo-transition-fast);
}
.product-gallery .thumb:hover,
.product-gallery .thumb.active { border-color: var(--imo-accent); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info .product-category {
  display: inline-block;
  background: rgba(var(--imo-accent-rgb), 0.1);
  color: var(--imo-accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--imo-radius-full);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-info .product-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--imo-primary);
}
.product-info .product-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--imo-primary);
  margin-bottom: 0.75rem;
}
.product-info .product-stock { font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.product-info .product-description {
  color: var(--imo-text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.product-info .product-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 1rem;
  background: var(--imo-gray-50);
  border-radius: var(--imo-radius-lg);
  border: 1px solid var(--imo-border-light);
}

/* Contact */
.contact-info-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0; }
.contact-info-item .icon-wrapper {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--imo-primary) 0%, var(--imo-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon-wrapper i { color: #fff; font-size: 1rem; }

/* Empty */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state i { color: var(--imo-gray-300); margin-bottom: 0.75rem; }
.empty-state h4 { font-weight: 700; margin-bottom: 0.3rem; color: var(--imo-primary); }
.empty-state p { color: var(--imo-text-light); font-size: 0.85rem; }

/* Category Cards */
.category-card {
  border-radius: var(--imo-radius-lg);
  overflow: hidden;
  display: block;
  transition: var(--imo-transition);
  border: 1px solid var(--imo-border-light);
  box-shadow: var(--imo-shadow-sm);
}
.category-card:hover {
  box-shadow: var(--imo-shadow-lg);
  transform: translateY(-4px);
}
.category-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--imo-gray-50);
}
.category-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover .category-card-img img { transform: scale(1.06); }
.category-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--imo-gray-100);
}
.category-card-placeholder i { font-size: 1.75rem; color: var(--imo-gray-300); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.8) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  transition: var(--imo-transition);
}
.category-card-title { color: #fff; font-weight: 700; font-size: 0.9rem; }
.category-card-count { color: rgba(255,255,255,0.6); font-size: 0.72rem; margin-top: 0.1rem; }
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(26,26,46,0.92) 0%, transparent 60%);
}
.active-thumb { border-color: var(--imo-accent); }

/* Sections */
.section { padding: 1.5rem 0; }
.section-light { padding: 1.5rem 0; background: var(--imo-bg-alt); }
.section-alt { padding: 1.5rem 0; background: var(--imo-bg-alt); }

/* Address */
.address-card {
  border: 1.5px solid var(--imo-border);
  border-radius: var(--imo-radius-lg);
  padding: 1rem;
  height: 100%;
  transition: var(--imo-transition-fast);
}
.address-card:hover { border-color: var(--imo-accent); }
.address-card.is-default { border-color: var(--imo-primary); }

/* Responsive */
@media (max-width:991.98px) {
  .hero-title { font-size: 1.7rem; }
  .product-info .product-title { font-size: 1.2rem; }
  .product-info .product-price { font-size: 1.4rem; }
  .page-header h1 { font-size: 1.3rem; }
}
@media (max-width:767.98px) {
  .hero-banner { 
      padding: 0 !important; 
      align-items: flex-end !important; 
      min-height: 65vh;
  }
  .hero-banner .container.py-5 {
      padding-bottom: 2rem !important;
  }
  .hero-slider .carousel-item { 
      min-height: 65vh; 
      display: flex;
      align-items: flex-end;
      padding-bottom: 2rem;
  }
  .hero-content { 
      min-height: auto; 
      padding: 2rem 1rem 0 !important; 
      align-items: center !important; 
      text-align: center !important;
      width: 100%;
  }
  .hero-action-group {
      justify-content: center;
      flex-direction: column;
      width: 100%;
      gap: 0.75rem;
  }
  .hero-action-group .hero-btn,
  .hero-action-group .hero-btn-alt {
      width: 100%;
      justify-content: center;
  }
  .feature-card { padding: 1rem 0.75rem; }
  .product-info .product-actions { flex-direction: column; }
  .page-toolbar { flex-direction: column; }
  
  /* Mobile Trust Cards */
  .mobile-trust-icon { width: 44px; height: 44px; font-size: 1.1rem; margin: 0 auto; }
  .mobile-trust-title { font-size: 0.75rem; line-height: 1.4; font-weight: 800; }
}

/* ==========================================
   SNAP SLIDER — Touch Scrollable Cards
   ========================================== */
.snap-slider {
  position: relative;
}
.snap-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.snap-slider-track::-webkit-scrollbar {
  display: none;
}
.snap-slider-item {
  flex: 0 0 calc(25% - 0.75rem);
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 991.98px) {
  .snap-slider-item {
    flex: 0 0 calc(33.333% - 0.67rem);
  }
}
@media (max-width: 767.98px) {
  .snap-slider-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
.snap-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}
.snap-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  opacity: 1;
}
.snap-slider-dot.active {
  background: var(--imo-primary);
  transform: scale(1.2);
}
.snap-slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--imo-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 0.8rem;
}
.snap-slider-arrow:hover {
  background: var(--imo-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(var(--imo-primary-rgb), 0.35);
  transform: translateY(calc(-50% - 20px)) scale(1.12);
}
.snap-slider-arrow.prev { left: -8px; }
.snap-slider-arrow.next { right: -8px; }
@media (min-width: 992px) {
  .snap-slider-arrow {
    display: flex;
  }
}
