/* ===== Pastel Lavender Kitty Theme ===== */
:root {
  --bg1: #fef6ff;      /* very light lilac */
  --bg2: #f4fbff;      /* very light baby blue */
  --card: #ffffff;
  --text: #2a2a2a;
  --muted: #6b6f76;
  --border: #e9e6f3;
  --accent: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-soft: #ede9fe;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(36, 24, 84, 0.12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
}

/* Soft paw-print background */
body.kitten-bg {
  background:
    radial-gradient(18px 18px at 20px 20px, rgba(139,92,246,0.06) 30%, transparent 31%) 0 0/48px 48px,
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

/* ===== Header injected from header.js ===== */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-width: 960px;
  margin: 0 auto;
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.navbar a:hover {
  color: var(--accent-600);
}

/* ===== Contact Page Layout ===== */
.contact-wrap {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  place-items: center;
}

.contact-card {
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}

.contact-card::after {
  content: "🐾";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  opacity: 0.85;
}

.contact-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing: -0.01em;
}

.contact-subtitle {
  margin: 6px 0 18px;
  color: var(--muted);
}

/* ===== Form Styles ===== */
.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
  color: #554f78;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: .85;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

/* ===== Buttons ===== */
.form-actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .04s ease, background-color .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(139,92,246,.25);
}

.btn-primary:hover {
  background: var(--accent-600);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Mobile */
@media (max-width: 520px) {
  .contact-card { padding: 22px; }
}

/* ===== Store page bits (reuses the same card + wrap) ===== */
.store-card .placeholder-items{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.store-card .placeholder-items img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(36, 24, 84, 0.08);
  transition: transform .15s ease;
}

.store-card .placeholder-items img:hover{
  transform: scale(1.02);
}

/* ===== Slideshow (home) ================================================= */
.slideshow-card .slide-stage{
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(139,92,246,0.08), transparent 60%),
    #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(36, 24, 84, 0.08);
}

/* Image scales nicely without layout shift */
.slideshow-card #slideImage{
  display: block;
  width: 100%;
  height: auto;              /* preserves image aspect ratio */
  max-height: 70vh;          /* keeps it from getting too tall */
  object-fit: contain;       /* no cropping of your images */
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

/* Prev/Next arrows overlayed on the image */
.slideshow-card .slide-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  transition: transform .05s ease, background-color .15s ease, opacity .15s ease;
  opacity: 0.9;
}
.slideshow-card .slide-btn:hover{ background: rgba(0,0,0,0.6); }
.slideshow-card .slide-btn:active{ transform: translateY(-50%) scale(0.98); }
.slideshow-card #prev{ left: 10px; }
.slideshow-card #next{ right: 10px; }

/* Bottom buttons align with the theme (uses .btn from the stylesheet) */
.slideshow-card .bottom-buttons{
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
}
.slideshow-card .gallery-btn,
.slideshow-card .random-btn{
  /* they already get .btn .btn-primary; this just ensures full-width on small screens */
  min-width: 180px;
}

/* Mobile niceties */
@media (max-width: 520px){
  .slideshow-card #slideImage{ max-height: 55vh; }
  .slideshow-card .slide-btn{ width: 40px; height: 40px; }
  .slideshow-card .bottom-buttons{ flex-direction: column; }
  .slideshow-card .gallery-btn,
  .slideshow-card .random-btn{ width: 100%; min-width: 0; }
}
