/* Home showcase product / experience cards (grid) */
.home-product-grid {
  align-items: stretch;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 200, 0, 0.65);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  }
}

.home-product-card-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-product-card-image-btn {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.home-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-product-card:hover .home-product-card-media img {
    transform: scale(1.03);
  }
}

.home-product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem 0.8rem;
  text-align: left;
}

.home-product-card-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #212529;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-card-meta {
  margin: 0;
  color: #6c757d;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-product-card-footer {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-product-card-price {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #212529;
  letter-spacing: 0.02em;
}

.home-product-card-price::first-letter {
  color: #cca000;
}

.home-product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.home-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #212529;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-icon-btn:hover,
.home-icon-btn:focus-visible {
  background: #ffc800;
  border-color: #ffc800;
  color: #212529;
  outline: none;
  transform: translateY(-1px);
}

.home-icon-btn.home-add-to-cart {
  background: #ffc800;
  border-color: #ffc800;
}

.home-icon-btn.home-add-to-cart:hover,
.home-icon-btn.home-add-to-cart:focus-visible {
  background: #cca000;
  border-color: #cca000;
}

/* Product detail modal — single column */
.portfolio-modal-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.portfolio-modal-media {
  background: linear-gradient(160deg, #fff8db 0%, #f8f9fa 55%, #f1f3f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 2rem 1.25rem;
}

.portfolio-modal-media img {
  width: 100%;
  max-width: 28rem;
  max-height: 22rem;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.portfolio-modal-info {
  padding: 1.5rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-modal-desc {
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: "Poppins", "Segoe UI", sans-serif;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-modal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0;
  margin: 0 0 1.75rem !important;
}

.portfolio-modal-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: #f8f9fa;
  border: 1px solid rgba(33, 37, 41, 0.08);
  font-size: 0.9rem;
  line-height: 1.3;
}

.portfolio-modal-meta-label {
  font-weight: 700;
  color: #212529;
  font-family: "Montserrat", sans-serif;
}

.portfolio-modal-meta-value {
  color: #6c757d;
}

.portfolio-modal-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.portfolio-modal-actions .btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.5rem;
}

.portfolio-modal-actions .btn-primary {
  background-color: #ffc800;
  border-color: #ffc800;
  color: #212529;
}

.portfolio-modal-actions .btn-primary:hover,
.portfolio-modal-actions .btn-primary:focus {
  background-color: #cca000;
  border-color: #cca000;
  color: #212529;
}

@media (max-width: 575.98px) {
  .portfolio-modal-media {
    padding: 1.75rem 1.15rem 1rem;
  }

  .portfolio-modal-media img {
    max-height: 16rem;
  }

  .portfolio-modal-info {
    padding: 1.15rem 1.15rem 1.75rem;
  }

  .portfolio-modal .modal-content h2,
  .portfolio-modal .modal-content .h2 {
    font-size: 1.55rem;
  }
}
