@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== AURA. PERFUMERY — GLOBAL STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f5f0e8;
  --sage: #5c6b5a;
  --sage-light: #8a9e87;
  --gold: #c8a96e;
  --gray: #888;
  --gray-light: #e8e4de;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
  --radius: 4px;
  --admin-bar-h: 0px;
}

body.has-admin-bar { --admin-bar-h: 44px; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

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

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--sage);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: var(--admin-bar-h);
  z-index: 100;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); transition: color var(--transition); }
.nav-links a:hover { color: var(--black); }

.nav-icons { display: flex; align-items: center; gap: 20px; }

.nav-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  position: relative;
}
.nav-icon-btn:hover { background: var(--gray-light); }
.nav-icon-btn svg { width: 20px; height: 20px; }

#cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

#hamburger { display: none; }

/* ===== MOBILE NAV ===== */
#mobile-nav { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; }
#mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  padding: 24px;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-light); }
.mobile-nav-links { list-style: none; }
.mobile-nav-links li { border-bottom: 1px solid var(--gray-light); }
.mobile-nav-links a { display: block; padding: 16px 0; font-size: 15px; letter-spacing: 0.05em; transition: color var(--transition); }
.mobile-nav-links a:hover { color: var(--sage); }

/* ===== CART SIDEBAR ===== */
#cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150; display: none; }
#cart-overlay.open { display: block; }

#cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--white);
  z-index: 160;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex; flex-direction: column;
}
#cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
#cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.ci-info { flex: 1; }
.ci-info strong { display: block; font-size: 14px; margin-bottom: 4px; }
.ci-info span { font-size: 13px; color: var(--gray); }
.ci-remove { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--gray); border-radius: 50%; transition: all var(--transition); }
.ci-remove:hover { background: #fde8e8; color: #c0392b; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--gray); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty p { font-size: 15px; }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--gray-light); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 16px; font-size: 15px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-dark { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-sage { background: var(--sage); color: var(--white); border: 1px solid var(--sage); }
.btn-sage:hover { background: #4a5748; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--white); max-width: 700px; padding: 0 24px; }
.hero-content h1 { margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: 36px; opacity: 0.9; }

/* ===== FEATURED BANNER ===== */
.featured-banner { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.featured-img { overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-img:hover img { transform: scale(1.03); }
.featured-text { background: var(--cream); display: flex; align-items: center; padding: 60px; }
.featured-text-inner { max-width: 360px; }
.featured-text h2 { margin-bottom: 16px; }
.featured-text p { color: var(--gray); margin-bottom: 28px; line-height: 1.7; }

/* ===== PRODUCT TABS ===== */
.product-tabs-section { background: var(--white); }
.tab-header { display: flex; gap: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--gray-light); }
.tab-btn { padding: 12px 0; font-size: 15px; font-family: var(--font-serif); color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all var(--transition); }
.tab-btn.active { color: var(--black); border-bottom-color: var(--black); }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.product-card { cursor: pointer; transition: transform var(--transition); }
.product-card:hover { transform: translateY(-4px); }
.product-img-wrap { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream); aspect-ratio: 3/4; margin-bottom: 16px; }
.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.05); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--black); color: var(--white); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.badge-sold { background: var(--gray); }
.badge-new { background: var(--sage); }
.badge-best { background: var(--gold); color: var(--black); }
.product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity var(--transition); }
.product-card:hover .product-overlay { opacity: 1; }
.product-name { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.product-price { font-size: 14px; color: var(--gray); }
.product-original { text-decoration: line-through; margin-left: 8px; }

/* ===== TRY FIRST ===== */
.try-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.try-text h2 { margin-bottom: 16px; }
.try-text p { color: var(--gray); margin-bottom: 28px; line-height: 1.7; }
.try-img img { border-radius: var(--radius); width: 100%; }

/* ===== PRESS ===== */
.press-section { background: var(--black); color: var(--white); padding: 48px 0; overflow: hidden; }
.press-track { display: flex; gap: 80px; animation: scroll 15s linear infinite; width: max-content; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.press-item { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; letter-spacing: 0.15em; opacity: 0.5; white-space: nowrap; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--cream); padding: 28px; border-radius: var(--radius); }
.stars { color: var(--gold); margin-bottom: 12px; font-size: 16px; letter-spacing: 2px; }
.testimonial-card p { color: var(--gray); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-meta { font-size: 13px; font-weight: 600; }
.testimonial-date { color: var(--gray); font-weight: 400; }

/* ===== TRUST BAR — SVG icon approach ===== */
.trust-bar { background: var(--black); color: var(--white); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.trust-icon svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 1.5; }
.trust-item strong { display: block; font-size: 13px; letter-spacing: 0.08em; }
.trust-item span { font-size: 12px; opacity: 0.55; }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: var(--cream); }
.newsletter-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { margin-bottom: 12px; }
.newsletter-inner p { color: var(--gray); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border: 1px solid var(--gray-light); border-radius: var(--radius); background: var(--white); font: inherit; font-size: 14px; }
.newsletter-form input:focus { outline: none; border-color: var(--sage); }

/* ===== FOOTER ===== */
footer { background: var(--white); border-top: 1px solid var(--gray-light); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--gray); font-size: 14px; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-link { width: 36px; height: 36px; border: 1px solid var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); }
.social-link:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray); font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--black); }
.footer-bottom { border-top: 1px solid var(--gray-light); padding-top: 24px; text-align: center; color: var(--gray); font-size: 13px; }

/* ===== SHOP PAGE ===== */
.shop-hero { height: 380px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.shop-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.shop-hero::after { content:''; position:absolute; inset:0; background: rgba(0,0,0,0.45); }
.shop-hero-content { position:relative; z-index:1; text-align:center; color:var(--white); }
.shop-hero-content h1 { margin-bottom: 12px; }
.shop-hero-content p { opacity: 0.85; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--gray-light); margin-bottom: 40px; }
.filter-tabs { display: flex; gap: 4px; }
.filter-btn { padding: 8px 18px; border-radius: 100px; font-size: 13px; color: var(--gray); transition: all var(--transition); border: 1px solid transparent; }
.filter-btn.active { background: var(--black); color: var(--white); }
.filter-btn:hover:not(.active) { border-color: var(--gray-light); }
.sort-select { padding: 8px 14px; border: 1px solid var(--gray-light); border-radius: var(--radius); background: var(--white); font: inherit; font-size: 13px; cursor: pointer; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 60px 0; }
.product-detail-gallery { position: sticky; top: calc(var(--admin-bar-h) + 88px); }
.main-image { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--cream); margin-bottom: 12px; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; }
.thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.thumb.active { border-color: var(--black); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.detail-price { font-size: 1.4rem; font-family: var(--font-serif); margin-bottom: 16px; }
.detail-price .original { font-size: 1rem; color: var(--gray); text-decoration: line-through; margin-left: 12px; }
.detail-desc { color: var(--gray); line-height: 1.8; margin-bottom: 28px; }
.qty-control { display: flex; align-items: center; gap: 0; margin-bottom: 16px; }
.qty-btn { width: 40px; height: 40px; border: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all var(--transition); }
.qty-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.qty-display { width: 48px; height: 40px; border-top: 1px solid var(--gray-light); border-bottom: 1px solid var(--gray-light); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.detail-shipping-info { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--gray); }
.detail-shipping-info span { display: flex; align-items: center; gap: 8px; }
.detail-shipping-info svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--sage); }

.about-section { padding: 60px 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-item { text-align: center; }
.note-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--white); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow); }
.note-item span { font-size: 13px; color: var(--gray); }
.vibe-card { background: var(--white); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }
.vibe-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.vibe-text { font-family: var(--font-serif); font-size: 1rem; }

/* ===== CHECKOUT ===== */
.checkout-page { padding: 48px 0 80px; }
.checkout-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--gray); border-bottom: 1px solid var(--gray-light); margin-bottom: 0; }
.checkout-breadcrumb a { color: var(--sage); }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding: 40px 0; }

.checkout-section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--gray-light); }
.checkout-section:last-child { border-bottom: none; margin-bottom: 0; }

.checkout-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.checkout-step-num {
  width: 26px; height: 26px; background: var(--black); color: white;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.checkout-section-head h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; font-weight: 500; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gray-light); border-radius: var(--radius);
  background: var(--white); font: inherit; font-size: 14px;
  transition: border-color var(--transition);
}
.field-group input:focus, .field-group select:focus { outline: none; border-color: var(--sage); }
.field-group input.error { border-color: #c0392b; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--gray-light);
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  user-select: none;
}
.pay-opt:has(input:checked) { border-color: var(--black); background: #fafaf8; }
.pay-opt input[type="radio"] { accent-color: var(--black); flex-shrink: 0; }
.pay-opt-label { font-size: 14px; font-weight: 600; }
.pay-opt-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.pay-opt-icon { font-size: 20px; margin-left: auto; }

.checkout-sidebar { position: sticky; top: calc(var(--admin-bar-h) + 88px); }
.checkout-summary-box { background: var(--cream); border-radius: 8px; padding: 24px; }
.checkout-summary-box h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-sans); font-weight: 600; }
.co-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--gray-light); flex-shrink: 0; }
.co-item-info { flex: 1; }
.co-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.co-item-qty { font-size: 12px; color: var(--gray); }
.co-item-price { font-size: 13px; font-family: var(--font-serif); white-space: nowrap; }
.co-divider { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 16px 0; }
.co-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.co-row.total { font-size: 15px; font-weight: 700; color: var(--black); margin-top: 8px; margin-bottom: 0; }
.co-free-ship { font-size: 11px; color: var(--sage); font-weight: 600; margin-top: 4px; text-align: right; }

/* Checkout success */
.checkout-success {
  display: none; position: fixed; inset: 0;
  background: var(--white); z-index: 999;
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 24px;
}
.checkout-success.show { display: flex; }
.success-anim {
  width: 80px; height: 80px; background: var(--sage); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-anim svg { width: 40px; height: 40px; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-order { font-size: 13px; color: var(--gray); margin-top: 8px; margin-bottom: 24px; }
.success-order strong { color: var(--black); }

/* ===== ADMIN BAR ===== */
#aura-admin-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 44px; background: #141824;
  z-index: 9000; font-family: var(--font-sans);
}
.aab-inner {
  height: 100%; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.aab-left, .aab-right { display: flex; align-items: center; gap: 2px; }
.aab-brand {
  font-family: var(--font-serif); font-size: 14px; font-weight: 700;
  color: white; margin-right: 8px; display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
}
.aab-brand svg { fill: var(--gold); }
.aab-link {
  color: rgba(255,255,255,0.6); padding: 5px 10px;
  border-radius: 4px; font-size: 12px; transition: all 0.2s;
}
.aab-link:hover { color: white; background: rgba(255,255,255,0.08); }
.aab-sep { color: rgba(255,255,255,0.2); font-size: 12px; margin: 0 4px; }
.aab-viewsite { color: rgba(255,255,255,0.4); font-size: 11px; }
.aab-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 4px; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,0.7);
  transition: all 0.2s; border: 1px solid transparent;
}
.aab-toggle input { display: none; }
.aab-toggle-label { display: flex; align-items: center; gap: 6px; }
.aab-toggle:has(input:checked) { background: var(--sage); color: white; border-color: var(--sage-light); }
.aab-toggle:hover:not(:has(input:checked)) { background: rgba(255,255,255,0.08); color: white; }
.aab-logout {
  color: rgba(255,255,255,0.4); padding: 5px 10px;
  border-radius: 4px; font-size: 12px; transition: all 0.2s; margin-left: 4px;
}
.aab-logout:hover { color: #ff6b6b; background: rgba(255,0,0,0.1); }

body.has-admin-bar { padding-top: 44px; }

/* ===== EDIT MODE ===== */
body.edit-mode-active [data-ek] {
  outline: 2px dashed rgba(79,142,247,0.6) !important;
  outline-offset: 3px;
  cursor: pointer !important;
  position: relative;
  transition: outline-color 0.15s, background 0.15s !important;
}
body.edit-mode-active [data-ek]:hover {
  outline: 2px solid #4f8ef7 !important;
  background: rgba(79,142,247,0.05) !important;
}
.editable-field::after {
  content: none;
}

/* Edit Popover */
#aura-edit-pop {
  position: absolute; background: white;
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px; width: 300px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 9999;
}
.aep-key {
  font-size: 11px; color: #4f8ef7; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 10px;
  font-weight: 600; display: flex; align-items: center; gap: 5px;
}
.aep-field {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 5px;
  font: inherit; font-size: 14px; margin-bottom: 10px;
  outline: none; resize: vertical;
  transition: border-color 0.15s;
}
.aep-field:focus { border-color: #4f8ef7; }
.aep-hint { font-size: 11px; color: #aaa; margin-bottom: 12px; }
.aep-btns { display: flex; gap: 8px; justify-content: flex-end; }
.aep-cancel {
  padding: 7px 14px; border: 1px solid #e2e8f0;
  border-radius: 5px; font: inherit; font-size: 13px;
  cursor: pointer; background: white; color: #666; transition: all 0.15s;
}
.aep-cancel:hover { background: #f5f5f5; }
.aep-save {
  padding: 7px 16px; border-radius: 5px; font: inherit;
  font-size: 13px; cursor: pointer; background: #4f8ef7;
  color: white; border: none; font-weight: 600; transition: all 0.15s;
}
.aep-save:hover { background: #3a7ae8; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: #0f1117; color: var(--white);
  padding: 24px 0; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; flex-shrink: 0;
}
.admin-logo { 
  font-family: var(--font-serif); font-size: 1.3rem; 
  padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.admin-logo span { color: rgba(255,255,255,0.35); font-size: 0.75rem; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-left: 4px; }
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: rgba(255,255,255,0.5);
  font-size: 13px; transition: all var(--transition);
}
.admin-nav li a:hover, .admin-nav li a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.admin-nav li a svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-main { flex: 1; background: #f0ede8; overflow-y: auto; }
.admin-topbar {
  background: var(--white); padding: 16px 28px;
  border-bottom: 1px solid var(--gray-light);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h2 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
.admin-topbar-actions { display: flex; gap: 10px; }

.admin-content { padding: 28px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; position: relative; overflow: hidden; }
.stat-card .stat-value { font-size: 2rem; font-family: var(--font-serif); font-weight: 700; }
.stat-card .stat-label { color: var(--gray); font-size: 12px; margin-top: 4px; }
.stat-card .stat-icon { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.stat-card .stat-icon svg { width: 18px; height: 18px; stroke: var(--sage); }

.card { background: var(--white); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-light); font-family: var(--font-sans); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--gray-light); border-radius: var(--radius);
  background: var(--white); font: inherit; font-size: 14px;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--sage); }
.form-group textarea { resize: vertical; min-height: 80px; }

.products-table { width: 100%; border-collapse: collapse; }
.products-table th { text-align: left; padding: 10px 16px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); border-bottom: 2px solid var(--gray-light); }
.products-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); font-size: 13px; vertical-align: middle; }
.products-table tr:hover td { background: #faf9f7; }
.products-table img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.badge-pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-active { background: #d4f4e2; color: #1a6b3a; }
.badge-soldout { background: #fde8e8; color: #c0392b; }
.table-actions { display: flex; gap: 8px; }
.action-btn { padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; transition: all var(--transition); cursor: pointer; }
.action-edit { background: #e8f0fd; color: #2b5cc0; border: none; }
.action-edit:hover { background: #2b5cc0; color: var(--white); }
.action-delete { background: #fde8e8; color: #c0392b; border: none; }
.action-delete:hover { background: #c0392b; color: var(--white); }

/* Admin modals */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:500; display:none; align-items:center; justify-content:center; }
.modal-overlay.open { display:flex; }
.modal { background:var(--white); border-radius:10px; padding:28px; width:min(580px,95vw); max-height:90vh; overflow-y:auto; position:relative; }
.modal-title { font-size:1rem; font-weight:700; margin-bottom:20px; font-family:var(--font-sans); }
.modal-close { position:absolute; top:14px; right:16px; font-size:20px; color:var(--gray); cursor:pointer; line-height:1; }

.img-preview { width:100%; height:160px; object-fit:cover; border-radius:var(--radius); margin-top:8px; display:none; }
.switch { position:relative; display:inline-block; width:44px; height:24px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; inset:0; background:#ccc; border-radius:24px; transition:.3s; }
.slider:before { content:''; position:absolute; width:18px; height:18px; left:3px; bottom:3px; background:white; border-radius:50%; transition:.3s; }
input:checked + .slider { background:var(--sage); }
input:checked + .slider:before { transform:translateX(20px); }

/* Admin login */
.admin-login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--black); }
.login-card { background:var(--white); padding:44px; border-radius:12px; width:340px; text-align:center; }
.login-card h2 { font-size:1.8rem; margin-bottom:8px; }
.login-card p { color:var(--gray); margin-bottom:28px; font-size:14px; }

/* Preview panel */
.preview-toolbar { display:flex; gap:8px; align-items:center; padding:12px 0; margin-bottom:16px; border-bottom:1px solid var(--gray-light); }
.preview-device-btn { padding:7px 14px; border:1px solid var(--gray-light); border-radius:4px; font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; background:white; }
.preview-device-btn.active { background:var(--black); color:white; border-color:var(--black); }
.preview-frame-wrap { border:1px solid var(--gray-light); border-radius:8px; overflow:hidden; background:white; transition:width 0.3s, margin 0.3s; }
#preview-frame { width:100%; border:none; height:600px; display:block; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black); color: var(--white);
  padding: 12px 22px; border-radius: 100px;
  font-size: 13px; opacity: 0; transition: all 0.3s ease;
  z-index: 9999; white-space: nowrap; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #c0392b; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-banner, .try-section, .about-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-text { padding: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 210px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-sidebar { position: static; }
  /* FIX: Remove sticky on gallery so it doesn't float over product info */
  .product-detail-gallery { position: static !important; }
  /* FIX: Ensure product info renders fully at tablet */
  .product-detail-info { min-width: 0; }
  .detail-actions { display: flex; flex-direction: column; gap: 12px; }
  .detail-actions .btn { display: flex; width: 100%; }
}

/* ===== TABLET (600–900px) — fills the gap between mobile and desktop ===== */
@media (max-width: 860px) and (min-width: 601px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
  .filter-tabs { flex-wrap: wrap; gap: 6px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .product-detail-grid { gap: 32px; padding: 40px 0; }
  .qty-control { display: flex; }
  .detail-actions .btn { display: flex; width: 100%; }
  /* Make sure all product detail sections are visible */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  #hamburger { display: flex; }
  .hero { height: 85vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .product-detail-grid { gap: 32px; }
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
  .aab-sep, .aab-viewsite { display: none; }
  /* FIX: Ensure product info buttons show on small mobile */
  .qty-control { display: flex; }
  .detail-actions { display: flex; flex-direction: column; gap: 12px; }
  .detail-actions .btn { display: flex; width: 100%; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-tabs { flex-wrap: wrap; gap: 6px; }
  /* FIX: product image shouldn't overflow and cover text */
  .product-img-wrap { max-height: 360px; }
  .product-detail-gallery img { max-height: 380px; object-fit: cover; }
}
