:root {
  --bg: #07070a;
  --surface: #111214;
  --surface-strong: #181a1f;
  --text: #f9f5ef;
  --muted: #9aa0a6;
  --accent: #ffd24d;
  --accent-strong: #ff6a00;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 18px 45px rgba(1,1,1,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 84px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  background: transparent;
}
.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: rgba(10, 10, 12, 0.96);
  padding: 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 0.2rem; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #fff; margin: 4px 0; }
.cart-trigger, .btn, .filter-chip, .icon-btn {
  border: 0;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cart-trigger {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #111;
  padding: 0.7rem 1rem;
}
.cart-trigger:hover, .btn:hover, .filter-chip:hover, .icon-btn:hover { transform: translateY(-2px); }

main { padding: 1.25rem 1.25rem 4rem; }
main.shop-page-main { padding-top: 1.2rem; }
.hero-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  border-radius: 34px;
  background: radial-gradient(circle at top left, rgba(255, 210, 77, 0.16), transparent 24%), var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; margin: 0; }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hero-text { color: var(--muted); max-width: 600px; font-size: 1rem; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
}
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); color: #111; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.hero-highlights { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-highlights > div {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  min-width: 120px;
}
.hero-highlights strong { display: block; font-size: 0.95rem; }
.hero-highlights span { color: var(--muted); font-size: 0.85rem; }
.hero-visual { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  animation: drift 8s ease-in-out infinite;
}
.orb-a { width: 200px; height: 200px; background: rgba(199, 169, 107, 0.18); right: 30px; top: 40px; }
.orb-b { width: 140px; height: 140px; background: rgba(23, 23, 23, 0.06); left: 30px; bottom: 40px; animation-delay: 2s; }
.frame-card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  border-radius: 28px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.frame-card img { height: 260px; width: 100%; object-fit: cover; border-radius: 20px; }
.frame-card__content { padding: 0.9rem 0.2rem 0.2rem; }
.frame-card__content p { color: var(--accent-strong); margin: 0 0 0.25rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em; }

.section { max-width: 1200px; margin: 2rem auto 0; }
.intro-strip {
  padding: 1.2rem 0 0.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.intro-strip p:last-child { color: var(--muted); max-width: 540px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.align-start { align-items: flex-start; }
.controls { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.search-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  min-width: min(320px, 100%);
}
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--text); }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  background: #111214;
  color: #f9f5ef;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select option {
  background: #111214;
  color: #f9f5ef;
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(255, 210, 77, 0.35);
  border-color: var(--accent);
}
.filter-chip {
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}
.filter-chip:hover {
  background: rgba(255, 210, 77, 0.16);
  color: var(--accent-strong);
  border-color: rgba(255, 210, 77, 0.45);
}
.filter-chip.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #111;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(255, 210, 77, 0.2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  animation: fadeIn 0.28s ease;
}
.art-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(23, 23, 23, 0.12); }
.art-card img { height: 220px; width: 100%; object-fit: cover; }
.art-card__body { padding: 1rem; }
.art-card__top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.art-card__top h3 { font-size: 1.05rem; }
.favorite-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}
.favorite-btn.active { color: #d9485f; }
.favorite-btn.animating {
  animation: heartPop 0.28s ease;
}
.meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0 0.7rem; }
.meta span { font-size: 0.8rem; color: var(--muted); background: rgba(23, 23, 23, 0.04); padding: 0.3rem 0.55rem; border-radius: 999px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; font-weight: 600; }
.rating { color: var(--accent-strong); font-size: 0.9rem; }
.card-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
.card-actions .btn { flex: 1; padding: 0.7rem 0.8rem; font-size: 0.9rem; }

.commission-section, .checkout-section { padding-top: 1.3rem; }
.estimate-card, .summary-card, .progress-card, .cart-panel, .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.estimate-card, .summary-card { border-radius: 20px; padding: 1rem 1.1rem; min-width: 220px; }
.estimate-card p, .summary-card h3 { margin-bottom: 0.35rem; }
.estimate-card strong, .summary-card strong { font-size: 1.2rem; }
.progress-card { border-radius: 22px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.progress-bar { height: 8px; background: rgba(23, 23, 23, 0.08); border-radius: 999px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width 0.25s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-top: 0.6rem; color: var(--muted); font-size: 0.8rem; }
.step-panels { display: grid; gap: 0.9rem; }
.step-panel { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1rem 1.1rem; }
.step-panel.active { display: block; animation: fadeIn 0.25s ease; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.option-grid label { display: flex; align-items: center; gap: 0.4rem; background: var(--bg); padding: 0.65rem 0.8rem; border-radius: 12px; }
.preview-holder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.preview-holder img { height: 110px; width: 100%; object-fit: cover; border-radius: 12px; }
.custom-size { display: none; margin-top: 0.8rem; gap: 0.7rem; }
.custom-size.show { display: flex; }
.step-actions { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.checkout-form textarea, .commission-form textarea { margin-top: 0.8rem; min-height: 120px; }
.checkout-form { margin-top: 0.8rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; color: var(--muted); }
.summary-line.total { color: var(--text); font-weight: 700; padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.65rem; }
.site-footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--muted); }

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 100%);
  height: 100vh;
  z-index: 120;
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-panel.open { right: 0; }
.cart-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.icon-btn { width: 38px; height: 38px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
.cart-items { display: flex; flex-direction: column; gap: 0.8rem; overflow: auto; padding-right: 0.15rem; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 0.7rem; align-items: center; padding: 0.7rem; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; }
.cart-item__meta small { color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.35rem; }
.qty-controls button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.06); }
.cart-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.full { width: 100%; margin-top: 0.8rem; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-content {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.2rem;
  border-radius: 28px;
  position: relative;
}
.close-modal { position: absolute; top: 1rem; right: 1rem; }
.modal-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; }
.modal-body img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 20px; }
.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.6rem;
  z-index: 180;
}
.toast {
  background: var(--text);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.25s ease;
}

@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heartPop { 0% { transform: scale(1); } 50% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes ripple { from { transform: scale(0); opacity: 0.5; } to { transform: scale(2.5); opacity: 0; } }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@media (max-width: 920px) {
  .hero-section { grid-template-columns: 1fr; padding: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-nav { padding: 0.9rem 1rem; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .hero-section { padding: 1.3rem; border-radius: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .grid-2, .option-grid { grid-template-columns: 1fr; }
  .controls { width: 100%; }
  .search-box { min-width: 100%; }
  .intro-strip { flex-direction: column; align-items: flex-start; }
  .cart-panel { width: 100%; }
}
