/* ─────────────────────────────────────────────
   ArtDrop — modern gallery theme
   ───────────────────────────────────────────── */
:root {
  --bg:         #0e0e12;
  --bg-soft:    #16161d;
  --surface:    #1c1c25;
  --surface-hi: #24242f;
  --border:     #2a2a36;
  --text:       #f4f4f6;
  --text-muted: #9a9aab;
  --accent:     #c8a34a;
  --accent-hi:  #e0b95a;
  --danger:     #ef4444;
  --success:    #22c55e;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 20px 40px -20px rgba(0,0,0,0.6);
  --shadow-hi:  0 30px 60px -20px rgba(200,163,74,0.25);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hi); }

/* ── Nav ──────────────────────────────────── */
nav {
  background: rgba(14,14,18,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky; top: 0; z-index: 50;
}
nav .brand {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); letter-spacing: .5px;
  margin-right: auto;
}
nav .brand span { color: var(--accent); }
nav a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
nav a:hover { color: var(--accent); }
nav .cart-link {
  background: var(--surface);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text); font-size: .9rem;
}
nav .cart-link:hover { background: var(--surface-hi); border-color: var(--accent); }

/* ── Layout ───────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 60px 40px; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: -.5px;
  margin: 0 0 12px; line-height: 1.15;
}
h1 + p.subtitle {
  color: var(--text-muted); font-size: 1.05rem;
  margin: 0 0 48px; max-width: 600px;
}

/* ── Hero ─────────────────────────────────── */
.hero {
  padding: 100px 40px 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(200,163,74,0.10) 0%, rgba(14,14,18,0) 60%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .eyebrow {
  display: inline-block; font-size: .8rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid var(--accent); border-radius: 999px;
}
.hero p {
  color: var(--text-muted); font-size: 1.15rem;
  max-width: 600px; margin: 0 auto 32px;
}
.hero .cta {
  display: inline-block; background: var(--accent); color: #0e0e12;
  font-weight: 600; padding: 14px 32px; border-radius: 999px;
  transition: all .25s;
}
.hero .cta:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hi);
}

/* ── Trust strip ──────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.trust-item strong {
  display: block; color: var(--text);
  margin-bottom: 4px; font-weight: 600;
}
.trust-item span { font-size: .9rem; color: var(--text-muted); }

/* ── Product grid ─────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,163,74,.4);
  box-shadow: var(--shadow-hi);
}
.card .thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.06); }

.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin: 0; letter-spacing: .2px;
}
.card .price {
  color: var(--accent); font-weight: 600;
  font-size: 1.1rem; margin: 8px 0 16px;
}
.card form { margin-top: auto; }

/* card links */
.thumb-link, .title-link { text-decoration: none; color: inherit; display: block; }
.title-link h3 { transition: color .2s; }
.title-link:hover h3 { color: var(--accent); }

/* ── Buttons ──────────────────────────────── */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: inherit; font-size: .95rem; font-weight: 600;
  letter-spacing: .3px; padding: 12px 22px;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: all .2s ease; text-decoration: none;
}
.btn-primary, button { background: var(--accent); color: #0e0e12; }
.btn-primary:hover, button:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px rgba(200,163,74,.5);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(239,68,68,.3);
  padding: 8px 14px; font-size: .85rem;
}
.btn-danger:hover { background: rgba(239,68,68,.1); border-color: var(--danger); }

/* ── Forms ────────────────────────────────── */
label {
  display: block; margin: 20px 0;
  font-size: .85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}
input[type="text"], input[type="email"], textarea {
  display: block; width: 100%; max-width: 480px;
  margin-top: 8px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 1rem;
  transition: all .2s; text-transform: none; letter-spacing: 0;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(200,163,74,.12);
}
input::placeholder { color: #55556a; }
.hint { color: var(--text-muted); font-size: .85rem; margin-top: 8px; }

/* ── Cart table ───────────────────────────── */
.cart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--border); }
th {
  background: var(--bg-soft); font-size: .75rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
tr:last-child td { border-bottom: none; }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px; border-top: 1px solid var(--border); background: var(--bg-soft);
}
.cart-total .label {
  color: var(--text-muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.cart-total .amount {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
}

/* ── Order summary ────────────────────────── */
.summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin: 32px 0;
}
.summary ul { list-style: none; padding: 0; margin: 0 0 20px; }
.summary li {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.summary li:last-child { border-bottom: none; }
.summary li strong { color: var(--text); }

/* ── Alerts ───────────────────────────────── */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin: 20px 0; font-size: .95rem; border-left: 3px solid;
}
.alert-error { background: rgba(239,68,68,.1); border-color: var(--danger); color: #fecaca; }

/* ── Downloads list ───────────────────────── */
.download-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 16px; }
.download-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .2s;
}
.download-list li:hover { border-color: var(--accent); background: var(--surface-hi); }
.file-spec { font-size: .85rem; color: var(--text-muted); }

/* ── Product detail ───────────────────────── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; margin-top: 40px;
}
.product-image img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow); display: block;
}
.product-info h1 { font-family: var(--font-display); font-size: 2.4rem; margin: 0 0 16px; }
.product-price {
  font-size: 1.8rem; font-weight: 700;
  color: var(--accent); margin-bottom: 24px;
}
.product-description {
  color: var(--text-muted); font-size: 1rem;
  line-height: 1.7; margin-bottom: 28px;
}
.product-specs {
  list-style: none; padding: 0; margin: 0 0 32px;
  border-top: 1px solid var(--border);
}
.product-specs li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem; color: var(--text-muted);
}
.product-specs li strong { color: var(--text); margin-right: 8px; }
.back-link { margin-top: 24px; font-size: .9rem; }

/* ── How it works ─────────────────────────── */
.how-it-works { margin-top: 100px; padding-top: 60px; border-top: 1px solid var(--border); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; margin-top: 40px;
}
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: all .2s;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #0e0e12;
  font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; }
.step p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ── Empty state ──────────────────────────── */
.empty { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty h2 { font-family: var(--font-display); color: var(--text); margin-bottom: 8px; }

/* ── Footer ───────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px; text-align: center;
  color: var(--text-muted); font-size: .85rem; margin-top: 80px;
}
footer p { margin: 4px 0; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  nav { padding: 14px 20px; gap: 16px; }
  main { padding: 40px 20px; }
  .hero { padding: 60px 20px 40px; }
  h1 { font-size: 2rem; }
}


/* ── Filter bar ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.filter-group select {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  min-width: 180px;
  transition: all .2s;
}
.filter-group select:hover,
.filter-group select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ── Stars ──────────────────────────────────── */
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 6px 0;
  font-size: .85rem;
}

.stars .star {
  color: #3a3a48;
  font-size: 1rem;
  line-height: 1;
}
.stars .star.filled { color: var(--accent); }

.stars .rating-text {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: .8rem;
}

.stars-lg .star { font-size: 1.3rem; }
.stars-lg .rating-text { font-size: .9rem; }

/* ── Empty state for filters ────────────────── */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}


/* ── About page ─────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 80px 20px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0 12px;
}
.about-hero .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 72px;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 20px;
  color: var(--text);
}

.about-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

/* Grid of feature cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all .2s;
}
.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.about-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--text);
}

.about-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
  line-height: 1.55;
}

/* Numbered steps */
.about-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.about-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.about-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0e0e12;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-steps li:last-child { border-bottom: none; }
.about-steps strong { color: var(--text); }

.about-contact a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}
.about-contact a:hover { color: var(--accent-hi); }

/* Bottom CTA */
.about-cta {
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.about-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 24px;
}

/* ── Zoom container ─────────────────────────── */
.zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
}

.zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* When hovering, scale up */
.zoom-container:hover img {
  transition: transform 0.05s ease-out;
}

.zoom-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.3px;
}

/* ── Product image (click to enlarge) ──────── */
.zoom-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  aspect-ratio: 2 / 3;
  background: var(--bg-soft);
}

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

.zoom-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.3px;
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity .2s;
}
.lightbox-close:hover {
  opacity: 1;
}

/* ── Frame preview ──────────────────────────── */
.frame-preview {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.frame-preview h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* The wall (background) */
.wall {
  position: relative;
  background: linear-gradient(180deg, #2a2a35 0%, #1a1a24 100%);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  box-shadow: inset 0 4px 20px rgba(0,0,0,0.4);
}

/* The frame — changes with data-frame */
.frame {
  background: #111;
  padding: 14px;
  border-radius: 3px;
  box-shadow:
    0 20px 40px -10px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
  max-width: 260px;
  width: 100%;
  position: relative;
}

.frame::before {
  /* inner shadow / mat look */
  content: '';
  position: absolute;
  inset: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
  z-index: 1;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}

/* Frame color variants */
.frame[data-frame="black"] { background: #111; }
.frame[data-frame="white"] {
  background: #f5f5f5;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.15);
}
.frame[data-frame="oak"] { background: linear-gradient(135deg, #c49a6c, #a07a4e); }
.frame[data-frame="gold"] { background: linear-gradient(135deg, #d4b356, #c8a34a); }

/* Frame color picker */
.frame-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.frame-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.frame-swatch.active {
  border-color: var(--accent);
  transform: scale(1.15);
}

/* ── Preview on your wall ───────────────────── */
.frame-preview {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.frame-preview h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Wall background */
.wall {
  position: relative;
  background: linear-gradient(180deg, #2a2a35 0%, #1a1a24 100%);
  border-radius: var(--radius);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Frame — base look */
.frame {
  background: #111;
  padding: 6px;          /* ← was 14px, now thin */
  border-radius: 2px;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 240px;
  position: relative;
}

.frame::after {
  /* subtle inner shadow for depth */
  content: '';
  position: absolute;
  inset: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.12);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}

/* Frame color variants */
.frame[data-frame="black"] { background: #111; }

.frame[data-frame="white"] {
  background: #f5f5f5;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

.frame[data-frame="oak"] {
  background: linear-gradient(135deg, #c49a6c, #a07a4e);
}

.frame[data-frame="gold"] {
  background: linear-gradient(135deg, #d4b356, #c8a34a);
}

/* Frame color picker */
.frame-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.frame-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.frame-swatch:hover {
  transform: scale(1.1);
}

.frame-swatch.active {
  border-color: var(--accent);
  transform: scale(1.15);
}
