/* ═══════════════════════════════════════════════════════════
   Nina's Art Life — Gallery CSS
   Warm art gallery aesthetic — like walking into a sunlit studio
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ivory:        #FDFBF7;
  --cream:        #F5F0E8;
  --warm-white:   #FAF7F2;
  --charcoal:     #2C2622;
  --dark-brown:   #3A322C;
  --rose:         #B2627E;
  --dusty-rose:   #C4738E;
  --blush:        #E8CDD6;
  --gold:         #C09A6B;
  --warm-gold:    #D4A574;
  --taupe:        #8B7D6F;
  --light-taupe:  #C8BAA8;
  --sage:         #7A8B6B;
  --danger:       #C0392B;
  /* Backward-compat aliases */
  --burnt-orange: #B2627E;
  --soft-brown:   #8B7D6F;
  --off-white:    #F5F0E8;
  --deep-rose:    #B2627E;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ─────────────────────────────── */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* ── NAVIGATION ─────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.4rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dark-brown);
}

.logo span {
  color: var(--rose);
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--taupe);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark-brown);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* ── BUTTONS ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--dark-brown);
  color: var(--ivory);
}
.btn-primary:hover {
  background: var(--charcoal);
  box-shadow: 0 4px 20px rgba(44, 38, 34, 0.15);
}

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

.btn-gold {
  background: var(--warm-gold);
  color: white;
  border: 1px solid transparent;
}
.btn-gold:hover {
  background: var(--gold);
  box-shadow: 0 4px 20px rgba(192, 154, 107, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--taupe);
  border: 1px solid transparent;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
}
.btn-ghost:hover {
  color: var(--dark-brown);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* ── SECTION LABELS ─────────────────────────── */

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-taupe);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.section-label::before {
  display: none;
}

/* ── PAGE WRAPPER ───────────────────────────── */

.page {
  padding-top: 5.5rem;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.page-header {
  padding: 5rem 0 3.5rem;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--dark-brown);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.page-header h1 em {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.page-header p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--taupe);
  max-width: 520px;
  font-weight: 400;
}

/* ── GALLERY ────────────────────────────────── */

.gallery-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(200, 186, 168, 0.5);
  color: var(--taupe);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--dark-brown);
  color: var(--dark-brown);
}

.filter-btn.active {
  background: var(--dark-brown);
  border-color: var(--dark-brown);
  color: var(--ivory);
}

/* ── PAINTINGS GRID ─────────────────────────── */

.paintings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  padding-bottom: 6rem;
  align-items: start;
}

.painting-card {
  display: block;
  color: inherit;
  transition: opacity 0.4s ease;
  content-visibility: auto;
  contain-intrinsic-size: 400px 500px;
}

.painting-card:hover {
  opacity: 0.88;
}

.painting-card-image {
  position: relative;
  background: var(--cream);
  margin-bottom: 1.1rem;
}

.painting-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.painting-card:hover .painting-card-image img {
  transform: scale(1.03);
}

.painting-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
}

.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 38, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sold-overlay-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ivory);
  letter-spacing: 0.06em;
  border: 1px solid rgba(253, 251, 247, 0.35);
  padding: 0.45rem 1.4rem;
}

.painting-card-body {
  padding: 0;
}

.painting-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 0.2rem;
}

.painting-card-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.78rem;
  color: var(--light-taupe);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.painting-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(200, 186, 168, 0.25);
}

.painting-card-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-brown);
}

.painting-card-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--taupe);
  transition: color 0.3s;
}

.painting-card:hover .painting-card-link {
  color: var(--rose);
}

.painting-card-purchase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warm-gold);
  transition: color 0.3s;
}

.painting-card:hover .painting-card-purchase {
  color: var(--gold);
}

/* ── BADGES ─────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 500;
  font-style: italic;
}

.badge-sold {
  background: var(--cream);
  color: var(--taupe);
  border: 1px solid rgba(200, 186, 168, 0.4);
}

.badge-available {
  background: rgba(107, 122, 98, 0.08);
  color: var(--sage);
  border: 1px solid rgba(107, 122, 98, 0.25);
}

.badge-new {
  background: rgba(178, 98, 126, 0.06);
  color: var(--rose);
  border: 1px solid rgba(178, 98, 126, 0.2);
}

.badge-hidden {
  background: var(--cream);
  color: var(--light-taupe);
  border: 1px solid var(--light-taupe);
}

/* ── PAINTING DETAIL ────────────────────────── */

.painting-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  padding: 3rem 0 6rem;
  align-items: start;
}

.painting-detail-image {
  position: relative;
}

.painting-carousel {
  max-height: 82vh;
}

.painting-detail-image img,
.carousel-main-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  display: block;
  margin: 0 auto;
}

.painting-detail-info {}

.painting-detail-medium {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  color: var(--taupe);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  margin-top: 0.5rem;
}

.painting-detail-dimensions {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.85rem;
  color: var(--light-taupe);
  margin-bottom: 1.5rem;
}

.painting-detail-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200, 186, 168, 0.25);
}

.painting-detail-description {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--taupe);
  margin-bottom: 2rem;
  font-weight: 400;
}

.painting-detail-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.painting-detail-note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--light-taupe);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(200, 186, 168, 0.25);
  background: var(--warm-white);
}

/* ── Prints Section on Detail Page ────────── */

.prints-available-section {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(200, 186, 168, 0.35);
  background: var(--warm-white);
}

.prints-available-section.prints-primary {
  background: linear-gradient(135deg, #fdf9f4 0%, #f7efe4 100%);
  border-color: rgba(212, 165, 116, 0.4);
  margin-top: 0;
}

.prints-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.prints-section-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.prints-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-brown);
  line-height: 1.2;
}

.prints-section-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 0.1rem;
}

.print-sold-notice {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark-brown);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.print-sizes {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.print-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(200, 186, 168, 0.45);
  background: white;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark-brown);
  transition: all 0.25s;
  min-width: 68px;
}

.print-size-btn:hover {
  border-color: var(--warm-gold);
  background: var(--cream);
}

.print-size-btn.active {
  border-color: var(--warm-gold);
  background: var(--warm-gold);
  color: white;
}

.print-size-btn.active .print-size-price {
  color: rgba(255,255,255,0.85);
}

.print-size-price {
  font-size: 0.74rem;
  color: var(--taupe);
  font-weight: 400;
}

.print-buy-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.prints-fulfillment-note {
  font-size: 0.8rem;
  color: var(--light-taupe);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

/* ─────────────────────────────────────────── */

.related-section {
  padding: 5rem 0 6rem;
  border-top: 1px solid rgba(200, 186, 168, 0.2);
}

.related-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dark-brown);
  margin-bottom: 3rem;
}

/* ── ABOUT PAGE ─────────────────────────────── */

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  padding-bottom: 6rem;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: 7rem;
}

.about-portrait-placeholder {
  background: var(--cream);
  border: 1px solid rgba(200, 186, 168, 0.3);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--light-taupe);
}

.about-portrait-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--light-taupe);
  fill: none;
  stroke-width: 1.2;
}

.about-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--dark-brown);
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.3;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--cream);
  border: 1px solid rgba(200, 186, 168, 0.3);
}

.about-detail-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-taupe);
  margin-bottom: 0.3rem;
}

.about-detail-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--dark-brown);
}

/* ── FORM STYLES ────────────────────────────── */

.form-card {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-brown);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
select,
textarea {
  padding: 0.85rem 1rem;
  background: var(--warm-white);
  border: 1px solid rgba(200, 186, 168, 0.4);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.92rem;
  transition: border-color 0.3s;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.hint {
  font-size: 0.82rem;
  color: var(--light-taupe);
  line-height: 1.5;
  font-style: italic;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 139, 34, 0.1);
  color: #228B22;
  border: 1px solid rgba(34, 139, 34, 0.3);
}

.form-message.error {
  background: rgba(185, 53, 53, 0.1);
  color: #b93535;
  border: 1px solid rgba(185, 53, 53, 0.3);
}

/* ── ALERTS ─────────────────────────────────── */

.alert {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  border-left: 3px solid;
}

.alert-info    { background: rgba(192, 154, 107, 0.06); border-color: var(--gold); color: var(--taupe); }
.alert-success { background: rgba(107, 122, 98, 0.06); border-color: var(--sage); color: var(--sage); }
.alert-error   { background: rgba(192, 57, 43, 0.05); border-color: var(--danger); color: var(--danger); }

/* ── PRINTS PAGE ────────────────────────────── */

.prints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.print-card {
  padding: 2.5rem 2rem;
  background: var(--warm-white);
  border: 1px solid rgba(200, 186, 168, 0.25);
  text-align: center;
  transition: box-shadow 0.4s ease;
}

.print-card:hover {
  box-shadow: 0 8px 30px rgba(44, 38, 34, 0.06);
}

.print-card-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.print-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 0.75rem;
}

.print-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.price-range {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--rose);
  font-weight: 500;
}

/* ── SUCCESS / 404 PAGES ────────────────────── */

.success-page {
  text-align: center;
  padding: 8rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.success-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.success-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--taupe);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

/* ── FOOTER ─────────────────────────────────── */

footer {
  padding: 4.5rem 3.5rem 3.5rem;
  border-top: 1px solid rgba(200, 186, 168, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--ivory);
}

.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark-brown);
  letter-spacing: 0.02em;
}

.footer-brand span {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--taupe);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--dark-brown);
}

.footer-text {
  font-size: 0.82rem;
  color: var(--light-taupe);
}

/* ── EMPTY STATE ────────────────────────────── */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: var(--light-taupe);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--light-taupe);
}

/* ════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ════════════════════════════════════════════════ */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--dark-brown);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.admin-sidebar-header {
  padding: 0.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.5rem;
}

.admin-sidebar-header .logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.2rem;
}

.admin-sidebar-header small {
  font-size: 0.7rem;
  color: var(--light-taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-nav {
  list-style: none;
  padding: 0.5rem 0;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.6);
  transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-icon { font-size: 1rem; }

.admin-content {
  flex: 1;
  padding: 2rem 2.5rem;
  background: var(--cream);
  overflow-y: auto;
}

.admin-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(200, 186, 168, 0.35);
}

.admin-content-header h1 {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark-brown);
}

/* Admin Login */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.admin-login-card {
  background: var(--ivory);
  padding: 3rem;
  border: 1px solid rgba(200, 186, 168, 0.35);
  width: 100%;
  max-width: 380px;
}

.admin-login-card .logo {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.admin-login-card h2 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--taupe);
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--ivory);
  padding: 1.5rem;
  border: 1px solid rgba(200, 186, 168, 0.35);
}

.stat-card-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 0.25rem;
}

.stat-card-note {
  font-size: 0.82rem;
  color: var(--light-taupe);
}

/* Admin Table */
.admin-table-wrapper {
  background: var(--ivory);
  border: 1px solid rgba(200, 186, 168, 0.35);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table thead {
  background: var(--warm-white);
}

.admin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  border-bottom: 1px solid rgba(200, 186, 168, 0.35);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(200, 186, 168, 0.15);
  color: var(--charcoal);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: var(--warm-white);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.painting-thumb,
.thumb-placeholder {
  width: 48px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  background: var(--cream);
}

/* Admin Form */
.admin-form-card {
  background: var(--ivory);
  padding: 2rem;
  border: 1px solid rgba(200, 186, 168, 0.35);
  max-width: 800px;
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed rgba(200, 186, 168, 0.5);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.3s;
  background: var(--warm-white);
  position: relative;
}

.image-upload-area:hover {
  border-color: var(--rose);
}

.image-upload-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.image-upload-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--taupe);
}

.image-upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.actions { white-space: nowrap; }

.status-select {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid var(--light-taupe);
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  cursor: pointer;
}

/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1024px) {
  .paintings-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(200, 186, 168, 0.2);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .container { padding: 0 1.5rem; }

  .page-header { padding: 4rem 0 2.5rem; }

  .painting-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 0 4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait { position: static; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .prints-grid { grid-template-columns: repeat(2, 1fr); }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
  }

  .footer-links { flex-wrap: wrap; gap: 1rem; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-content { padding: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .paintings-grid { grid-template-columns: 1fr; }
  .prints-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── HOME GALLERY PAGE ──────────────────────── */

.home-gallery-page {
  /* padding handled by .page wrapper inside */
}

/* Warm, intimate intro — like a gallery welcome wall */
.home-intro {
  padding: 5.5rem 3.5rem 4rem;
  background: var(--ivory);
  text-align: center;
}

.home-intro-inner {
  max-width: 580px;
  margin: 0 auto;
}

.home-intro h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 300;
  color: var(--dark-brown);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.home-intro h1 em {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.home-intro-bio {
  font-size: 1.05rem;
  color: var(--taupe);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 2.2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.home-intro-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Gallery section — the art wall */
.home-gallery-section {
  padding: 4.5rem 0 8rem;
  background: var(--ivory);
}

/* TRUE PROPORTIONS grid */
.home-paintings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  align-items: start;
}

.home-painting-card {
  display: block;
  color: inherit;
  transition: opacity 0.4s ease;
}

.home-painting-card:hover {
  opacity: 0.88;
}

.home-painting-image {
  position: relative;
  background: var(--cream);
  margin-bottom: 1rem;
}

/* width: 100%, height: auto -> true proportions */
.home-painting-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-painting-card:hover .home-painting-image img {
  transform: scale(1.02);
}

.home-painting-info {
  padding: 0;
}

.home-painting-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 0.2rem;
  letter-spacing: 0;
}

.home-painting-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.78rem;
  color: var(--light-taupe);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.home-painting-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-brown);
}

.home-painting-purchase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-gold);
  margin-top: 0.3rem;
  transition: color 0.3s;
}

.home-painting-card:hover .home-painting-purchase {
  color: var(--gold);
}

.home-painting-card.is-sold .home-painting-image {
  opacity: 0.72;
}

@media (max-width: 900px) {
  .home-intro { padding: 4rem 1.5rem 3rem; }
  .home-gallery-section { padding: 3rem 0 5rem; }
  .home-paintings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 500px) {
  .home-paintings-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .home-intro { padding: 3.5rem 1.2rem 2.5rem; }
}

/* ── HOME BIO SECTION ───────────────────────── */

.home-bio-section {
  background: var(--cream);
  padding: 6rem 2rem 7rem;
  text-align: center;
  border-top: 1px solid rgba(200, 186, 168, 0.3);
}

.home-bio-inner {
  max-width: 600px;
  margin: 0 auto;
}

.home-bio-inner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.home-bio-inner h2 em {
  font-style: italic;
  color: var(--rose);
}

.home-bio-inner p {
  font-size: 1.02rem;
  color: var(--taupe);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.home-bio-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .home-bio-section { padding: 4rem 1.5rem 5rem; }
}

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */

.zoomable-painting {
  cursor: zoom-in;
  transition: opacity 0.3s;
}
.zoomable-painting:hover {
  opacity: 0.94;
}

.zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(44, 38, 34, 0.65);
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.painting-detail-image:hover .zoom-hint {
  opacity: 1;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(16, 14, 12, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9001;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-wrap {
  overflow: auto;
  max-width: 90vw;
  max-height: 85vh;
  cursor: zoom-in;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.lightbox-img-wrap.zoomed {
  cursor: zoom-out;
}

#lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.3s ease;
  transform-origin: top left;
  user-select: none;
}

#lightbox-img.zoomed {
  max-width: none;
  max-height: none;
}

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   EMAIL SIGNUP SECTION
══════════════════════════════════════════ */

.email-signup-section {
  background: var(--cream);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(200, 186, 168, 0.2);
}

.email-signup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.email-signup-text h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  font-style: italic;
  color: var(--dark-brown);
  margin: 0 0 0.4rem;
}

.email-signup-text p {
  color: var(--taupe);
  font-size: 0.92rem;
  margin: 0;
}

.email-signup-form {
  flex-shrink: 0;
}

.email-signup-fields {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.email-signup-input {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(200, 186, 168, 0.5);
  background: var(--ivory);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  min-width: 240px;
  transition: border-color 0.3s;
}
.email-signup-input::placeholder { color: var(--light-taupe); }
.email-signup-input:focus { outline: none; border-color: var(--rose); }

.email-signup-msg {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--taupe);
}

@media (max-width: 768px) {
  .email-signup-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .email-signup-fields {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .email-signup-input { min-width: unset; width: 100%; }
  .email-signup-fields .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════
   SOLD COLLECTION SECTION
══════════════════════════════════════════ */

.sold-collection-section {
  border-top: 1px solid rgba(200, 186, 168, 0.2);
  margin-top: 5rem;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.sold-collection-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sold-collection-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--dark-brown);
  margin: 0.5rem 0;
}

.sold-collection-header p {
  color: var(--taupe);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
}

.sold-grid .painting-card {
  opacity: 0.78;
}

.filter-btn-sold {
  background: transparent;
  border: 1px solid var(--taupe);
  color: var(--taupe);
}

.filter-btn-sold:hover, .filter-btn-sold.active {
  background: var(--taupe);
  color: #fff;
  border-color: var(--taupe);
}

/* ══════════════════════════════════════════
   COMMISSION IMAGE UPLOAD
══════════════════════════════════════════ */

.commission-image-upload {
  border: 1.5px dashed rgba(200, 186, 168, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.commission-upload-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 2rem;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
}

.commission-upload-trigger:hover {
  background: var(--cream);
}

.commission-upload-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.commission-upload-trigger > span:nth-child(2) {
  color: var(--dark-brown);
  font-size: 0.92rem;
  font-weight: 500;
}

.commission-upload-hint {
  font-size: 0.78rem;
  color: var(--taupe);
  font-style: italic;
}

#commission-image-preview {
  padding: 0 1.25rem 1.25rem;
}

/* ══════════════════════════════════════════
   ADMIN COMMISSION CARDS
══════════════════════════════════════════ */

.commission-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.commission-card {
  background: #fff;
  border: 1px solid rgba(200, 186, 168, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.commission-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(200, 186, 168, 0.3);
  gap: 1rem;
}

.commission-card-body {
  padding: 1rem 1.25rem;
}

.commission-card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* ── SHIPPING ASSURANCE BADGE ────────────────── */

.shipping-assurance {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  color: var(--taupe);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── COMMISSION PROCESS STEPS ────────────────── */

.commission-process {
  margin-bottom: 2.5rem;
  background: var(--warm-white);
  border: 1px solid rgba(200, 186, 168, 0.3);
  border-radius: 4px;
  padding: 2.2rem 2.5rem;
}

.commission-process-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark-brown);
  margin-bottom: 1.5rem;
}

.commission-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.commission-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.commission-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.commission-step-body {
  flex: 1;
}

.commission-step-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-brown);
  margin-bottom: 0.2rem;
}

.commission-step-text {
  font-size: 0.9rem;
  color: var(--taupe);
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 600px) {
  .commission-process {
    padding: 1.25rem 1.5rem;
  }
}

/* ── SHIPPING DETAILS ACCORDION ─────────────── */

.shipping-details {
  margin-top: 1.5rem;
  border: 1px solid rgba(200, 186, 168, 0.3);
  border-radius: 4px;
  background: var(--warm-white);
  overflow: hidden;
}

.shipping-details summary {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--taupe);
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipping-details summary::-webkit-details-marker { display: none; }

.shipping-details summary::after {
  content: '+';
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  transition: transform 0.25s;
}

.shipping-details[open] summary::after {
  content: '-';
}

.shipping-details-body {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(200, 186, 168, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.shipping-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shipping-detail-row strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-brown);
}

.shipping-detail-row span {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.7;
  font-weight: 400;
}

/* ── GALLERY FILTER ROWS ──────────────────── */

.gallery-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.size-filter-row {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(200,184,168,0.2);
}

.size-filter-btn {
  background: transparent;
  border: 1px solid rgba(200, 186, 168, 0.4);
  color: var(--taupe);
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.size-filter-btn:hover {
  border-color: var(--dark-brown);
  color: var(--dark-brown);
}

.size-filter-btn.active {
  background: rgba(93, 77, 61, 0.12);
  border-color: var(--dark-brown);
  color: var(--dark-brown);
}

/* ── PAINTING DETAIL: THUMBNAIL STRIP ─────── */

.painting-main-img-wrap {
  position: relative;
}

.painting-thumbnail-strip {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.thumb-btn {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-btn:hover {
  opacity: 1;
  border-color: rgba(200,123,138,0.5);
}

.thumb-btn.thumb-active {
  opacity: 1;
}

/* ── ADMIN DRAG-DROP REORDER ────────────────── */

tr.painting-row {
  transition: background 0.15s;
}

tr.painting-row.drag-over {
  background: rgba(200,123,138,0.08);
  outline: 2px dashed var(--rose, #c87b8a);
}

.drag-handle-cell {
  cursor: grab;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.drag-handle-cell:hover {
  opacity: 1;
}

/* ── Pinterest Pin It Button ───────────────────────────────── */
.pin-it-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  text-decoration: none;
}
.painting-carousel:hover .pin-it-btn,
.pin-it-btn:focus {
  opacity: 1;
}
.pin-it-btn:hover {
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
