/* =========================================================
   SERVICES.CSS — services.html only
   Moved out of skills.html so freelance services + the
   cart/checkout flow get a dedicated, focused page.
   ========================================================= */

.services-section{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items:start;
}

.service-list{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

.service-card{
  padding: 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.service-info h3{
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 6px;
}
.service-info p{
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 480px;
}
.service-price{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lime);
  white-space:nowrap;
}
.service-action{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-shrink:0;
}
.add-to-cart-btn{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.add-to-cart-btn:hover{ color:#0b0b0c; background: var(--lime); border-color: var(--lime); }
.add-to-cart-btn.added{ background: var(--lime); color:#0b0b0c; border-color: var(--lime); }

/* ---------- Cart panel ---------- */
.cart-panel{
  position: sticky;
  top: 100px;
  padding: 24px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.cart-panel h3{
  font-family: var(--font-display);
  font-size: 18px;
  display:flex;
  align-items:center;
  gap: 8px;
}

.cart-empty{
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 0;
}

.cart-items{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.cart-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.cart-item .name{ font-weight:600; }
.cart-item .qty-controls{
  display:flex;
  align-items:center;
  gap: 8px;
}
.qty-btn{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: border-color .2s ease, color .2s ease;
}
.qty-btn:hover{ color: var(--lime); border-color: var(--lime); }
.cart-item .price{ color: var(--lime); font-weight:700; white-space:nowrap; }
.remove-item{
  color: var(--text-muted);
  font-size: 13px;
  cursor:pointer;
  transition: color .2s ease;
}
.remove-item:hover{ color: var(--red); }

.cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding-top: 6px;
}
.cart-total .amount{ color: var(--lime); }

.checkout-form{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 4px;
}
.checkout-form input,
.checkout-form textarea{
  width:100%;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s ease;
}
.checkout-form input:focus,
.checkout-form textarea:focus{
  outline:none;
  border-color: var(--lime);
}
.checkout-form textarea{ resize:vertical; min-height: 70px; }

.checkout-btn{
  width:100%;
  justify-content:center;
  margin-top: 4px;
}

.form-hint{
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.order-status{
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 10px;
  display:none;
}
.order-status.show{ display:block; }
.order-status.success{ background: rgba(187,241,55,0.12); color: var(--lime); }
.order-status.error{ background: rgba(195,20,50,0.12); color: #ff8a97; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .services-section{ grid-template-columns: 1fr; }
  .cart-panel{ position: static; }
}
@media (max-width: 600px){
  .service-card{ flex-direction:column; align-items:flex-start; }
  .service-action{ width:100%; justify-content:space-between; }
}
