/* ============================================================
   SUNDAY PRINT STUDIO — kawaii x bento box style
   Brand palette: white / cyan / purple / pink
   ============================================================ */

:root {
  --white: #ffffff;
  --bg: #fbfeff;

  --cyan: #29e0e6;
  --cyan-soft: #d7fbfc;
  --cyan-deep: #0fb8c0;

  --purple: #8b5cf6;
  --purple-soft: #ece3ff;
  --purple-deep: #6d28d9;

  --pink: #ff6fb0;
  --pink-soft: #ffe1ef;
  --pink-deep: #ff3d94;

  --ink: #241b36;
  --ink-soft: #6e6180;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 6px 0 rgba(36, 27, 54, 0.08), 0 10px 24px rgba(36, 27, 54, 0.08);
  --shadow-hover: 0 8px 0 rgba(36, 27, 54, 0.1), 0 16px 32px rgba(36, 27, 54, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Quicksand", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

/* keeps anchor-linked sections from hiding under the sticky header
   when jumped to via the nav links */
#hero-products, #shop, #about, #contact {
  scroll-margin-top: 90px;
}

/* ---------- decorative background sparkles ---------- */
.sparkle-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sparkle-bg span {
  position: absolute;
  font-size: 22px;
  opacity: 0.35;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(12deg); }
}

h1, h2, h3, .logo-text, .price-tag {
  font-family: "Baloo 2", "Quicksand", sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 254, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px dashed var(--purple-soft);
}

.header-sparkle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.header-sparkle-left { left: 22px; }
.header-sparkle-right { right: 22px; animation-delay: 1.2s; }
@media (max-width: 900px) {
  .header-sparkle { display: none; }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 52px;
  width: auto;
}
.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.logo-text .sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--purple-deep);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.main-nav a:hover { background: var(--cyan-soft); }

.cart-btn {
  position: relative;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}
.cart-btn:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cart-count {
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 0 6px;
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .logo img { height: 40px; }
  .logo-text { font-size: 15px; }
  .logo-text br { display: none; }
}

/* ---------- hero banner ---------- */
.hero {
  padding: 48px 0 16px;
  position: relative;
  z-index: 1;
}
.hero-tile {
  background: linear-gradient(135deg, var(--cyan-soft) 0%, var(--purple-soft) 55%, var(--pink-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-tile .hero-copy {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 700;
  font-family: "Baloo 2", "Quicksand", sans-serif;
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-badges span {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow);
}

/* ---------- newsletter signup ---------- */
.newsletter-section { padding: 0 0 8px; position: relative; z-index: 1; }
.newsletter-tile {
  background: var(--white);
  border: 3px solid var(--purple-soft);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-copy h3 { margin: 0 0 4px; font-size: 19px; }
.newsletter-copy p { margin: 0; color: var(--ink-soft); font-size: 13.5px; max-width: 420px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  border: 2px solid var(--purple-soft);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 14px;
  min-width: 220px;
  background: var(--bg);
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--purple); }
.newsletter-form button {
  background: linear-gradient(90deg, var(--purple-deep), var(--pink-deep));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.newsletter-form button:hover { transform: translateY(-2px); }
@media (max-width: 600px) {
  .newsletter-tile { flex-direction: column; align-items: stretch; text-align: center; }
  .newsletter-form { justify-content: center; }
}

/* ---------- hero / signature products (customization forms) ---------- */
.hero-products {
  padding: 32px 0 8px;
  position: relative;
  z-index: 1;
}
.hero-products h2 { font-size: 26px; margin-bottom: 4px; }
.hero-products .subtitle { color: var(--ink-soft); margin-bottom: 22px; }

.hero-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 820px) {
  .hero-product-grid { grid-template-columns: 1fr; }
}

.hero-card {
  background: var(--white);
  border: 3px solid var(--purple-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.hero-card .hero-emoji {
  font-size: 44px;
  background: var(--cyan-soft);
  border-radius: var(--radius-sm);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card h3 { margin: 0 0 2px; font-size: 20px; padding-right: 92px; }
.hero-card .hero-desc { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 4px; }
.hero-card .price-tag { font-size: 17px; font-weight: 700; color: var(--purple-deep); }
.hero-card .tag-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-photo-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 10px 0 4px;
  flex-wrap: wrap;
}
.hero-polaroid {
  background: var(--white);
  padding: 6px 6px 14px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  width: 84px;
  transition: transform 0.15s ease;
}
.hero-polaroid:hover { transform: rotate(0deg) scale(1.05) !important; }
.hero-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.hero-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--purple-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease;
}
.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
}
.field textarea { resize: vertical; min-height: 60px; }

.dropdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 460px) {
  .dropdown-row { grid-template-columns: 1fr; }
}

.hero-card .add-btn {
  margin-top: 4px;
  align-self: flex-start;
  background: linear-gradient(90deg, var(--purple-deep), var(--pink-deep));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.hero-card .add-btn:hover { transform: translateY(-2px); }
.field-error {
  font-size: 12px;
  color: var(--pink-deep);
  font-weight: 700;
  display: none;
}
.field-error.show { display: block; }

/* ---------- bento product grid ---------- */
.shop-section { padding: 40px 0 80px; position: relative; z-index: 1; }
.shop-section h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.shop-section .subtitle {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 18px;
}

.tile {
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.7);
}
.tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-hover); }

.tile.size-small  { grid-column: span 1; grid-row: span 2; }
.tile.size-medium { grid-column: span 2; grid-row: span 2; }
.tile.size-large  { grid-column: span 2; grid-row: span 3; }
.tile.size-wide   { grid-column: span 4; grid-row: span 2; }
.tile.size-tall   { grid-column: span 1; grid-row: span 3; }

.tile:nth-child(4n+1) { background: var(--cyan-soft); }
.tile:nth-child(4n+2) { background: var(--purple-soft); }
.tile:nth-child(4n+3) { background: var(--pink-soft); }
.tile:nth-child(4n+4) { background: var(--white); border-color: var(--purple-soft); }

.tile-emoji {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 42px;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.05));
}
.tile.size-large .tile-emoji,
.tile.size-tall .tile-emoji { font-size: 60px; }

/* small framed "polaroid" product photo — sits in the top corner of
   the tile like the emoji used to, rather than covering the whole
   tile, so the colourful bento background and the "Add to Bag"
   button both stay fully visible and clickable. */
.tile-polaroid {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 64px;
  background: var(--white);
  padding: 5px 5px 12px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  z-index: 1;
}
.tile-polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.tile.size-large .tile-polaroid,
.tile.size-tall .tile-polaroid { width: 86px; }

.tile-info {
  position: relative;
  z-index: 1;
}

.tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  z-index: 2;
}

.tile-info h3 {
  font-size: 17px;
  margin: 0 0 4px;
  line-height: 1.25;
}
.tile-info .price-tag {
  font-weight: 700;
  font-size: 15px;
  color: var(--purple-deep);
}
.tile-info .desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 2px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-colour-field { margin: 6px 0 10px; }
.tile-colour-field label { font-size: 11px; margin-bottom: 3px; }
.tile-colour-field select { padding: 6px 10px; font-size: 12.5px; border-radius: 10px; }

.add-btn {
  align-self: flex-start;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.add-btn:hover { transform: translateY(-2px); }
.add-btn:disabled {
  background: #cfc4d6;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sold-out-stamp {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 4px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.85);
  font-size: 13px;
}

@media (max-width: 860px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .tile.size-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .tile.size-small, .tile.size-medium, .tile.size-large, .tile.size-tall, .tile.size-wide {
    grid-column: span 2;
  }
}

/* ---------- cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,27,54,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg);
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 31;
  display: flex;
  flex-direction: column;
  border-left: 4px dashed var(--purple-soft);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 22px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed var(--purple-soft);
}
.cart-header h2 { margin: 0; font-size: 22px; }
.close-cart {
  background: var(--pink-soft);
  color: var(--pink-deep);
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-empty { text-align: center; color: var(--ink-soft); margin-top: 60px; }
.cart-empty .big-emoji { font-size: 48px; display: block; margin-bottom: 12px; }

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.cart-item .thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 { margin: 0; font-size: 14px; }
.cart-item .info .unit-price { font-size: 12px; color: var(--ink-soft); }
.cart-item .custom-summary {
  font-size: 11.5px;
  color: var(--purple-deep);
  background: var(--purple-soft);
  border-radius: 8px;
  padding: 6px 8px;
  margin: 6px 0;
  line-height: 1.5;
}
.cart-item .custom-summary strong { color: var(--ink); }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--cyan-soft);
  font-weight: 700;
}
.remove-item {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: underline;
  margin-left: 6px;
}

.cart-footer {
  padding: 18px 22px 26px;
  border-top: 2px dashed var(--purple-soft);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.pay-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pay-btn:hover { transform: translateY(-2px); }
.pay-stripe { background: var(--ink); color: var(--white); }
#paypal-button-container { margin-top: 4px; }

.checkout-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}

/* ---------- about / footer ---------- */
.about-section {
  padding: 20px 0 60px;
  position: relative;
  z-index: 1;
}
.about-tile {
  background: var(--cyan-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.about-tile h2 { margin-top: 0; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}
.contact-card a { font-weight: 700; color: var(--purple-deep); }
@media (max-width: 720px) {
  .about-tile { grid-template-columns: 1fr; }
}

.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--ink-soft);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-deep);
  transition: transform 0.15s ease, color 0.15s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { color: var(--pink-deep); transform: translateY(-2px); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- image zoom / lightbox ---------- */
.hero-polaroid img,
.tile-polaroid img {
  cursor: zoom-in;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(36, 27, 54, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  background: var(--white);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.lightbox-close:hover { transform: translateY(-2px); }
