/* ==========================================
   CATIE CAKE PARLOUR — BLACK, PINK & BLUE
========================================== */

:root {
  --background: #09070d;
  --surface: #141019;
  --surface-light: #1c1623;
  --pink: #f078b8;
  --pink-light: #ffb5db;
  --blue: #85c9ff;
  --text: #fff8fc;
  --muted: #c2b6c7;
  --border: rgba(240, 120, 184, 0.23);
  --radius: 18px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body, input, select, textarea, button {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--pink-light);
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

button, input, select, textarea {
  font-size: 1rem;
}

button, select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 6%;
  background: rgba(9, 7, 13, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.brand-name {
  color: var(--pink);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 5px;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--blue);
  font-size: 0.58rem;
  letter-spacing: 3px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.main-nav a {
  color: var(--text);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--pink);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 3px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--pink);
  color: #190d17;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  padding: 90px 8%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(133, 201, 255, 0.12), transparent 35%),
    radial-gradient(ellipse at 20% 80%, rgba(240, 120, 184, 0.12), transparent 40%),
    var(--background);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-watermark {
  position: absolute;
  right: -2%;
  bottom: -12%;
  color: rgba(240, 120, 184, 0.045);
  font-size: clamp(10rem, 30vw, 30rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -2px;
}

h1 span, h2 span {
  color: var(--pink);
}

.hero-description {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--pink);
  border-radius: 9px;
  background: var(--pink);
  color: #210d1a;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--pink-light);
  color: #210d1a;
}

.btn-outline {
  background: transparent;
  color: var(--pink-light);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(240, 120, 184, 0.1);
  color: var(--pink-light);
}

.btn-full {
  width: 100%;
}

.section-wrap {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 75px 0;
}

.intro {
  max-width: 800px;
  text-align: center;
}

.intro h2,
.section-heading h2,
.frosting-section h2,
.contact-section h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.intro > p:last-child,
.section-heading > p:last-child,
.frosting-section p:not(.eyebrow),
.contact-section > p:not(.eyebrow) {
  color: var(--muted);
}

.section-heading {
  max-width: 750px;
  margin: 0 auto 35px;
  text-align: center;
}

.alternate-section {
  width: 100%;
  padding-right: 5%;
  padding-left: 5%;
  background: rgba(240, 120, 184, 0.035);
  border-top: 1px solid rgba(240, 120, 184, 0.1);
  border-bottom: 1px solid rgba(240, 120, 184, 0.1);
}

.alternate-section .section-heading {
  max-width: 750px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.product-card,
.cake-card,
.treat-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.cake-card:hover,
.treat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 120, 184, 0.55);
}

.product-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-light);
}

.product-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #241727, #15202d);
  font-size: 4rem;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.product-content h3 {
  margin: 0;
  color: var(--pink-light);
  font-size: 1.3rem;
}

.product-content p {
  margin: 0;
  color: var(--muted);
}

.product-description {
  min-height: 45px;
}

.price-list {
  display: grid;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-row,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row span,
.summary-line span {
  color: var(--muted);
}

.price-row strong,
.treat-price {
  color: var(--blue) !important;
  font-weight: 800;
}

.product-controls {
  display: grid;
  gap: 13px;
  margin-top: 5px;
}

.product-controls label,
.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-controls select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(194, 182, 199, 0.28);
  border-radius: 8px;
  background: #0e0b12;
  color: var(--text);
}

.product-controls select option,
.form-field select option {
  background: #141019;
  color: var(--text);
}

.product-controls .btn {
  width: 100%;
}

.frosting-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(133, 201, 255, 0.1), transparent 30%),
    var(--surface);
}

.frosting-section > div:first-child {
  max-width: 720px;
}

.frosting-decoration {
  color: var(--pink);
  font-size: 7rem;
  line-height: 1;
}

.cart-panel,
.checkout-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 25px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-items {
  min-width: 0;
}

.empty-cart {
  padding: 25px 0;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item h3 {
  margin: 0 0 4px;
  color: var(--pink-light);
  font-size: 1rem;
}

.cart-item p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: pre-line;
}

.cart-item-price {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 800;
}

.cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-light);
  color: var(--pink-light);
  font-size: 1.2rem;
}

.quantity-control span {
  min-width: 18px;
  text-align: center;
}

.remove-item {
  border: 0;
  background: transparent;
  color: #ff9b9b;
  font-size: 0.86rem;
  text-decoration: underline;
}

.cart-summary {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);
}

.summary-line {
  padding: 10px 0;
}

.total-line {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}

.total-line strong {
  color: var(--pink-light);
}

.small-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checkout-section {
  padding-top: 30px;
}

.checkout-panel {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.checkout-order-box {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);
}

.checkout-order-box h3 {
  margin-top: 0;
  color: var(--pink-light);
}

.checkout-order-box pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--muted);
}

.order-form {
  display: grid;
  gap: 17px;
  min-width: 0;
}

.form-field textarea {
  resize: vertical;
}

.order-status {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.order-status:empty {
  display: none;
}

.order-status.success {
  color: #94f0bd;
}

.order-status.error {
  color: #ff9b9b;
}

.order-status.loading {
  color: var(--blue);
}

.confirmation-box {
  padding: 17px;
  border: 1px solid rgba(148, 240, 189, 0.35);
  border-radius: 10px;
  background: rgba(148, 240, 189, 0.06);
}

.confirmation-box h3 {
  margin-top: 0;
  color: #94f0bd;
}

.contact-section {
  text-align: center;
}

.contact-details {
  display: grid;
  gap: 4px;
  margin-top: 25px;
}

.contact-details p {
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 35px 5%;
  border-top: 1px solid var(--border);
  background: #07060a;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

[hidden] {
  display: none !important;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 145px;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 13px 4%;
  }

  .main-nav {
    justify-content: center;
    gap: 9px 15px;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 430px;
    padding: 65px 6%;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .section-wrap {
    width: 90%;
    padding: 55px 0;
  }

  .alternate-section {
    width: 100%;
    padding-right: 5%;
    padding-left: 5%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-image,
  .product-image-fallback {
    height: 230px;
  }

  .frosting-section {
    padding: 25px;
  }

  .frosting-decoration {
    display: none;
  }

  .cart-panel,
  .checkout-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cart-item {
    gap: 10px;
  }

  .cart-item-price {
    font-size: 0.9rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}