body,
html {
  min-height: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: #fff;
  max-width: 100vw;
  overflow-x: hidden;
}

a,
a:hover,
a:focus {
  text-decoration: none;
  outline: none
}

img,
svg,
iframe {
  max-width: 100%;
  height: auto
}

button,
input,
textarea,
select {
  outline: none
}

.perfect-scrollbar {
  position: relative;
  overflow: hidden;
}

#main {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

#slider {
  height: 100%;
}

#text {
  position: absolute;
  padding: 40px 0 0 40px;
  color: #a7a7a7;
  z-index: 20;
  pointer-events: none;
}

#text .logo,
#text a {
  pointer-events: auto;
}

#text h1 {
  margin-bottom: 0;
  font-size: 50px;
  line-height: 1;
  font-weight: 100;
  text-transform: uppercase;
  width:400px;
}

#text h1 span {
  display: block;
}

#text .logo {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 34px;
  color: #d5d5d5;
  text-transform: uppercase;
  font-weight:800;
}

@media(max-width: 767.98px) {
  #text {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 10vh;
    padding: 0 20px;
    background-color: #000;
    z-index: 20;
  }

  #text .logo {
    margin-bottom: 0;
    font-size: 20px;
    flex-shrink: 0;
  }

  #text h1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: calc(100% - 80px);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: right;
  }

  #text h1 .designer-name {
    flex-shrink: 0;
    white-space: nowrap;
  }

  #text h1 .separator {
    width: 2px;
    height: 24px;
    background-color: #fff;
    flex-shrink: 0;
  }

  #text h1 .collection-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  #text h1 .season-year {
    font-size: 11px;
    font-weight: 500;
  }

  #text h1 .show-type {
    font-size: 9px;
    font-weight: 300;
    opacity: 0.8;
  }
}

#slider {
  width: 100%;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#slider.loaded {
  opacity: 1;
}

#slider.transitioning {
  pointer-events: none;
}

/* Smooth momentum scrolling feel */
#slider .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-loader {
  display: none;
}

/* Slider controls container inside #filter */
.slider-controls {
  display: none;
}

/* Desktop slider controls */
@media(min-width: 768px) {
  .slider-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    flex: 0 0 auto;
  }

  .slider-controls .swiper-count {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
    padding-right: 10px;
  }

  .slider-controls .swiper-button-arrow {
    position: static;
    top: auto;
    bottom: auto;
    width: 30px;
    height: 16px;
    margin: 0;
    border: 0;
    background: transparent url(../svg/arrow-slider-ffffff.svg) no-repeat center/contain;
    cursor: pointer;
    flex-shrink: 0;
    transition: margin 0.25s;
  }

  .slider-controls .swiper-button-arrow:before,
  .slider-controls .swiper-button-arrow:after {
    display: none;
  }

  .slider-controls .swiper-button-prev {
    transform: rotate(180deg);
  }

  .slider-controls .swiper-button-prev:hover {
    margin-right: 5px;
  }

  .slider-controls .swiper-button-next:hover {
    margin-left: 5px;
  }

  /* Season navigation wrapper - stacks arrows vertically */
  .slider-controls .season-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .slider-controls .season-nav-arrow {
    position: static;
    width: 24px;
    height: 24px;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.25s;
    flex-shrink: 0;
  }

  .slider-controls .season-nav-arrow svg {
    width: 100%;
    height: 100%;
    fill: #fff;
  }

  .slider-controls .season-nav-arrow.active {
    opacity: 1;
  }

  .slider-controls .season-nav-arrow.active:hover {
    opacity: 0.7;
  }

  .slider-controls .season-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

/* Hide mobile and desktop controls by default */
.mobile-slider-controls,
.desktop-slider-controls {
  display: none;
}

/* Desktop: Center slider controls in bottom black bar */
@media(min-width: 768px) {
  #slider {
    overflow: visible;
  }
}

#slider .swiper-slide {
  display: none;
  width: 33.33vw;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.25s;
}

#slider .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.swiper-lazy-preloader {
  width: 42px;
  height: 42px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -21px;
  margin-top: -21px;
  z-index: 10;
  transform-origin: 50%;
  animation: swiper-preloader-spin 1s infinite linear;
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
}

@keyframes swiper-preloader-spin {
  100% {
    transform: rotate(360deg);
  }
}

#slider .swiper-slide.swiper-slide-active {
  opacity: 1;
  pointer-events: auto;
}

#slider.swiper-initialized .swiper-slide {
  display: block;
}

@media(max-width: 767.98px) {
  #slider {
    height: 75vh;
    z-index: 10;
  }

  /* Enable touch/swipe on all slides for mobile */
  #slider .swiper-slide {
    pointer-events: auto;
  }

  /* Hide desktop slider controls on mobile */
  .slider-controls {
    display: none !important;
  }

  /* Mobile-specific controls */
  .mobile-slider-controls {
    position: fixed;
    bottom: calc(6vh - 40px);
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
  }

  .mobile-center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .mobile-swiper-count {
    font-size: 10px;
    font-weight: 400;
    color: #fff;
    opacity: 0.5;
  }

  .mobile-swiper-button-arrow {
    width: 20px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
    background-image: url(../svg/arrow-slider-ffffff.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    cursor: pointer;
    display: block;
  }

  .mobile-swiper-button-prev {
    transform: rotate(180deg);
  }


  .mobile-season-nav-arrow {
    width: 20px;
    height: 20px;
    border: 0;
    margin: 0;
    padding: 0;
    opacity: 0.5;
    cursor: pointer;
    background-color: transparent;
    transition: opacity 0.25s;
  }

  .mobile-season-nav-arrow svg {
    width: 100%;
    height: 100%;
    fill: #fff;
  }

  .mobile-season-nav-arrow.active {
    opacity: 1;
  }

  .mobile-season-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

@media (max-width: 575.98px) {
  #slider .swiper-slide {
    width: 90%;
  }
}

#filter {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(0, 0, 0, .7);
  padding: 0 40px;
  z-index: 50;
  pointer-events: auto;
}

@media(max-width: 767.98px) {
  #filter {
    background-color: #000;
    padding: 0 10px;
    height: 7.5vh;
    z-index: 50;
  }

  /* Account menu - show icon only on mobile */
  .account-nav-item > a {
    width: 30px;
    height: 7.5vh;
    display: block !important;
    padding-right: 0 !important;
    position: relative;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden;
  }

  .account-nav-item > a:after {
    display: none !important;
  }

  .account-nav-item > a:before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

#filter .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center
}

#filter .nav>li {
  position: relative;
  margin-right: 40px
}

#filter .nav>li>a {
  display: inline-block;
  position: relative;
  padding-right: 20px;
  font-size: 18px;
  line-height: 60px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap
}

#filter .nav>li>a:after {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 5px solid rgba(0, 0, 0, 0);
  border-right: 5px solid rgba(0, 0, 0, 0);
  border-bottom: 10px solid #fff
}

/* Black overlay backdrop when menu is open */
#filter .nav > li.active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 98;
  animation: fadeIn 0.25s ease;
}

/* Hide navigation arrows when menu is open */
#filter .nav > li.active ~ .slider-controls,
#filter .nav > li.active ~ #photo-credit {
  opacity: 0;
  pointer-events: none;
}

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

#filter .nav > li.active > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#filter .nav .sub-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 99;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Close button */
#filter .nav .sub-menu-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.7;
}

#filter .nav .sub-menu-close:hover {
  opacity: 1;
}

/* Search box at top */
#filter .nav .sub-menu .keyword {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #000;
  padding: 30px 30px 20px 30px;
  border-bottom: 1px solid #333;
  max-width: 600px;
  margin: 0 auto;
}

#filter .nav .sub-menu .keyword input {
  display: block;
  width: 100%;
  height: 60px;
  border: 2px solid #fff;
  background-color: #000;
  color: #fff;
  padding: 0 20px;
  font-size: 18px;
  border-radius: 8px;
  transition: border-color 0.2s;
}

#filter .nav .sub-menu .keyword input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#filter .nav .sub-menu .keyword input::placeholder {
  color: #999;
}

/* Scrollable content area */
#filter .nav .sub-menu .perfect-scrollbar {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 30px 30px 30px;
  position: relative;
  max-height: 100%;
}

/* Alphabet group headers - sticky */
#filter .nav .sub-menu h4 {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #000;
  padding: 20px 0 15px 0;
  margin: 0 0 15px 0;
  border-bottom: 2px solid #fff;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#filter .nav .sub-menu ul {
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}

#filter .nav .sub-menu ul>li {
  margin-bottom: 0;
  border-bottom: 1px solid #222;
}

#filter .nav .sub-menu ul>li>a {
  display: block;
  color: #fff;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 400;
  transition: all 0.2s;
  min-height: 56px;
  display: flex;
  align-items: center;
}

#filter .nav .sub-menu ul>li>a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: 10px;
}

#filter .nav .sub-menu ul>li>a.active {
  font-weight: 700;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

#filter .nav .sub-menu ul>li>label {
  display: block;
  position: relative;
  cursor: pointer;
  padding: 18px 0;
  min-height: 56px;
  font-size: 20px;
}

#filter .nav .sub-menu ul>li>label input {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}

#filter .nav .sub-menu ul>li>label input:checked+span {
  font-weight: 700;
}

#filter .nav .sub-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Seasons Menu - Compressed for 30+ years */
#filter .nav > li:nth-child(2) .sub-menu .perfect-scrollbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  padding: 20px 30px;
}

#filter .nav > li:nth-child(2) .sub-menu .group {
  flex: 0 0 auto;
  min-width: 120px;
}

#filter .nav > li:nth-child(2) .sub-menu h4 {
  position: static;
  font-size: 14px;
  padding: 8px 0 4px 0;
  margin: 0 0 4px 0;
  border-bottom: 1px solid #fff;
}

#filter .nav > li:nth-child(2) .sub-menu ul {
  margin: 0 0 12px 0;
}

#filter .nav > li:nth-child(2) .sub-menu ul > li {
  border-bottom: none;
}

#filter .nav > li:nth-child(2) .sub-menu ul > li > a {
  padding: 4px 0;
  font-size: 13px;
  min-height: auto;
}

/* Mobile Seasons Slide-Over Navigation */
.seasons-mobile {
  display: none;
}

.seasons-desktop {
  display: block;
  height: 100%;
}

@media (max-width: 767.98px) {
  .seasons-desktop {
    display: none;
  }

  .seasons-mobile {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .seasons-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .seasons-panel.active {
    transform: translateX(0);
  }

  .seasons-years-panel {
    transform: translateX(0);
  }

  .seasons-years-panel.slide-out {
    transform: translateX(-100%);
  }

  .seasons-items-panel.active {
    transform: translateX(0);
  }

  .seasons-panel-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
  }

  .seasons-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
  }

  .seasons-back-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 10px;
    cursor: pointer;
  }

  .seasons-back-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
  }

  .seasons-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
  }

  .years-list,
  .seasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .seasons-list {
    display: none;
  }

  .seasons-list.active {
    display: block;
  }

  .year-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid #222;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
  }

  .year-btn:hover,
  .year-btn:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .year-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    opacity: 0.5;
  }

  .seasons-list li a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
  }

  .seasons-list li a:hover,
  .seasons-list li a:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .seasons-list li a.active {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
  }

  /* Mobile close button - smaller, no circle */
  #filter .nav .sub-menu-close {
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 0;
    font-size: 24px;
    background: none;
  }

  #filter .nav .sub-menu-close:hover {
    background: none;
    transform: none;
  }
}

#filter #photo-credit {
  font-size: 12px;
  color:#b1b1b1;
  
}

@media(max-width: 767.98px) {
  #filter {
    padding-left: 20px;
    padding-right: 20px;
  }

  #filter .nav {
    flex: 1;
  }

  #filter .nav>li {
    position: static;
    margin-right: 15px;
  }

  #filter .nav>li:last-child {
    margin-right: 0;
  }

  #filter .nav>li>a {
    font-size: 14px;
    line-height: 7.5vh;
    padding-right: 15px;
  }

  #filter .nav>li>a:after {
    top: calc(3.75vh - 4px);
    border-left: 4px solid rgba(0, 0, 0, 0);
    border-right: 4px solid rgba(0, 0, 0, 0);
    border-bottom: 8px solid #fff;
  }

  #filter .nav .sub-menu {
    left: 20px;
    right: 20px;
    width: auto;
    max-width: none;
    padding: 30px 20px 20px;
  }

  #filter #photo-credit {
    display: none;
  }
}

/* Account Submenu - Simplified */
.sub-menu-account {
  max-height: 300px !important;
  height: auto !important;
  padding: 20px 30px !important;
}

.sub-menu-account ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-menu-account ul > li {
  margin-bottom: 15px;
}

.sub-menu-account ul > li:last-child {
  margin-bottom: 0;
}

.sub-menu-account ul > li > a {
  display: flex;
  align-items: center;
  color: inherit;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sub-menu-account ul > li > a:hover {
  border-bottom-color: #000;
}

.sub-menu-account .favorites-count {
  margin-left: 10px;
}

@media(max-width: 767.98px) {
  .sub-menu-account {
    padding: 20px 20px !important;
  }

  .sub-menu-account ul > li > a {
    font-size: 15px;
  }
}
/* Hint close button (shared) */
.hint-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 12px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.hint-close:hover {
  color: #000;
}

/* Keyboard Navigation Hint */
.keyboard-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.keyboard-hint.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Randomize Hint */
.randomize-hint {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.randomize-hint.visible {
  opacity: 1;
  pointer-events: auto;
  text-transform: none;
}

@media(max-width: 767.98px) {
  /* Reposition randomize hint on mobile — below logo instead of above */
  .randomize-hint {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
  }
}

#slider.swiper {
  cursor: grab;
}

#slider.swiper:active {
  cursor: grabbing;
}

@media (max-width: 768px) {
  html, body {
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  #main {
    touch-action: pan-x;
  }

  #slider .swiper-wrapper {
    will-change: transform;
  }

  .keyboard-hint {
    display: none;
  }
}

/* Shop Similar Button - Minimal Icon */
.shop-similar-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 15;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-similar-btn svg {
  width: 20px;
  height: 20px;
  fill: #000;
}

.swiper-slide:hover .shop-similar-btn,
.swiper-slide.swiper-slide-active .shop-similar-btn {
  opacity: 1;
  transform: translateY(0);
}

.shop-similar-btn:hover {
  background: #000;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-similar-btn:hover svg {
  fill: #fff;
}

/* Favorite Button - Heart Icon */
.favorite-btn {
  position: absolute;
  bottom: 16px;
  right: 72px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 15;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #000;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.favorite-btn.favorited svg {
  fill: #000;
  stroke: #000;
}

.favorite-btn:hover {
  background: #000;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.favorite-btn:hover svg {
  stroke: #fff;
}

/* Mobile adjustments for buttons - bottom right of image */
@media(max-width: 767.98px) {
  .shop-similar-btn {
    width: 44px;
    height: 44px;
    bottom: 76px;
    right: 16px;
    opacity: 1;
    transform: translateY(0);
  }

  .shop-similar-btn svg {
    width: 20px;
    height: 20px;
  }

  .favorite-btn {
    width: 44px;
    height: 44px;
    bottom: 76px;
    right: 72px;
    opacity: 1;
    transform: translateY(0);
  }

  .favorite-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Always show on mobile */
  .swiper-slide.swiper-slide-active .shop-similar-btn,
  .swiper-slide.swiper-slide-active .favorite-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop: Move buttons up 60px to avoid filter bar */
@media(min-width: 768px) {
  .shop-similar-btn {
    bottom: 76px;
  }

  .favorite-btn {
    bottom: 76px;
  }
}

.favorite-btn.favorited:hover svg {
  fill: #fff;
  stroke: #fff;
}

.swiper-slide:hover .favorite-btn,
.swiper-slide.swiper-slide-active .favorite-btn {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 575.98px) {
  .shop-similar-btn {
    width: 40px;
    height: 40px;
    bottom: 76px;
    right: 12px;
  }

  .shop-similar-btn svg {
    width: 18px;
    height: 18px;
  }

  .favorite-btn {
    width: 40px;
    height: 40px;
    bottom: 76px;
    right: 64px;
  }

  .favorite-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Shop Similar Modal */
.shop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.shop-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-modal.visible {
  opacity: 1;
}

.shop-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.shop-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.shop-modal.visible .shop-modal-content {
  transform: translateY(0) scale(1);
}

.shop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #000;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.shop-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.shop-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #f5f5f5;
  padding: 20px;
}

/* Loading State */
.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.products-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.products-error {
  padding: 40px 20px;
  text-align: center;
  color: #d32f2f;
}

.products-error p {
  margin: 0;
  font-size: 16px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-thumbnail {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-no-image {
  color: #999;
  font-size: 14px;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.product-source {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Styles */
@media (max-width: 767.98px) {
  .shop-modal-content {
    width: 100%;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    transform: translateY(100%);
  }

  .shop-modal.visible .shop-modal-content {
    transform: translateY(0);
  }

  .shop-modal-header {
    padding: 16px 20px;
  }

  .shop-modal-header h3 {
    font-size: 18px;
  }

  .shop-modal-close {
    font-size: 32px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 575.98px) {
  .shop-modal-header {
    padding: 12px 16px;
  }

  .shop-modal-header h3 {
    font-size: 16px;
  }
}

/* Favorites Navigation */
.favorites-nav-item a {
  position: relative;
}

.favorites-count {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  vertical-align: middle;
}

/* Favorites Page */
.favorites-page {
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Separator visibility handled by JS based on slide data */

/* Account Page */
.account-page {
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.account-page #text h1 .separator {
  display: none;
}

.account-content {
  padding: 180px 40px 40px 440px;
  max-width: 600px;
}

.account-card {
  background: #111;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
}

.account-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-form .form-group {
  margin-bottom: 20px;
}

.account-form label {
  display: block;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.account-form input {
  width: 100%;
  padding: 12px 15px;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
}

.account-form input:focus {
  outline: none;
  border-color: #fff;
}

.account-form .form-value {
  color: #888;
  font-size: 16px;
}

.account-submit {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.account-submit:hover {
  background: #ddd;
}

.account-message {
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.account-message.success {
  background: rgba(0, 200, 100, 0.2);
  color: #0c6;
}

.account-message.error {
  background: rgba(255, 50, 50, 0.2);
  color: #f55;
}

.account-stat {
  font-size: 24px;
  color: #fff;
  margin: 0 0 15px 0;
}

.account-link {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.account-link:hover {
  color: #fff;
}

.account-actions {
  margin-top: 40px;
}

.account-logout {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-logout:hover {
  color: #f55;
}

@media (max-width: 767.98px) {
  .account-content {
    padding: 100px 20px 20px 20px;
    max-width: 100%;
  }

  .account-card {
    padding: 20px;
  }
}

.favorites-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #a7a7a7;
  width: 90%;
  max-width: 500px;
}

.favorites-empty p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.favorites-empty a {
  color: #d5d5d5;
  text-decoration: underline;
}

.favorites-empty a:hover {
  color: #fff;
}

.favorites-actions {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.export-favorites-btn,
.clear-favorites-btn {
  padding: 10px 20px;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.export-favorites-btn:hover {
  background: #000;
  color: #fff;
}

.clear-favorites-btn {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.clear-favorites-btn:hover {
  background: #fff;
  color: #000;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  align-content: start;
  padding: 180px 40px 40px 440px;
  min-height: 100vh;
}

.favorite-item {
  position: relative;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.favorite-item:hover {
  transform: scale(1.05);
}

.favorite-image {
  position: relative;
  width: 100%;
  background: #000;
}

.favorite-image img {
  display: block;
  width: 100%;
  height: auto;
}

.favorite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.favorite-item:hover .favorite-overlay {
  opacity: 1;
}

.grid-lightbox-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.grid-lightbox-btn svg {
  width: 20px;
  height: 20px;
  fill: #000;
}

.grid-lightbox-btn:hover {
  transform: scale(1.1);
}

/* Favorites Lightbox */
.favorites-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 40px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-image-container {
  max-width: 90%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-info {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.lightbox-caption {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.lightbox-collection a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.lightbox-collection a:hover {
  text-decoration: underline;
}

.lightbox-favorite-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.lightbox-favorite-btn:hover {
  opacity: 0.7;
}

.lightbox-favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: #888;
}

.favorite-caption {
  display: none;
}

.favorite-collection {
  display: none;
}

@media (max-width: 767.98px) {
  .favorites-actions {
    top: 10px;
    right: 20px;
    gap: 8px;
  }

  .export-favorites-btn,
  .clear-favorites-btn {
    padding: 8px 15px;
    font-size: 12px;
  }

  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 80px 20px 20px 20px;
  }

  .favorites-empty p {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 70px 15px 15px 15px;
  }

  .remove-favorite-btn,
  .shop-similar-btn-grid {
    width: 36px;
    height: 36px;
  }

  .remove-favorite-btn svg,
  .shop-similar-btn-grid svg {
    width: 16px;
    height: 16px;
  }
}

/* Shop Look Button */
.shop-look-btn {
  position: absolute;
  bottom: 70px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.shop-look-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.shop-look-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.shop-look-btn.active {
  background: #fff;
  border-color: #fff;
}

.shop-look-btn.active svg {
  fill: #000;
}

.shop-look-btn.loading {
  cursor: default;
  opacity: 0.5;
}

.shop-look-btn.loading svg {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Grid View Shop Button */
.grid-shop-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.grid-shop-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.grid-shop-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Grid View Favorite Button */
.grid-favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.grid-favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: #e74c3c;
}

.grid-favorite-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Shop Look Drawer */
.shop-look-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.drawer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70vh;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-header h3 {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drawer-close {
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

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

.drawer-pieces-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-piece-tab {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-piece-tab:hover,
.drawer-piece-tab.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.drawer-products {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
  color: #888;
  font-size: 14px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.drawer-products-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Outfit Section (stacked layout) */
.outfit-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.outfit-section:last-child {
  border-bottom: none;
}

.outfit-section-header {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.outfit-section-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.outfit-section-carousel::-webkit-scrollbar {
  height: 4px;
}

.outfit-section-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.outfit-section-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.outfit-section-loading {
  color: #666;
  font-size: 12px;
  padding: 20px 0;
}

.no-products {
  color: #555;
  font-size: 12px;
  font-style: italic;
}

.products-panel-content {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.product-card {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: #fff;
}

.product-card img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.product-card .product-brand {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-name {
  font-size: 11px;
  line-height: 1.3;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  font-size: 12px;
  color: #ccc;
}

.product-card.is-designer {
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 5px;
}

.product-card.is-designer .product-brand {
  color: #ffd700;
}

/* Lightbox Pieces Panel */
.lightbox-pieces {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
}

.lightbox-pieces h4 {
  font-size: 14px;
  font-weight: 400;
  color: #888;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-pieces-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-bottom: 15px;
}

.lightbox-pieces-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.lightbox-pieces-chips .piece-chip {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-pieces-products {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.lightbox-pieces-products::-webkit-scrollbar {
  height: 4px;
}

.lightbox-pieces-products::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.lightbox-pieces-products::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

@media (max-width: 767.98px) {
  .shop-look-btn {
    bottom: 90px;
    left: 15px;
    width: 40px;
    height: 40px;
  }

  .shop-look-btn svg {
    width: 20px;
    height: 20px;
  }

  .drawer-content {
    max-height: 80vh;
  }

  .drawer-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }

  .product-card {
    width: 100%;
  }

  .product-card img {
    width: 100%;
    height: 120px;
  }

  .lightbox-pieces-products {
    gap: 10px;
  }
}

/* Custom Authentication Modal */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal.visible {
  opacity: 1;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: #fff;
  color: #000;
  padding: 50px 40px 40px;
  border-radius: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.auth-modal.visible .auth-modal-content {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.auth-modal-close:hover {
  opacity: 0.5;
}

.auth-form-container h2 {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  background: #fff;
  border: 2px solid #000;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
}

.auth-form-group input:focus {
  border-color: #666;
  outline: none;
}

.auth-form-checkbox {
  margin-bottom: 25px;
}

.auth-form-checkbox label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.auth-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.auth-form-message {
  margin-bottom: 20px;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
  border-radius: 4px;
}

.auth-form-message.error {
  display: block;
  background: #ffe6e6;
  color: #d00;
  border: 1px solid #d00;
}

.auth-form-message.success {
  display: block;
  background: #e6ffe6;
  color: #070;
  border: 1px solid #070;
}

.auth-form-submit {
  width: 100%;
  height: 50px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.auth-form-submit:hover {
  background: #fff;
  color: #000;
}

.auth-form-submit:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.auth-form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.auth-form-links a {
  color: #000;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.auth-form-links a:hover {
  border-bottom-color: #000;
}

@media (max-width: 575.98px) {
  .auth-modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 40px 30px 30px;
    border-radius: 0;
  }

  .auth-form-container h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .auth-form-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Designer Search AJAX States */
.designer-search-results {
  min-height: 50px;
}

.designer-search-prompt,
.designer-search-loading,
.designer-search-empty {
  padding: 30px 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.designer-search-loading {
  color: #000;
}

.designer-search-empty {
  color: #999;
}

.designer-search-results .group {
  margin-bottom: 0;
}

.designer-search-results .group h4 {
  display: none;
}

/* ===================================
   Favorites Dual View System
   =================================== */

/* View Toggle Buttons */
.favorites-view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
}

.view-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: #666;
  transition: fill 0.2s;
}

.view-toggle-btn:hover svg {
  fill: #fff;
}

.view-toggle-btn.active {
  background: #fff !important;
}

.view-toggle-btn.active svg {
  fill: #000 !important;
}

/* Update favorites-actions to flexbox layout */
.favorites-actions {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Grid View Container */
.favorites-grid-view {
  display: none;
}

.favorites-grid-view.active {
  display: block;
}

/* Keep existing grid styles, but ensure items show properly */
.favorites-grid .favorite-item {
  display: block;
}

/* Grid Pagination */
.favorites-pagination {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pagination-prev,
.pagination-next {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 50%;
  font-size: 18px;
  color: #000;
}

.pagination-prev:hover:not(:disabled),
.pagination-next:hover:not(:disabled) {
  background: #f0f0f0;
}

.pagination-prev:disabled,
.pagination-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  min-width: 60px;
  text-align: center;
}

/* Swiper View Container */
.favorites-swiper-view {
  display: none;
  height: 100%;
}

.favorites-swiper-view.active {
  display: block;
}

/* Favorites Slider (matching main slider) */
#favorites-slider {
  height: 100%;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

@media(min-width: 768px) {
  #favorites-slider {
    overflow: visible;
  }
}

#favorites-slider .swiper-slide {
  display: none;
  width: 33.33vw;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.25s;
}

#favorites-slider .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#favorites-slider .swiper-slide.swiper-slide-active {
  opacity: 1;
  pointer-events: auto;
}

#favorites-slider.swiper-initialized .swiper-slide,
#favorites-slider.loaded .swiper-slide {
  display: block;
}

/* Favorite button in swiper view - subtle styling */
#favorites-slider .favorite-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
}

#favorites-slider .swiper-slide-active .favorite-btn {
  opacity: 0.4;
}

#favorites-slider .swiper-slide-active .favorite-btn:hover {
  opacity: 0.7;
}

#favorites-slider .favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: #888;
}

#favorites-slider .favorite-btn.favorited svg {
  fill: #888;
}

/* Collection link on swiper slide */
#favorites-slider .slide-collection-link {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

#favorites-slider .swiper-slide-active .slide-collection-link {
  opacity: 1;
  transform: translateY(0);
}

#favorites-slider .slide-collection-link a {
  color: #a7a7a7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

#favorites-slider .slide-collection-link a:hover {
  color: #fff;
}

/* Favorites Slider Controls (Desktop) */
.favorites-slider-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
}

.favorites-slider-controls .swiper-count {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.favorites-slider-controls .swiper-button-arrow {
  position: static;
  top: auto;
  bottom: auto;
  width: 30px;
  height: 16px;
  margin: 0;
  border: 0;
  background: transparent url(../svg/arrow-slider-ffffff.svg) no-repeat center/contain;
  cursor: pointer;
  flex-shrink: 0;
  transition: margin 0.25s;
}

.favorites-slider-controls .swiper-button-arrow:before,
.favorites-slider-controls .swiper-button-arrow:after {
  display: none;
}

.favorites-slider-controls .swiper-button-prev {
  transform: rotate(180deg);
}

.favorites-slider-controls .swiper-button-prev:hover {
  margin-right: 5px;
}

.favorites-slider-controls .swiper-button-next:hover {
  margin-left: 5px;
}

/* Favorites Photo Credit */
#favorites-photo-credit {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 55;
  color: #a7a7a7;
  font-size: 12px;
  max-width: 400px;
}

/* Mobile Controls (Hidden on Desktop) */
.favorites-mobile-controls {
  display: none;
}

/* Mobile Styles */
@media(max-width: 767.98px) {
  .favorites-actions {
    display: none;
  }

  /* Grid View Mobile */
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 140px 20px 100px;
  }

  .favorites-pagination {
    bottom: 20px;
    padding: 10px 20px;
    gap: 15px;
  }

  /* Swiper View Mobile — cssMode uses native scroll, no transforms */
  #favorites-slider {
    height: 75vh;
    z-index: 10;
  }

  #favorites-slider .swiper-slide {
    width: 90%;
    pointer-events: auto;
    opacity: 1;
    transition: none;
  }

  .favorites-slider-controls {
    display: none !important;
  }

  .favorites-mobile-controls {
    position: fixed;
    bottom: calc(6vh - 40px);
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
  }

  .mobile-swiper-count {
    font-size: 10px;
    color: #fff;
    opacity: 0.5;
  }

  .mobile-swiper-button-arrow {
    position: static;
    top: auto;
    bottom: auto;
    width: 30px;
    height: 16px;
    margin: 0;
    border: 0;
    background: transparent url(../svg/arrow-slider-ffffff.svg) no-repeat center/contain;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-swiper-button-arrow:before,
  .mobile-swiper-button-arrow:after {
    display: none;
  }

  .favorites-mobile-controls .mobile-swiper-button-prev {
    transform: rotate(180deg);
  }

  /* Hide photo credit on mobile (matches collection page) */
  #favorites-photo-credit {
    display: none;
  }

  /* Hide collection link overlay on mobile (header shows this info now) */
  #favorites-slider .slide-collection-link {
    display: none;
  }

  .favorites-page.swiper-active {
    overflow: hidden;
  }
}
