/* ============================================================
   Kreshaa Prodigy — Design System
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg:          #FFFDF8;
  --surface:     #ffffff;
  --surface-alt: #F4FBF6;
  --border:      #D7E0D9;
  --border-light:#EDF3EE;

  --green-900:   #12211C;
  --green-800:   #14532B;
  --green-700:   #1E5B34;
  --green-600:   #1B7A3E;
  --green-500:   #1FA855;
  --green-100:   #E7F5EA;
  --green-50:    #F0F7F1;

  --coral:       #E43757;
  --coral-dark:  #C42B48;
  --coral-light: #FFE6EA;

  --gold:        #FFC91B;
  --gold-dark:   #F9A11B;
  --gold-light:  #FFF6E2;
  --gold-pale:   #FFF3D2;

  --teal:        #12A5B0;
  --teal-dark:   #0E7A83;
  --teal-light:  #DFF6F7;

  --orange:      #F58220;
  --orange-light:#FFF1E0;

  --text-primary:  #23302A;
  --text-secondary:#4A5A50;
  --text-muted:    #6B7A70;
  --text-faint:    #9AA79F;

  --shadow-card: 0 16px 40px rgba(20,83,43,.09);
  --shadow-sm:   0 4px 12px rgba(20,83,43,.06);
  --shadow-lg:   0 24px 56px rgba(20,83,43,.12);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   26px;
  --radius-full: 100px;

  --ff-body:     'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-heading:  'Quicksand', sans-serif;

  --container:   1200px;
  --nav-height:  72px;

  /* Motion tokens */
  --motion-intensity: 1;
  --ease-out-back: cubic-bezier(.34,1.56,.64,1);
  --ease-spring: cubic-bezier(.175,.885,.32,1.275);
  --lime: #9BC53D;
}

/* --- Keyframe animations --- */
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(30px, -20px) scale(1.05) rotate(4deg); }
  66%      { transform: translate(-15px, 15px) scale(.97) rotate(-3deg); }
}
@keyframes float-blob-reverse {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(-25px, 20px) scale(.96) rotate(-5deg); }
  66%      { transform: translate(20px, -10px) scale(1.04) rotate(3deg); }
}
@keyframes ken-burns-1 {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes ken-burns-2 {
  0%   { transform: scale(1.08) translate(2%, 1%); }
  100% { transform: scale(1) translate(0, 0); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes slide-out-right {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%  { transform: rotate(-6deg); }
  40%  { transform: rotate(6deg); }
  60%  { transform: rotate(-4deg); }
  80%  { transform: rotate(4deg); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  30%  { transform: translateY(-14px) scale(1.06); }
  50%  { transform: translateY(-6px) scale(1.02); }
}
@keyframes droop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(4px) rotate(-3deg); }
}
@keyframes sway-idle {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  25%      { transform: rotate(1.5deg) translateX(2px); }
  75%      { transform: rotate(-1.5deg) translateX(-2px); }
}
@keyframes wave-hand {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(6deg); }
}
@keyframes badge-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  34%      { border-radius: 70% 30% 46% 54% / 30% 58% 42% 70%; }
  67%      { border-radius: 28% 72% 44% 56% / 64% 36% 66% 34%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-800); }
button, input, select, textarea { font: inherit; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --- Navigation --- */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,248,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height); max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a, .nav-links button {
  padding: 8px 16px; border-radius: var(--radius-full); font-weight: 600; font-size: 14px;
  color: var(--text-secondary); border: 0; background: transparent; cursor: pointer; transition: all .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links button:hover { background: var(--green-50); color: var(--green-700); }
.nav-links .cart-badge {
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 6px;
}
.nav-cta {
  background: var(--green-600) !important; color: #fff !important;
  border-radius: var(--radius-full) !important; padding: 8px 20px !important;
}
.nav-cta:hover { background: var(--green-700) !important; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text-primary); }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { width: 100%; justify-content: flex-start; }
}

/* --- Hero --- */
.hero {
  padding: 80px 0 60px; text-align: center;
  background: radial-gradient(ellipse at 50% 20%, var(--gold-pale) 0%, var(--bg) 70%);
}
.hero h1 {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.15;
  color: var(--green-800);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  margin: 18px auto 0; max-width: 560px; font-size: 17px; line-height: 1.65;
  color: var(--text-muted);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: 0; border-radius: var(--radius-full);
  font-family: var(--ff-heading); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-secondary:hover { background: var(--green-50); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* --- Cards --- */
.card {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 1; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder-icon { font-size: 48px; color: var(--text-faint); }
.card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--coral); color: #fff; padding: 4px 12px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 700;
  font-family: var(--ff-heading);
}
.card-body { padding: 20px; }
.card-body h3 {
  font-family: var(--ff-heading); font-weight: 700; font-size: 17px;
  color: var(--green-800); margin-bottom: 4px;
}
.card-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.card-price { font-family: var(--ff-heading); font-weight: 700; font-size: 20px; color: var(--green-700); }
.card-price .compare { font-size: 14px; color: var(--text-faint); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold-dark); margin-top: 6px; }
.card-rating .count { color: var(--text-faint); }
.card-actions { margin-top: 14px; }

/* --- Product Detail --- */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; }
@media (max-width: 768px) { .pd-wrap { grid-template-columns: 1fr; gap: 24px; } }
.pd-image { border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-alt); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-family: var(--ff-heading); font-weight: 700; font-size: 32px; color: var(--green-800); }
.pd-tag { display: inline-block; background: var(--coral); color: #fff; padding: 4px 14px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pd-meta { font-size: 14px; color: var(--text-muted); margin: 8px 0 16px; }
.pd-price { font-family: var(--ff-heading); font-weight: 700; font-size: 32px; color: var(--green-700); margin-bottom: 8px; }
.pd-blurb { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 24px; max-width: 520px; }
.pd-variants { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pd-variants label {
  display: block; padding: 10px 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; font-size: 14px; font-weight: 600; transition: all .2s;
}
.pd-variants input { display: none; }
.pd-variants input:checked + label { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }
.pd-qty { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.pd-qty button {
  width: 42px; height: 42px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 20px; cursor: pointer; transition: background .2s; color: var(--text-primary);
}
.pd-qty button:first-child { border-radius: 12px 0 0 12px; }
.pd-qty button:last-child { border-radius: 0 12px 12px 0; }
.pd-qty button:hover { background: var(--green-50); }
.pd-qty input {
  width: 56px; height: 42px; text-align: center; border: 1.5px solid var(--border);
  border-left: 0; border-right: 0; font-weight: 700; font-size: 16px;
}

/* --- Section headings --- */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 34px); color: var(--green-800);
}
.section-header p { color: var(--text-muted); margin-top: 8px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* --- Occasions pills --- */
.occasion-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.occasion-pill {
  padding: 8px 20px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s;
  text-decoration: none; color: var(--text-secondary);
}
.occasion-pill:hover, .occasion-pill.active { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }

/* --- Cart table --- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; font-weight: 700; color: var(--text-muted); padding: 12px 16px; border-bottom: 2px solid var(--border-light); }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-table .item-info { display: flex; align-items: center; gap: 16px; }
.cart-table .item-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-alt); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-table .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-table .item-name { font-weight: 700; color: var(--green-800); }
.cart-table .item-variant { font-size: 13px; color: var(--text-muted); }
.cart-table .remove-btn { color: var(--coral); font-size: 13px; cursor: pointer; background: none; border: 0; font-weight: 600; }
.cart-table .remove-btn:hover { text-decoration: underline; }

/* --- Cart summary --- */
.cart-summary {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); padding: 32px;
}
.cart-summary h3 { font-family: var(--ff-heading); font-weight: 700; font-size: 20px; color: var(--green-800); margin-bottom: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.cart-summary .row.total { border-top: 2px solid var(--border); margin-top: 10px; padding-top: 16px; font-weight: 700; font-size: 18px; color: var(--green-700); }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 15px; color: var(--text-primary);
  background: var(--surface-alt); transition: border .2s, background .2s;
}
.form-control:focus { outline: none; border-color: var(--green-600); background: var(--surface); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A70' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* --- Auth pages --- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex; align-items: center; justify-content: center; padding: 48px 24px;
}
.auth-card {
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); max-width: 440px; width: 100%; padding: 44px 36px;
}
.auth-card h1 { font-family: var(--ff-heading); font-weight: 700; font-size: 28px; color: var(--green-800); margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.auth-card .alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* --- Flash messages --- */
.flash { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.flash-success { background: var(--green-100); color: var(--green-700); }
.flash-error { background: var(--coral-light); color: var(--coral-dark); }
.flash-warning { background: var(--gold-light); color: #9B6A00; }
.flash-info { background: var(--teal-light); color: var(--teal-dark); }

/* --- Footer --- */
.footer {
  background: var(--green-900); color: rgba(255,255,255,.7); padding: 64px 0 32px;
  margin-top: 64px;
}
.footer h4 { font-family: var(--ff-heading); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { margin-bottom: 10px; }
.footer-brand img { height: 56px; width: auto; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; }

/* --- Corporate banner --- */
.corporate-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-xl); padding: 56px 48px; color: #fff; position: relative; overflow: hidden;
}
.corporate-banner h2 { font-family: var(--ff-heading); font-weight: 700; font-size: 32px; margin-bottom: 12px; }
.corporate-banner p { max-width: 560px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.84); }

/* --- Checkout steps --- */
.checkout-steps { display: flex; gap: 4px; margin-bottom: 40px; }
.checkout-step {
  flex: 1; text-align: center; padding: 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; color: var(--text-muted); background: var(--surface-alt);
}
.checkout-step.active { background: var(--green-600); color: #fff; }
.checkout-step.done { background: var(--green-100); color: var(--green-700); }

/* --- Empty state --- */
.empty-state {
  text-align: center; padding: 80px 24px;
}
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--ff-heading); font-weight: 700; font-size: 24px; color: var(--green-800); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* --- Profile / Orders --- */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 48px 0; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-sidebar { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 28px; }
.profile-sidebar .user-info { text-align: center; margin-bottom: 24px; }
.profile-sidebar .avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-family: var(--ff-heading); font-weight: 700; font-size: 28px;
}
.profile-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.profile-nav a {
  display: block; padding: 10px 16px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; color: var(--text-secondary); transition: all .2s;
}
.profile-nav a:hover, .profile-nav a.active { background: var(--green-50); color: var(--green-700); }
.profile-content { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 36px; }
.profile-content h2 { font-family: var(--ff-heading); font-weight: 700; font-size: 22px; color: var(--green-800); margin-bottom: 24px; }

/* --- Order status badges --- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; font-family: var(--ff-heading);
}
.badge-pending   { background: var(--gold-light); color: #9B6A00; }
.badge-confirmed { background: var(--teal-light); color: var(--teal-dark); }
.badge-processing{ background: var(--orange-light); color: var(--orange); }
.badge-shipped   { background: #F3E7F6; color: #7B2D8E; }
.badge-delivered  { background: var(--green-100); color: var(--green-700); }
.badge-cancelled  { background: var(--coral-light); color: var(--coral-dark); }
.badge-paid      { background: var(--green-100); color: var(--green-700); }
.badge-failed    { background: var(--coral-light); color: var(--coral-dark); }
.badge-refunded  { background: var(--gold-light); color: #9B6A00; }

/* --- Data tables (orders) --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-weight: 700; color: var(--text-muted); padding: 12px 14px; border-bottom: 2px solid var(--border-light); font-size: 13px; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--green-50); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.pagination a { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.pagination a:hover { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }
.pagination .current { background: var(--green-600); color: #fff; border: 1px solid var(--green-600); }

/* --- Parallax background blobs --- */
.blob-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  filter: blur(60px); opacity: .12;
  animation: float-blob 18s ease-in-out infinite, blob-morph 22s ease-in-out infinite;
  will-change: transform;
}
.blob:nth-child(2) { animation-name: float-blob-reverse, blob-morph; animation-duration: 22s, 26s; }
.blob:nth-child(3) { animation-name: float-blob, blob-morph; animation-duration: 25s, 20s; animation-delay: -6s; }
.blob-green   { background: var(--green-600); }
.blob-teal    { background: var(--teal); }
.blob-gold    { background: var(--gold); }
.blob-coral   { background: var(--coral); }
.blob-lime    { background: var(--lime); }

/* --- Hero carousel --- */
.hero-carousel { position: relative; width: 100%; max-width: 560px; height: 360px; border-radius: var(--radius-xl); overflow: hidden; margin: 0 auto 0; box-shadow: var(--shadow-lg); }
.hero-carousel .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease;
  background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
}
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: ken-burns-1 8s ease-in-out alternate infinite;
}
.hero-carousel .slide:nth-child(even) .slide-bg { animation-name: ken-burns-2; }
.hero-carousel .slide-caption {
  position: relative; z-index: 2; background: rgba(20,83,43,.78); backdrop-filter: blur(8px);
  color: #fff; padding: 8px 22px; border-radius: var(--radius-full);
  font-family: var(--ff-heading); font-weight: 700; font-size: 15px;
  margin-top: auto; margin-bottom: 24px;
}
.hero-carousel .slide-placeholder { font-size: 80px; z-index: 1; }
.hero-carousel .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-carousel .dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4);
  border: 0; cursor: pointer; transition: all .3s; padding: 0;
}
.hero-carousel .dot.active { background: #fff; transform: scale(1.3); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } .hero-carousel { height: 280px; max-width: 100%; } }

/* --- Mascot companion --- */
.mascot-wrap {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.mascot-bubble {
  background: var(--surface); border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow-card); padding: 12px 18px;
  font-size: 14px; line-height: 1.5; color: var(--text-primary);
  max-width: 220px; pointer-events: auto;
  animation: fade-in-up .4s var(--ease-spring);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.mascot-bubble.show { opacity: 1; transform: translateY(0); }
.mascot-bubble .close-bubble {
  position: absolute; top: 4px; right: 8px; background: none; border: 0;
  font-size: 16px; color: var(--text-faint); cursor: pointer; padding: 2px;
}
.mascot-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-light), var(--gold-pale));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; cursor: pointer; pointer-events: auto;
  box-shadow: 0 4px 16px rgba(20,83,43,.15);
  transition: transform .3s var(--ease-spring);
  position: relative;
}
.mascot-avatar:hover { transform: scale(1.08); }
.mascot-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid var(--bg);
  animation: badge-pop .4s var(--ease-out-back);
}
/* Mascot emotions */
.mascot-avatar.wave   { animation: wave-hand 1.2s ease; }
.mascot-avatar.hop    { animation: hop .6s var(--ease-spring); }
.mascot-avatar.droop  { animation: droop 1s ease; }
.mascot-avatar.sway   { animation: sway-idle 3s ease-in-out infinite; }
.mascot-avatar.wiggle { animation: wiggle .6s ease; }
.mascot-avatar.pulse  { animation: pulse-soft 1.5s ease-in-out 2; }

@media (max-width: 600px) {
  .mascot-wrap { bottom: 12px; right: 12px; }
  .mascot-avatar { width: 56px; height: 56px; font-size: 28px; }
  .mascot-bubble { max-width: 180px; font-size: 13px; }
}

/* --- Animate on scroll --- */
.anim-ready { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.anim-ready.in-view { opacity: 1; transform: translateY(0); }
.anim-ready:nth-child(2) { transition-delay: .1s; }
.anim-ready:nth-child(3) { transition-delay: .2s; }
.anim-ready:nth-child(4) { transition-delay: .3s; }
.anim-ready:nth-child(5) { transition-delay: .4s; }
.anim-ready:nth-child(6) { transition-delay: .5s; }
.anim-ready:nth-child(7) { transition-delay: .6s; }
.anim-ready:nth-child(8) { transition-delay: .7s; }

/* --- Enhanced card interactions --- */
.card { position: relative; }
.card::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, var(--green-600), var(--teal), var(--gold));
  opacity: 0; transition: opacity .3s; z-index: -1;
}
.card:hover::before { opacity: .15; }
.card .card-img .placeholder-icon { transition: transform .4s var(--ease-spring); }
.card:hover .card-img .placeholder-icon { transform: scale(1.15) rotate(-5deg); }

/* --- Pill badge shimmer for tags --- */
.card-tag {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, var(--coral) 0%, var(--coral) 40%, rgba(255,255,255,.3) 50%, var(--coral) 60%, var(--coral) 100%);
  animation: shimmer 3s ease-in-out infinite;
}

/* --- Organic shapes for sections --- */
.section-organic::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px;
  background: var(--green-100); border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: blob-morph 20s ease-in-out infinite;
  opacity: .4; z-index: -1;
}
.section-organic { position: relative; overflow: visible; }

/* --- Bag drawer (slide from right) --- */
.bag-overlay { position: fixed; inset: 0; background: rgba(18,33,28,.4); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.bag-overlay.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 90vw;
  background: var(--surface); z-index: 201; box-shadow: -8px 0 40px rgba(20,83,43,.12);
  transform: translateX(100%); transition: transform .4s var(--ease-spring);
  display: flex; flex-direction: column; overflow-y: auto;
}
.bag-overlay.open .bag-drawer { transform: translateX(0); }
.bag-drawer-header {
  padding: 24px; border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.bag-drawer-header h3 { font-family: var(--ff-heading); font-weight: 700; font-size: 20px; color: var(--green-800); }
.bag-drawer-close { background: none; border: 0; font-size: 24px; cursor: pointer; padding: 4px; color: var(--text-muted); }
.bag-drawer-body { flex: 1; padding: 24px; }
.bag-drawer-footer { padding: 24px; border-top: 2px solid var(--border-light); }

/* --- Utility --- */
/* --- Category blob cards --- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.cat-blob {
  display: block; padding: 34px 28px 30px; background: var(--surface);
  box-shadow: 0 18px 40px rgba(20,83,43,.12); transition: box-shadow .4s ease, transform .35s var(--ease-spring);
  text-decoration: none; color: inherit;
}
.cat-blob:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(20,83,43,.2); }
.cat-blob:nth-child(1) { border-radius: 58% 42% 46% 54% / 42% 46% 54% 58%; background: linear-gradient(155deg, var(--gold-pale), var(--bg)); }
.cat-blob:nth-child(2) { border-radius: 44% 56% 58% 42% / 52% 44% 56% 48%; background: linear-gradient(155deg, var(--coral-light), var(--bg)); }
.cat-blob:nth-child(3) { border-radius: 54% 46% 42% 58% / 46% 56% 44% 54%; background: linear-gradient(155deg, var(--teal-light), var(--bg)); }
.cat-blob:nth-child(4) { border-radius: 46% 54% 56% 44% / 56% 42% 58% 44%; background: linear-gradient(155deg, #ECF7D9, var(--bg)); }
.cat-blob:nth-child(5) { border-radius: 56% 44% 50% 50% / 44% 54% 46% 56%; background: linear-gradient(155deg, var(--green-50), var(--bg)); }
.cat-blob:nth-child(6) { border-radius: 42% 58% 54% 46% / 50% 50% 50% 50%; background: linear-gradient(155deg, var(--orange-light), var(--bg)); }
.cat-blob:nth-child(7) { border-radius: 50% 50% 44% 56% / 58% 42% 58% 42%; background: linear-gradient(155deg, #F3E7F6, var(--bg)); }
.cat-blob:nth-child(8) { border-radius: 58% 42% 52% 48% / 46% 58% 42% 54%; background: linear-gradient(155deg, var(--gold-light), var(--bg)); }
.cat-blob .cat-dot {
  width: 54px; height: 54px; border-radius: 52% 48% 46% 54%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.cat-blob h3 { font-family: var(--ff-heading); font-weight: 700; font-size: 22px; color: var(--green-800); margin-top: 22px; }
.cat-blob p { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review-card {
  padding: 28px 26px; border-radius: var(--radius-xl); background: var(--surface);
  box-shadow: var(--shadow-card); transition: transform .3s var(--ease-spring);
}
.review-card:hover { transform: translateY(-3px); }
.review-stars { font-size: 15px; color: var(--gold-dark); letter-spacing: .12em; }
.review-text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.review-who { margin-top: 14px; font-family: var(--ff-heading); font-weight: 700; font-size: 14px; color: var(--green-800); }

/* --- Custom gift section --- */
.custom-gift-banner {
  position: relative; overflow: hidden; padding: 64px 8%; text-align: center;
  border-radius: 46% 54% 44% 56% / 28% 26% 74% 72%;
  background: linear-gradient(140deg, #0F5C2E, var(--teal));
  box-shadow: 0 34px 80px rgba(15,92,46,.28); color: #fff;
}
.custom-gift-banner::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 300px; height: 280px; border-radius: 50%; background: rgba(255,201,27,.28);
  animation: float-blob 20s ease-in-out infinite;
}
.custom-gift-banner::after {
  content: ''; position: absolute; bottom: -70px; left: -50px;
  width: 240px; height: 220px; border-radius: 54% 46% 50% 50%;
  background: rgba(255,255,255,.12); animation: float-blob-reverse 15s ease-in-out infinite;
}
.custom-gift-banner h2 { position: relative; font-family: var(--ff-heading); font-weight: 700; font-size: clamp(30px, 4vw, 46px); }
.custom-gift-banner > p { position: relative; margin: 16px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); }
.custom-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 44px; }
.custom-step {
  padding: 26px 24px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
.custom-step:nth-child(1) { border-radius: 999px 999px 999px 40px; }
.custom-step:nth-child(2) { border-radius: 999px 999px 40px 999px; }
.custom-step:nth-child(3) { border-radius: 999px 40px 999px 999px; }
.custom-step .step-num { font-family: var(--ff-heading); font-weight: 700; font-size: 15px; color: var(--gold); letter-spacing: .08em; }
.custom-step h4 { margin-top: 8px; font-family: var(--ff-heading); font-weight: 700; font-size: 19px; color: #fff; }
.custom-step p { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.78); }

/* --- Story feature cards --- */
.story-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 52px; }
.story-card {
  padding: 30px 28px; background: var(--surface); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-spring);
}
.story-card:nth-child(1) { border-radius: 44% 56% 50% 50% / 30% 30% 70% 70%; }
.story-card:nth-child(2) { border-radius: 56% 44% 50% 50% / 30% 30% 70% 70%; }
.story-card:nth-child(3) { border-radius: 50% 50% 44% 56% / 30% 30% 70% 70%; }
.story-card:hover { transform: translateY(-3px); }
.story-card h4 { font-family: var(--ff-heading); font-weight: 700; font-size: 19px; color: var(--green-800); }
.story-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

/* --- Gift finder quiz --- */
.quiz-card {
  padding: 46px 6%; border-radius: var(--radius-xl); background: var(--surface);
  box-shadow: var(--shadow-card); max-width: 860px; margin: 0 auto;
}
.quiz-step-label { font-family: var(--ff-heading); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--teal); }
.quiz-question { font-family: var(--ff-heading); font-weight: 700; font-size: clamp(24px, 3.5vw, 38px); color: var(--green-800); margin-top: 4px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 30px; }
.quiz-option {
  padding: 22px 20px; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--green-800); font-family: var(--ff-heading);
  font-weight: 700; font-size: 16px; cursor: pointer; transition: all .25s var(--ease-spring);
  text-decoration: none; display: block; text-align: left;
}
.quiz-option:hover { border-color: var(--lime); transform: translateY(-3px); box-shadow: var(--shadow-card); color: var(--green-800); }
.quiz-option.selected { border-color: var(--green-600); background: var(--green-100); }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quiz-progress-bar { flex: 1; height: 8px; border-radius: var(--radius-full); background: var(--border-light); overflow: hidden; }
.quiz-progress-fill { height: 100%; border-radius: var(--radius-full); background: linear-gradient(96deg, var(--orange), var(--gold)); transition: width .4s ease; }

/* --- Occasion header --- */
.occasion-hero {
  padding: 48px 6%; border-radius: 40px; background: linear-gradient(140deg, #0F5C2E, var(--teal)); color: #fff;
}
.occasion-hero .occ-label { font-family: var(--ff-heading); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--gold); }
.occasion-hero h1 { font-family: var(--ff-heading); font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin-top: 12px; }
.occasion-hero p { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); }
.occasion-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 26px; }
.occasion-tab {
  padding: 12px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); color: var(--text-secondary); font-family: var(--ff-heading);
  font-weight: 700; font-size: 14px; text-decoration: none; transition: all .25s ease;
}
.occasion-tab:hover, .occasion-tab.active { border-color: var(--green-600); background: var(--green-100); color: var(--green-700); }

/* --- Info / FAQ cards --- */
.faq-list { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.faq-card {
  padding: 26px 28px; border-radius: var(--radius-xl); background: var(--surface);
  box-shadow: var(--shadow-card);
}
.faq-card h3 { font-family: var(--ff-heading); font-weight: 700; font-size: 18px; color: var(--green-800); }
.faq-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* --- Gift wrap picker --- */
.wrap-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.wrap-option {
  display: flex; align-items: center; gap: 9px; padding: 11px 20px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  cursor: pointer; font-size: 14px; font-weight: 600; transition: all .25s ease;
}
.wrap-option input { display: none; }
.wrap-option .wrap-dot { width: 13px; height: 13px; border-radius: 50%; }
.wrap-option input:checked ~ .wrap-label { color: var(--green-700); }
.wrap-option:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }

/* --- Newsletter in footer --- */
.newsletter-form {
  display: flex; gap: 8px; margin-top: 14px; padding: 6px;
  border-radius: var(--radius-full); background: rgba(255,255,255,.09);
}
.newsletter-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  padding: 10px 16px; font-family: var(--ff-body); font-size: 15px; color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  flex: none; border: 0; padding: 11px 22px; border-radius: var(--radius-full);
  background: linear-gradient(96deg, var(--orange), var(--gold)); color: var(--green-900);
  font-family: var(--ff-heading); font-weight: 700; font-size: 15px; cursor: pointer;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }.mb-2 { margin-bottom: 16px; }.mb-3 { margin-bottom: 24px; }.mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
