/* ============================================
   MS. MIRZY MAAM CREATIONS — Global Styles
   Luxe Dark Feminine Aesthetic
   ============================================ */

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

/* ── CSS Variables ── */
:root {
  --obsidian:    #0d0a12;
  --deep-plum:   #1a0f2e;
  --mid-plum:    #2d1b4e;
  --violet:      #4a2878;
  --rose-gold:   #c9956c;
  --rose-light:  #e8c4a0;
  --rose-pale:   #f5e6d8;
  --cream:       #fdf6ee;
  --white:       #ffffff;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-border:rgba(201,149,108,0.18);
  --glass-hover: rgba(255,255,255,0.07);

  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Sacramento', cursive;
  --font-body:    'Jost', sans-serif;

  --shadow-gold:  0 0 40px rgba(201,149,108,0.15);
  --shadow-deep:  0 20px 60px rgba(0,0,0,0.6);
  --radius:       16px;
  --radius-sm:    8px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--obsidian);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(74,40,120,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201,149,108,0.12) 0%, transparent 55%);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.script { font-family: var(--font-script); font-weight: 400; }

/* ── Grain Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,10,18,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(13,10,18,0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .script {
  font-size: 1.1rem;
  color: var(--rose-gold);
}

.nav-logo .wordmark {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-light);
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-pale);
  opacity: 0.75;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--rose-gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--rose-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 8px 18px;
  color: var(--rose-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cart-btn:hover {
  background: var(--glass-hover);
  border-color: var(--rose-gold);
  color: var(--rose-gold);
}

.cart-count {
  background: var(--rose-gold);
  color: var(--obsidian);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--rose-gold);
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(13,10,18,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rose-pale);
  transition: var(--transition);
}

.nav-drawer a:hover { color: var(--rose-gold); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-gold), #e8a87c);
  color: var(--obsidian);
  box-shadow: 0 4px 24px rgba(201,149,108,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(201,149,108,0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
}

.btn-outline:hover {
  background: rgba(201,149,108,0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--rose-light);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--rose-gold);
}

/* ============================================
   GLASS CARDS
   ============================================ */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  background: var(--glass-hover);
  border-color: rgba(201,149,108,0.35);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(201,149,108,0.4);
  box-shadow: var(--shadow-gold), var(--shadow-deep);
  transform: translateY(-6px);
}

.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card .product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--mid-plum), var(--violet));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(201,149,108,0.5);
  font-size: 3rem;
}

.product-img-placeholder span {
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,149,108,0.4);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--rose-gold);
  color: var(--obsidian);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-card .product-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card .product-category {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  opacity: 0.8;
}

.product-card .product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rose-pale);
}

.product-card .product-desc {
  font-size: 0.82rem;
  color: rgba(253,246,238,0.55);
  line-height: 1.5;
}

.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.product-card .product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rose-gold);
}

.product-card .add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--rose-gold);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-card .add-btn:hover {
  background: var(--rose-gold);
  color: var(--obsidian);
  border-color: var(--rose-gold);
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 12px;
  opacity: 0.9;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--rose-pale);
  line-height: 1.1;
}

.section-title em {
  font-style: italic;
  color: var(--rose-gold);
}

.section-divider {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
  margin: 20px auto 0;
}

/* ============================================
   GRID SYSTEMS
   ============================================ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ============================================
   PAGE HEADER BANNER
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,40,120,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--rose-pale);
}

.page-hero p {
  margin-top: 16px;
  font-size: 1rem;
  color: rgba(253,246,238,0.55);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(253,246,238,0.45);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.breadcrumb a:hover { color: var(--rose-gold); }
.breadcrumb span { color: var(--rose-gold); }

/* ============================================
   TOASTS / NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--deep-plum);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--rose-gold);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  min-width: 260px;
  box-shadow: var(--shadow-deep);
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(12px);
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .script {
  font-size: 2rem;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(253,246,238,0.45);
  line-height: 1.8;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: 18px;
  font-weight: 500;
  font-family: var(--font-body);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(253,246,238,0.5);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--rose-light); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--rose-gold);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--rose-gold);
  color: var(--obsidian);
  border-color: var(--rose-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(253,246,238,0.3);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-gold);
  opacity: 0.8;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition: var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(253,246,238,0.25);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rose-gold);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(201,149,108,0.12);
}

.form-select option {
  background: var(--deep-plum);
  color: var(--cream);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-gold   { color: var(--rose-gold); }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mt-32       { margin-top: 32px; }
.mt-48       { margin-top: 48px; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0.0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ============================================
   RESPONSIVE — TABLET 1024px
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav { padding: 0 24px; }
}

/* ============================================
   RESPONSIVE — MOBILE 768px
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cart-btn .btn-text { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 64px 0; }
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
  .grid-2  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 130px 0 60px; }
}

@media (max-width: 520px) {
  .grid-4  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .toast-container { right: 16px; left: 16px; bottom: 20px; }
  .toast { min-width: auto; }
}
