/* MB Creations — site styles */
:root {
  --lavender: #F5E6F5;
  --lavender-deep: #EBD3EE;
  --plum: #701060;
  --magenta: #B030A0;
  --violet: #7A3FC0;
  --gold: #E0B030;
  --teal: #30D0D0;
  --ink: #3a1236;
  --white: #fffafd;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(112, 16, 96, 0.12);
  --heading: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lavender);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--magenta); }
a:hover { color: var(--plum); }

h1, h2, h3 {
  font-family: var(--heading);
  color: var(--plum);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .5rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); }
.brand span { font-family: var(--heading); font-weight: 700; font-size: 1.35rem; color: var(--violet); }
.brand span b { color: var(--plum); font-weight: 700; }

.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; font-weight: 700; color: var(--plum);
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--plum); color: var(--plum);
  border-radius: 8px; font-size: 1.3rem; padding: .2rem .6rem; cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 3px solid var(--gold); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 4%; }
  .nav li a { display: block; padding: .7rem 0; }
}

/* Gold divider with gem, echoing the logo */
.divider {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin: 1.2rem auto 2rem; max-width: 420px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider i {
  width: 16px; height: 16px; transform: rotate(45deg);
  background: var(--violet); border: 3px solid var(--gold);
}

/* Buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 800; font-size: 1rem;
  padding: .75rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--plum); background: var(--plum); color: var(--white);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--plum); color: var(--white); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #f0c450; }
.btn.small { padding: .4rem .9rem; font-size: .9rem; }
.btn.danger { background: #a3203a; border-color: #a3203a; }

/* Hero */
.hero { padding: 3rem 0 2rem; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 34ch; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero img { height: auto; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: var(--shadow); border: 4px solid var(--gold); }
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .hero img { max-width: 300px; margin: 0 auto; order: -1; }
}

section { padding: 2.5rem 0; }
.center { text-align: center; }
.band { background: var(--white); border-top: 3px solid var(--lavender-deep); border-bottom: 3px solid var(--lavender-deep); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature { background: var(--lavender); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.feature .icon { font-size: 2rem; }

/* Product grid */
.filters { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.filters button {
  font: inherit; font-weight: 700; cursor: pointer; padding: .45rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--violet); background: var(--white); color: var(--violet);
}
.filters button.active, .filters button:hover { background: var(--violet); color: var(--white); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .img { aspect-ratio: 1 / 1; background: var(--lavender-deep); position: relative; overflow: hidden; }
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .tag {
  position: absolute; top: .6rem; left: .6rem; background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; text-transform: capitalize;
}
.card .tag.sold { left: auto; right: .6rem; background: var(--plum); color: var(--white); }
.card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .price { font-weight: 800; color: var(--magenta); font-size: 1.1rem; }
.card p { margin: 0; font-size: .95rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: .5rem; }
.empty { text-align: center; padding: 2rem; color: var(--plum); }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.about-grid img { height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 3px solid var(--gold); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-grid img { max-width: 320px; margin: 0 auto; } }

/* Forms */
form.panel, .panel {
  background: var(--white); padding: 1.8rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
label { display: block; font-weight: 700; color: var(--plum); margin: .9rem 0 .3rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border-radius: 10px;
  border: 2px solid var(--lavender-deep); background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); }
textarea { min-height: 140px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.note { font-size: .9rem; color: #6b4a68; }
.notice {
  background: #fff6db; border: 2px solid var(--gold); border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0;
}
.success { background: #e3faf6; border-color: var(--teal); }
.hidden { display: none !important; }

/* Footer */
.site-footer { background: var(--plum); color: var(--lavender); padding: 2rem 0; margin-top: 2rem; border-top: 4px solid var(--gold); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--gold); }
.site-footer .fname { font-family: var(--heading); font-size: 1.2rem; color: var(--white); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--lavender-deep); vertical-align: middle; }
.admin-table th { background: var(--plum); color: var(--white); font-weight: 700; }
.admin-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.admin-table .actions { white-space: nowrap; display: flex; gap: .4rem; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.status-pill { font-weight: 700; padding: .25rem .8rem; border-radius: 999px; font-size: .85rem; background: var(--lavender-deep); }
.status-pill.ok { background: #d6f6ef; }
.status-pill.warn { background: #fff0c2; }
dialog { max-height: 92vh; overflow: auto; border: none; border-radius: var(--radius); padding: 0; width: min(640px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(58, 18, 54, .55); }
dialog .panel { box-shadow: none; }
.preview-img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-top: .5rem; border: 2px solid var(--lavender-deep); }
.checkbox { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.checkbox input { width: auto; }
.checkbox label { margin: 0; }
@media (max-width: 700px) { .admin-table .hide-sm { display: none; } }
.status-pill:empty { display: none; }
