/* ===== Header layout ===== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  background-color: #ffe0e9;
  border-bottom: 3px dashed #d69aa0;
}

/* SVG styling */
header svg {
  width: 400px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}
header svg:hover {
  transform: scale(1.05);
}

/* Path styling for stroke animation */
.stroke-path { 
    stroke-width: 25;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 1s linear forwards;
    fill: none; 
    stroke: black; 
    stroke-miterlimit: 10; 
    stroke-linecap: round; 
    stroke-linejoin: round;  
}

/* Keyframes for stroke animation */
@keyframes draw {
  0% { stroke-dashoffset: 1000; fill-opacity: 0; }
  50% { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}

/* ===== Body & fonts ===== */
body {
  background-image: url('images/gingham-pink.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  background-attachment: fixed;
  font-family: 'Gloria Hallelujah', cursive;
  margin: 0;
  padding: 0;
}

/* Headings */
h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 3em;
  margin-bottom: 10px;
  color: #ff6f91;
}

.tagline {
  font-size: 1.2em;
}

/* Nav tabs */
.nav-tabs {
  background-color: #fff0f5;
  border-top: 2px dashed #ffc2d1;
  border-bottom: 2px dashed #ffc2d1;
  padding: 10px 0;
  text-align: center;
}
.nav-tabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-tabs li {
  display: inline-block;
  margin: 10px 15px;
}
.nav-tabs a {
  font-size: 1.1em;
  text-decoration: none;
  color: #e07a5f;
  padding: 6px 12px;
  border: 2px dotted #e07a5f;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}
.nav-tabs a:hover {
  background-color: #ffe5d9;
}

/* Main content */
main {
  padding: 30px;
  text-align: center;
}

.welcome p {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto;
  background-color: #fffbea;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 20px;
}

/* Footer */
footer {
  background-color: #ffe0e9;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 1em;
  border-top: 3px dashed #d69aa0;
}

/* ===== Product Grid (Pinterest-style) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Randomized min-heights for Pinterest feel */
  min-height: calc(150px + (50 * var(--rand, 1))px);
}

.product:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.product img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product img:hover {
  transform: scale(1.05);
}

.product a {
  color: #d17b22;
  text-decoration: none;
  font-weight: bold;
}

.product a:hover {
  text-decoration: underline;
}

.product p {
  font-size: 0.95rem;
  color: #555;
  margin: 0.3rem 0;
}

/* ===== BLOG PAGE STYLES ===== */
.blog-post {
  max-width: 700px;
  margin: 40px auto;
  background-color: #fffbea;
  padding: 30px;
  border: 2px dashed #ffc2d1;
  border-radius: 20px;
  font-family: 'Gloria Hallelujah', cursive;
}

.blog-post h1 {
  color: #ff6f91;
  margin-bottom: 0.5em;
}

.blog-post .date {
  color: #a67676;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.blog-post .content p {
  text-align: left;
  line-height: 1.7;
  color: #333;
}

.letters {
  margin-top: 40px;
  text-align: left;
}

.comment-form {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

.comment-form textarea {
  border: 2px dashed #d69aa0;
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 1em;
  resize: vertical;
  background-color: #fffdf8;
}

.comment-form input[type="email"] {
  margin-top: 10px;
  border: 1px solid #ffc2d1;
  border-radius: 10px;
  padding: 8px;
  font-family: inherit;
  background-color: #fffdf8;
}

.comment-form button {
  margin-top: 15px;
  background-color: #ff6f91;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Gloria Hallelujah', cursive;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-form button:hover {
  background-color: #ff8fab;
}

.letters .note {
  margin-top: 10px;
  color: #a67676;
  font-size: 0.8em;
}