/* ══════════════════════════════════════
   LunaLux Nails — Premium Style Sheet
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --blush:       #f8c8d4;
  --rose:        #e8a8b8;
  --dusty:       #c9929e;
  --nude:        #f5e6c8;
  --cream:       #fdf6f0;
  --white:       #ffffff;
  --ink:         #2c1a1e;
  --ink-light:   #7a5560;
  --border:      rgba(200,160,170,.25);
  --shadow:      rgba(180,120,135,.15);
  --shadow-lg:   rgba(180,120,135,.25);
  --radius:      18px;
  --radius-sm:   10px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', sans-serif;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }

/* ─── Utilities ──────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.full-width { width: 100%; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px; font-family: var(--font-sans);
  font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.12);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--dusty), #b5727e);
  color: var(--white);
  box-shadow: 0 4px 20px var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(248,200,212,.15); border-color: var(--rose); }
.btn-whatsapp {
  background: #25D366; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.25);
}
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); }

/* ─── Header ──────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(253,246,240,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px var(--shadow);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400;
}
.logo-icon { color: var(--dusty); font-size: 1rem; }
.logo em { font-style: italic; color: var(--dusty); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-light);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--dusty); transform: scaleX(0); transition: transform var(--transition);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav-admin {
  background: var(--nude); padding: 6px 14px; border-radius: 50px;
  color: var(--ink) !important; font-size: .75rem !important;
}
.nav-admin:hover { background: var(--blush); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: var(--transition);
}

/* ─── Hero ──────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 24px 60px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blush), transparent);
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--nude), transparent);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f0d0e0, transparent);
  top: 40%; left: 40%;
  animation: float 7s ease-in-out infinite 2s;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

/* Centered hero content */
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  max-width: 720px;
}
.hero-tag {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dusty); font-weight: 500; margin-bottom: 20px;
}

/* Big brand name */
.hero-brand {
  font-family: var(--font-serif); font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300; line-height: 1; margin-bottom: 16px;
  color: var(--ink); letter-spacing: -.01em;
}
.hero-brand em { color: var(--dusty); font-style: italic; }

/* Smaller tagline */
.hero-story {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem); color: var(--ink-light);
  letter-spacing: .06em; margin-bottom: 14px; font-weight: 300;
}
.hero-desc {
  font-size: .95rem; color: var(--ink-light); line-height: 1.8;
  margin-bottom: 36px; font-weight: 300; max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Decorative floating nails — left & right sides */
.hero-nails-left,
.hero-nails-right {
  position: absolute; bottom: 60px; z-index: 1;
  display: flex; align-items: flex-end; gap: 10px;
}
.hero-nails-left  { left: 5%; }
.hero-nails-right { right: 5%; }

.nail {
  width: 36px; border-radius: 18px 18px 8px 8px;
  box-shadow: 0 8px 30px rgba(180,100,120,.25);
  animation: nailFloat 4s ease-in-out infinite;
}
.n1 { height: 80px;  background: linear-gradient(180deg,#f8c8d4,#e8a8b8); animation-delay:0s; }
.n2 { height: 104px; background: linear-gradient(180deg,#f5e6c8,#e8d4a8); animation-delay:.3s; }
.n3 { height: 128px; background: linear-gradient(180deg,#e8b4bc,#c99299); animation-delay:.5s; }
.n4 { height: 110px; background: linear-gradient(180deg,#d4c5b0,#b8a890); animation-delay:.15s; }
.n5 { height: 82px;  background: linear-gradient(180deg,#f8c8d4,#c9929e); animation-delay:.7s; }
@keyframes nailFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ─── Sections ───────────────────────────── */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dusty); font-weight: 500; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(2.4rem,5vw,3.6rem);
  font-weight: 300; color: var(--ink); margin-bottom: 16px; line-height: 1.1;
}
.section-sub {
  font-size: 1rem; color: var(--ink-light); max-width: 480px; margin: 0 auto;
  line-height: 1.7; font-weight: 300;
}

/* ─── Products Grid ──────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
/* Skeleton */
.skeleton-card {
  height: 420px; border-radius: var(--radius);
  background: linear-gradient(110deg, #f0e0e8 0%, #fce8f0 40%, #f0e0e8 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Product Card */
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  animation: cardFadeIn .5s ease forwards;
  opacity: 0;
}
@keyframes cardFadeIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-lg);
}
.card-img-wrap {
  height: 240px; overflow: hidden; background: var(--cream); position: relative;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border-radius: 50px; padding: 4px 12px;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dusty); font-weight: 500; border: 1px solid var(--border);
}
.card-body { padding: 20px 22px 22px; }
.card-title {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400;
  margin-bottom: 6px; color: var(--ink);
}
.card-desc {
  font-size: .85rem; color: var(--ink-light); line-height: 1.6;
  margin-bottom: 16px; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.card-price {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--dusty);
  font-weight: 600;
}
.card-cta {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 500;
  padding: 8px 16px; border-radius: 50px;
  border: 1px solid var(--border); transition: var(--transition);
}
.card-cta:hover { background: var(--blush); border-color: var(--rose); color: var(--ink); }

/* ─── Customizer ─────────────────────────── */
.customizer-section { background: var(--white); }
.customizer-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.control-group { margin-bottom: 36px; }
.control-label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 500; margin-bottom: 14px;
}
/* Color Swatches */
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  position: relative; transition: transform var(--transition), box-shadow var(--transition);
  border: 2.5px solid transparent;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(44,26,30,.15);
}
.swatch.active::after {
  content: '✓'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: .7rem; color: var(--ink); font-weight: 700;
}
.custom-swatch {
  background: conic-gradient(#f8c8d4, #e8a8b8, #d4c5b0, #c9929e, #f5e6c8, #f8c8d4);
  position: relative; overflow: hidden;
}
.custom-swatch input[type="color"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.custom-swatch span {
  position: relative; z-index: 1; font-size: 1.2rem; color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,.4);
}
/* Shape Options */
.shape-options { display: flex; gap: 12px; flex-wrap: wrap; }
.shape-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); transition: var(--transition);
  font-size: .78rem; font-weight: 500; color: var(--ink-light); min-width: 80px;
}
.shape-btn:hover { border-color: var(--rose); background: rgba(248,200,212,.1); }
.shape-btn.active { border-color: var(--dusty); background: rgba(248,200,212,.2); color: var(--ink); }
.shape-icon {
  display: block; width: 28px; height: 36px;
  background: var(--dusty);
}
.shape-oval    { border-radius: 60% 60% 40% 40%; }
.shape-square  { border-radius: 4px; }
.shape-coffin  { clip-path: polygon(20% 0%,80% 0%,100% 60%,50% 100%,0% 60%); }
.shape-almond  { border-radius: 60% 60% 50% 50% / 70% 70% 30% 30%; height: 42px; }
/* Pattern Options */
.pattern-options { display: flex; gap: 12px; }
.pattern-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); transition: var(--transition);
  font-size: .78rem; font-weight: 500; color: var(--ink-light);
}
.pattern-btn:hover { border-color: var(--rose); }
.pattern-btn.active { border-color: var(--dusty); background: rgba(248,200,212,.2); color: var(--ink); }
.pattern-preview {
  width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--border);
}
.glossy-prev  { background: linear-gradient(135deg,#f8c8d4 30%,#fff 50%,#e8a8b8 70%); }
.matte-prev   { background: #e8b4bc; box-shadow: none; }
.glitter-prev { background: radial-gradient(circle at 30% 30%, #fff 2%, transparent 3%) 0 0/8px 8px, radial-gradient(circle at 70% 70%, #f8d4e0 2%, transparent 3%) 4px 4px/8px 8px, #e8a8b8; }

/* Preview Card */
.customizer-preview { position: sticky; top: 100px; }
.preview-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
  text-align: center;
}
.preview-label {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 28px;
}
.preview-hand {
  display: flex; justify-content: center; align-items: flex-end; gap: 6px;
  height: 140px; margin-bottom: 24px;
}
.preview-finger {
  width: 32px; height: 90px; background: #f5dfd0; border-radius: 50% 50% 8px 8px;
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding-top: 6px;
}
.preview-finger.long  { height: 110px; }
.preview-finger.short { height: 72px; }
.preview-nail {
  width: 28px; border-radius: 14px 14px 4px 4px;
  height: 36px; transition: background .3s, box-shadow .3s, border-radius .4s, clip-path .4s;
  box-shadow: 0 3px 10px rgba(180,100,120,.3);
}
.preview-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.preview-chip {
  padding: 5px 12px; border-radius: 50px;
  background: rgba(200,150,160,.15); font-size: .72rem; color: var(--dusty);
  font-weight: 500; letter-spacing: .04em;
}

/* ─── About Strip ────────────────────────── */
.about-strip {
  padding: 80px 0;
  background: linear-gradient(135deg, #fdf0f5, #fdf6f0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 32px;
}
.about-item { text-align: center; padding: 20px; }
.about-icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.about-item h3 {
  font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; font-weight: 400;
}
.about-item p { font-size: .88rem; color: var(--ink-light); line-height: 1.65; font-weight: 300; }
/* Scroll reveal */
.about-item { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.about-item.revealed { opacity: 1; transform: translateY(0); }

/* ─── Modals ─────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(44,26,30,.55); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 24px;
  width: 100%; max-width: 540px; position: relative;
  box-shadow: 0 30px 80px rgba(100,40,60,.25);
  overflow: hidden; animation: modalIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(44,26,30,.1); color: var(--ink);
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--blush); }
.modal-img-wrap { height: 260px; overflow: hidden; background: var(--cream); }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 28px 32px 36px; }
.modal-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dusty); margin-bottom: 8px; }
.modal-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 300; margin-bottom: 10px; }
.modal-desc { font-size: .9rem; color: var(--ink-light); line-height: 1.7; margin-bottom: 14px; font-weight: 300; }
.modal-price { font-family: var(--font-serif); font-size: 1.8rem; color: var(--dusty); font-weight: 600; margin-bottom: 22px; }

/* Order Modal */
.order-modal-box { max-width: 620px; max-height: 92vh; overflow-y: auto; }
.order-modal-head { padding: 36px 36px 0; margin-bottom: 28px; }
.order-modal-head h2 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 300; }
.order-modal-sub { font-size: .9rem; color: var(--ink-light); margin-top: 6px; }
.order-form { padding: 0 36px 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 6px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: .9rem; color: var(--ink);
  background: var(--cream); transition: border-color var(--transition);
  resize: none; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose); background: var(--white); }
.form-group input.readonly-field { color: var(--ink-light); }
.custom-summary-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.summary-badge {
  padding: 5px 14px; border-radius: 50px;
  background: rgba(200,150,160,.15); font-size: .8rem; color: var(--dusty);
  font-weight: 500;
}
.form-group input.error,
.form-group textarea.error { border-color: #e74c3c; }

/* ─── Toast ─────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 3000;
  background: var(--white); border-radius: 16px;
  padding: 18px 24px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 40px var(--shadow-lg); border: 1px solid var(--border);
  transform: translateY(100px); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.toast-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #e8f8ee; color: #27ae60; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  flex-shrink: 0;
}
.toast strong { font-size: .95rem; color: var(--ink); display: block; margin-bottom: 2px; }
.toast p { font-size: .82rem; color: var(--ink-light); margin: 0; }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 32px 24px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer .logo { color: #fff; }
.footer .logo-icon { color: var(--rose); }
.footer .logo em { color: var(--rose); }
.footer-copy { font-size: .82rem; }
.footer-wa {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: #25D366 !important; font-weight: 500;
  transition: opacity var(--transition);
}
.footer-wa:hover { opacity: .8; }

/* ─── Fade-up Animation ───────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp .7s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-content .fade-up:nth-child(1) { animation-delay:.1s; }
.hero-content .fade-up:nth-child(2) { animation-delay:.25s; }
.hero-content .fade-up:nth-child(3) { animation-delay:.4s; }
.hero-content .fade-up:nth-child(4) { animation-delay:.55s; }

/* ═══════════════════════════════════════════════════
   ADMIN STYLES
   ═══════════════════════════════════════════════════ */
.admin-body {
  font-family: var(--font-sans);
  background: #fdf6f0; min-height: 100vh;
}
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(135deg, #fdf0f5 0%, #fdf6f0 100%);
}
.login-card {
  background: var(--white); border-radius: 24px; padding: 48px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px var(--shadow-lg); border: 1px solid var(--border);
}
.login-card .logo { margin-bottom: 32px; justify-content: center; }
.login-card h2 { font-family: var(--font-serif); font-size: 2rem; font-weight: 300; margin-bottom: 6px; }
.login-card p { font-size: .9rem; color: var(--ink-light); margin-bottom: 28px; }
.login-form .form-group { margin-bottom: 16px; }
.login-error { color: #e74c3c; font-size: .85rem; margin-top: 12px; display: none; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--ink); padding: 0; display: flex; flex-direction: column;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 28px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .logo { color: #fff; }
.sidebar-logo .logo em { color: var(--rose); }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; font-size: .85rem; color: rgba(255,255,255,.6);
  transition: var(--transition); font-weight: 400;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-nav a .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-logout {
  padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-logout button {
  width: 100%; padding: 10px; background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6); border-radius: var(--radius-sm);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  transition: var(--transition);
}
.sidebar-logout button:hover { background: rgba(255,255,255,.15); color: #fff; }
.admin-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.admin-topbar {
  height: 64px; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; flex-shrink: 0;
}
.admin-topbar h1 {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300;
}
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--dusty),#b5727e);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
}
.admin-content { flex: 1; overflow-y: auto; padding: 32px; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: 0 6px 24px var(--shadow-lg); transform: translateY(-2px); }
.stat-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 8px; }
.stat-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 300; color: var(--ink); }
.stat-delta { font-size: .8rem; color: #27ae60; margin-top: 4px; }

/* Orders Table */
.table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 12px var(--shadow); }
.table-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.table-head h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; font-size: .85rem; border-bottom: 1px solid var(--border); }
th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); font-weight: 500; background: var(--cream); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(248,200,212,.06); }
.status-badge {
  padding: 4px 12px; border-radius: 50px; font-size: .72rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-select { padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: .8rem; background: var(--white); cursor: pointer; outline: none; }

/* Products admin */
.admin-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-section-head h3 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; }
.admin-products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; }
.admin-product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
}
.admin-product-card:hover { box-shadow: 0 6px 24px var(--shadow-lg); transform: translateY(-3px); }
.admin-product-img { height: 160px; object-fit: cover; width: 100%; background: var(--cream); }
.admin-product-body { padding: 14px 16px; }
.admin-product-title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }
.admin-product-price { font-size: .9rem; color: var(--dusty); font-weight: 500; margin-bottom: 12px; }
.admin-product-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 6px 14px; border-radius: 50px; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; border: none; font-family: var(--font-sans); transition: var(--transition);
}
.btn-edit { background: var(--nude); color: var(--ink); border: 1px solid var(--border); }
.btn-edit:hover { background: var(--blush); }
.btn-del  { background: #fce8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.btn-del:hover  { background: #f5c6c6; }

/* Product Form Panel */
.product-form-panel {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 28px; display: none;
}
.product-form-panel.open { display: block; animation: modalIn .3s ease; }
.product-form-panel h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; margin-bottom: 20px; }
.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.img-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 20px; text-align: center; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.img-upload-area:hover { border-color: var(--rose); background: rgba(248,200,212,.05); }
.img-upload-area input { display: none; }
.img-preview {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: var(--radius-sm); margin-top: 10px; display: none;
}
.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.admin-msg {
  padding: 12px 18px; border-radius: var(--radius-sm); font-size: .88rem;
  margin-bottom: 16px; display: none;
}
.admin-msg.success { background: #d1fae5; color: #065f46; }
.admin-msg.error   { background: #fce8e8; color: #c0392b; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 900px) {
  .customizer-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-nails-left, .hero-nails-right { display: none; }
  .admin-sidebar { width: 220px; }
}

@media (max-width: 700px) {
  /* ── Header ── */
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 0; top: 60px;
    background: var(--white); padding: 12px 20px; z-index: 999;
    box-shadow: 0 8px 32px var(--shadow-lg);
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .hamburger { display: flex; }
  .header-inner { height: 60px; }

  /* keep auth + cart visible but compact */
  .header-actions { gap: 6px; }
  .cart-btn  { padding: 5px 10px; font-size: .72rem; }
  .auth-btn  { padding: 5px 10px; font-size: .72rem; }

  /* ── Hero ── */
  .hero { padding: 80px 16px 40px; }
  .hero-desc { font-size: .88rem; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* ── Sections ── */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .product-form-grid { grid-template-columns: 1fr; }

  /* ── Cart sidebar ── */
  .cart-sidebar { width: 100%; right: -100%; }

  /* ── Order modal ── */
  .modal-overlay { align-items: flex-end; }
  .order-modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 92vh; overflow-y: auto;
    width: 100%; max-width: 100%;
  }
  .order-modal-head { padding: 24px 20px 0; }
  .order-form { padding: 0 20px 24px; }

  /* ── Login modal ── */
  .login-modal-overlay { align-items: flex-end; }
  .login-modal-box {
    border-radius: 24px 24px 0 0;
    max-width: 100%; width: 100%;
    padding: 28px 20px 32px;
  }

  /* ── Admin panel ── */
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-logo { display: none; }
  .sidebar-logout { display: none; }
  .sidebar-nav {
    display: flex; flex-direction: row;
    overflow-x: auto; padding: 0; width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-nav a { padding: 14px 18px; white-space: nowrap; font-size: .8rem; }
  .admin-topbar { padding: 0 16px; height: 56px; }
  .admin-topbar h1 { font-size: 1.3rem; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .stat-num { font-size: 1.8rem; }
  .table-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .table-head > div { width: 100%; }
  #orderSearch { width: 100% !important; }
  #orderFilter { width: 100%; }
  table { font-size: .76rem; }
  th, td { padding: 10px 10px; }

  /* hide less important table columns on mobile */
  table thead tr th:nth-child(3),
  table tbody tr td:nth-child(3) { display: none; } /* Address */
  table thead tr th:nth-child(4),
  table tbody tr td:nth-child(4) { display: none; } /* Design (shown in name cell) */

  .admin-products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .login-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .shape-options { gap: 8px; }
  .shape-btn { padding: 10px 12px; min-width: 70px; }
  .pattern-options { gap: 8px; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-products-grid { grid-template-columns: 1fr; }
  .hero-center img { height: 160px !important; }
  .section-title { font-size: 1.6rem; }

  /* Full-screen modals on very small phones */
  .modal-overlay { align-items: flex-end; }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 95vh; overflow-y: auto;
    width: 100%; max-width: 100% !important;
  }
}