/* ============================================================
   THE LOUNGE STORIES — Design System
   Premium boho-luxe aesthetic for handcrafted block-print fashion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ivory: #FAF8F5;
  --cream: #F5F0EB;
  --sand: #E8DFD5;
  --tan: #D4C5B5;
  --warm: #C4A882;
  --bronze: #A67C52;
  --coffee: #6B4A30;
  --espresso: #3D2B1F;
  --charcoal: #2C2420;
  --black: #1A1412;
  --rust: #B85C3A;
  --sage: #7A8B6F;
  --blush: #D4A69A;
  /* Brand palette — pink + green (from the elephant logo) */
  --pink: #D98AA8;
  --pink-deep: #B85A82;
  --pink-soft: #FBEEF3;
  --green: #7A8B6F;
  --green-deep: #566349;
  --green-soft: #EEF2E9;
  --white: #FFFFFF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-w: 1400px;
  --gap: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  font-weight: 400;
  font-size: 15px;
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }

/* ---- Typography ---- */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--coffee);
  max-width: 560px;
  line-height: 1.7;
  opacity: .8;
}
.section-padded { padding: clamp(48px, 8vw, 100px) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
}
.btn-primary:hover { background: var(--black); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-warm {
  background: var(--bronze);
  color: var(--white);
}
.btn-warm:hover { background: var(--coffee); }

/* ---- Announcement Bar ---- */
.hdr-announce {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- Header Nav ---- */
.hdr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gap);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sand);
}
@keyframes elephantRoar {
  0%, 58%   { transform: scale(1) rotate(0deg); }
  62%       { transform: scale(1.12) rotate(-5deg); }   /* rear up */
  66%       { transform: scale(1.13) rotate(4deg); }    /* trumpet shake */
  70%       { transform: scale(1.13) rotate(-4deg); }
  74%       { transform: scale(1.10) rotate(3deg); }
  78%       { transform: scale(1.06) rotate(-2deg); }
  84%, 100% { transform: scale(1) rotate(0deg); }
}
.hdr-logo img { height: 58px; width: auto; }
/* Shop-by-colour dots strip */
.hdr-colors {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px var(--gap); border-bottom: 1px solid var(--sand); background: var(--ivory);
}
.hdr-colors-label {
  font-family: var(--font-body); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coffee); margin-right: 4px; font-weight: 600;
}
.hdr-color-dot {
  width: 20px; height: 20px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.hdr-color-dot:hover { transform: scale(1.18); }
.hdr-color-dot.active { border-color: var(--charcoal); transform: scale(1.12); }
@media (max-width: 640px) { .hdr-colors { gap: 8px; padding: 8px 16px; } .hdr-colors-label { display: none; } }
/* Animated video logo — multiply blends its white background into the header */
.hdr-logo video {
  height: 96px; width: auto; display: block;
  mix-blend-mode: multiply;
}
/* Logo intro: elephant appears center, then flies to the header */
#logo-intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  transition: background .7s ease;
}
#logo-intro video {
  height: clamp(200px, 42vw, 340px); width: auto;
  mix-blend-mode: multiply; will-change: transform;
}
.hdr-links { display: flex; align-items: center; gap: 32px; }
.hdr-links a, .hdr-links .hdr-dropdown-trigger {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: var(--transition);
  position: relative;
}
.hdr-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--bronze);
  transition: var(--transition);
}
.hdr-links a:hover::after { width: 100%; }
.hdr-actions { display: flex; align-items: center; gap: 20px; }
.hdr-icon { color: var(--charcoal); transition: var(--transition); position: relative; }
.hdr-icon:hover { color: var(--bronze); }
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--bronze);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ---- Dropdown & Mega Menu ---- */
.hdr-dropdown {
  position: relative;
}
.hdr-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.hdr-dropdown-trigger svg {
  transition: transform 0.2s ease;
}
.hdr-dropdown:hover .hdr-dropdown-trigger svg {
  transform: rotate(180deg);
}
.hdr-mega {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--white);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  padding: 28px var(--gap);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 200;
  pointer-events: none;
}
.hdr-dropdown:hover .hdr-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hdr-mega-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 4px;
}
.hdr-mega-item {
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 140px;
}
.hdr-mega-item:hover {
  transform: translateY(-3px);
}
.hdr-mega-img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 8px;
}
.hdr-mega-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hdr-mega-item:hover .hdr-mega-img img {
  transform: scale(1.06);
}
.hdr-mega-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.3px;
}
.hdr-mega-count {
  font-size: 11px;
  color: var(--coffee);
  margin-top: 2px;
}
.hdr-mega-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sand);
  text-align: center;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.hdr-mega-viewall {
  font-size: 12px;
  font-weight: 600;
  color: var(--bronze);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hdr-mega-viewall:hover {
  color: var(--charcoal);
}
.hdr-mega-loading {
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--coffee);
}
.hdr-mobile-sub {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
}
.hdr-mobile-sublink {
  padding: 8px 0 !important;
  font-size: 13px !important;
  color: var(--coffee) !important;
  border-bottom: 1px solid var(--cream) !important;
}

.hdr-menu-btn { display: none; color: var(--charcoal); }
.hdr-mobile {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-bottom: 1px solid var(--sand);
  padding: 0 var(--gap) 20px;
}
.hdr-mobile.open { display: flex; }
.hdr-mobile a {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--cream);
}

@media (max-width: 768px) {
  .hdr-links { display: none; }
  .hdr-menu-btn { display: block; }
  .hdr-mega { display: none !important; }
}

/* ---- Footer ---- */
#site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 64px 0 0;
}
.ftr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.ftr-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(10); }
.ftr-brand p { font-size: 14px; line-height: 1.7; opacity: .7; }
.ftr-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
}
.ftr-col a {
  display: block;
  font-size: 14px;
  color: var(--tan);
  margin-bottom: 10px;
  transition: var(--transition);
}
.ftr-col a:hover { color: var(--white); }
.ftr-small { font-size: 13px; opacity: .7; margin-bottom: 12px; }
.ftr-newsletter { display: flex; gap: 0; }
.ftr-newsletter input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  color: var(--white);
  font-size: 13px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.ftr-newsletter input::placeholder { color: var(--tan); }
.ftr-newsletter button {
  padding: 12px 20px;
  background: var(--bronze);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--transition);
}
.ftr-newsletter button:hover { background: var(--warm); }
.ftr-bottom {
  margin-top: 48px;
  padding: 20px var(--gap);
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 12px;
  opacity: .5;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .ftr-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Product Cards ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.prod-card { position: relative; background: transparent; text-decoration: none; }
.prod-img-wrap {
  display: block; position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 16px; background: var(--cream); box-shadow: var(--shadow-sm);
  transition: box-shadow .4s ease;
}
.prod-img-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,0,.2,1);
}
.prod-img-alt { opacity: 0; }
.prod-card:hover .prod-img-main { opacity: 0; }
.prod-card:hover .prod-img-alt { opacity: 1; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.05); }
.prod-card:hover .prod-img-wrap { box-shadow: var(--shadow-md); }
/* quick add-to-bag, slides up on hover */
.prod-quickadd {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  padding: 12px 14px; border: none; border-radius: 11px; cursor: pointer;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--pink-deep);
  transform: translateY(150%); opacity: 0;
  transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .3s ease, background .3s ease;
}
.prod-card:hover .prod-quickadd { transform: translateY(0); opacity: 1; }
.prod-quickadd:hover { background: var(--green-deep); }
.prod-wish {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--charcoal);
  cursor: pointer; transition: var(--transition); z-index: 3;
}
.prod-wish:hover, .prod-wish.active { color: var(--pink-deep); background: #fff; }
.prod-info { display: block; padding: 15px 4px 4px; text-decoration: none; }
.prod-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.3;
  margin-bottom: 8px; color: var(--espresso);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prod-price { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--pink-deep); }
.prod-compare { font-size: 13px; font-weight: 400; color: var(--coffee); text-decoration: line-through; margin-left: 5px; opacity: .6; }
.prod-colors { font-family: var(--font-body); font-size: 12px; color: var(--green-deep); }
.prod-colors::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }

/* ---- Typing cursor ---- */
.typing-cursor {
  font-weight: 300;
  color: var(--bronze);
  animation: none;
}
.typing-cursor.blink {
  animation: cursorBlink 0.5s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.prod-info h3.prod-name-typing {
  min-height: 1.35em;
}

/* ---- Toast ---- */
.tls-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.tls-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---- Loading Spinner ---- */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid var(--sand);
  border-top-color: var(--bronze);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Form Inputs ---- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coffee);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--bronze); }
textarea.form-input { min-height: 120px; resize: vertical; }

/* ---- Page Header Banner ---- */
.page-banner {
  background: var(--cream);
  padding: clamp(40px, 6vw, 80px) var(--gap);
  text-align: center;
}
.page-banner .section-title { margin-bottom: 8px; }
.page-banner .section-subtitle { margin: 0 auto; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state svg { margin: 0 auto 24px; color: var(--tan); }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.empty-state p { color: var(--coffee); opacity: .7; margin-bottom: 24px; }

/* ---- Instagram Story Circles ---- */
.story-circles {
  display: none;
  gap: 16px;
  padding: 20px var(--gap);
  overflow-x: auto;
  background: transparent;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 90;
  -webkit-overflow-scrolling: touch;
}
.story-circles::-webkit-scrollbar { display: none; }
.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.story-circle-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--bronze), var(--cream), var(--warm), var(--cream), var(--bronze));
  transition: all 0.4s ease;
}
.story-circle.read .story-circle-ring {
  background: var(--sand);
}
.story-circle-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid transparent;
}
.story-circle span {
  font-size: 10px;
  font-weight: 500;
  color: var(--charcoal);
  max-width: 72px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-circle.read span::after {
  content: ' (opened)';
  font-size: 9px;
  opacity: 0.5;
}
.story-circle.read span {
  color: var(--coffee);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .story-circles { display: flex; position: relative; top: auto; }
  .hdr-announce { font-size: 9px; padding: 6px 10px; white-space: nowrap; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---- Anna – AI Shopping Assistant ---- */
.anna-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.anna-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.anna-bubble:hover {
  transform: translateY(-2px) scale(1.08);
}
.anna-bubble-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: hidden;
}
.anna-bubble-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Wave hand above bubble */
.anna-wave {
  position: fixed;
  bottom: 88px;
  right: 28px;
  font-size: 32px;
  z-index: 998;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.anna-wave.show {
  opacity: 1;
  transform: translateY(0);
  animation: annaHandWave 2s ease-in-out 0.3s 2;
}
@keyframes annaHandWave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
}

/* Widget */
.anna-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 540px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease, visibility 0.25s ease;
}
.anna-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.anna-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--espresso), var(--charcoal));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.anna-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.anna-header-info { flex: 1; }
.anna-name {
  color: var(--cream);
  font-weight: 600;
  font-size: 14px;
}
.anna-status {
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.anna-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
}
.anna-close {
  color: var(--cream);
  font-size: 22px;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}
.anna-close:hover { background: rgba(255,255,255,0.1); }

/* Messages */
.anna-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ivory);
}
.anna-messages::-webkit-scrollbar { width: 4px; }
.anna-messages::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 4px; }

.anna-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  animation: annaMsgIn 0.25s ease;
}
@keyframes annaMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.anna-user {
  align-self: flex-end;
  background: var(--charcoal);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.anna-assistant {
  align-self: flex-start;
  background: var(--white);
  color: var(--coffee);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Typing dots */
.anna-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.anna-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tan);
  animation: annaDot 1.2s ease-in-out infinite;
}
.anna-dots span:nth-child(2) { animation-delay: 0.2s; }
.anna-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes annaDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Product cards in chat */
.anna-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
  animation: annaMsgIn 0.3s ease;
}
.anna-prod-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.anna-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.anna-prod-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.anna-prod-info {
  padding: 8px;
}
.anna-prod-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.anna-prod-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--coffee);
}
.anna-prod-price s {
  font-weight: 400;
  color: var(--tan);
  font-size: 11px;
  margin-left: 4px;
}
.anna-discount {
  font-size: 10px;
  color: var(--rust);
  font-weight: 600;
  margin-left: 3px;
}

/* Form */
.anna-form {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--sand);
  background: var(--white);
  gap: 8px;
  flex-shrink: 0;
}
.anna-form input {
  flex: 1;
  border: 1.5px solid var(--sand);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--charcoal);
  outline: none;
  background: var(--ivory);
  transition: border-color 0.2s;
}
.anna-form input:focus { border-color: var(--bronze); }
.anna-form input::placeholder { color: var(--tan); }
.anna-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze), var(--warm));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.anna-send:hover { transform: scale(1.08); }

@media (max-width: 480px) {
  .anna-widget {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 75vh;
    border-radius: 16px 16px 0 0;
  }
  .anna-bubble { bottom: 16px; right: 16px; }
}
