/* =====================================================
   FULL WIDTH
   ===================================================== */

.apf-wrap,
.apf-filters,
.apf-results,
.apf-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* =====================================================
   FONT
   ===================================================== */

.apf-wrap,
.apf-select,
.apf-label,
.apf-card,
.apf-card-title,
.apf-card-price,
.apf-card-excerpt,
.apf-read-more,
.apf-card .button {
  font-family: "Bricolage Grotesque", sans-serif;
}

/* =====================================================
   FILTERS (DESKTOP: INLINE)
   ===================================================== */

.apf-filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: nowrap;
  margin-bottom: 28px;
  background-color: #121212;
  padding: 16px;
  border-radius: 15px;
}

.apf-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}

.apf-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.02em;
  color: #7a7a7a;
}

.apf-select {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #1a1a1a;
  background: #333333;
  color: #fff;
}

.apf-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =====================================================
   GRID (DESKTOP: 3 COL)
   ===================================================== */

.apf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* =====================================================
   CARD (EQUAL HEIGHTS)
   ===================================================== */

.apf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  border-radius: 18px;
  padding: 16px;
  border: 2px solid #0f0f0f;
}

.apf-card:hover {
  border-color: #FF3A00;
  background: #070707;
}

.apf-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.apf-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px !important; 
  overflow: hidden;
}

.apf-card-content {
  flex: 1 1 auto;
  margin: 14px 0px 16px 0px;
}

.apf-card-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25em;
  margin: 0 0 6px;
  color: #ffffff;
}

.apf-card-price {
  font-size: 16px;
  font-weight: 500;
  color: #7a7a7a;
}

.apf-card-price del {
  opacity: 0.5;
}

.apf-card-price ins {
  color: #7a7a7a;
  text-decoration: none;
  font-weight: 700;
}

.apf-card-excerpt {
  font-size: 14px;
  line-height: 1.5em;
  opacity: 0.85;
}

/* =====================================================
   ACTIONS
   ===================================================== */

.apf-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

/* Add to cart */
.apf-card .button {
  background: #FF3A00;
  color: #070707;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid #FF3A00;
  text-decoration: none;
}

.apf-card .button:hover {
  background: #070707;
  color: #FF3A00;
}

/* Read more */
.apf-read-more {
  font-size: 14px;
  font-weight: 500;
  padding: 0px 0px 4px 0px; 
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
  color: #ffffff !important;
}

.apf-read-more:hover {
  color: #f7f7f7;
}

/* =====================================================
   LOADING STATE
   ===================================================== */

.apf-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {

  .apf-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .apf-filter {
    width: 100%;
  }

  .apf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .apf-grid {
    grid-template-columns: 1fr;
  }
}
