/* ═══════════════════════════════════════════
   Muza Store — Shared Storefront Styles
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --sand-50:  #fffcf7;
  --sand-100: #f8f3eb;
  --sand-200: #ede5d8;
  --sand-300: #ddd2c0;
  --sand-400: #c4b8a4;
  --drift-400: #b0a696;
  --drift-500: #9c9286;
  --drift-600: #7a7068;
  --drift-700: #5c5248;
  --drift-800: #3d352e;
  --drift-900: #2c2622;
  --glass-200: #c4ddd8;
  --glass-300: #a8cec6;
  --glass-400: #7eb8ad;
  --glass-500: #5a9e91;
  --glass-600: #3d8074;
  --brand-deep: #0b3350;
  --brand-mid:  #1b5f87;
  --accent-gold: #cfa84d;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px;
  --side: 72px;
  --ease-page: cubic-bezier(0.25,0.1,0.25,1.0);
  --ease-reveal: cubic-bezier(0.16,1,0.3,1);
  --dur-fast: 300ms;
  --dur-base: 500ms;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--sand-50);
  color: var(--drift-700);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── TOPBAR ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px var(--side);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drift-700);
  font-weight: 500;
  background: #fff;
  border-bottom: 1px solid rgba(221,210,192,0.35);
  position: relative;
  z-index: 11;
}
.topbar-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-logo { flex-shrink: 0; display: flex; align-items: center; position: relative; overflow: hidden; border-radius: 8px; padding: 4px 6px; transition: transform 0.3s; }
.topbar-logo img { height: 48px; width: auto; display: block; position: relative; z-index: 1; }
.topbar-logo::after { content: ''; position: absolute; top: -40%; left: -90%; width: 42%; height: 180%; background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.52) 50%, transparent 100%); transform: skewX(-18deg); animation: logo-shine 6s ease-in-out infinite; pointer-events: none; z-index: 2; }
@keyframes logo-shine { 0%,60%,100% { left: -90%; } 48% { left: 140%; } }
.topbar-logo:hover { transform: translateY(-1px); }
.topbar-right { flex-shrink: 0; display: flex; align-items: center; }
.topbar-right img { height: 40px; width: auto; }
.topbar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-sep { color: var(--drift-500); margin: 0 4px; font-size: 8px; }

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--side);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-deep);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.nav-center { display: flex; gap: 40px; align-items: center; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 20px 0;
  position: relative;
  transition: color var(--dur-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-gold);
  transition: width 0.4s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  right: var(--side);
}
.nav-icon {
  color: rgba(255,255,255,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color var(--dur-fast);
  padding: 8px 10px;
  position: relative;
  border-radius: 6px;
}
.nav-icon:hover { color: var(--accent-gold); background: rgba(255,255,255,0.06); }
.nav-icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.nav-icon-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
  font-family: var(--font-body);
}
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--accent-gold);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: var(--font-body);
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transform-origin: center;
}

/* ─── FLY-TO-CART ANIMATION ─── */
@keyframes muzaCartWiggle {
  0%,100% { transform: scale(1) rotate(0deg); }
  20%     { transform: scale(1.28) rotate(-15deg); }
  45%     { transform: scale(1.14) rotate(10deg); }
  65%     { transform: scale(1.06) rotate(-5deg); }
  82%     { transform: scale(1.02) rotate(2deg); }
}
@keyframes muzaBadgePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.72); }
  62%  { transform: scale(0.80); }
  82%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ─── FOOTER ─── */
.footer {
  background: var(--drift-900);
  padding: 18px var(--side) 9px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.footer-brand,
.footer-col h4 {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glass-600) !important;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--drift-500); line-height: 1.7; max-width: 260px; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { font-size: 13px; color: var(--drift-500); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--sand-200); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.15); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 12px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.15); }
.footer-legal a:hover { color: var(--drift-500); }

/* ─── PRODUCT CARD ─── */
.product-card {
  position: relative;
  transition: transform var(--dur-base) var(--ease-page);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); }
.product-cover {
  aspect-ratio: 2/3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: var(--sand-100);
  display: block;
}
.product-cover-inner {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.25;
  transition: transform 0.5s var(--ease-page);
}
.product-card:hover .product-cover-inner { transform: scale(1.03); }
.product-cover-inner small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-top: 6px;
}
.product-author {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift-700);
  margin-bottom: 4px;
  font-weight: 600;
}
.product-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--drift-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-price {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  color: var(--drift-900);
  margin-bottom: 2px;
}
.product-price .old {
  text-decoration: line-through;
  color: var(--drift-500);
  font-style: normal;
  margin-left: 8px;
  font-size: 16px;
  font-weight: 400;
}
.btn-quick-cart {
  width: 100%;
  margin-top: auto;
  padding: 12px 0;
  padding-top: 14px;
  background: transparent;
  color: var(--drift-700);
  border: 1.5px solid var(--sand-300, #ddd2c0);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-quick-cart:hover {
  background: var(--brand-deep, #0d1b2a);
  color: rgba(255,255,255,0.9);
  border-color: var(--brand-deep, #0d1b2a);
}
.btn-quick-cart[data-added] {
  background: #2a6e4a;
  color: #fff;
  border-color: #2a6e4a;
}
.btn-quick-cart:disabled { opacity: 0.55; cursor: not-allowed; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent-gold);
  color: var(--brand-deep);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
}
.product-badge-sale { background: #e03e2d; color: #fff; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--drift-500);
  padding: 16px var(--side);
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--drift-700); }
.breadcrumb-sep { color: var(--drift-400); font-size: 8px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--dur-fast);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary:hover { background: var(--brand-mid); }
.btn-primary:disabled { background: var(--drift-400); cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--drift-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--sand-300);
  transition: border-color var(--dur-fast), color var(--dur-fast);
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--drift-600); color: var(--drift-800); }

.btn-gold {
  background: var(--accent-gold);
  color: var(--brand-deep);
}
.btn-gold:hover { background: #b8932e; }

/* ─── FORM FIELDS ─── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift-600);
  margin-bottom: 6px;
  font-weight: 400;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--sand-300);
  border-radius: 3px;
  background: var(--sand-50);
  font-size: 14px;
  font-weight: 300;
  color: var(--drift-800);
  outline: none;
  transition: border-color var(--dur-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--glass-400); }
.field input::placeholder, .field textarea::placeholder { color: var(--drift-400); }

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 40px var(--side) 24px;
  border-bottom: 1px solid var(--sand-200);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--drift-900);
  line-height: 1.1;
}
.page-title em { font-style: italic; color: var(--glass-500); }
.page-subtitle { font-size: 14px; color: var(--drift-500); margin-top: 6px; }

/* ─── SECTION ─── */
.section {
  padding: var(--space-2xl) var(--side);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--drift-800);
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--glass-500); font-weight: 300; }
.section-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--drift-500);
  transition: color var(--dur-fast);
  flex-shrink: 0;
}
.section-link:hover { color: var(--glass-600); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --side: 40px; }
  .nav-center { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --side: 20px; }
  .topbar-info { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
