/* Page Layouts & Specific Views for 4th Heaven */

/* Section Headers Structure */
.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.section-title-box {
  flex: 1;
  min-width: 200px;
}

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--text-main);
  margin-top: 4px;
  line-height: 1.2;
  word-break: break-word;
}

.section-action-btn {
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Hero Section */
.hero-section {
  padding-top: 110px;
  padding-bottom: 40px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-badge-pill {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--lilac-electric);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple-primary);
  box-shadow: 0 4px 14px rgba(157, 78, 221, 0.2);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
  word-break: break-word;
}

.highlight-purple {
  background: linear-gradient(135deg, #1A0526 0%, #58187F 50%, #9D4EDD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-lilac {
  color: var(--lilac-electric);
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  width: 100%;
}

.hero-features-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(199, 125, 255, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-dark);
}

.hero-feat-item i {
  color: var(--lilac-electric);
  flex-shrink: 0;
}

/* Hero Right: High Fashion Visual Spotlight Card & Smooth Infinite Scroll */
.hero-visual-card {
  background: linear-gradient(145deg, #220638 0%, #3B0E5A 60%, #13031E 100%);
  border: 1.5px solid rgba(199, 125, 255, 0.45);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-floating), 0 0 40px rgba(157, 78, 221, 0.25);
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-scroll-viewport {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(19, 3, 30, 0.6);
  border: 1px solid rgba(199, 125, 255, 0.2);
}

.hero-scroll-viewport::before,
.hero-scroll-viewport::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  z-index: 3;
  pointer-events: none;
}

.hero-scroll-viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(34, 6, 56, 0.9) 0%, transparent 100%);
}

.hero-scroll-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(19, 3, 30, 0.95) 0%, transparent 100%);
}

.hero-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: endlessHeroScroll 18s linear infinite;
}

.hero-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes endlessHeroScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.hero-scroll-item {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.hero-scroll-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(19, 3, 30, 0.9) 100%);
  color: white;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
}

.hero-floating-tag {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--lilac-electric);
  flex-wrap: wrap;
  gap: 10px;
}

/* Color Chips Row */
.color-chip-btn {
  background: #FFFFFF;
  border: 1.5px solid rgba(199, 125, 255, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.color-chip-btn:hover, .color-chip-btn.active {
  border-color: var(--lilac-electric);
  background: var(--lilac-pale);
  color: var(--purple-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}

.color-chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}

/* Reviews Auto-cycling Marquee */
.reviews-marquee-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.review-body-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-product-tag {
  background: var(--lilac-pale);
  color: var(--purple-primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Category Filter Bar */
.category-pills-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
}

.category-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(199, 125, 255, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-pill:hover, .category-pill.active {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: var(--purple-primary);
  box-shadow: 0 4px 14px rgba(59, 14, 90, 0.3);
  transform: translateY(-1px);
}

/* Products Grid (Desktop Default) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Lookbook Banners */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lookbook-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-spring), box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lookbook-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--lilac-electric);
}

.lookbook-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--smooth-easing);
  display: block;
}

.lookbook-card:hover .lookbook-bg {
  transform: scale(1.08);
}

.lookbook-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(19, 3, 30, 0.15) 0%, rgba(34, 6, 56, 0.65) 50%, rgba(19, 3, 30, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  box-sizing: border-box;
}

/* Product Detail Page (PDP) Layout */
.pdp-layout {
  padding-top: 110px;
  padding-bottom: 70px;
  width: 100%;
  box-sizing: border-box;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.pdp-gallery-main {
  background: #FFFFFF;
  border: 1px solid rgba(199, 125, 255, 0.4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
  box-sizing: border-box;
}

.pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pdp-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.pdp-thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: #FFFFFF;
  padding: 2px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.pdp-thumb-btn.active, .pdp-thumb-btn:hover {
  border-color: var(--lilac-electric);
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.4);
  transform: scale(1.05);
}

.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Interactive Size Selector & Color Swatches */
.size-selector-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.size-pill {
  min-width: 44px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(199, 125, 255, 0.4);
  background: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 8px;
}

.size-pill:hover {
  border-color: var(--lilac-electric);
  background: var(--lilac-pale);
}

.size-pill.active {
  background: var(--grad-primary);
  color: white;
  border-color: var(--purple-primary);
  box-shadow: 0 4px 14px rgba(59, 14, 90, 0.35);
  transform: translateY(-2px);
}

.color-swatches-interactive {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.color-swatch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(199, 125, 255, 0.4);
  background: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-swatch-btn.active {
  border-color: var(--lilac-electric);
  background: var(--lilac-pale);
  box-shadow: 0 2px 10px rgba(157, 78, 221, 0.25);
}

/* Cart & Checkout Layout */
.cart-layout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 36px;
  padding-top: 110px;
  padding-bottom: 80px;
  width: 100%;
  box-sizing: border-box;
}

.cart-item-row {
  background: #FFFFFF;
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring);
  width: 100%;
  box-sizing: border-box;
}

.cart-item-row:hover {
  transform: translateY(-2px);
  border-color: var(--lilac-electric);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #F5E8FF;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--lilac-pale);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 125, 255, 0.4);
}

.qty-stepper button {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--purple-primary);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper button:hover {
  background: rgba(157, 78, 221, 0.2);
}

.qty-stepper span {
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 10px;
}

/* Order Tracking Timeline */
.timeline-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 36px 0;
  width: 100%;
  box-sizing: border-box;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 22px;
  left: 24px;
  height: 3px;
  background: var(--grad-lilac);
  z-index: 2;
  transition: width 0.6s var(--spring-easing);
}

.timeline-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all var(--transition-spring);
}

.timeline-step.completed .step-icon-circle {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 14, 90, 0.4);
}

.timeline-step.active .step-icon-circle {
  background: var(--grad-lilac);
  border-color: var(--lilac-electric);
  color: white;
  box-shadow: 0 0 0 6px rgba(157, 78, 221, 0.25);
  animation: purplePulseGlow 2s infinite;
}

/* STRICT RESPONSIVE BREAKPOINTS (Mobile-First Protection) */
@media (max-width: 1024px) {
  .hero-grid, .pdp-grid, .cart-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .lookbook-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 85px !important;
    padding-bottom: 25px !important;
  }
  .pdp-layout, .cart-layout-grid {
    padding-top: 85px !important;
  }
  .lookbook-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .lookbook-card {
    height: 360px !important;
  }
  .cart-item-row {
    grid-template-columns: 75px 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .cart-item-img {
    width: 75px !important;
    height: 75px !important;
  }
  .timeline-stepper {
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .timeline-step {
    min-width: 90px;
  }
  .pdp-gallery-main {
    height: 340px !important;
  }
}

@media (max-width: 640px) {
  .section-header-wrap {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .section-title {
    font-size: 1.35rem !important;
  }
  .section-action-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .product-img-wrapper {
    height: 135px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }
  .product-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    min-height: 2.1em !important;
    word-break: break-word !important;
  }
  .product-collection-tag {
    font-size: 0.65rem !important;
  }
  .current-price {
    font-size: 1.05rem !important;
  }
  .original-price {
    font-size: 0.75rem !important;
  }
  .btn-add-cart {
    padding: 7px 8px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
  }
  .hero-floating-tag {
    position: static !important;
    margin-top: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .hero-spotlight-img {
    max-height: 250px !important;
  }
  .hero-visual-card {
    padding: 16px !important;
  }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .product-card {
    padding: 8px !important;
  }
  .product-img-wrapper {
    height: 115px !important;
  }
  .current-price {
    font-size: 0.95rem !important;
  }
}
