/**
 * Nexus Cart - Light styling for WHMCS order form
 * Works with both Nexus Cart and Standard Cart structure
 */

/* ===== LAYOUT: Sidebar + Form (narrower form so sidebar fits) ===== */
#order-standard_cart .nexus-cart-row {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
#order-standard_cart .cart-sidebar {
  min-width: 260px;
}
@media (min-width: 768px) {
  #order-standard_cart .cart-sidebar {
    min-width: 280px;
  }
}
@media (min-width: 992px) {
  #order-standard_cart .cart-sidebar {
    min-width: 280px;
  }
}

#order-standard_cart .product,
#order-standard_cart .nexus-product-card {
  background: var(--nx-card, #fff);
  border: 1px solid var(--nx-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}
#order-standard_cart .product:hover,
#order-standard_cart .nexus-product-card:hover {
  border-color: var(--nx-primary, #135bec);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#order-standard_cart .product-name,
#order-standard_cart .product .product-name {
  font-weight: 700;
  color: var(--nx-text, #0f172a);
}
#order-standard_cart .product .price,
#order-standard_cart .product-pricing .price {
  color: var(--nx-primary, #135bec);
  font-weight: 700;
  font-size: 1.25rem;
}
#order-standard_cart .nexus-btn-primary,
#order-standard_cart .btn-order-now,
#order-standard_cart .btn-success {
  background: var(--nx-primary, #135bec) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
}
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .card-sidebar {
  background: var(--nx-card, #fff);
  border: 1px solid var(--nx-border, #e2e8f0);
  border-radius: 12px;
}
#order-standard_cart .panel-heading,
#order-standard_cart .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--nx-border, #e2e8f0);
  font-weight: 600;
}
#order-standard_cart .header-lined h1 {
  font-weight: 800;
  color: var(--nx-text, #0f172a);
}
#order-standard_cart .header-lined p {
  color: var(--nx-muted, #64748b);
}

/* ===== STORE PAGE PREMIUM DESIGN ===== */
.nexus-store-page .nexus-store-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--nx-border, #e2e8f0);
  background: linear-gradient(135deg, rgba(19,91,236,0.04) 0%, transparent 50%);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
  border-radius: 12px;
}
.nexus-store-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
  font-weight: 800 !important;
  color: var(--nx-text, #0f172a) !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: -0.02em;
}
.nexus-store-tagline {
  font-size: 1.0625rem !important;
  color: var(--nx-muted, #64748b) !important;
  margin: 0 !important;
  line-height: 1.5;
}
.nexus-products-grid .row { margin: 0 -0.75rem; }
.nexus-products-grid [class*="col-"] { padding: 0.75rem; }
#order-standard_cart .nexus-product-card {
  background: var(--nx-card, #fff);
  border: 1px solid var(--nx-border, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: visible;
}
#order-standard_cart .nexus-product-card:hover {
  border-color: var(--nx-primary, #135bec);
  box-shadow: 0 12px 24px -8px rgba(19, 91, 236, 0.15);
  transform: translateY(-2px);
}
#order-standard_cart .nexus-product-card.nx-popular {
  border-color: var(--nx-primary, #135bec);
  box-shadow: 0 0 0 2px rgba(19, 91, 236, 0.15);
}
.nx-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  background: var(--nx-primary, #135bec);
  color: #fff;
  border-radius: 999px;
}
.nexus-product-header {
  margin-bottom: 1rem;
  flex-shrink: 0;
}
#order-standard_cart .nexus-product-card .product-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.nexus-product-body {
  flex: 1;
  margin-bottom: 1.5rem;
  min-height: 0;
  overflow: visible;
}
.nexus-product-desc {
  font-size: 0.875rem;
  color: var(--nx-muted, #64748b);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  max-width: 100%;
}
.nexus-product-desc ul,
.nexus-product-desc ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}
.nexus-product-desc ul { list-style-type: disc; }
.nexus-product-desc ul[style*="list-style:none"],
.nexus-product-desc ul[style*="list-style: none"] {
  list-style: none;
  padding-left: 0;
}
.nexus-product-desc li {
  margin-bottom: 0.5rem;
}
.nexus-product-desc li:last-child { margin-bottom: 0; }
.nexus-product-desc .material-symbols-outlined {
  display: inline;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.nexus-product-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nexus-product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--nx-text-secondary, #334155);
  padding: 0.25rem 0;
}
.nexus-product-features .material-symbols-outlined {
  font-size: 1rem;
  color: var(--nx-success, #10b981);
  flex-shrink: 0;
}
.nexus-product-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nx-border, #e2e8f0);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.nexus-product-price {
  margin-bottom: 0;
  order: 1;
}
.nexus-product-price .price {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--nx-primary, #135bec) !important;
  display: inline;
  white-space: nowrap;
}
.nexus-product-price .nx-cycle {
  font-size: 0.8125rem;
  color: var(--nx-muted, #64748b);
  white-space: nowrap;
}
.nexus-product-price .nx-from-label,
.nexus-product-price .nx-bundle-label {
  font-size: 0.75rem;
  color: var(--nx-muted, #64748b);
  display: block;
}
.nexus-product-price .nx-setup-fee {
  font-size: 0.75rem;
  color: var(--nx-muted, #64748b);
}
#order-standard_cart .nexus-product-card .nexus-btn-primary,
#order-standard_cart .nexus-product-card .btn-order-now {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.9375rem !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  order: 2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#order-standard_cart .nexus-product-card .nexus-btn-primary .material-symbols-outlined {
  font-size: 1.125rem;
}

/* Hide "Powered by WHMCompleteSolution" on cart pages */
body.cart .primary-content > p:last-child,
#order-standard_cart .primary-content > p:last-child {
  display: none !important;
}
