:root {
  --brand-primary: #7c3aed;
  --brand-primary-dark: #5b21b6;
  --brand-secondary: #f97316;
  --brand-accent: #06b6d4;
  --brand-cream: #fff7ed;
  --brand-rose: #fff1f2;
  --brand-ink: #241437;
  --brand-muted: #6b6477;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --line: rgba(124, 58, 237, .14);
  --shadow-soft: 0 1rem 2.5rem rgba(68, 31, 105, .12);
  --shadow-card: 0 .8rem 1.8rem rgba(68, 31, 105, .09);
  --radius-lg: 1.25rem;
  --radius-md: .9rem;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 13px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

body {
  min-height: 100vh;
  margin-bottom: 0;
  color: var(--brand-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, .18), transparent 30rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, .2), transparent 28rem),
    linear-gradient(135deg, var(--brand-cream) 0%, var(--brand-rose) 42%, #f8fbff 100%);
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: .75rem 0;
  backdrop-filter: blur(18px);
}

.app-navbar {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 .75rem 2rem rgba(68, 31, 105, .08);
}

.navbar-brand {
  color: var(--brand-ink);
  letter-spacing: -.03em;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  box-shadow: 0 .5rem 1rem rgba(124, 58, 237, .24);
}

.navbar .nav-link {
  border-radius: 999px;
  color: var(--brand-muted);
  font-weight: 600;
  padding: .45rem .8rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-primary-dark);
  background: rgba(124, 58, 237, .08);
}

.app-content {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-ink);
  letter-spacing: -.035em;
}

.display-4,
.display-6 {
  line-height: .98;
}

.lead {
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.text-muted {
  color: var(--brand-muted) !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .34), transparent 10rem),
    linear-gradient(135deg, #7c3aed 0%, #db2777 46%, #f97316 100%);
  box-shadow: var(--shadow-soft);
}

.hero-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.hero-section > .row {
  position: relative;
  z-index: 1;
}

.hero-card,
.card {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card) !important;
}

.card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-.25rem);
  border-color: rgba(124, 58, 237, .28) !important;
  box-shadow: var(--shadow-soft) !important;
}

.product-image {
  height: 13rem;
  object-fit: cover;
}

.product-details-image {
  width: 100%;
  max-height: 30rem;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cart-image {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
}

.cart-quantity {
  max-width: 5.5rem;
}

.sticky-summary {
  top: 7rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: .5rem 1rem;
  border-width: 0;
}

.btn-sm {
  padding: .35rem .75rem;
}

.btn-lg {
  padding: .7rem 1.25rem;
  font-size: 1rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), #db2777);
  box-shadow: 0 .55rem 1.1rem rgba(124, 58, 237, .22);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary-dark), #be185d);
}

.btn-outline-primary,
.btn-outline-secondary {
  color: var(--brand-primary-dark);
  border: 1px solid rgba(124, 58, 237, .25);
  background: rgba(255, 255, 255, .74);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus {
  color: #fff;
  border-color: transparent;
  background: var(--brand-primary);
}

.btn-light {
  color: var(--brand-primary-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(124, 58, 237, .5);
  box-shadow: 0 0 0 .18rem rgba(124, 58, 237, .18);
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  padding: .42rem .7rem;
}

.text-bg-warning {
  color: #6f3300 !important;
  background-color: #fed7aa !important;
}

.text-bg-success {
  background-color: #10b981 !important;
}

.form-control,
.form-select {
  border-radius: .8rem;
  border-color: rgba(124, 58, 237, .16);
  background-color: rgba(255, 255, 255, .86);
}

.table {
  --bs-table-color: var(--brand-ink);
  --bs-table-bg: transparent;
}

.table-light {
  --bs-table-bg: rgba(124, 58, 237, .08);
  --bs-table-color: var(--brand-ink);
}

.alert-info {
  color: var(--brand-primary-dark);
  border: 1px solid rgba(6, 182, 212, .28);
  border-radius: var(--radius-md);
  background: rgba(207, 250, 254, .86);
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 991.98px) {
  .site-header {
    padding: .5rem 0;
  }

  .app-navbar {
    border-radius: 1.2rem;
  }

  .navbar-collapse {
    padding: .75rem 0 .25rem;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .hero-section {
    margin-top: .5rem;
  }
}

@media (max-width: 575.98px) {
  html {
    font-size: 12.5px;
  }

  .app-content {
    padding-top: .5rem;
  }

  .hero-section {
    padding: 2rem !important;
  }

  .display-4 {
    font-size: 2.45rem;
  }

  .display-6 {
    font-size: 2rem;
  }

  .product-image {
    height: 11rem;
  }

  .table-responsive {
    border-radius: var(--radius-md);
  }
}
