/* ============================================================   
   jpchacha.com | Add-on CSS for Products Listing
============================================================ */

/* ------------------------------------------------------------
Product Cards
------------------------------------------------------------ */

.product-card {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
}

.product-card a, .product-card * a {
	text-decoration: none;
}

.product-card:last-child {
	margin-bottom: 0;
}

.product-card.featured {
	border-color: var(--blue);
	border-width: 1.5px;
}

.product-inner {
	padding: 22px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.product-icon {
	width: 148px;
	height: 148px;
	border-radius: 12px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-icon img {
	width: 128px;
	height: 128px;
	float: none;
}

.product-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.product-icon--blue {
	background: var(--blue-dim);
}

.product-icon--blue svg {
	stroke: var(--blue);
}

.product-icon--green {
	background: var(--green-dim);
}

.product-icon--green svg {
	stroke: var(--green-light);
}

.product-icon--purple {
	background: var(--purple-dim);
}

.product-icon--purple svg {
	stroke: var(--purple-light);
}

.product-body {
	flex: 1;
	min-width: 0;
}

.product-name {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.product-type {
	font-size: 12px;
	color: var(--text-faint);
	margin-bottom: 12px;
}

.product-desc {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 16px;
}

.product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tag {
	background: var(--navy);
	border: 0.5px solid var(--navy-light);
	border-radius: 4px;
	padding: 3px 9px;
	font-size: 11px;
	color: var(--text-muted);
}

/* ------------------------------------------------------------
Badges
------------------------------------------------------------ */

.prod_badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 3px;
}

.prod_badge--blue {
	background: var(--blue-dim);
	color: var(--blue-pale);
}

.prod_badge--green {
	background: var(--green-dim);
	color: var(--green-light);
}

/* ------------------------------------------------------------
Product Footer
------------------------------------------------------------ */

.product-footer {
	border-top: 0.5px solid var(--navy-light);
	padding: 12px 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.product-footer a, .product-footer * a {
	text-decoration: none;
}

.btn-detail {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 7px 16px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}

.btn-detail:hover {
  opacity: 0.88;
}

.btn-dl {
	display: inline-block;
	background: transparent;
	color: var(--text-secondary);
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 6px;
	border: 0.5px solid var(--navy-light);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.btn-dl:hover {
	color: var(--text-primary);
	border-color: var(--text-muted);
}

.meta-row {
	display: flex;
	gap: 20px;
	margin-left: auto;
}

.meta-item {
	font-size: 12px;
	color: var(--text-faint);
	text-align: right;
}

.meta-item strong {
	display: block;
	font-size: 10px;
	font-weight: 500;
	color: var(--text-dimmer);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

/* ------------------------------------------------------------
Responsive
------------------------------------------------------------ */

@media (max-width: 640px) {
  .nav {
    padding: 0 20px;
    gap: 16px;
  }

  .nav-link {
    display: none;
  }

  .page-header {
    padding: 36px 20px 28px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .section {
    padding: 28px 20px;
  }

  .breadcrumb {
    padding: 12px 20px;
  }

  .product-inner {
    flex-direction: column;
    gap: 14px;
  }

  .meta-row {
    margin-left: 0;
    width: 100%;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
