/* Basic Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* Light theme (default, premium & posh) */
:root {
  --bg-gradient: radial-gradient(1200px 500px at 10% 0%, #fbfaf7 10%, #f3f0ea 70%, #ffffff 100%);
  --card: #ffffff;
  --text: #1a1f2b;
  --muted: #667085;
  --accent: #0f172a; /* minimal deep slate for buttons */
  --accent-2: #c49a3f; /* warm gold */
  --border: #e7e3da;
  --shadow-color: rgba(27, 59, 111, 0.12);
  --panel: #f7f4ec; /* light panel for info items */
  --panel-text: #1a1f2b;
}

/* Dark theme overrides (luxurious vibe) */
[data-theme="dark"] {
  --bg-gradient: radial-gradient(1200px 500px at 10% 0%, #0a1020 20%, #0f152a 70%, #0a1020 100%);
  --card: #131a2b;
  --text: #eaeef7;
  --muted: #9aa3b2;
  --accent: #0f172a; /* keep single solid accent across themes */
  --accent-2: #e0b75e; /* rich gold */
  --border: #28344e;
  --shadow-color: rgba(0, 0, 0, 0.45);
  --panel: #0f1628; /* dark panel for info items */
  --panel-text: #eaeef7;
}

body {
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0));
}

.site-header h1 { margin: 0 0 6px; font-size: 32px; font-family: 'Playfair Display', serif; letter-spacing: 0.3px; }
.site-header p { margin: 0; color: var(--muted); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: grid; gap: 6px; }
.theme-controls { display: flex; align-items: center; }

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0 36px;
}

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px var(--shadow-color);
}

.card-media {
  aspect-ratio: 16/10;
  background: #0d1426;
  border-bottom: 1px solid var(--border);
}

.card-body { padding: 14px 14px 18px; }
.card-title { margin: 0 0 4px; font-weight: 600; font-size: 18px; }
.card-desc { margin: 0 0 10px; color: var(--muted); }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price { font-weight: 700; color: var(--accent-2); }

.btn {
  appearance: none;
  border: none;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 22px;
  color: var(--muted);
}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { margin: 0 0 8px; color: var(--text); font-family: 'Playfair Display', serif; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; z-index: 1100; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.lightbox-content { position: relative; width: min(1200px, 96%); margin: 40px auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 40px 70px var(--shadow-color); }
.lightbox-close { position: absolute; top: 8px; right: 10px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 20px; line-height: 1; padding: 6px 10px; }
.lightbox-toolbar { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.lightbox-toolbar .control { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 12px; font-weight: 600; box-shadow: none; }
.lightbox-stage { position: relative; height: 70vh; overflow: hidden; background: #0f1628; }
[data-theme="dark"] .lightbox-stage { background: #0a1020; }
.lightbox-stage img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); transform-origin: center center; max-width: 90%; max-height: 90%; cursor: zoom-in; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 18px 40px var(--shadow-color); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  width: min(960px, 92%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-header { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px; display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }

@media (max-width: 860px) {
  .modal-body { grid-template-columns: 1fr; }
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 560px) {
  .modal-gallery { grid-template-columns: 1fr; }
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* Subtle animation effects */
.card { will-change: transform, opacity; animation: fadeUp 0.5s ease both; }
.site-header { animation: fadeDown 0.4s ease both; }
.site-footer { animation: fadeUp 0.5s ease both; }
.modal.open .modal-content { animation: zoomInSoft 0.28s ease both; }
.lightbox.open .lightbox-content { animation: zoomInSoft 0.28s ease both; }
.modal-gallery img { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.modal-gallery img:hover { transform: translateY(-2px); box-shadow: 0 12px 24px var(--shadow-color); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInSoft {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info-list li { background: var(--panel); color: var(--panel-text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.info-list strong { color: var(--accent-2); }

.info-list span { color: var(--panel-text); opacity: 0.95; }