/* Kinlay — hand-painted feel, kawaii meets cottagecore */

:root {
  --cream: #faf6ef;
  --cream-warm: #f4ecdc;
  --pink-soft: #f7d5d3;
  --pink-deep: #e89090;
  --cherry: #c84040;
  --mustard: #d9a441;
  --sage: #a8b89a;
  --navy: #2a3a55;
  --ink: #2d2418;
  --ink-soft: #5a4a3a;
  --shadow: rgba(45, 36, 24, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.font-script {
  font-family: 'Caveat', 'Kalam', cursive;
}

.font-sans {
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Texture overlay — subtle paper feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(45, 36, 24, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

main, header, footer {
  position: relative;
  z-index: 2;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(45, 36, 24, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(250, 246, 239, 0.92);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.nav-logo img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(45, 36, 24, 0.06);
}

@media (max-width: 640px) {
  .nav-logo img { width: 48px; height: 48px; }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cherry);
}

/* Hero */
.hero {
  padding: 6rem 2.5rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--cherry);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--cherry);
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 1.15em;
}

.hero p {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--cherry);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(200, 64, 64, 0.25);
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 36, 24, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Hero decorative elements */
.hero-decoration {
  position: absolute;
  font-size: 2rem;
  opacity: 0.4;
  pointer-events: none;
}

.hero-decoration.cherry-1 { top: 15%; left: 8%; transform: rotate(-15deg); }
.hero-decoration.cherry-2 { top: 25%; right: 10%; transform: rotate(20deg); }
.hero-decoration.heart-1 { bottom: 20%; left: 15%; transform: rotate(15deg); }
.hero-decoration.star-1 { top: 60%; right: 18%; transform: rotate(-10deg); }

/* Section headings */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--mustard);
  margin-bottom: 0.25rem;
}

.section-heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Products */
.products {
  padding: 5rem 2.5rem;
  background: var(--cream);
}

.products-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(45, 36, 24, 0.2);
  color: var(--ink-soft);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--cherry);
  color: var(--cherry);
}

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.product-card {
  background: var(--cream-warm);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(45, 36, 24, 0.05);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pink-soft), var(--cream-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  font-family: 'Caveat', cursive;
  font-size: 4rem;
  color: rgba(200, 64, 64, 0.3);
  text-align: center;
  padding: 1rem;
}

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mustard);
  margin-bottom: 0.25rem;
}

.product-name {
  font-family: 'Fraunces', serif;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.product-price {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cherry);
  font-weight: 500;
}

/* Shop info — shipping / returns / contact */
.shop-info {
  padding: 5rem 2.5rem;
  background: var(--cream);
  border-top: 1px solid rgba(45, 36, 24, 0.06);
  border-bottom: 1px solid rgba(45, 36, 24, 0.06);
}

.shop-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .shop-info-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.shop-info-card {
  background: var(--cream-warm);
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 36, 24, 0.05);
}

.shop-info-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--cherry);
  margin-bottom: 0.25rem;
}

.shop-info-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.shop-info-card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.shop-info-card a {
  color: var(--cherry);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Products count line */
.products-count {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Modal shipping info */
.modal-shipping {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: var(--cream-warm);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.25rem;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Footer contact line */
.footer-contact {
  margin-bottom: 1.25rem !important;
  opacity: 0.85 !important;
}

.footer-contact a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 246, 239, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.footer-contact a:hover {
  border-color: var(--mustard);
}

.footer-contact span {
  margin: 0 0.6rem;
  opacity: 0.5;
}

/* Story section */
.story {
  padding: 6rem 2.5rem;
  background: var(--cream-warm);
  text-align: center;
  position: relative;
}

.story-content {
  max-width: 42rem;
  margin: 0 auto;
}

.story h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.story h2 em {
  font-family: 'Caveat', cursive;
  color: var(--cherry);
  font-style: normal;
  font-size: 1.2em;
}

.story p {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Newsletter */
.newsletter {
  padding: 5rem 2.5rem;
  background: var(--cherry);
  color: var(--cream);
  text-align: center;
}

.newsletter h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.newsletter p {
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 26rem;
  margin: 0 auto;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  background: var(--cream);
  color: var(--ink);
}

.newsletter-form input:focus {
  outline: 2px solid var(--mustard);
  outline-offset: 2px;
}

.newsletter-form button {
  background: var(--ink);
  color: var(--cream);
  padding: 0.875rem 2rem;
  border-radius: 999px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--cream);
  color: var(--ink);
}

/* Footer */
.footer {
  padding: 3rem 2.5rem 2rem;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.footer-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.footer-tagline {
  opacity: 0.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  color: var(--cream);
  opacity: 0.8;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--mustard);
}

.footer-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--cream);
  border-radius: 16px;
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

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

.modal-image {
  background: linear-gradient(135deg, var(--pink-soft), var(--cream-warm));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cream);
  border: 1px solid rgba(45, 36, 24, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--ink);
  z-index: 10;
}

.modal-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mustard);
}

.modal-name {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.modal-price {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--cherry);
}

.modal-description {
  color: var(--ink-soft);
  line-height: 1.7;
}

.modal-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 36, 24, 0.1);
}

.modal-details li {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-details li::before {
  content: '✿';
  color: var(--pink-deep);
}

.modal-buy {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 0.7rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-decoration { display: none; }
  .products, .story, .newsletter, .shop-info { padding: 4rem 1.25rem; }
  .product-grid { gap: 1.25rem; }
  .footer-contact span { display: block; height: 0.4rem; }
}
