/* Universal Cart - Modern Product Detail Page Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600 !important;
}

.font-bold {
  font-weight: 600 !important;
}

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

/* Native Multi-Page View Transitions */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 100ms cubic-bezier(0.4, 0, 1, 1) both fadeOut;
}

::view-transition-new(root) {
  animation: 200ms cubic-bezier(0, 0, 0.2, 1) both fadeInSlide;
}

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

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

.page-transition-enter {
  animation: fadeInSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Skeleton Shimmer */
.skeleton-shimmer {
  background-color: #f3f4f6;
  position: relative;
  overflow: hidden;
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Gallery Touch & Scroll Snap */
#gallery-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.gallery-slide {
  scroll-snap-align: center;
  flex: 0 0 100%;
}

.gallery-thumb {
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.gallery-thumb.active {
  border-color: #1c74cf !important;
  box-shadow: 0 0 0 1px #1c74cf;
}

/* Mobile Sticky Add-to-Cart Bar - hidden per inspo layout design */
#mobile-sticky-bar {
  display: none !important;
}

/* Modals */
.uc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.uc-modal.active {
  display: flex !important;
}

/* Toast Notification */
#uc-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#uc-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Accordion Transitions */
.accordion-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-trigger {
  user-select: none;
  cursor: pointer;
}

.accordion-trigger i.fa-chevron-down {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-trigger[aria-expanded="true"] i.fa-chevron-down,
.accordion-trigger i.fa-chevron-down.rotate-180 {
  transform: rotate(180deg) !important;
}

.accordion-trigger[aria-expanded="false"] i.fa-chevron-down:not(.rotate-180) {
  transform: rotate(0deg) !important;
}

/* Review Stars & Progress Bars */
.star-gold {
  color: #f59e0b;
}

.review-photo-thumb {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.review-photo-thumb:hover {
  transform: scale(1.04);
}

/* Reviews Slide-up Sheet & Modals */
.uc-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.uc-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.uc-sheet-panel {
  width: 100%;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

@media (min-width: 768px) {
  .uc-sheet-overlay {
    align-items: center;
    padding: 1.5rem;
  }
  .uc-sheet-panel {
    border-radius: 28px;
    max-width: 620px;
    max-height: 86vh;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.uc-sheet-overlay.active .uc-sheet-panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .uc-sheet-overlay.active .uc-sheet-panel {
    transform: scale(1) translateY(0);
  }
}

/* Reviews Carousel */
#reviewsCarouselTrack {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#writeReviewModal {
  z-index: 2200;
}

.review-filter-chip {
  transition: all 0.2s ease;
}
.review-filter-chip.active {
  background-color: #111827 !important;
  color: #ffffff !important;
  border-color: #111827 !important;
}


/* Focus Outline (Strict Brand Blue - NO Yellow/Orange) */
*:focus-visible {
  outline: 2px solid #1c74cf !important;
  outline-offset: 2px;
}
