/* shop.html — categories & products */

.shop-main {
  padding-bottom: 2rem;
}

/* Poster section styles */
.landing-posters {
  padding: 3rem 1.5rem 4rem;
  background: var(--white);
}

.landing-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.landing-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  color: var(--purple-900);
  margin: 0 0 2.75rem;
  letter-spacing: -0.02em;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.poster-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  cursor: pointer;
}

.poster-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.15);
}

.poster-item:hover .poster-overlay {
  opacity: 1;
}

.poster-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(91, 33, 182, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.poster-view-text {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.poster-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.poster-popup-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: posterZoom 0.3s ease;
}

.poster-popup-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.poster-popup-close:hover,
.poster-popup-close:focus {
  color: var(--lavender-300);
}

@keyframes posterZoom {
  from {
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.shop-page-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  text-align: center;
}

.shop-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--purple-900);
  margin: 0 0 0.5rem;
}

.shop-page-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.categories {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1rem;
  background: var(--white);
  border: 2px solid var(--lavender-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.04);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  border-color: var(--lavender-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.cat-icon {
  font-size: 1.35rem;
  width: 2.25rem;
  text-align: center;
  color: var(--purple-600);
}

.cat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--purple-900);
}

.cat-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.cat-arrow {
  color: var(--purple-500);
  font-weight: 600;
}

.best-sellers {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple-900);
  margin: 0px 0px 30px 0px;
}

.view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-600);
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--purple-900);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  border: 1px solid var(--lavender-200);
  box-shadow: 0 6px 20px rgba(91, 33, 182, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-media {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--lavender-100);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--lavender-200), var(--lavender-100));
}

.placeholder-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--purple-700);
  font-weight: 600;
}

.wish-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: color 0.2s, transform 0.2s;
}

.wish-btn:hover {
  transform: scale(1.08);
}

.wish-btn[aria-pressed="true"] {
  color: #e11d48;
}

.wish-btn[aria-pressed="true"] svg path {
  fill: currentColor;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.25rem;
  color: var(--purple-900);
}

.product-price {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--purple-600);
  font-size: 0.95rem;
}

.btn-cart {
  width: 100%;
  margin-top: auto;
  background: var(--lavender-200);
  color: var(--purple-900);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.75rem;
}

.btn-cart::before {
  content: "🛒 ";
  font-size: 0.85rem;
}

.btn-cart:hover,
.btn-cart:focus-visible {
  background: var(--lavender-300);
}

@media (max-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Shop Information Section */
.shop-info {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--lavender-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.04);
}

.info-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-900);
  margin: 0 0 1rem;
}

.info-text {
  margin: 0 0 0.75rem;
  color: #5c4d7a;
  line-height: 1.6;
  text-align: justify;
}

.info-text:last-child {
  margin-bottom: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--purple-700);
}

.contact-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.thank-you-message {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--lavender-50), var(--lavender-100));
  border-radius: var(--radius-lg);
  border: 1px solid var(--lavender-200);
}

.thank-you-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--purple-900);
  margin: 0;
}

@media (max-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .categories-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-info {
    padding: 1.5rem 1rem 3rem;
  }

  .info-card {
    padding: 1.25rem;
  }

  .thank-you-message {
    padding: 1.5rem;
  }

  .thank-you-text {
    font-size: 1.2rem;
  }
}
