:root {
  --cream: #fff9ef;
  --pink: #ff8fb2;
  --hot: #ed2d34;
  --yellow: #ffd95b;
  --blue: #9bd8f8;
  --mint: #bdebdc;
  --ink: #321b18;
  --line: #f4c4cb;
  --display: "Bagel Fat One", serif;
  --body: "Inter", Arial, sans-serif;
  --side: 42px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  line-height: 1.45;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Top Announcement Bar */
.topbar {
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #ffd4df, #ffe6ba);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--hot);
  font-weight: 800;
}

/* Header & Navigation */
.header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px var(--side);
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
  font-family: var(--display);
  font-size: 38px;
  line-height: .82;
  color: var(--hot);
  letter-spacing: .01em;
}

.header nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-transform: uppercase;
  font-size: 14px;
}

.sale {
  color: var(--hot);
}

.icons {
  display: flex;
  gap: 30px;
  font-size: 34px;
  cursor: pointer;
}

.icons b {
  position: relative;
  top: -18px;
  left: -8px;
  background: var(--hot);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  padding: 5px 8px;
}

/* ==========================================================================
   HERO SECTION (SPLIT 2-COLUMN UN-CROPPED LAYOUT)
   ========================================================================== */
.hero {
  position: relative;
  margin: 34px var(--side);
  border-radius: 28px;
  background: linear-gradient(135deg, #ffe7db 0%, #ffdbe8 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 84px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: left;
}

.ribbon {
  display: inline-block;
  background: #ffabc4;
  padding: 8px 24px;
  border-radius: 10px;
  color: #d82735;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--display);
  font-size: 78px;
  line-height: .9;
  color: var(--hot);
  margin: 22px 0;
}

.hero-copy p:not(.ribbon) {
  max-width: 410px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 30px;
}

/* Hero image displayed as a separate card on the right */
.hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  border: 6px dashed white; /* Cute white sewing stitch border! */
  box-shadow: 0 15px 35px rgba(255, 143, 178, 0.18);
  aspect-ratio: 1.25 / 1;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 3px dashed white; /* Cute white dashed stitch border! */
  padding: 16px 36px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 14px;
  transition: transform 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}

.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.pink {
  background: var(--pink);
  color: white;
}

.club-badge {
  position: absolute;
  right: -30px;
  top: -30px;
  z-index: 3;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-family: var(--display);
  font-size: 18px;
  line-height: 0.95;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(255, 143, 178, 0.35);
  transform: rotate(12deg);
}

/* ==========================================================================
   CATEGORY CLOUD FRAMES
   ========================================================================== */
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin: 44px var(--side) 64px;
  text-align: center;
}

.categories article {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.categories img {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 38%; /* Smooth squircle shape that rounds the corners of the background color! */
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 6px 12px rgba(255, 141, 178, 0.12));
}

/* Category Specific Dashed Stitch Borders */
.categories a:nth-child(1) img { border: 3px dashed #ffabc4; } /* Stationery (pink) */
.categories a:nth-child(2) img { border: 3px dashed #ffd65a; } /* Mugs (yellow) */
.categories a:nth-child(3) img { border: 3px dashed #8bcbf9; } /* Keyrings (blue) */
.categories a:nth-child(4) img { border: 3px dashed #7be3d3; } /* Stickers (green) */
.categories a:nth-child(5) img { border: 3px dashed #e1b3ff; } /* Candles (purple) */
.categories a:nth-child(6) img { border: 3px dashed #ffb4a2; } /* Home & Decor (orange) */

.categories article:hover img {
  transform: scale(1.08) rotate(4deg);
}

.categories strong {
  display: block;
  margin-top: 14px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   PRODUCT GRID & DETAILS
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--side) 24px;
}

.section-head h2,
.gift h2,
.story h2 {
  font-family: var(--display);
  font-size: 38px;
  color: var(--ink);
  margin: 0;
}

.section-head a {
  color: var(--hot);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin: 0 var(--side) 54px;
}

.product-row article {
  position: relative;
  background: white;
  border: 3px dashed #f6d9dc; /* Default fallback stitch border */
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(255, 143, 178, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Product Specific Dashed Stitch Borders */
.product-row article.border-pink { border: 3px dashed #ffabc4; }
.product-row article.border-yellow { border: 3px dashed #ffd65a; }
.product-row article.border-blue { border: 3px dashed #8bcbf9; }
.product-row article.border-mint { border: 3px dashed #7be3d3; }
.product-row article.border-purple { border: 3px dashed #e1b3ff; }
.product-row article.border-orange { border: 3px dashed #ffb4a2; }
.product-row article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 143, 178, 0.12);
}

.product-row span {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #ffabc4;
  color: #d82735;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  z-index: 1;
}

.product-row img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
  background: #fff9f9;
}

.product-row h3 {
  font-size: 14px;
  margin: 12px 0 6px;
  font-weight: 700;
}

/* Price Wrap - heart button sits next to price */
.price-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-wrap p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.fav-btn-legacy {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--pink);
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
}
.fav-btn-legacy:hover {
  color: var(--hot);
  transform: scale(1.1);
}

/* ==========================================================================
   GIFT SECTION (YELLOW BANNER)
   ========================================================================== */
.gift {
  margin: 0 var(--side) 54px;
  border: 5px dashed white; /* Thick white dashed stitch border! */
  border-radius: 28px;
  background: #ffe27a;
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  text-align: center;
  padding: 40px;
  background-image: radial-gradient(#fff 2px, transparent 3px);
  background-size: 24px 24px;
  box-shadow: 0 10px 30px rgba(255, 217, 91, 0.15);
}

.gift h2 {
  font-size: 46px;
  color: var(--hot);
  margin-bottom: 8px;
}

.gift p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.bear,
.flower {
  font-size: 88px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ==========================================================================
   STORY SECTION & NOTEPAD
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin: 0 var(--side) 64px;
}

.polaroids img {
  background: white;
  padding: 12px 12px 36px; /* Polaroid bottom heavy offset */
  border: 4px dashed #ffabc4; /* Cute pink dashed stitch border! */
  border-radius: 12px;
  transform: rotate(-2deg);
  box-shadow: 0 10px 25px rgba(255, 143, 178, 0.12);
}

.eyebrow {
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story h2 {
  font-size: 44px;
  line-height: 1.1;
  margin: 10px 0 20px;
}

.story p {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

/* Notepad Post-it Note taped to wall */
.note {
  position: relative;
  background: #fff8f8;
  border: 3px dashed #ffabc4; /* Pink dashed stitch border! */
  border-radius: 4px;
  padding: 34px 24px;
  text-align: center;
  color: #ff5b83;
  font-family: var(--display);
  font-size: 26px;
  transform: rotate(3deg);
  box-shadow: 0 8px 20px rgba(255, 143, 178, 0.15);
}

.note::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 90px;
  height: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(255, 143, 178, 0.25);
  border-right: 2px dashed rgba(255, 143, 178, 0.25);
}

.note small {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER (WAVY SCALLOP TOP)
   ========================================================================== */
.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, .8fr) 1.4fr;
  gap: 46px;
  background: #ffe2ec;
  padding: 56px var(--side) 36px;
  border-radius: 40px 40px 0 0;
  border-top: 2px dashed rgba(255, 143, 178, 0.3);
}

.footer nav {
  display: grid;
  gap: 8px;
}

.footer strong {
  color: var(--hot);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.footer p, .footer a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.footer input {
  height: 46px;
  border: 1px solid rgba(255, 143, 178, 0.3);
  border-radius: 999px;
  padding: 0 20px;
  font-family: var(--body);
  outline: none;
  background: white;
}

.footer button {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--hot);
  color: white;
  padding: 0 28px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.footer button:hover {
  transform: translateY(-1px);
}

.footer form div {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.peachy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pink);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(255, 143, 178, 0.3);
  border: 2px solid white;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.peachy-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Category Page Product Actions */
.prod-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.fav-btn {
  border: 2px dashed #ffabc4; /* Cute pink dashed stitch border! */
  background: white;
  color: var(--hot);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.fav-btn:hover {
  background: #fff5f6;
  transform: scale(1.05);
}
.buy-btn {
  flex-grow: 1;
  background: var(--yellow);
  color: var(--ink);
  border: 2px dashed white; /* Cute white dashed stitch border! */
  border-radius: 8px;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}
.buy-btn:hover {
  background: #ffcf2d;
  transform: scale(1.02);
}

.subpage-title {
  text-align: center;
  margin: 40px var(--side) 20px;
}
.subpage-title h1 {
  font-family: var(--display);
  font-size: 54px;
  color: var(--hot);
  margin-bottom: 8px;
}
.subpage-title p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (FULLY REALIGNED)
   ========================================================================== */
@media (max-width: 900px) {
  :root {
    --side: 16px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px var(--side);
    text-align: center;
  }

  .logo {
    font-size: 32px;
  }

  .header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .icons {
    justify-content: center;
    gap: 24px;
    font-size: 28px;
  }

  /* Hero Mobile Redesign */
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    margin: 16px var(--side);
    gap: 28px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 46px;
    margin: 16px 0;
  }

  .hero-copy p:not(.ribbon) {
    max-width: 100%;
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-img-wrap {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .club-badge {
    right: -10px;
    top: -10px;
    width: 90px;
    height: 90px;
    font-size: 14px;
    border-width: 3px;
  }

  /* Category Scallop Grid */
  .categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px var(--side) 36px;
  }

  .categories img {
    width: 80px;
    height: 80px;
  }

  .categories strong {
    font-size: 11px;
  }

  /* Product grid on mobile (2 columns) */
  .product-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 var(--side) 30px;
  }
  
  .product-row article {
    border-radius: 14px;
    padding: 8px;
  }

  .product-row h3 {
    font-size: 12px;
  }

  .section-head h2,
  .gift h2,
  .story h2 {
    font-size: 28px;
  }

  /* Gift Banner */
  .gift {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    margin: 0 var(--side) 30px;
  }

  .gift h2 {
    font-size: 32px;
  }

  .bear,
  .flower {
    font-size: 54px;
    display: inline-block;
  }

  /* Story section */
  .story {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    margin: 0 var(--side) 30px;
  }

  .note {
    font-size: 22px;
    padding: 24px;
    transform: none;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Footer Layout */
  .footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px var(--side);
    text-align: center;
  }

  .footer nav {
    justify-content: center;
  }

  .footer form div {
    flex-direction: column;
    width: 100%;
  }

  .footer input,
  .footer button {
    width: 100%;
  }
}
