/* =====================================================
   Cat Art — mid-to-dark blue theme
   ===================================================== */

:root {
  --bg-deep:      #0d1b2a;   /* deepest navy */
  --bg:           #1b263b;   /* dark blue */
  --bg-alt:       #243450;   /* slightly lighter */
  --surface:      #2d4168;   /* card surfaces */
  --accent:       #f0a500;   /* warm gold accent */
  --accent-hover: #ffc145;
  --text:         #e6edf5;
  --text-muted:   #a8b8cc;
  --border:       #3a5078;
  --radius:       10px;
  --max-width:    1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 680px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.logo:hover { text-decoration: none; color: var(--accent-hover); }

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.cart-button {
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.cart-button:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.tagline { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.section-intro { color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- About grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.about-text a { font-weight: 600; }

/* ---------- Placeholder images ---------- */
.placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  min-height: 200px;
  width: 100%;
}
.about-image .placeholder { min-height: 260px; }
.product-img { min-height: 180px; margin-bottom: 0.75rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ---------- Products / Tabs ---------- */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}
.tab:hover { color: var(--text); border-color: var(--accent); }
.tab.active {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  font-weight: 600;
}

.product-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-grid.active { display: grid; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.product-card .price { color: var(--accent); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex-grow: 1; }

.commission-cta {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { background: var(--accent-hover); }
.btn-primary { background: var(--accent); width: 100%; padding: 0.8rem; font-size: 1rem; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 90vw);
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}
.cart-item-remove:hover { color: #e66; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-item-inc,
.cart-item-dec {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.cart-item-inc:hover,
.cart-item-dec:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-qty-value { min-width: 1.2rem; text-align: center; }

.cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.cart-total { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.cart-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.5rem; text-align: center; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }

/* ---------- Contact form ---------- */
.type-selector { margin-bottom: 2rem; text-align: center; }
.type-selector p { color: var(--text-muted); margin-bottom: 0.75rem; }
.type-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.type-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.type-btn.active { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form h2 { margin-bottom: 0.5rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.hidden { display: none; }

.form-note { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-wrap { flex-wrap: wrap; }
  .main-nav { gap: 1rem; }
}