.background {
  background: #ff0e1f;
  color: #17161a;
}

body {
  font-family: Rubik, sans-serif;
  font-size: 15px;
  line-height: 26px;
  font-weight: 300;
  color: silver;
  background-color: #17161a;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0d6efd;
  text-decoration: none !important;
}

.clean-nav, a {
  display: block;
  color: #0d6efd;
  text-decoration: none !important;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #f05f3e;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* app/assets/stylesheets/custom.css */
/* app/assets/stylesheets/custom.css */
.flipcard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 510px;
  width: 310px;
}

.flipcard {
  width: 300px;
  height: 500px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out;
  border: 2px solid #fff;
  border-radius: 5px;
}

.flipcard-container:hover .flipcard {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  width: 300px;
  height: 500px;
  backface-visibility: hidden;
}

.front {
  /* Additional styling for the front side if needed */
  z-index: 2;
  transform: rotateY(0); /* Show the front side on page load */
}

/* Counter-rotate the front side when flipped */
.flipped .front {
  transform: rotateY(180deg);
}

/* Counter-rotate the text on the back side */
.back .back-text {
  transform: rotateY(180deg);
  padding-left: 2px;
  padding-right: 2px;
}

/**
 * Main hero slider container.
 * Desktop height is capped at 700px.
 */
.subrosa-hero-slider {
  width: 100%;
  height: 700px;
  max-height: 700px;
  overflow: hidden;
  background: #000;
}

/**
 * Keeps every Bootstrap carousel layer locked to the same height.
 */
.subrosa-hero-slider .carousel,
.subrosa-hero-slider .carousel-inner,
.subrosa-hero-slider .carousel-item {
  height: 700px;
}

/**
 * Makes each slide image fill the carousel without distortion.
 */
.subrosa-slide-image {
  width: 100%;
  height: 700px;
  object-fit: fill;
  object-position: center;
  transform: scale(1);
  animation: subrosaSlowZoom 8s ease-in-out forwards;
}

/**
 * Adds a dark cinematic overlay to improve text readability.
 */
.subrosa-hero-slider .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
          radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 35%),
          linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75));
}

/**
 * Keeps captions above the overlay.
 */
.subrosa-carousel-caption {
  z-index: 2;
  bottom: 3rem;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.95);
}

/**
 * Strong title styling for the hero.
 */
.subrosa-carousel-caption h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/**
 * Subtitle styling.
 */
.subrosa-carousel-caption p {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
}

/**
 * Custom slow zoom effect.
 */
@keyframes subrosaSlowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

/**
 * Mobile slider height.
 */
@media (max-width: 767.98px) {
  .subrosa-hero-slider,
  .subrosa-hero-slider .carousel,
  .subrosa-hero-slider .carousel-inner,
  .subrosa-hero-slider .carousel-item,
  .subrosa-slide-image {
    height: 900px;
    max-height: 900px;
  }

  .subrosa-carousel-caption {
    bottom: 1.5rem;
  }

  .subrosa-carousel-caption h1 {
    font-size: 1.6rem;
  }

  .subrosa-carousel-caption p {
    display: none;
  }
}

/**
 * Product page.
 */

.product-show {
  color: #111;
}

.product-cover {
  max-height: 650px;
  width: auto;
  border-radius: 8px;
}

.product-cover-wrapper {
  background: #111;
  padding: 1rem;
  border-radius: 12px;
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
}

.product-detail-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  height: 100%;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.detail-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.product-bottom-cta {
  background: #111;
  color: #fff;
}
