/**
 * TINGLE DIGITAL - Softwares Page Styles
 * Light Theme - Nova Paleta 2025
 *
 * @version 2.0.0
 */

/* ============================================
 * PAGE BASE
 * ============================================ */

.softwares-page {
  background: var(--light-primary);
  color: var(--text-primary);
}

/* ============================================
 * HERO - TECH THEME
 * ============================================ */

.hero-tech {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--light-primary);
}

/* Tech Grid Background */
.hero-tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 112, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 112, 76, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* Animated gradient orbs */
.hero-tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-tech-orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--tingle-coral), var(--tingle-amber));
  top: -20%;
  right: -10%;
  animation: orb-float-1 20s ease-in-out infinite;
}

.hero-tech-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--tingle-turquoise);
  bottom: -15%;
  left: -5%;
  animation: orb-float-2 25s ease-in-out infinite;
}

/* Code decoration */
.hero-tech-code {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--tingle-coral);
  opacity: 0.1;
  white-space: pre;
  pointer-events: none;
  z-index: 1;
}

.hero-tech-code-1 {
  top: 15%;
  left: 5%;
  animation: float-slow 10s ease-in-out infinite;
}

.hero-tech-code-2 {
  top: 60%;
  right: 8%;
  animation: float-slow 12s ease-in-out infinite reverse;
}

.hero-tech-code-3 {
  bottom: 20%;
  left: 15%;
  animation: float-slow 8s ease-in-out infinite;
  animation-delay: -3s;
}

/* Circuit lines */
.hero-tech-circuits {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--tingle-turquoise), transparent);
  height: 1px;
}

.circuit-line-1 {
  top: 30%;
  left: 0;
  width: 40%;
  animation: circuit-flow 3s linear infinite;
}

.circuit-line-2 {
  top: 50%;
  right: 0;
  width: 35%;
  animation: circuit-flow 4s linear infinite reverse;
}

.circuit-line-3 {
  bottom: 25%;
  left: 10%;
  width: 50%;
  animation: circuit-flow 5s linear infinite;
  animation-delay: -2s;
}

@keyframes circuit-flow {
  0% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Hero content */
.hero-tech-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: var(--space-8);
}

.hero-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(2, 176, 181, 0.1);
  border: 1px solid rgba(2, 176, 181, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--tingle-turquoise);
  margin-bottom: var(--space-8);
}

.hero-tech-tag::before {
  content: '</>';
  font-weight: var(--font-bold);
}

.hero-tech-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-tech-title-gradient {
  background: linear-gradient(135deg, var(--tingle-coral), var(--tingle-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tech-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
 * INTRO SECTION
 * ============================================ */

.software-intro {
  padding: var(--space-24) 0;
  background: var(--light-secondary);
}

.software-intro-inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
}

.software-intro-text {
  font-size: var(--text-2xl);
  color: var(--tingle-brown);
  line-height: var(--leading-relaxed);
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.software-intro-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.software-intro-stat {
  text-align: center;
}

.software-intro-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--tingle-coral);
  display: block;
}

.software-intro-stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ============================================
 * PRODUCT CARDS
 * ============================================ */

.products-section {
  padding: var(--space-16) 0;
  background: var(--light-primary);
}

.products-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* Product Card */
.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16);
  margin-bottom: var(--space-16);
  background: white;
  border: 1px solid rgba(50, 30, 12, 0.08);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-card:last-child {
  margin-bottom: 0;
}

/* Alternate layout */
.product-card:nth-child(even) {
  direction: rtl;
}

.product-card:nth-child(even) > * {
  direction: ltr;
}

/* Card background orb */
.product-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-card-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
}

.product-card-orb-1 {
  top: -30%;
  left: -10%;
}

.product-card-orb-2 {
  bottom: -30%;
  right: -10%;
}

/* Color variants */
.product-card[data-color="coral"] .product-card-orb-1 { background: var(--tingle-coral); }
.product-card[data-color="coral"] .product-card-orb-2 { background: var(--tingle-amber); }
.product-card[data-color="coral"] .product-icon-glow { background: var(--tingle-coral); }

.product-card[data-color="turquoise"] .product-card-orb-1 { background: var(--tingle-turquoise); }
.product-card[data-color="turquoise"] .product-card-orb-2 { background: var(--tingle-green); }
.product-card[data-color="turquoise"] .product-icon-glow { background: var(--tingle-turquoise); }

.product-card[data-color="magenta"] .product-card-orb-1 { background: var(--tingle-magenta); }
.product-card[data-color="magenta"] .product-card-orb-2 { background: var(--tingle-coral); }
.product-card[data-color="magenta"] .product-icon-glow { background: var(--tingle-magenta); }

.product-card[data-color="amber"] .product-card-orb-1 { background: var(--tingle-amber); }
.product-card[data-color="amber"] .product-card-orb-2 { background: var(--tingle-coral); }
.product-card[data-color="amber"] .product-icon-glow { background: var(--tingle-amber); }

.product-card[data-color="green"] .product-card-orb-1 { background: var(--tingle-green); }
.product-card[data-color="green"] .product-card-orb-2 { background: var(--tingle-turquoise); }
.product-card[data-color="green"] .product-icon-glow { background: var(--tingle-green); }

/* Legacy colors */
.product-card[data-color="purple"] .product-card-orb-1 { background: var(--tingle-magenta); }
.product-card[data-color="purple"] .product-card-orb-2 { background: var(--tingle-coral); }
.product-card[data-color="purple"] .product-icon-glow { background: var(--tingle-magenta); }

.product-card[data-color="cyan"] .product-card-orb-1 { background: var(--tingle-turquoise); }
.product-card[data-color="cyan"] .product-card-orb-2 { background: var(--tingle-green); }
.product-card[data-color="cyan"] .product-icon-glow { background: var(--tingle-turquoise); }

.product-card[data-color="gold"] .product-card-orb-1 { background: var(--tingle-amber); }
.product-card[data-color="gold"] .product-card-orb-2 { background: var(--tingle-coral); }
.product-card[data-color="gold"] .product-icon-glow { background: var(--tingle-amber); }

.product-card[data-color="blue"] .product-card-orb-1 { background: var(--tingle-turquoise); }
.product-card[data-color="blue"] .product-card-orb-2 { background: var(--tingle-green); }
.product-card[data-color="blue"] .product-icon-glow { background: var(--tingle-turquoise); }

/* Product info */
.product-info {
  position: relative;
  z-index: 1;
}

.product-icon-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-6);
}

.product-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid rgba(50, 30, 12, 0.08);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.product-icon svg,
.product-icon img {
  width: 60px;
  height: 60px;
}

.product-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: inherit;
  filter: blur(30px);
  opacity: 0.3;
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Product Logo (for products with custom logos) */
.product-logo-wrapper {
  margin-bottom: var(--space-6);
}

.product-logo {
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--tingle-turquoise);
  background: rgba(2, 176, 181, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  margin-bottom: var(--space-4);
}

.product-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* Features list */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.product-feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 176, 181, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-feature-icon svg {
  width: 14px;
  height: 14px;
  color: var(--tingle-turquoise);
}

/* Product buttons */
.product-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.product-btn {
  padding: var(--space-4) var(--space-8);
}

.product-btn-primary {
  background: var(--gradient-coral-amber);
  background-size: 200% 200%;
  color: white;
}

.product-btn-primary:hover {
  background-position: 100% 0;
}

.product-btn-secondary {
  background: transparent;
  color: var(--tingle-coral);
  border: 1px solid var(--tingle-coral);
}

.product-btn-secondary:hover {
  background: var(--tingle-coral);
  color: white;
}

/* Product preview */
.product-preview {
  position: relative;
  z-index: 1;
}

.product-preview-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:nth-child(even) .product-preview-wrapper {
  transform: perspective(1000px) rotateY(5deg);
}

.product-card:hover .product-preview-wrapper {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.product-preview-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.product-preview-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Browser frame */
.product-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--light-tertiary);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-2);
}

.product-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.product-preview-dot:nth-child(1) { background: #FF5F57; }
.product-preview-dot:nth-child(2) { background: #FFBD2E; }
.product-preview-dot:nth-child(3) { background: #28CA41; }

/* ============================================
 * PRODUCT MODAL
 * ============================================ */

.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(50, 30, 12, 0.8);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: white;
  border: 1px solid rgba(50, 30, 12, 0.1);
  border-radius: var(--radius-3xl);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-bounce);
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal close button */
.product-modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-secondary);
  border: 1px solid rgba(50, 30, 12, 0.1);
  border-radius: 50%;
  color: var(--tingle-brown);
  cursor: pointer;
  transition: var(--transition-all);
  z-index: 10;
}

.product-modal-close:hover {
  background: var(--tingle-coral);
  border-color: var(--tingle-coral);
  color: white;
  transform: rotate(90deg);
}

.product-modal-close svg {
  width: 20px;
  height: 20px;
}

/* Modal content */
.product-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

/* Modal gallery */
.product-modal-gallery {
  background: var(--light-secondary);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.product-modal-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.product-modal-main-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.product-modal-thumbs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.product-modal-thumb {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-all);
  border: 2px solid transparent;
}

.product-modal-thumb:hover,
.product-modal-thumb.active {
  opacity: 1;
  border-color: var(--tingle-coral);
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal info */
.product-modal-info {
  padding: var(--space-10);
  overflow-y: auto;
  max-height: 90vh;
}

.product-modal-header {
  margin-bottom: var(--space-8);
}

.product-modal-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  margin-bottom: var(--space-2);
}

.product-modal-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* Modal features grid */
.product-modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.product-modal-feature {
  display: flex;
  gap: var(--space-4);
}

.product-modal-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 112, 76, 0.1);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.product-modal-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--tingle-coral);
}

.product-modal-feature-title {
  font-weight: var(--font-semibold);
  color: var(--tingle-brown);
  margin-bottom: var(--space-1);
}

.product-modal-feature-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Tech stack */
.product-modal-tech {
  margin-bottom: var(--space-8);
}

.product-modal-tech-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.product-modal-tech-list {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-modal-tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--light-secondary);
  border: 1px solid rgba(50, 30, 12, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-modal-tech-item img {
  width: 20px;
  height: 20px;
}

/* Modal CTA */
.product-modal-cta {
  display: flex;
  gap: var(--space-4);
}

.product-modal-btn {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  text-align: center;
}

/* ============================================
 * CTA SECTION
 * ============================================ */

.software-cta {
  position: relative;
  padding: var(--space-32) 0;
  background: var(--light-secondary);
  overflow: hidden;
}

.software-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.software-cta-code {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--tingle-coral);
  opacity: 0.08;
  white-space: pre;
  pointer-events: none;
}

.software-cta-code-1 {
  top: 10%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite;
}

.software-cta-code-2 {
  bottom: 15%;
  right: 10%;
  animation: float-slow 12s ease-in-out infinite reverse;
}

.software-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.software-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  margin-bottom: var(--space-6);
}

.software-cta-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
}

.software-cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
 * RESPONSIVE - TABLET
 * ============================================ */

@media (max-width: 1024px) {
  .hero-tech-title {
    font-size: var(--text-5xl);
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-10);
  }

  .product-card:nth-child(even) {
    direction: ltr;
  }

  .product-preview-wrapper {
    transform: none;
  }

  .product-card:nth-child(even) .product-preview-wrapper {
    transform: none;
  }

  .product-modal-content {
    grid-template-columns: 1fr;
  }

  .product-modal-gallery {
    max-height: 300px;
  }

  .software-intro-stats {
    gap: var(--space-8);
  }
}

/* ============================================
 * RESPONSIVE - MOBILE
 * ============================================ */

@media (max-width: 768px) {
  .hero-tech-title {
    font-size: var(--text-4xl);
  }

  .hero-tech-subtitle {
    font-size: var(--text-lg);
  }

  .hero-tech-code {
    display: none;
  }

  .software-intro-text {
    font-size: var(--text-xl);
  }

  .software-intro-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .product-card {
    padding: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .product-name {
    font-size: var(--text-2xl);
  }

  .product-description {
    font-size: var(--text-base);
  }

  .product-buttons {
    flex-direction: column;
  }

  .product-btn {
    width: 100%;
    justify-content: center;
  }

  .product-modal {
    width: 95%;
    max-height: 95vh;
  }

  .product-modal-info {
    padding: var(--space-6);
  }

  .product-modal-features {
    grid-template-columns: 1fr;
  }

  .product-modal-cta {
    flex-direction: column;
  }

  .software-cta-title {
    font-size: var(--text-3xl);
  }

  .software-cta-description {
    font-size: var(--text-lg);
  }

  .software-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
 * RESPONSIVE - SMALL MOBILE
 * ============================================ */

@media (max-width: 480px) {
  .hero-tech-title {
    font-size: var(--text-3xl);
  }

  .product-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .product-icon svg,
  .product-icon img {
    width: 48px;
    height: 48px;
  }
}

/* ============================================
 * REDUCED MOTION
 * ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-tech-orb,
  .hero-tech-code,
  .circuit-line,
  .product-icon,
  .product-icon-glow,
  .product-card-orb,
  .software-cta-code {
    animation: none !important;
  }

  .product-preview-wrapper,
  .product-card:hover .product-preview-wrapper {
    transform: none !important;
  }
}

/* ============================================
 * PRODUCT MODALS
 * ============================================ */

.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(50, 30, 12, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--light-secondary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.product-modal-close:hover {
  background: var(--tingle-coral);
  transform: rotate(90deg);
}

.product-modal-close:hover svg {
  stroke: white;
}

.product-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--tingle-brown);
  transition: stroke 0.3s ease;
}

.product-modal-content {
  padding: var(--space-8);
}

.product-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.product-modal-logo {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
}

.product-modal-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  color: var(--tingle-coral);
  background: rgba(255, 112, 76, 0.1);
  border-radius: var(--radius-full);
}

.product-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--tingle-brown);
  margin-bottom: var(--space-4);
}

.product-modal-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.product-modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-modal-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--light-secondary);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-modal-feature .feature-icon {
  font-size: var(--text-lg);
}

.product-modal-cta {
  text-align: center;
}

.product-modal-cta .btn {
  width: 100%;
}

@media (max-width: 480px) {
  .product-modal-content {
    padding: var(--space-6);
  }

  .product-modal-features {
    grid-template-columns: 1fr;
  }

  .product-modal-title {
    font-size: var(--text-xl);
  }
}
