/* ==========================================================================
   ROAS CLUB — Cinematic Shared-Element Morph & Product Experience Engine
   ========================================================================== */

/* Top Neon Progress Loader */
#roas-top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #9333ea, #a855f7, #c084fc, #ffffff);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.95), 0 0 4px #ffffff;
  z-index: 99999999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.2s ease;
}
#roas-top-loader.active {
  opacity: 1;
}

/* Floating Morph Element (The Flying T-Shirt) */
.roas-morph-element {
  position: fixed;
  object-fit: contain !important;
  background-color: transparent !important;
  z-index: 9999999 !important;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
  box-sizing: border-box;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.55));
  transition: top 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.44s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

/* Grid Card State on Click */
.roas-card-selected {
  position: relative !important;
  z-index: 40 !important;
}
.roas-card-selected [data-vt-thumbnail-shell="true"],
.roas-card-selected img {
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.7)) !important;
}

/* Dim remaining cards while flying */
.roas-card-dimmed {
  opacity: 0.3 !important;
  filter: blur(2px) !important;
  transition: opacity 0.3s ease, filter 0.3s ease !important;
}

/* Side Reveals Animation */
@keyframes roasRevealLeft {
  0% {
    opacity: 0;
    transform: translateX(-35px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes roasRevealRight {
  0% {
    opacity: 0;
    transform: translateX(35px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes roasRevealFade {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.roas-reveal-left {
  animation: roasRevealLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both !important;
}
.roas-reveal-right {
  animation: roasRevealRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both !important;
}
.roas-reveal-fade {
  animation: roasRevealFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both !important;
}

/* ==========================================================================
   Product Detail Container & 3-Column Luxury Layout
   ========================================================================== */

.roas-product-container {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.roas-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a1a1aa;
  text-decoration: none;
  margin-bottom: 2rem;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
}
.roas-back-link:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* 3-Column Grid */
.roas-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 990px) {
  .roas-product-grid {
    grid-template-columns: 320px 1fr 360px;
    gap: 3rem;
  }
}

/* Left Column: Specifications Accordion */
.roas-spec-accordion {
  background: rgba(14, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 0, 0, 0.5);
}
.roas-acc-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}
.roas-acc-item:last-child {
  border-bottom: none;
}
.roas-acc-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: #e4e4e7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.4rem 0;
  text-align: left;
  transition: color 0.2s ease;
}
.roas-acc-btn:hover {
  color: #ffffff;
}
.roas-acc-body {
  display: none;
  padding-top: 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.7;
}
.roas-acc-body.open {
  display: block;
}

/* Center Column: Clean High-Resolution Shirt Showcase */
.roas-showcase-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 16px;
}
.roas-showcase-img {
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.92));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  will-change: transform;
}
.roas-showcase-img:hover {
  transform: scale(1.04);
}
.roas-view-entering .roas-showcase-img {
  transform: none !important;
  transition: none !important;
}

/* Right Column: Info & Action Panel */
.roas-action-panel {
  background: rgba(14, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 12px;
  padding: 1.85rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 0, 0, 0.5);
}
.roas-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.85rem;
}
.roas-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.roas-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.roas-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #a1a1aa;
  margin-bottom: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}
.roas-size-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4d4d8;
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
}
.roas-size-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.roas-size-btn {
  flex: 1;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.roas-size-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
.roas-size-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}
.roas-acquire-btn {
  width: 100%;
  padding: 1.15rem;
  background: #ffffff;
  color: #000000;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.roas-acquire-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.roas-acquire-btn:hover {
  background: #25D366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}
.roas-acquire-btn:hover svg {
  transform: scale(1.1);
}

/* Related Products Section */
.roas-related-section {
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3.5rem;
  text-align: center;
}
.roas-rel-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .roas-rel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.roas-rel-card {
  background: rgba(14, 14, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}
.roas-rel-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
}
.roas-rel-img-shell {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 70%);
}
.roas-rel-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
  transition: transform 0.3s ease;
}
.roas-rel-card:hover .roas-rel-img {
  transform: scale(1.06);
}

/* Hide Account and Cart permanently */
[data-testid="nav-account-link"],
[data-testid="nav-cart-link"],
a[href*="account"],
a[href*="cart"],
.roas-header-side a:not(.roas-header-link[href*="us.html"]):not(.roas-header-link[href*="ca.html"]) {
  display: none !important;
}
