/* Delsa Smart Home App Landing Page Styles - Final Robust Version */

:root {
  --app-blue: #3b82f6;
  --app-dark: #0f172a;
  --app-slate: #475569;
}

/* Scaling & Width Consistency */
.main-content.wide-content {
  width: 100%;
  padding: 2rem 8vw;
  max-width: 120rem;
  margin: 0 auto;
}

.product-detail-area {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
}

.product-info-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Heading Section */
.product-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
  width: 100%;
}

.card-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--app-dark);
  margin-bottom: 0;
  padding-bottom: 0.8rem;
  display: inline-block; /* Matches text width exactly */
  position: relative;
  letter-spacing: -0.01em;
}

.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Exact text width match */
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
}

/* Base Content Layout (Desktop) */
.product-main-info {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5vw;
  align-items: flex-start;
}

.product-description-side {
  display: flex;
  flex-direction: column;
}

.app-subtitle {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000; /* Siyah renk */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.product-long-desc {
  font-size: 1.05rem;
  color: var(--app-slate);
  line-height: 1.8;
  text-align: justify; /* Yasla özelliği */
  margin-bottom: 2.5rem;
}

/* CONVERSION SECTION - Unified Block, No Extra Colors */
.conversion-card {
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  margin-top: 1rem;
}

.qr-container {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.qr-item img {
  width: 105px;
  height: 105px;
  background: transparent;
  border: none;
  display: block;
}

.qr-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-slate);
  text-transform: uppercase;
}

.store-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.store-link {
  display: block;
  width: 170px !important; /* Strict equal sizing */
  height: 52px !important;
  transition: transform 0.2s ease;
}

.store-link img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Ensure images fill the exact 170x52 box */
  display: block;
}

.store-link:hover {
  transform: translateY(-2px);
}

/* IMAGE SIDE */
.product-image-side {
  display: flex;
  justify-content: center;
}

.image-box {
  width: 100%;
  display: flex;
  justify-content: center;
}

.app-main-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}


.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.store-card:hover {
  transform: translateY(-5px);
}

/* RESPONSIVE & STRICT ORDERING */
@media (max-width: 1024px) {
  .product-detail-area {
    padding: 0;
  }

  /* Flatten hierarchy for reordering */
  .product-info-container {
    display: flex;
    flex-direction: column;
  }

  .product-main-info {
    display: contents; /* Allows children to be reordered relative to the title */
  }

  .product-description-side {
    display: contents; /* Allows subtitle and card to be reordered independently */
  }

  /* Requirement: Mobile Order (Title > Image > Subtitle > Description > QR/Buttons) */
  .product-title-wrapper {
    order: 1;
    margin-bottom: 2rem;
  }

  .product-image-side {
    order: 2;
    margin-bottom: 2.5rem;
  }

  .app-subtitle {
    order: 3;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .product-long-desc {
    order: 4;
    text-align: justify;
    padding: 0 5%;
    margin-bottom: 2.5rem;
  }

  .conversion-card {
    order: 5;
    margin-top: 1rem;
    padding-bottom: 4rem;
  }

  .app-main-image {
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .conversion-card {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }

  .store-card {
    gap: 1rem;
    width: auto;
  }

  .qr-item img {
    width: 80px !important;
    height: 80px !important;
  }

  .store-link {
    width: 135px !important;
    height: 41px !important;
  }

  .qr-container, .store-buttons {
    display: none; /* These were old classes, keeping it clean */
  }
}
