@charset "UTF-8";
/**
 * Funly Child Theme — Product Page Styles
 *
 * Matches the Funly design system (Outfit, Inter, Fira Code, fn-* vars)
 * @package Funly
 */

/* ==========================================================================
   BASE PRODUCT STRUCTURE
   ========================================================================== */
.product-page {
  background: var(--fn-white, #ffffff);
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--fn-dark, #111111);
}

.product__container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.product__container--narrow {
  max-width: 48rem;
}

.product__section-title {
  font: 700 clamp(1.6rem, 3vw, 2.2rem) / 1.2 "Outfit", sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--fn-dark, #111111);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.product__hero {
  padding: 7rem 0 4rem;
  background: var(--fn-off-white, #f7f7f5);
  width: 100%;
  overflow: hidden;
}

.product__header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.product__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .product__content-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }
}

.product__gallery-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product__info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product__category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 92, 53, 0.08);
  border: 1px solid rgba(255, 92, 53, 0.2);
  border-radius: 999px;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fn-accent, #ff5c35);
  margin-bottom: 1rem;
}

.product__title {
  font: 800 clamp(2.2rem, 5vw, 3.6rem) / 1.1 "Outfit", sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--fn-dark, #111111);
}

.product__tagline {
  font: 400 clamp(1rem, 2vw, 1.15rem) / 1.7 "Inter", sans-serif;
  color: var(--fn-gray, #6b6b6b);
  margin: 0 auto;
  max-width: 36rem;
}

/* ==========================================================================
   INLINE SPECS
   ========================================================================== */
.product__specs-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--fn-off-white, #f7f7f5);
  border-radius: var(--fn-radius-md, 1.15rem);
  border: 1px solid var(--fn-light-gray, #e5e5e5);
  width: 100%;
  box-sizing: border-box;
}

.product__spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  min-width: 0;
}

.product__spec-label {
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fn-gray, #6b6b6b);
}

.product__spec-value {
  font: 800 1.35rem / 1.2 "Outfit", sans-serif;
  color: var(--fn-dark, #111111);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.product__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font: 700 1rem / 1 "Outfit", sans-serif;
  text-decoration: none;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.btn--primary {
  background: var(--fn-rainbow, linear-gradient(135deg, #ff5c35 0%, #ff8a65 100%));
  color: var(--fn-white, #ffffff);
  box-shadow: 0 4px 16px rgba(255, 92, 53, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 53, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--fn-dark, #111111);
  border: 1.5px solid var(--fn-light-gray, #e5e5e5);
}

.btn--secondary:hover {
  border-color: var(--fn-dark, #111111);
  background: var(--fn-off-white, #f7f7f5);
}

.btn--white {
  background: var(--fn-white, #ffffff);
  color: var(--fn-dark, #111111);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn--large {
  padding: 1.15rem 2.5rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   PRODUCT GALLERY
   ========================================================================== */
.product__gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product__gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--fn-white, #ffffff);
  border-radius: var(--fn-radius-md, 1.15rem);
  overflow: hidden;
  border: 1px solid var(--fn-light-gray, #e5e5e5);
  width: 100%;
  box-sizing: border-box;
}

.product__gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.product__gallery-slide--active {
  display: flex;
}

.product__gallery-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: var(--fn-light-gray, #e5e5e5) transparent;
}

.product__gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product__gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.product__gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--fn-light-gray, #e5e5e5);
  border-radius: 99px;
}

.product__gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 0.35rem;
  border: 1.5px solid var(--fn-light-gray, #e5e5e5);
  border-radius: var(--fn-radius-sm, 0.65rem);
  background: var(--fn-white, #ffffff);
  cursor: pointer;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.product__gallery-thumb:hover {
  border-color: var(--fn-gray, #6b6b6b);
}

.product__gallery-thumb--active {
  border-color: var(--fn-accent, #ff5c35);
}

.product__gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--fn-radius-sm, 0.65rem);
}

.product__main-image {
  aspect-ratio: 1/1;
  background: var(--fn-white, #ffffff);
  border-radius: var(--fn-radius-md, 1.15rem);
  overflow: hidden;
  border: 1px solid var(--fn-light-gray, #e5e5e5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.product__features-grid {
  padding: 5.5rem 0;
  background: var(--fn-white, #ffffff);
}

.product__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .product__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product__features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product__feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--fn-off-white, #f7f7f5);
  border-radius: var(--fn-radius-md, 1.15rem);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.product__feature-card:hover {
  border-color: var(--fn-light-gray, #e5e5e5);
  background: var(--fn-white, #ffffff);
  box-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
  transform: translateY(-2px);
}

.product__feature-icon {
  flex-shrink: 0;
  color: var(--fn-accent, #ff5c35);
  margin-top: 2px;
}

.product__feature-text {
  font: 400 0.95rem / 1.65 "Inter", sans-serif;
  color: var(--fn-gray, #6b6b6b);
  margin: 0;
}

/* ==========================================================================
   DETAILS SECTION — Specifications & Colors
   ========================================================================== */
.product__details {
  padding: 5.5rem 0;
  background: var(--fn-off-white, #f7f7f5);
}

.product__details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .product__details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   SPECIFICATIONS TABLE
   ========================================================================== */
.product__spec-table {
  background: var(--fn-white, #ffffff);
  border-radius: var(--fn-radius-md, 1.15rem);
  overflow: hidden;
  border: 1px solid var(--fn-light-gray, #e5e5e5);
}

.product__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--fn-light-gray, #e5e5e5);
  transition: background 0.2s ease;
}

.product__spec-row:last-child {
  border-bottom: none;
}

.product__spec-row:hover {
  background: var(--fn-off-white, #f7f7f5);
}

.product__spec-row .product__spec-label {
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fn-gray, #6b6b6b);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product__spec-row .product__spec-value {
  font: 600 1rem / 1.4 "Inter", sans-serif;
  color: var(--fn-dark, #111111);
  text-align: right;
}

/* ==========================================================================
   COLOR VARIANTS
   ========================================================================== */
.product__color-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product__color-item {
  background: var(--fn-white, #ffffff);
  border: 1px solid var(--fn-light-gray, #e5e5e5);
  border-radius: var(--fn-radius-md, 1.15rem);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product__color-item:hover {
  border-color: var(--fn-gray, #6b6b6b);
  box-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
}

.product__color-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--fn-light-gray, #e5e5e5);
}

.product__color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product__color-name {
  font: 700 1rem / 1.3 "Outfit", sans-serif;
  color: var(--fn-dark, #111111);
  margin: 0;
}

.product__color-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.product__color-figure {
  margin: 0;
  text-align: center;
}

.product__color-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--fn-radius-sm, 0.65rem);
  background: var(--fn-off-white, #f7f7f5);
  margin-bottom: 0.5rem;
}

.product__color-caption {
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fn-gray, #6b6b6b);
}

/* ==========================================================================
   DESCRIPTION SECTION
   ========================================================================== */
.product__description {
  padding: 5.5rem 0;
  background: var(--fn-white, #ffffff);
}

.product__description h2,
.product__description h3,
.product__description h4 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--fn-dark, #111111);
}

.product__description h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 3rem;
}

.product__description h2:first-child {
  margin-top: 0;
}

.product__description h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 2rem;
}

.product__description p {
  font: 400 1.05rem / 1.8 "Inter", sans-serif;
  color: var(--fn-gray, #6b6b6b);
  margin-bottom: 1.5rem;
  max-width: 68ch;
}

.product__description ul,
.product__description ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
}

.product__description ul li,
.product__description ol li {
  font: 400 1rem / 1.8 "Inter", sans-serif;
  color: var(--fn-gray, #6b6b6b);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.product__cta {
  background: var(--fn-black, #111111);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}

.product__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.product__cta-content {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--fn-white, #ffffff);
  align-items: center;
}

.product__cta-title {
  font: 800 clamp(2rem, 4vw, 3rem) / 1.1 "Outfit", sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.product__cta-text {
  font: 400 1.1rem / 1.65 "Inter", sans-serif;
  color: var(--fn-gray, #6b6b6b);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.product__cta .btn--white {
  display: inline-flex;
  width: auto;
  background: var(--fn-rainbow, linear-gradient(135deg, #ff5c35 0%, #ff8a65 100%));
  color: var(--fn-white, #ffffff);
  font: 700 1.1rem / 1 "Outfit", sans-serif;
  padding: 1.1rem 2.5rem;
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(255, 92, 53, 0.3);
}

.product__cta .btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 92, 53, 0.4);
  background: var(--fn-rainbow, linear-gradient(135deg, #ff5c35 0%, #ff8a65 100%));
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .product__hero {
    padding: 6rem 0 3rem;
  }

  .product__content-grid {
    gap: 2.5rem;
  }

  .product__header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 767px) {
  .product__hero {
    padding: 5rem 0 2rem;
  }

  .product__category {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .product__title {
    font-size: 2rem;
  }

  .product__tagline {
    font-size: 1rem;
  }

  .product__specs-inline {
    gap: 0.75rem;
    padding: 1rem;
  }

  .product__actions {
    width: 100%;
  }

  .product__actions .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem;
  }

  .product__features {
    grid-template-columns: 1fr;
  }

  .product__feature-card {
    padding: 1rem;
  }

  .product__details {
    padding: 3.5rem 0;
  }

  .product__details-grid {
    gap: 3rem;
  }

  .product__container {
    padding: 0 1.25rem;
  }

  .product__spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
  }

  .product__spec-row .product__spec-value {
    text-align: left;
  }

  .product__color-images {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    padding: 1rem;
  }

  .product__description {
    padding: 3.5rem 0;
  }

  .product__description p {
    font-size: 1rem;
  }

  .product__cta {
    padding: 3.5rem 0;
  }

  .product__cta-content {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   SMOOTH ANIMATIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .product__gallery-slide,
  .product__feature-card,
  .product__color-item,
  .product__spec-row {
    animation: fnFadeIn 0.4s ease-out;
  }

  @keyframes fnFadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
