/* Sprintology product pages & calculator styles */

.sp-page-header {
  background: linear-gradient(135deg, #5B21B6 0%, #4C1D95 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.sp-page-header h1 {
  font-family: 'Starc Serif', serif;
  font-size: 2.5rem;
  margin: 0 0 12px;
}
.sp-page-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
}

.sp-breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #6B7280;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.sp-breadcrumb a {
  color: #5B21B6;
  text-decoration: none;
}
.sp-breadcrumb a:hover {
  text-decoration: underline;
}

.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.sp-product-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.sp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(107, 33, 168, 0.12);
}
.sp-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
}
.sp-product-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sp-product-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111827;
}
.sp-product-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}
.sp-product-card .price {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5B21B6;
}

.sp-product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .sp-product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.sp-product-detail .media img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #f3f4f6;
}
.sp-product-detail .info h1 {
  font-family: 'Starc Serif', serif;
  font-size: 2rem;
  margin: 0 0 16px;
  color: #111827;
}
.sp-product-detail .info p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.6;
  margin: 0 0 24px;
}

.sp-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 28px;
}
.sp-pricing-table th,
.sp-pricing-table td {
  border: 1px solid #E5E7EB;
  padding: 12px 16px;
  text-align: left;
}
.sp-pricing-table th {
  background: #5B21B6;
  color: #fff;
  font-weight: 600;
}
.sp-pricing-table tr:nth-child(even) {
  background: #F9FAFB;
}
.sp-pricing-table .highlight {
  background: #F5F3FF !important;
  font-weight: 600;
}

.sp-calculator {
  background: #F5F3FF;
  border: 1px solid #EDE9FE;
  border-radius: 16px;
  padding: 24px;
}
.sp-calculator h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: #5B21B6;
  margin: 0 0 16px;
}
.sp-calculator-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.sp-calculator label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 6px;
}
.sp-calculator input,
.sp-calculator select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #fff;
}
.sp-calculator-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #EDE9FE;
}
.sp-calculator-result .total {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #5B21B6;
}
.sp-calculator-result .tier {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #6B7280;
}
.sp-calculator .cta {
  margin-top: 16px;
  width: 100%;
  background: #5B21B6;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.sp-calculator .cta:hover {
  background: #4C1D95;
}

.sp-empty-state {
  text-align: center;
  padding: 80px 24px;
  font-family: 'Poppins', sans-serif;
  color: #6B7280;
}
.sp-empty-state h2 {
  color: #111827;
  font-family: 'Starc Serif', serif;
  margin-bottom: 12px;
}

/* Ensure footer stays purple and the legacy red texture image is hidden */
.sprintology-footer {
  background-image: none !important;
  background-color: #5B21B6 !important;
  background: #5B21B6 !important;
}
