/* SÓKARINA Product View — house type + maison buy-box */

:root {
  --bg-primary: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-muted: #8a8a8a;
  --border-light: #e8e8e8;
  --border-medium: #111111;
  --accent-primary: #000000;
  --accent-secondary: #f5f5f5;
  --focus-ring: rgba(0, 0, 0, 0.45);
  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  /* House font system (matches PLP / site) */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pv-label: 0.625rem;
  --pv-body: 0.75rem;
  --pv-title: 0.8125rem;
  --pv-price: 0.6875rem;
  --pv-track: 0.14em;
  --pv-track-tight: 0.08em;
  --pv-nav-h: 60px;
}

@media (max-width: 479px) {
  :root {
    --pv-nav-h: 50px;
  }
}

/* Product View Layout — clear fixed navbar */
.product-view-page {
  padding-top: var(--pv-nav-h);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: calc(100vh - var(--pv-nav-h));
  min-height: calc(100dvh - var(--pv-nav-h));
  background: var(--bg-primary);
}

/* LEFT COLUMN - MEDIA */
.product-media {
  position: relative;
  overflow: hidden;
  background: #f3f3f3;
  min-height: calc(100vh - var(--pv-nav-h));
  min-height: calc(100dvh - var(--pv-nav-h));
}

.wishlist-btn {
  display: none;
}

.wishlist-btn:hover {
  background: #fff;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.wishlist-btn ion-icon {
  font-size: 20px;
  color: var(--text-primary);
}

.wishlist-btn.is-active ion-icon {
  color: #c62828;
}

/* Product Carousel */
.product-carousel {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: pan-y;
}

.carousel-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--pv-nav-h));
  min-height: calc(100dvh - var(--pv-nav-h));
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  left: 1.25rem;
  bottom: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 50;
}

.carousel-dot {
  width: 2px;
  height: 18px;
  border-radius: 0;
  border: none;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background var(--transition-fast), height var(--transition-fast);
  padding: 0;
}

.carousel-dot:hover,
.carousel-dot.is-active {
  background: #000;
  height: 28px;
  transform: none;
}

.pair-suggestion {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  z-index: 50;
  height: 44px;
}

.pair-suggestion:hover {
  border-color: #000;
  box-shadow: none;
  transform: none;
}

.pair-suggestion img {
  height: 100%;
  width: 44px;
  object-fit: cover;
  border-radius: 0;
}

.pair-suggestion span {
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
  letter-spacing: var(--pv-track);
  padding: 0 1rem;
}

/* RIGHT COLUMN — buy box */
.product-panel {
  position: sticky;
  top: var(--pv-nav-h);
  align-self: start;
  height: calc(100vh - var(--pv-nav-h));
  height: calc(100dvh - var(--pv-nav-h));
  overflow-y: auto;
  padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.35rem, 3.5vw, 3rem) 2.75rem;
  border-left: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.product-header {
  margin: 0 0 1.75rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.product-collection,
.product-type {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-title {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: var(--pv-title);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.4;
}

.product-price {
  margin: 0;
  font-family: var(--font);
  font-size: var(--pv-price);
  font-weight: 300;
  letter-spacing: var(--pv-track-tight);
  color: #000;
  line-height: 1.4;
}

.product-selectors {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-field {
  margin: 0 0 1.5rem;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
  gap: 1rem;
}

.field-label {
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
  letter-spacing: var(--pv-track);
}

.field-value {
  font-family: var(--font);
  font-size: var(--pv-label);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: none;
}

.field-link {
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: var(--pv-track);
  text-transform: uppercase;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.field-link:hover {
  opacity: 0.55;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  outline: none;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  padding: 0;
}

.color-swatch:hover {
  transform: none;
}

.color-swatch.is-selected {
  border: 1px solid #000;
}

.color-swatch span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Size Options */
.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.size-option {
  min-width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d4;
  border-radius: 0 !important;
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #000;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  position: relative;
  z-index: 3;
  pointer-events: auto;
  padding: 0 0.65rem;
}

.size-option:hover {
  border-color: #000;
  background: #fff;
}

.size-option.is-selected {
  border-color: #000;
  background: #000;
  color: #fff;
  border-radius: 0 !important;
}

/* Actions */
.product-actions {
  margin: 0.25rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.product-view-page .btn,
.product-view-page .btn-primary,
.product-view-page .add-to-cart {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0 !important;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--pv-track);
  padding: 1rem 1.25rem;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
  transform: none !important;
  box-shadow: none !important;
  background: #000;
  border: 1px solid #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.product-view-page .btn::before,
.product-view-page .btn-primary::before,
.product-view-page .add-to-cart::before {
  content: none !important;
  display: none !important;
}

.product-view-page .btn:focus-visible,
.product-view-page .add-to-cart:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.product-view-page .btn-primary:hover,
.product-view-page .add-to-cart:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  transform: none !important;
}

.product-view-page .add-to-cart.is-added,
.product-view-page .btn-primary.is-added {
  background: #fff;
  color: #000;
  border-color: #000;
}

.btn-wishlist-link,
.product-view-page .add-to-wishlist.btn-wishlist-link,
.product-view-page button.add-to-wishlist {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 0 !important;
  padding: 0.15rem 0;
  margin: 0 auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: var(--pv-track);
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.32em;
  text-decoration-thickness: 1px;
  box-shadow: none !important;
  transform: none !important;
}

.btn-wishlist-link:hover,
.product-view-page .add-to-wishlist:hover {
  opacity: 0.55;
  background: transparent !important;
  color: #000 !important;
}

.btn-wishlist-link ion-icon {
  font-size: 0.9rem;
}

.product-delivery {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  border-bottom: none;
  text-decoration: none;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* Accordions — uniform maison rows */
.product-accordions {
  margin: 0 0 2rem;
  border-top: 1px solid var(--border-light);
}

.product-accordion {
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.product-accordion:last-child {
  border-bottom: 1px solid var(--border-light);
}

.product-accordion[open] {
  border-color: var(--border-light);
  background: transparent;
}

.product-accordion summary {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  min-height: 3rem;
  box-sizing: border-box;
  font-family: var(--font) !important;
  font-weight: 400 !important;
  font-size: 0.625rem !important;
  line-height: 1 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #000 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #000;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  border: none;
  background: transparent;
  transition: none;
}

.product-accordion summary:hover,
.product-accordion summary:focus,
.product-accordion[open] summary {
  opacity: 1 !important;
  color: #000 !important;
  -webkit-text-fill-color: #000;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary .accordion-label {
  display: block;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

.product-accordion summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.75rem;
  height: 0.75rem;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1;
  color: #000;
  transition: transform 0.2s ease;
}

.product-accordion[open] summary::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 0 1.15rem;
  color: #666;
  font-family: var(--font);
  font-size: 0.6875rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.accordion-content p,
.accordion-content li,
.accordion-content ul,
.accordion-content span {
  margin: 0 0 0.45rem;
  font-family: var(--font) !important;
  font-size: 0.6875rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.55 !important;
  color: #666 !important;
}

.accordion-content p:last-child,
.accordion-content li:last-child {
  margin-bottom: 0;
}

.accordion-content strong {
  font-weight: 400 !important;
  color: #666 !important;
}

.product-details-list {
  margin: 0;
  padding: 0 0 0 0.85rem;
  list-style: none;
  font-size: 0.6875rem !important;
}

.product-details-list li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 0;
  font-size: 0.6875rem !important;
  font-weight: 300 !important;
  color: #666 !important;
}

.product-details-list li::before {
  content: '–';
  color: #666;
  position: absolute;
  left: -0.85rem;
}

.product-view-page .btn-link,
.accordion-content .btn-link {
  display: inline-block;
  margin-top: 0.65rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: var(--pv-track);
  text-transform: uppercase;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.product-view-page .btn-link:hover,
.accordion-content .btn-link:hover {
  opacity: 0.55;
}

.product-meta-footer,
.back-navigation {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.product-reference {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.back-collection-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: var(--pv-label);
  font-weight: 400;
  letter-spacing: var(--pv-track);
  text-transform: uppercase;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.back-collection-link:hover {
  opacity: 0.55;
}
.back-navigation {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* RECOMMENDATIONS SECTION */
.recommendations-section {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 80px 0;
  margin-top: 0;
  overflow-x: hidden;
  width: 100%;
}

.recommendations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.recommendations-header {
  text-align: center;
  margin-bottom: 60px;
}

.recommendations-title {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

@media (min-width: 640px) {
  .recommendations-title {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .recommendations-title {
    font-size: 0.8125rem;
  }
}

.recommendations-subtitle {
  font-size: 0.75rem;
  font-weight: 200;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .recommendations-subtitle {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .recommendations-subtitle {
    font-size: 0.85rem;
  }
}

/* Carousel Container */
.recommendations-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
  width: 100%;
  max-width: 100vw;
}

.recommendations-track {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  transition: transform 0.4s ease;
  will-change: transform;
  outline: none;
  width: fit-content;
  min-width: 100%;
}



/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.carousel-nav:hover {
  opacity: 1;
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-nav ion-icon {
  font-size: 20px;
  color: var(--text-primary);
}

/* Recommendation Cards - Minimal Luxury Design */
.recommendation-card {
  flex: 0 0 280px;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  overflow: visible;
}

.recommendation-card:hover {
  opacity: 0.8;
  cursor: pointer;
}

.recommendation-image {
  position: relative;
  height: 400px !important;
  min-height: 400px !important;
  overflow: hidden;
  background: #f8f8f8;
  margin-bottom: 16px;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.recommendation-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.recommendation-card:hover .recommendation-wishlist {
  opacity: 0.7;
}

.recommendation-wishlist:hover {
  opacity: 1;
}

.recommendation-wishlist ion-icon {
  font-size: 18px;
  color: #000;
}

.recommendation-wishlist.is-active ion-icon {
  color: #000;
}

.recommendation-badge {
  display: none;
}

.recommendation-info {
  padding: 0;
  text-align: left;
}

.recommendation-name {
  font-size: 0.65rem;
  font-weight: 200;
  color: #000;
  margin: 0 0 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.recommendation-type {
  display: none;
}

.recommendation-price {
  font-size: 0.65rem;
  font-weight: 200;
  color: #000;
  margin: 0 0 0.75rem;
}

/* Color Swatches for Recommendations */
.recommendation-swatches {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.recommendation-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.recommendation-swatch:hover {
  transform: scale(1.2);
}

.recommendation-swatch.black { background: #000; }
.recommendation-swatch.brown { background: #8B4513; }
.recommendation-swatch.tan { background: #D2B48C; }
.recommendation-swatch.grey { background: #808080; }
.recommendation-swatch.navy { background: #000080; }

/* Carousel Dots */
.recommendations-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.recommendation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recommendation-dot:hover,
.recommendation-dot.is-active {
  background: var(--accent-primary);
  transform: scale(1.2);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .product-container {
    grid-template-columns: 1fr 50vw;
  }
  
  .product-panel {
    padding: 40px 40px 30px;
  }
}

@media (max-width: 1024px) {
  .product-container {
    grid-template-columns: 1fr 45vw;
  }
  
  .product-panel {
    padding: 36px 32px 28px;
  }
  
  .product-media {
    min-height: 450px;
  }
}

@media (max-width: 900px) {
  .product-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .product-media {
    height: 60vh;
    height: 60dvh;
    min-height: 400px;
  }
  
  .product-panel {
    position: relative;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 32px 24px;
  }
  
  .product-title {
    font-size: 1.125rem;
  }
  
  .wishlist-btn {
    right: 20px;
    top: 16px;
    width: 40px;
    height: 40px;
  }
  
  .pair-suggestion {
    right: 20px;
    bottom: 20px;
    height: 36px;
  }
  
  .pair-suggestion img {
    width: 36px;
    height: 100%;
    border-radius: 0;
  }
  
  .pair-suggestion span {
    padding: 0 14px 0 0;
    font-size: 12px;
  }
  
  .carousel-dots {
    left: 16px;
    bottom: 20px;
  }
  
  .size-options {
    gap: 8px;
  }
  
  .size-option {
    min-width: 44px;
    height: 44px;
    border-radius: 0 !important;
  }
  
  /* Recommendations responsive */
  .recommendations-section {
    padding: 60px 0;
  }
  
  .recommendations-title {
    font-size: 1.125rem;
  }
  
  .recommendations-header {
    margin-bottom: 40px;
  }
  
  .recommendation-card {
    flex: 0 0 220px;
  }
  
  .recommendation-image {
    height: 320px !important;
    min-height: 320px !important;
  }
  
  .carousel-nav {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
  }
  
  .carousel-nav ion-icon {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  /* Enable native horizontal scroll + snap for mobile */
  .recommendations-carousel {
    overflow: visible;
  }
  .recommendations-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .recommendations-track::-webkit-scrollbar {
    display: none;
  }
  /* Cards: responsive width and snap alignment */
  .recommendation-card {
    flex: 0 0 auto;
    width: 80%;
    max-width: 220px;
    min-width: 160px;
    scroll-snap-align: start;
  }
}

@media (max-width: 400px) {
  .recommendation-card {
    width: 85%;
    max-width: 200px;
    min-width: 160px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 900px) and (orientation: landscape) {
  .product-media {
    height: 80vh;
    height: 80dvh;
    min-height: 350px;
  }
  
  .product-panel {
    padding: 24px 20px;
  }
  
  .recommendations-section {
    padding: 50px 0;
  }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-view-page {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.carousel-slide {
  background: #f5f5f5;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* Focus styles for better accessibility */
.color-swatch:focus-visible,
.size-option:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ===== Style With drawer (maison panel) ===== */
.styling-drawer-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.28);
  z-index: 10040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.styling-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.styling-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  border-left: 1px solid #e8e8e8;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  visibility: hidden;
}

.styling-drawer.active {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
}

.styling-drawer-header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.35rem 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  position: relative;
  z-index: 2;
}

.styling-drawer-kicker {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.styling-drawer-title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  text-align: left;
}

.styling-drawer-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  appearance: none;
  background: #fff;
  border: 1px solid #111;
  border-radius: 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #000;
  font-family: var(--font);
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 3;
}

.styling-drawer-close:hover {
  background: #111;
  color: #fff;
}

.styling-drawer-close:focus-visible {
  outline: 1px solid #111;
  outline-offset: 3px;
}

.styling-drawer-close__label {
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.styling-drawer-close__icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 300;
}

.styling-drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem 2rem;
  overscroll-behavior: contain;
}

.styling-category-nav {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.styling-category-nav::-webkit-scrollbar {
  display: none;
}

.styling-category-nav-item {
  appearance: none;
  flex: 0 0 auto;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  padding: 1rem 0.95rem;
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.styling-category-nav-item:first-child {
  padding-left: 0;
}

.styling-category-nav-item.active {
  color: #000;
  border-bottom-color: #000;
  font-weight: 400;
}

.styling-category-nav-item.active::after {
  display: none;
}

.styling-category-nav-item:hover {
  color: #000;
}

.styling-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.styling-category {
  display: none;
  opacity: 1;
  transform: none;
}

.styling-category[data-category="complete"] {
  display: block;
}

.styling-category-title {
  display: none;
}

.styling-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.styling-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  transform: none;
}

.styling-item:hover {
  transform: none;
}

.styling-item-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.styling-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.styling-item:hover .styling-item-image img {
  transform: none;
}

.styling-item-wishlist {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: transparent;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  backdrop-filter: none;
  box-shadow: none;
}

.styling-item-wishlist:hover {
  background: transparent;
  color: #111;
  transform: none;
  opacity: 0.55;
}

.styling-item-wishlist.is-active,
.styling-item-wishlist.is-active ion-icon {
  color: #c62828;
}

.styling-item-wishlist ion-icon {
  font-size: 1.1rem;
}

.styling-item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0;
  text-align: left;
}

.styling-item-name {
  margin: 0;
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.4;
}

.styling-item-price {
  margin: 0;
  font-family: var(--font);
  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #666;
}

.styling-item-add {
  appearance: none;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0;
  background: transparent;
  color: #000;
  border: none;
  border-radius: 0;
  font-family: var(--font);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.styling-item-add:hover {
  background: transparent;
  color: #000;
  opacity: 0.55;
}

@media (min-width: 900px) {
  .styling-drawer {
    width: min(480px, 42vw);
  }
}

@media (max-width: 768px) {
  .styling-drawer {
    width: 100%;
    max-width: none;
    border-left: none;
  }

  .styling-drawer-header {
    padding: 1.15rem 1.15rem 1rem;
  }

  .styling-drawer-content {
    padding: 0 1.15rem 1.75rem;
  }

  .styling-items {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .styling-drawer-header {
    padding: 1rem 1rem 0.9rem;
  }

  .styling-drawer-content {
    padding: 0 1rem 1.5rem;
  }

  .styling-category-nav-item {
    padding: 0.9rem 0.75rem;
  }

  .styling-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .styling-drawer-close {
    min-width: 3rem;
    min-height: 2.75rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: #666;
    --border-medium: #333;
    --text-secondary: #333;
  }
}

.product-view-page[data-product-state="error"] .product-media,
.product-view-page[data-product-state="error"] .product-options,
.product-view-page[data-product-state="error"] .product-selectors,
.product-view-page[data-product-state="error"] .product-actions,
.product-view-page[data-product-state="error"] .product-delivery,
.product-view-page[data-product-state="error"] .product-accordions,
.product-view-page[data-product-state="error"] .pair-suggestion { display: none; }
.product-view-page[data-product-state="error"] .product-container { display: block; min-height: 45vh; }
.product-view-page[data-product-state="error"] .product-panel { max-width: 640px; margin: auto; padding: 64px 24px; }
#productError p { margin: 24px 0; font-size: 15px; line-height: 1.6; }
#productError .btn-link { display: inline-block; margin: 12px 24px 0 0; padding: 12px 0; }
.product-actions button:disabled { opacity: .45; cursor: wait; }

.product-view-page[data-product-state="error"] .product-meta-footer { display: none; }
