@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --cream: #FFFBF8;
  --blush: #F6C6D9;
  --blush-light: #FDEAF1;
  --rose: #D64571;
  --rose-dark: #A83059;
  --choco: #3A2A28;
  --choco-soft: #6B5450;
  --gold: #C9A15D;
  --white: #FFFFFF;
  --line: #F0DCE4;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--choco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--choco);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,251,248,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}

.logo span { color: var(--rose); }

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.admin-sidebar .logo img { height: 44px; }

.footer-logo img { height: 60px; width: auto; }

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--choco-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--rose); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  position: relative;
  font-size: 0.95rem;
  color: var(--choco);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 20px;
}

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover { background: var(--rose-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--choco);
  color: var(--choco);
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: transparent; border-color: #c14848; color: #c14848; }
.btn-danger:hover { background: #c14848; color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--rose);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-style: italic;
  font-family: 'Fraunces', serif;
}

.hero h1 {
  font-size: 3.1rem;
  max-width: 11ch;
}

.hero p.lead {
  margin-top: 22px;
  max-width: 42ch;
  color: var(--choco-soft);
  font-size: 1.08rem;
}

.hero-cta { margin-top: 32px; display: flex; gap: 14px; }

.hero-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.showcase-card {
  background: var(--white);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 18px 40px -20px rgba(58, 42, 40, 0.25);
}

.showcase-card:nth-child(2) { transform: translateY(28px) rotate(-1.5deg); }
.showcase-card:nth-child(1) { transform: rotate(2deg); }
.showcase-card:nth-child(3) { transform: translateY(-14px) rotate(1deg); }
.showcase-card:nth-child(4) { transform: translateY(16px) rotate(-2deg); }

.showcase-card img { border-radius: 3px; aspect-ratio: 1; object-fit: cover; }
.showcase-card .cap { font-size: 0.78rem; text-align: center; margin-top: 6px; color: var(--choco-soft); }

/* ---------- Section headings ---------- */
.section { padding: 70px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--choco-soft); margin-top: 8px; max-width: 46ch; }

.section-bg { background: var(--blush-light); }

/* ---------- Category chips ---------- */
.category-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.88rem;
  color: var(--choco-soft);
  background: var(--white);
}

.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.active { background: var(--rose); border-color: var(--rose); color: var(--white); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 20px 40px -24px rgba(58,42,40,0.3);
  transform: translateY(-3px);
}

.product-card .thumb { aspect-ratio: 4/3.2; overflow: hidden; background: var(--blush-light); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card .body { padding: 18px 18px 20px; }
.product-card .cat-label { font-size: 0.76rem; color: var(--rose); margin-bottom: 6px; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-card .desc { font-size: 0.87rem; color: var(--choco-soft); margin-bottom: 14px; }

.price-row { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: 'Fraunces', serif; color: var(--gold); font-size: 1.15rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--choco);
  color: #E9DAD4;
  padding: 56px 0 26px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
}

.footer-grid a, .footer-grid p { color: #C9B5AF; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--blush); }

.footer-logo { font-family: 'Fraunces', serif; color: var(--white); font-size: 1.3rem; margin-bottom: 12px; }
.footer-logo span { color: var(--blush); }

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #A6928C;
  display: flex;
  justify-content: space-between;
}

/* ---------- Forms ---------- */
.form-page {
  max-width: 440px;
  margin: 70px auto;
  padding: 0 28px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 36px;
}

.form-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.form-sub { color: var(--choco-soft); margin-bottom: 28px; font-size: 0.92rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--choco-soft); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--choco);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  background: var(--white);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field input { width: auto; }

.form-error {
  background: #FCE9E9;
  color: #A33232;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.87rem;
  margin-bottom: 20px;
}

.form-notice {
  background: #E1F0E2;
  color: #2C7A31;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.87rem;
  margin-bottom: 20px;
}

.form-footer-link {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--choco-soft);
}

.form-footer-link a { color: var(--rose); font-weight: 500; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--choco-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }

.cart-item { display: flex; align-items: center; gap: 16px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: var(--blush-light); }
.cart-item .name { font-family: 'Fraunces', serif; font-size: 1.02rem; }

.qty-input { width: 60px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; text-align: center; }

.cart-summary {
  background: var(--blush-light);
  border-radius: 8px;
  padding: 28px;
  margin-top: 30px;
  max-width: 380px;
  margin-left: auto;
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.summary-row.total { font-size: 1.2rem; font-family: 'Fraunces', serif; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

.empty-state { text-align: center; padding: 90px 20px; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: 14px; }
.empty-state p { color: var(--choco-soft); margin-bottom: 26px; }

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 50px 0 80px;
}

.product-detail .thumb-large { border-radius: 8px; overflow: hidden; background: var(--blush-light); aspect-ratio: 1; }
.product-detail .thumb-large img { width: 100%; height: 100%; object-fit: cover; }

.zoomable-img { cursor: zoom-in; }

.thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb-strip-item {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.thumb-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip-item:hover { opacity: 1; }
.thumb-strip-item.active { border-color: var(--rose); opacity: 1; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 40px;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.product-detail .cat-label { color: var(--rose); font-size: 0.85rem; margin-bottom: 10px; }
.product-detail h1 { font-size: 2.1rem; margin-bottom: 16px; }
.product-detail .price { font-size: 1.6rem; margin: 18px 0 24px; display: block; }
.product-detail .desc { color: var(--choco-soft); margin-bottom: 30px; line-height: 1.7; }

.qty-selector { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.qty-selector button {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white);
  border-radius: 4px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Tables (admin/account) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.data-table th {
  text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--choco-soft); background: var(--blush-light); padding: 14px 18px;
}
.data-table td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.data-table tr:hover td { background: #FFF8FA; }

.status-pill {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
}
.status-pending { background: #FDF0D5; color: #93650C; }
.status-confirmed { background: #DCEAFB; color: #1B5A9E; }
.status-baking { background: #F3E0F7; color: #7B2C9E; }
.status-ready { background: #DDF0DE; color: #2C7A31; }
.status-completed { background: #DDF0DE; color: #2C7A31; }
.status-cancelled { background: #FADDDD; color: #A33232; }

/* ---------- Admin layout ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--choco); color: #E9DAD4; padding: 30px 22px;
}
.admin-sidebar .logo { color: var(--white); font-size: 1.25rem; margin-bottom: 40px; display: block; }
.admin-sidebar .logo span { color: var(--blush); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.admin-sidebar a {
  padding: 10px 14px; border-radius: 6px; font-size: 0.92rem; color: #C9B5AF;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-sidebar .back-link { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }

.admin-main { padding: 40px 44px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-header h1 { font-size: 1.7rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.stat-card .label { font-size: 0.82rem; color: var(--choco-soft); margin-bottom: 8px; }
.stat-card .value { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px; margin-bottom: 30px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.panel-head h2 { font-size: 1.2rem; }

.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; background: var(--blush-light); }
.table-actions { display: flex; gap: 10px; }
.table-actions form { display: inline; }

.badge-role { font-size: 0.75rem; padding: 2px 10px; border-radius: 20px; background: var(--blush-light); color: var(--rose-dark); }

/* ---------- About / static pages ---------- */
.page-hero { padding: 60px 0 40px; text-align: center; }
.page-hero h1 { font-size: 2.4rem; margin-bottom: 16px; }
.page-hero p { color: var(--choco-soft); max-width: 56ch; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 8px; margin-top: 24px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--choco-soft); margin: 0; }

/* ---------- 404/403 ---------- */
.error-page { text-align: center; padding: 120px 20px; }
.error-page .code { font-family: 'Fraunces', serif; font-size: 5rem; color: var(--blush); }

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.hero-eyebrow, .hero h1, .hero p.lead, .hero-cta {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero p.lead { animation-delay: 0.18s; }
.hero-cta { animation-delay: 0.28s; }

.showcase-card {
  opacity: 0;
  animation: popIn 0.6s ease forwards, floatSoft 5s ease-in-out infinite;
}
.showcase-card:nth-child(1) { animation-delay: 0.15s, 1.2s; }
.showcase-card:nth-child(2) { animation-delay: 0.3s, 1.6s; }
.showcase-card:nth-child(3) { animation-delay: 0.45s, 2s; }
.showcase-card:nth-child(4) { animation-delay: 0.6s, 2.4s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .thumb img { transition: transform 0.4s ease; }

.chip { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.chip:active { transform: scale(0.96); }

.btn { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.btn:active { transform: scale(0.97); }

/* ---------- Comments ---------- */
.comments-section { margin-top: 20px; }
.comment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-author { font-weight: 600; font-size: 0.92rem; }
.comment-date { font-size: 0.78rem; color: var(--choco-soft); }
.comment-body { font-size: 0.92rem; color: var(--choco-soft); }
.comment-form textarea { min-height: 90px; }
.comment-login-prompt {
  background: var(--blush-light);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--choco-soft);
}
.comment-login-prompt a { color: var(--rose); font-weight: 500; }

/* ---------- Category icon chips ---------- */
.chip .chip-icon { margin-right: 6px; }
.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.icon-picker label {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 1.2rem; cursor: pointer; background: var(--cream);
}
.icon-picker input { display: none; }
.icon-picker input:checked + span { display: none; }
.icon-picker label:has(input:checked) { border-color: var(--rose); background: var(--blush-light); }
.category-icon-lg { font-size: 1.4rem; margin-right: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { padding: 16px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Design & animation polish (added) ---------- */

/* Page load fade-in */
body { animation: pageFadeIn 0.5s ease; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header: subtle depth once scrolled */
.site-header { transition: box-shadow 0.25s ease, background 0.25s ease; }
.site-header.scrolled {
  box-shadow: 0 8px 24px -18px rgba(58, 42, 40, 0.35);
  background: rgba(255,251,248,0.98);
}

.logo img { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.logo:hover img { transform: rotate(-6deg) scale(1.06); }

/* Nav underline sweep */
.main-nav a {
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero ambient blobs */
.hero { position: relative; overflow: hidden; }
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  opacity: 0.55;
  animation: floatBlob 10s ease-in-out infinite;
  pointer-events: none;
}
.hero::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--blush) 0%, transparent 70%);
  top: -120px; left: -80px;
}
.hero::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -140px; right: -60px;
  opacity: 0.35;
  animation-delay: 2s;
  animation-duration: 12s;
}
.hero-inner { position: relative; z-index: 1; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

/* Showcase cards: gentle 3D tilt on hover */
.hero-showcase { perspective: 900px; }
.showcase-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.showcase-card:hover {
  box-shadow: 0 24px 50px -20px rgba(58, 42, 40, 0.4);
  z-index: 2;
}

/* Buttons: soft shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(214, 69, 113, 0.55); }
.btn-outline:hover { transform: translateY(-2px); }

/* Section head: animated underline */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 3px;
  margin-top: 10px;
  transition: width 0.6s ease 0.15s;
}
.section-head.is-visible h2::after,
.reveal.is-visible h2::after { width: 64px; }

/* Product grid: staggered reveal */
.product-grid.reveal-group .reveal,
.product-grid .reveal { transition-delay: calc(var(--i, 0) * 0.08s), calc(var(--i, 0) * 0.08s); }

/* Product card hover polish */
.product-card { position: relative; }
.product-card .thumb { position: relative; }
.product-card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(58,42,40,0.28) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .thumb::after { opacity: 1; }
.product-card:hover { transform: translateY(-6px); }
.product-card h3 { transition: color 0.2s ease; }
.product-card:hover h3 { color: var(--rose); }

/* Category chips: playful hover */
.chip { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.chip:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(58,42,40,0.35); }
.chip-icon { display: inline-block; transition: transform 0.3s ease; }
.chip:hover .chip-icon { transform: scale(1.25) rotate(-8deg); }

/* Footer social + link hover */
.footer-grid a { position: relative; transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer-grid ul a:hover { transform: translateX(4px); }
.site-footer a[href*="instagram"] svg { transition: transform 0.3s ease; }
.site-footer a[href*="instagram"]:hover svg { transform: scale(1.15) rotate(8deg); }
.site-footer a[href*="instagram"]:hover { color: var(--blush); }

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(58,42,40,0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--rose-dark); transform: translateY(-3px) scale(1.05); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .hero::before, .hero::after { display: none; }
}
