/* ===== ARTISAN CRAFT THEMES ===== */

/* Theme 1: Terracotta (default) */
:root,
[data-theme="terracotta"] {
  --color-primary: #C1714F;
  --color-primary-light: #D4896A;
  --color-primary-dark: #A85D3E;
  --color-secondary: #3D2B1F;
  --color-accent: #F3E4D7;
  --color-bg: #FAF5F0;
  --color-bg-alt: #F3ECE4;
  --color-text: #2C1E14;
  --color-text-muted: #8B7265;
  --color-text-on-primary: #FFFFFF;
  --color-border: #E0CFC2;
  --font-heading: 'Lora', Georgia, serif;
}

/* Theme 2: Forest */
[data-theme="forest"] {
  --color-primary: #5B7B5D;
  --color-primary-light: #729E75;
  --color-primary-dark: #496349;
  --color-secondary: #1E2E1F;
  --color-accent: #E0ECDF;
  --color-bg: #F5F7F2;
  --color-bg-alt: #EAF0E7;
  --color-text: #1E2E1F;
  --color-text-muted: #6B7F6B;
  --color-text-on-primary: #FFFFFF;
  --color-border: #C5D6C2;
  --font-heading: 'Lora', Georgia, serif;
}

/* Theme 3: Indigo */
[data-theme="indigo"] {
  --color-primary: #4A5899;
  --color-primary-light: #5E6DB3;
  --color-primary-dark: #3A4780;
  --color-secondary: #1E2040;
  --color-accent: #DDDFF0;
  --color-bg: #F5F5FA;
  --color-bg-alt: #ECEDF5;
  --color-text: #1E2040;
  --color-text-muted: #6B6F8E;
  --color-text-on-primary: #FFFFFF;
  --color-border: #C5C8DE;
  --font-heading: 'Lora', Georgia, serif;
}

/* ===== ARTISAN TEMPLATE-SPECIFIC STYLES ===== */

/* Warm textured background feel */
body {
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' fill-opacity='0.015'%3E%3Cpath d='M0 0h20v20H0zM20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Serif headings for artisan feel */
h1, h2, h3, h4,
.navbar-logo {
  font-family: var(--font-heading, 'Lora', Georgia, serif);
}

.navbar-logo {
  font-weight: 700;
  font-size: var(--font-size-xl);
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  min-height: 100vh;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---- Polaroid-style Product Cards ---- */
.product-card {
  position: relative;
  overflow: visible;
  background: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: var(--space-sm);
  padding-bottom: var(--space-lg);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.product-card:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.product-card:nth-child(even) {
  transform: rotate(0.8deg);
}

.product-card:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.product-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-card .card-img {
  border-radius: 2px;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
}

.product-card .card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.product-card .card-body p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  flex: 1;
}

.price-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
  padding: 6px 18px;
  border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%;
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ---- Category Grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

/* ---- Promotional Banner / Offers ---- */
.promo-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-on-primary);
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  padding: var(--space-3xl) var(--space-2xl);
  overflow: hidden;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 20px;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.promo-banner h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
}

.promo-banner p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}

.promo-banner .btn {
  background: #FFFFFF;
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
  border-radius: 999px;
}

.promo-banner .btn:hover {
  background: var(--color-accent);
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image {
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--color-primary);
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  z-index: -1;
  opacity: 0.4;
}

.about-image img {
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
}

/* ---- Values Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  text-align: center;
  padding: var(--space-lg);
}

.value-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.value-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* ---- Visit Section ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 768px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.visit-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.visit-info-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.visit-info-item h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.visit-info-item p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hours-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.hours-row span:first-child {
  font-weight: 500;
}

.hours-row span:last-child {
  color: var(--color-text-muted);
}

/* ---- Section Headers ---- */
.section-header h2 {
  font-family: var(--font-heading);
}

/* ---- Warm accents on form inputs ---- */
.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent);
}

/* ---- Footer warmth ---- */
.footer {
  background: var(--color-secondary);
}

.footer h3 {
  font-family: var(--font-heading);
}

/* ---- Organic button shapes ---- */
.btn-primary {
  border-radius: 999px;
}

.btn-outline {
  border-radius: 999px;
}

/* ---- Navbar subtle warmth ---- */
.navbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
