/* === CSS Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Global Body Styles === */
@font-face {
  font-family: 'Apple Baker';
  src: url('fonts/Apple Baker.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Apple Baker', cursive, sans-serif;
  background: #fdfcf7 url('https://www.transparenttextures.com/patterns/paper-fibers.png') repeat;
  color: #333;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

/* === LOGO === */
.logo-container {
  text-align: center;
  margin: 0;
  padding: 0;
}

.logo {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
}

/* === HEADER === */
header {
  text-align: center;
  margin-top: -15px; /* Pull header closer to logo */
  margin-bottom: 30px;
  padding: 0;
}

/* === Welcome Message with Apple Baker font === */
@font-face {
  font-family: 'Apple Baker';
  src: url('fonts/apple_baker.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.welcome-message {
  font-family: 'Apple Baker', cursive, sans-serif;
  font-size: 32px;
  color: #c94f6d;
  margin-bottom: 20px;
}

/* === NAVIGATION === */
nav {
  text-align: center;
  margin-bottom: 30px;
}

nav a {
  text-decoration: none;
  color: #e2709b;
  font-weight: bold;
  margin: 0 12px;
  font-size: 17px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #7a2f40;
}

/* === POLAROIDS SECTION === */
.polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  align-items: flex-start;
}

/* === POLAROID FRAME === */
.polaroid-frame {
  background: white;
  padding: 10px 10px 30px 10px;
  border-radius: 8px;
  width: 240px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #333;
  transition: transform 0.2s ease;
  font-family: 'Gloria Hallelujah', cursive;
}

.polaroid-frame:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.polaroid-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  border: none;
}

.caption {
  margin-top: 12px;
  font-size: 16px;
  color: #555;
}

/* === INDIVIDUAL POLAROID ROTATIONS === */
.polaroid1 {
  transform: rotate(-3deg);
}

.polaroid2 {
  transform: rotate(2deg);
}

.polaroid3 {
  transform: rotate(-2deg);
}

.polaroid4 {
  transform: rotate(3deg);
}
/* === CSS Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Global Body Styles === */
body {
  font-family: 'Apple Baker', cursive, sans-serif;
  background: #fdfcf7 url('https://www.transparenttextures.com/patterns/paper-fibers.png') repeat;
  color: #333;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* === Polaroid Camera Container === */
.camera-container {
  text-align: center;
  margin: 40px 0 30px 0;
  position: relative;
}

.camera {
  width: 160px;
  /* Uncomment below for a subtle bounce animation */
  /* animation: camera-bounce 1.5s ease-in-out infinite; */
}

/* Optional bounce animation */
/*
@keyframes camera-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
*/

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 25px;
  max-width: 960px;
  margin: 0 auto 60px auto;
}

/* === Individual Polaroid Product === */
.product-polaroid {
  background: white;
  padding: 15px 15px 45px 15px;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-family: 'Apple Baker', cursive, sans-serif;
  color: #5a2c3d;
  opacity: 0;
  transform: translateY(30px);
  animation-fill-mode: forwards;
  /* Make the polaroids look slightly off-angled for whimsy */
  /* Optional: remove if you want straight */
  /* transform-origin: bottom center; */
  /* transform: rotate(-1deg); */
}

/* Animation for print effect */
.product-polaroid.printing {
  animation-name: print-slide-in;
  animation-duration: 0.6s;
  animation-timing-function: ease-out;
}

@keyframes print-slide-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-polaroid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
  margin-bottom: 10px;
}

/* Title */
.product-polaroid h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #c94f6d;
}

/* Description */
.product-polaroid p {
  font-size: 14px;
  color: #6a4a5a;
  margin-bottom: 14px;
  line-height: 1.3;
  min-height: 38px; /* keep height consistent */
}

/* Star Rating */
.star-rating {
  color: #fbc4d6;
  font-size: 20px;
  letter-spacing: 2px;
  user-select: none;
  /* Add a subtle shadow for pop */
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .camera {
    width: 120px;
  }
}

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

  .camera {
    width: 100px;
  }
}

