.store-body { background: var(--bg); margin: 0; }
#catalogue-logo-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.store-topbar, .store-hero, .store-main, .store-footer { position: relative; z-index: 1; }
.store-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 32px;
  background: var(--maroon); position: sticky; top: 0; z-index: 20; box-shadow: var(--shadow);
}
.store-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.store-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #fff; flex-shrink: 0; }
.store-brand .name { font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-brand .sub { font-size: 10px; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-topbar-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.store-topbar-actions a { white-space: nowrap; }

@media (max-width: 480px) {
  .store-topbar { padding: 12px 16px; gap: 10px; }
  .store-brand { gap: 8px; }
  .store-brand img { width: 30px; height: 30px; }
  .store-brand .name { font-size: 13px; }
  .store-brand .sub { font-size: 9px; }
  .store-topbar-actions { gap: 8px; }
  .store-topbar-actions a { font-size: 11px; }
  .cart-btn { padding: 7px 12px; font-size: 11.5px; }
}
.cart-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #2a1410; border: none;
  border-radius: 20px; padding: 8px 16px; font-weight: 700; font-size: 12.5px; cursor: pointer; position: relative;
}
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--terracotta); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; font-size: 10.5px; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.store-hero {
  background: radial-gradient(ellipse at top right, var(--maroon-light) 0%, var(--maroon) 55%, #1e0d0a 100%);
  color: #f4e9dc; text-align: center; position: relative; overflow: hidden;
  min-height: 340px; display: flex; align-items: center; justify-content: center;
}
.store-hero #hero-fabric-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.store-hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(30,13,10,0.35) 0%, rgba(30,13,10,0.75) 100%);
}
.store-hero-inner { position: relative; z-index: 2; padding: 54px 32px; max-width: 720px; }
.store-hero h1 { font-family: 'Sora', sans-serif; font-size: 32px; margin: 0 0 10px 0; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.store-hero p { color: var(--gold-light); font-size: 14px; max-width: 560px; margin: 0 auto; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

.store-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 70px 24px; }
.store-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.fabric-card .add-btn {
  width: 100%; margin-top: 8px; background: var(--maroon); color: #fff; border: none; border-radius: 7px;
  padding: 8px 0; font-size: 12px; font-weight: 700; cursor: pointer;
}
.fabric-card .add-btn:hover { background: var(--terracotta); }

.cart-drawer {
  position: fixed; top: 0; right: 0; width: 100%; max-width: 400px; height: 100vh; background: #fff;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2); z-index: 60; transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-drawer-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cart-overlay { position: fixed; inset: 0; background: rgba(23,10,8,0.4); z-index: 55; display: none; }
.cart-overlay.open { display: block; }

.checkout-field { margin-bottom: 12px; }
.checkout-field label { font-size: 11.5px; font-weight: 600; color: var(--text-dim); display: block; margin-bottom: 4px; }

/* ============ CELEBRATION MODAL ============ */
.celebrate-backdrop {
  position: fixed; inset: 0; z-index: 70; padding: 20px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(74,33,24,0.55) 0%, rgba(23,10,8,0.78) 100%);
}
.celebrate-card {
  position: relative; background: #fff; border-radius: 22px; padding: 44px 32px 32px 32px; width: 100%; max-width: 380px;
  text-align: center; overflow: visible; box-shadow: 0 30px 80px rgba(23,10,8,0.4);
  animation: celebratePop 0.55s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes celebratePop {
  0% { opacity: 0; transform: scale(0.6) translateY(30px); }
  60% { opacity: 1; transform: scale(1.04) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.celebrate-logo-badge {
  width: 84px; height: 84px; border-radius: 50%; margin: -76px auto 14px auto; background: #fff;
  border: 4px solid var(--gold); box-shadow: 0 10px 26px rgba(201,151,61,0.45), 0 0 0 6px rgba(201,151,61,0.14);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; z-index: 2;
  animation: badgeBounce 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s backwards;
}
.celebrate-logo-badge img { width: 100%; height: 100%; object-fit: cover; }
@keyframes badgeBounce {
  0% { opacity: 0; transform: scale(0) rotate(-20deg); }
  70% { opacity: 1; transform: scale(1.15) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.celebrate-title { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; color: var(--maroon); margin: 0 0 8px 0; }
.celebrate-sub { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin: 0 0 20px 0; }
.celebrate-btn { width: 100%; }
.celebrate-whatsapp-btn {
  display: block; width: 100%; text-align: center; text-decoration: none; box-sizing: border-box;
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; border-radius: 8px;
  padding: 10px 18px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(37,211,102,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.celebrate-whatsapp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
.confetti-dot {
  position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; border-radius: 50%;
  opacity: 0; animation: confettiBurst 1.1s ease-out forwards;
}
@keyframes confettiBurst {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.1) rotate(var(--tr)); }
}

/* ============ STORE FOOTER ============ */
.store-footer { background: var(--maroon); margin-top: 40px; }
.store-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 24px;
}
.store-footer-brand { display: flex; align-items: center; gap: 10px; }
.store-footer-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #fff; }
.store-footer-brand .name { font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; font-size: 15px; }
.store-footer-brand .sub { font-size: 11px; color: var(--gold-light); }
.store-footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.store-footer-contacts a, .store-footer-contacts span {
  color: #f0e2d3; font-size: 12.5px; text-decoration: none; white-space: nowrap;
}
.store-footer-contacts a:hover { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 640px) {
  .store-footer-inner { flex-direction: column; align-items: flex-start; }
  .store-footer-contacts { flex-direction: column; gap: 10px; }
}
