/* chairs.css - Premium dark/gold enhancements, gloss, flip and lightbox animations */

/* --- Variables --- */
:root {
  --bg: #0b0c0d;
  --muted: #bfc3c6;
  --gold: #c7a152;
  --card-bg: #0f1112;
  --glass: rgba(255, 255, 255, 0.03);
}

/* SECTION */
.chairs-section {
  background: linear-gradient(180deg, #080808 0%, #0d0d0d 100%);
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding-top: 56px;
  padding-bottom: 56px;
}

.chairs-title {
  color: var(--gold);
  font-weight: 700;
  font-size: 2.0rem;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
  text-align: center;
  margin-top: 100px;
}

/* Column container */
.chair-col {
  display: flex;
  align-items: stretch;
}

/* Card base */
.chair-card {
  width: 100%;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: visible;
  perspective: 1200px;
  transition: transform 260ms cubic-bezier(.2, .9, .2, 1), box-shadow 260ms ease;
  cursor: zoom-in;
  min-height: 280px;
}

.chair-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
}

/* inner flipper */
.chair-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(.2, .9, .2, 1);
}

/* faces */
.face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* front/back positions */
.face.front {
  transform: rotateY(0deg);
  z-index: 2;
}

.face.back {
  transform: rotateY(180deg);
}

/* image */
.face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 320ms ease;
}

/* flip state */
.chair-card.show-back .chair-inner {
  transform: rotateY(180deg);
}

/* gold rim on hover (outer glow) */
.chair-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(199, 161, 82, 0);
  transition: box-shadow 300ms ease;
}

.chair-card:hover::after {
  box-shadow: 0 0 24px 6px rgba(199, 161, 82, 0.06);
}

/* glossy swipe highlight */
.face::before {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.0) 100%);
  transform: translateX(-110%) rotate(-18deg);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.chair-card:hover .face::before {
  transform: translateX(110%) rotate(-18deg);
}

/* zoom icon */
.zoom-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
  z-index: 6;
  transition: transform 180ms ease;
}

.chair-card:hover .zoom-icon {
  transform: scale(1.06);
}

/* --- LIGHTBOX --- */
.chair-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50000;
}

.chair-lightbox.show {
  display: flex;
}
/* Smooth zoom animation clone visuals */
img.zoom-clone {
    pointer-events: none;
    border-radius: 10px;
}

/* backdrop */
.cl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.chair-lightbox.show .cl-backdrop {
  opacity: 1;
}

/* body */
.cl-body {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* slide modal (standard size) */
.cl-slide {
  width: 72%;
  max-width: 920px;
  aspect-ratio: 4/3;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(14px) scale(.96);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.2, .9, .2, 1), opacity 320ms ease;
  box-shadow: 0 40px 90px rgba(6, 6, 6, 0.6);
  pointer-events: auto;
  position: relative;
}

.chair-lightbox.show .cl-slide {
  transform: none;
  opacity: 1;
}

/* image layers (crossfade) */
.cl-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 420ms ease;
  background: #fff;
  padding: 12px;
  box-sizing: border-box;
}

.cl-image.visible {
  opacity: 1;
}

/* arrows outside */
.cl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: #222;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  z-index: 51000;
  pointer-events: auto;
}

.cl-prev {
  left: calc((100% - 72%)/2 - 46px);
}

.cl-next {
  right: calc((100% - 72%)/2 - 46px);
}

/* close & counter */
.cl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 52000;
  font-size: 34px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.cl-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #fff;
  font-weight: 700;
  z-index: 52000;
  pointer-events: auto;
}

/* responsiveness */
@media (max-width: 1024px) {
  .cl-slide {
    width: 82%;
    aspect-ratio: 3/4;
  }

  .cl-prev {
    left: 12px;
  }

  .cl-next {
    right: 12px;
  }
}

@media (max-width: 600px) {
  .cl-slide {
    width: 92%;
    aspect-ratio: 4/5;
  }

  .chair-card {
    min-height: 220px;
  }

  .zoom-icon {
    width: 36px;
    height: 36px;
  }
  .cl-close {
  position: absolute;
  top: 0;
  right: 15px;
  z-index: 52000;
  font-size: 34px;
  color: #000000;
  border: none;
  cursor: pointer;
  font-weight: 900;
  background: transparent;
  pointer-events: auto;
  border-radius: 5px;
  padding: 5px;
}
}

/* Make image fill card edge-to-edge without white gaps */
.chair-card {
  padding: 0;
  overflow: hidden;
}

.chair-inner,
.face {
  border-radius: 0; /* Match card edges exactly */
}

.face-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps full image visible */
  background: #111; /* Remove white look */
  padding: 5px;
  display: block;
}

/* Mobile fix for white space left-right */
@media (max-width: 600px) {
  .chairs-section .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .row.g-3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .col-12,
  .chair-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .chair-card {
    border-radius: 0; /* Flush edge-to-edge on mobile */
    min-height: 260px;
  }
}
.chair-lightbox.show .cl-slide {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
