/* ----------- Base styles and layout ----------- */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #ffe6ec 60%, #ffe6ec 100%);
  color: #4d2c2c;
  min-height: 100vh;
}

header {
  text-align: center;
  background: linear-gradient(90deg, #f9d5dc 40%, #ffe6ec 100%);
  padding: 2.5rem 1rem 2rem 1rem;
  box-shadow: 0 2px 12px rgba(184, 80, 66, 0.06);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  position: relative;
  isolation: isolate;
}

.logo {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  margin-bottom: 1rem;
  animation: pop 1.2s cubic-bezier(.55, 1.5, .55, 1);
  box-shadow: 0 6px 24px 0 #ffebef77;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fff;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  80% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

h1 {
  margin: 0;
  font-size: 2.1rem;
  color: #b85042;
  letter-spacing: 1.6px;
  text-shadow: 0 2px 10px #ffffffbb;
}

.tagline {
  font-size: 1.08rem;
  color: #885566;
  margin-top: 0.3rem;
}

section {
  padding: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.intro h2, 
.why-choose h2, 
.about h2, 
.our-cushions h2, 
.instagram h2, 
.extra-gallery-section h2, 
.gallery-page h2 {
  font-size: 2.1rem;
  color: #832f49;
  letter-spacing: 1px;
  margin-bottom: .7rem;
}

.why-choose ul {
  list-style-type: none;
  padding: 0;
}

.why-choose li {
  background: #fce6ef;
  margin: 0.5rem 0;
  padding: 0.7rem 1.2rem;
  border-left: 6px solid #ff99a5;
  border-radius: 12px;
  box-shadow: 0 2px 9px #e45d7b11;
  font-size: 1.08rem;
}

/* ----------- Best Sellers / Products Section --------- */

.our-cushions {
  padding: 2rem 1rem 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cushion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 1.5rem;
}
.cushion-item {
  background: linear-gradient(145deg, #ffc6d0 80%, #fff0f4 100%);
  border-radius: 17px;
  box-shadow: 0 2px 16px #ffc6d033;
  text-align: center;
  padding: 1.5rem 1rem;
}
.cushion-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #7d3f4c;
  letter-spacing: 1px;
  font-weight: bold;
}
.cushion-item img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 6px 24px rgba(255, 139, 157, 0.12);
  border: 2px solid #fff3;
  background: #fff;
  transition: transform 0.18s;
  margin: auto;
}
.cushion-item img:hover {
  transform: scale(1.05);
}

/* ----------- Extra Gallery Link Section --------- */

.extra-gallery-section {
  background: #fff9fb;
  text-align: center;
  padding: 2.3rem 1rem;
  border-radius: 22px;
  margin: 2.5rem auto 0 auto;
  max-width: 700px;
  box-shadow: 0 2px 18px #fbdde277;
}
.extra-gallery-section h2 {
  font-size: 2rem;
  letter-spacing: 1px;
  color: #b85042;
}
.extra-gallery-section .gallery-link-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.1rem;
  background: #f48ca5;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 26px;
  font-size: 1.06rem;
  box-shadow: 0 4px 19px #fbdde277;
  transition: background 0.18s, transform 0.18s;
}
.extra-gallery-section .gallery-link-btn:hover {
  background: #e45d7b;
  transform: scale(1.06);
}

/* ----------- Full Gallery Page ----------- */

.gallery-page {
  padding: 2.2rem 1rem 2.4rem 1rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-page h2 {
  font-size: 2.2rem;
  color: #7d3f4c;
}
.gallery-whatsapp-note {
  font-size: 1.09rem;
  margin-bottom: 1.2rem;
  color: #db476b;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  margin: 1.7rem auto 2.4rem auto;
  padding: 0 1rem;
}

.gallery-grid img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 6px 24px rgba(255, 139, 157, 0.12);
  border: 2px solid #fff3;
  background: #fff;
  transition: transform 0.18s;
  cursor: pointer;
  margin: auto;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
.gallery-whatsapp-bar {
  margin: 2.5rem 0 0 0;
}
.whatsapp-btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  background: #25D366;
  color: #fff;
  font-size: 1.11rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 16px #25d36544;
  transition: background 0.2s, transform 0.15s;
}
.whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.04);
}

/* Responsive Layout for gallery and products */

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .gallery-grid,
  .cushion-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .gallery-grid img,
  .cushion-item img {
    width: 110px;
    height: 110px;
  }
}
@media (max-width: 400px) {
  .gallery-grid,
  .cushion-list {
    grid-template-columns: 1fr;
  }
}

/* ----------- Instagram Feed Section button ----------- */

.instagram .btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.8rem 2rem;
  background-color: #f48ca5;
  color: white;
  text-decoration: none;
  border-radius: 35px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px #ffdde7ee;
  transition: background-color 0.3s, transform 0.2s;
}
.instagram .btn:hover {
  background-color: #e45d7b;
  transform: scale(1.06);
}

/* ----------- Footer ----------- */

.footer-pro {
  background: #f2f6fa;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -2px 14px #d2dce244;
  font-family: 'Segoe UI', sans-serif;
  margin-top: 3rem;
  color: #2c2d2e;
  padding-top: 2.2rem;
}
.footer-footercenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 1.1rem;
  border: 2.5px solid #fff;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 12px #ffc6d088;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.footer-description {
  color: #39444e;
  font-size: 1.09rem;
  font-weight: 500;
  max-width: 320px;
  opacity: 0.80;
  margin: 0 auto 1.6rem auto;
  text-align: center;
}
.footer-social {
  align-items: center;
  margin: 0 auto 0.7rem auto;
  text-align: center;
}
.footer-title {
  display: block;
  font-size: 1.044rem;
  font-weight: 600;
  color: #2b2733;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}
.footer-social-icons {
  display: flex;
  gap: 0.22rem;
  justify-content: center;
  margin: 0 auto;
}
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f0fa;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #535a7b;
  transition: background 0.18s, color 0.18s;
  font-size: 1.09rem;
  text-decoration: none;
}
.footer-icon:hover {
  background: #c5dffd;
  color: #b85042;
}
.footer-meta {
  margin-top: 1.5rem;
  text-align: center;
  color: #7f8e9d;
  font-size: 0.97rem;
  line-height: 1.7;
}
.footer-contact {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.96rem;
  color: #adb5bc;
}

/* Responsive adjustments for footer and grid */

@media (max-width: 600px) {
  .logo {
    width: 100px;
    height: 100px;
  }
  .footer-logo {
    width: 60px;
    height: 60px;
  }
  .footer-description {
    font-size: 0.98rem;
  }
  .cushion-item img,
  .gallery-grid img {
    width: 110px;
    height: 110px;
  }
  .cushion-title {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.36rem;
  }
}

/* ----------- Back Button ----------- */

.back-button-container {
  max-width: 1100px;
  margin: 1.5rem auto 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.back-button {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background: #f48ca5;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 22px;
  box-shadow: 0 4px 12px #fbdde277;
  transition: background 0.25s, transform 0.18s;
  user-select: none;
}

.back-button:hover,
.back-button:focus {
  background: #e45d7b;
  transform: scale(1.06);
}
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: zoom-out;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: auto;
}



/* Responsive fix for gallery and products grid for small screens */

@media (max-width: 600px) {
  .cushion-list,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }

  .cushion-item img,
  .gallery-grid img {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: auto;
  }
}
