/* ==================================================
   PUBLIC PRODUCT PAGE — POLISHED & CONSISTENT
================================================== */

/* ================= PAGE WRAPPER ================= */
.product-page {
  padding: 48px 0 60px;
  flex: 1;
}

/* ================= GRID ================= */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

/* ================= PRODUCT CARD ================= */
.products-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.products-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

/* ================= IMAGE ================= */
.product-image {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.product-image img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

/* ================= DESCRIPTION ================= */
.product-description {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
}

/* ================= PRICE ================= */
.product-price {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 22px;
}

/* ================= COMPANY BOX ================= */
.company-box {
  background: linear-gradient(180deg, #f9fafb, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin: 28px 0;
}

.company-box h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.company-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.company-box p {
  font-size: 14px;
  color: #6b7280;
}

/* ================= ACTION ================= */
.product-actions {
  margin-top: 10px;
}

.product-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

/* ================= SPONSORED (DASHBOARD-QUALITY) ================= */
.sponsored-section {
  position: sticky;
  top: 140px;
  height: calc(100vh - 160px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

.sponsored-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
/* ================= LAYOUT FIX ================= */
.page-wrapper {
  width: 100%;
  padding: 0;
}
/* ==================================================
   PRODUCT PAGE – VISUAL POLISH (DASHBOARD STYLE)
================================================== */

/* Center page content */
.company-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 28px;
}

/* Cards */
.products-section,
.sponsored-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Product title */
.product-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Product image */
.product-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  background: #f9fafb;
  padding: 16px;
}

/* Description */
.product-description {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* Price */
.product-price {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

/* Company box */
.company-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.company-box h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

/* Action button */
.product-actions {
  margin-top: 22px;
}

.product-actions .btn {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 8px;
}

/* ================= SPONSORED ADS ================= */

.sponsored-section {
  position: sticky;
  top: 140px;
  height: fit-content;
}

.sponsored-section h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sponsored-section p {
  font-size: 14px;
  color: #6b7280;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .company-grid {
    grid-template-columns: 1fr;
  }

  .sponsored-section {
    position: static;
    height: auto;
  }
}

@media (max-width: 640px) {
  .products-section h1 {
    font-size: 24px;
  }

  .product-image img {
    max-height: 260px;
  }
}

