/* Zaytoven Cart Styles - Matches existing brand */
:root {
  --brand-red: #CC0000;
  --brand-dark: #0a0a0a;
  --brand-gray: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #aaa;
  --accent-gold: #d4a843;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--brand-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-decoration: none;
}

.nav-logo span { color: var(--brand-red); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-light); }

.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.cart-icon-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--brand-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-bar { padding: 1rem; }
  .nav-links { gap: 1rem; font-size: 0.85rem; }
}

/* Hero section */
.page-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(180deg, rgba(204,0,0,0.08) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.service-card {
  background: var(--brand-gray);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(204,0,0,0.3);
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.service-card .price .from {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}


.service-card-footer {
  padding: 1rem 1.5rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
}

.btn-primary:hover {
  background: #e60000;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
}

/* Cart Page */
.cart-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--brand-gray);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cart-item-category {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover { background: rgba(255,255,255,0.1); }

.qty-input {
  width: 48px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
  padding: 0.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.cart-item-remove:hover { color: var(--brand-red); }

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cart-empty a {
  color: var(--brand-red);
  text-decoration: none;
}

.cart-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-summary-label {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cart-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.checkout-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: 1.05rem;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success page */
.success-page {
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--brand-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-page p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.success-details {
  background: var(--brand-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.success-details h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.success-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.success-item:last-child { border-bottom: none; }

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; padding: 0 1rem; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-info { width: 100%; margin-bottom: 0.5rem; }
  .cart-item-price { margin-left: auto; }
  .cart-summary { flex-direction: column; align-items: stretch; text-align: center; }
}
