@charset "UTF-8";
/* ============================================================================
   SINGLE COLLECTION PAGE STYLES
   Modern UX Design 2025
   ========================================================================== */
/* Portfolio Single Container */
.portfolio-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* Reset theme's default H1/H2/H3 margins within portfolio */
.portfolio-single h1,
.portfolio-single h2,
.portfolio-single h3,
.portfolio-single h4,
.portfolio-single h5,
.portfolio-single h6 {
  margin-top: 0;
}

/* ============================================================================
   FEATURED IMAGE SECTION
   ========================================================================== */
.portfolio-featured-image {
  margin-bottom: 30px;
}
.portfolio-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================================================
   CONTENT SECTION
   ========================================================================== */
.portfolio-content {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ============================================================================
   PRODUCTS SECTION
   ========================================================================== */
.portfolio-products {
  margin: 40px 0 60px 0;
}

.portfolio-section-title {
  display: none; /* Ukryty tytuł sekcji */
}

/* View All Buttons */
.portfolio-view-all-top,
.portfolio-view-all-bottom {
  text-align: center;
  margin: 30px 0;
}

.portfolio-view-all-btn {
  display: inline-block;
  padding: 10px 30px 7px 30px;
  background: #293291;
  color: white;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(41, 50, 145, 0.2);
}
.portfolio-view-all-btn:hover {
  background: #1e2570;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(41, 50, 145, 0.35);
  color: white;
  text-decoration: none !important;
}

/* Products Grid */
.portfolio-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================================
   PORTFOLIO CARD - Clean, Modern Design
   ========================================================================== */
.portfolio-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.12);
}
.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.05);
}

/* Image Container */
.portfolio-card__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.portfolio-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none !important;
}
.portfolio-card__image-link:hover {
  text-decoration: none !important;
}

.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sale Badge */
.portfolio-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #E63946;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Content Area */
.portfolio-card__content {
  padding: 3px 12px;
}

.portfolio-card__title-link {
  text-decoration: none !important;
  color: inherit;
}
.portfolio-card__title-link:hover {
  text-decoration: none !important;
}
.portfolio-card__title-link:hover .portfolio-card__title {
  color: #293291;
}

.portfolio-card__title {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Price Row */
.portfolio-card__price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.portfolio-card__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.portfolio-card__price {
  font-size: inherit;
  font-weight: bold;
  color: inherit;
  font-family: inherit;
}

.portfolio-card__price--sale {
  font-size: inherit;
  color: #ee5a6f;
  font-weight: bold;
}

.portfolio-card__price--regular {
  font-size: 0.875em;
  color: #999;
  text-decoration: line-through;
  font-weight: 400;
}

/* ============================================================================
   GALLERY SECTION
   ========================================================================== */
.portfolio-gallery {
  margin: 50px 0;
}

.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.portfolio-gallery-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}
.portfolio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.portfolio-gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================================================
   MISSING PRODUCTS NOTICE
   ========================================================================== */
.portfolio-products-missing {
  margin: 30px 0;
}
.portfolio-products-missing .notice {
  padding: 15px;
  border-left: 4px solid #ffc107;
  background: #fff3cd;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .portfolio-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .portfolio-header .entry-title {
    font-size: 1.8rem;
    margin: 0 0 15px 0;
  }
  .portfolio-card__content {
    padding: 3px 12px;
  }
  .portfolio-card__price {
    font-size: inherit;
    font-weight: bold;
  }
  .portfolio-card__price--sale {
    font-size: inherit;
    font-weight: bold;
  }
  .portfolio-card__quick-add {
    width: 44px;
    height: 44px;
  }
  .portfolio-card__overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
  }
  .portfolio-card__view-btn {
    opacity: 0;
  }
}
@media (max-width: 480px) {
  .portfolio-products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .portfolio-section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .portfolio-card {
    border-radius: 12px;
  }
  .portfolio-card__content {
    padding: 3px 12px;
  }
}
