/* ================================================================
   slider-1-flip.css
   Card Flip Slider — hover rotates card to reveal product details
   ================================================================ */


/* ── FLIP SCENE ──────────────────────────────────────────────── */

.flip-scene {
  perspective: 1000px;
  height: 300px;
}

.flip-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s;
  cursor: pointer;
  position: relative;
}

.flip-scene:hover .flip-card { transform: rotateY(180deg); }


/* ── SHARED FACE STYLES ──────────────────────────────────────── */

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r);
  overflow: hidden;
}


/* ── FRONT FACE ──────────────────────────────────────────────── */

.flip-front {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.flip-front .fi-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #f9f7f3, #ede9e0);
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.flip-front .fi-img img {
  height: 110px;
  object-fit: contain;
}

.flip-front .fi-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.flip-front .fi-price {
  font-size: 15px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--ink);
}


/* ── BACK FACE ───────────────────────────────────────────────── */

.flip-back {
  background: var(--teal);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
}

.flip-back .fb-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 12px;
}

.flip-back .fb-spec {
  font-size: 12px;
  line-height: 2;
  opacity: .85;
}

.flip-back .fb-spec span { display: block; }

.flip-back .fb-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}

.flip-back .fb-btn:hover { background: var(--primary-d); }
