/* Purchase cards + category filter, shared by shop.html and index.html.
   Markup is generated by build-products.js. */

.filter-bar {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
    padding: 0 60px 40px; max-width: 1400px; margin: 0 auto;
}
.filter-btn {
    padding: 10px 24px; border-radius: 100px; border: 2px solid rgba(0,0,0,0.08);
    background: transparent; font-family: 'DM Sans', sans-serif; font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease; color: rgba(0,0,0,0.5);
}
.filter-btn:hover, .filter-btn.active {
    border-color: #0ABAB5; color: #0ABAB5; background: rgba(10,186,181,0.04);
}

.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    padding: 0 60px 100px; max-width: 1400px; margin: 0 auto;
}
.product-card {
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 24px;
    overflow: hidden; color: #000; display: flex; flex-direction: column;
    transition: box-shadow 0.3s ease;
}
.product-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.product-card-image { position: relative; padding: 16px 16px 0; }
.product-card-image img {
    display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px;
}
.product-card-tag {
    position: absolute; top: 28px; left: 28px;
    background: rgba(10,186,181,0.9); color: #fff; padding: 6px 14px;
    border-radius: 100px; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}

/* purity + COA link, sitting on the bottom edge of the image */
.coa-badge {
    position: absolute; left: 28px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 100px;
    padding: 7px 14px; font-size: 13px; font-weight: 700; color: #000;
    text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.coa-badge svg { width: 14px; height: 14px; stroke: #0ABAB5; flex-shrink: 0; }
.coa-badge u { font-weight: 500; text-underline-offset: 3px; }
.coa-badge.pending { color: rgba(0,0,0,0.5); font-weight: 500; }

.product-card-info { padding: 28px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.8px; margin-bottom: 4px; }
.product-card-info h3 a { color: inherit; text-decoration: none; }
.product-card-subtitle { font-size: 14px; color: rgba(0,0,0,0.45); margin-bottom: 16px; flex: 1; }
.product-card-price { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 18px; }
.product-card-price span { font-size: 13px; font-weight: 500; color: rgba(0,0,0,0.4); margin-left: 4px; }

.product-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-details, .btn-add {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 48px; border-radius: 100px; font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-details { background: #fff; color: #000; border: 1.5px solid rgba(0,0,0,0.15); }
.btn-details:hover { border-color: #000; }
.btn-add { background: #000; color: #fff; border: 1.5px solid #000; }
.btn-add:hover { background: #0ABAB5; border-color: #0ABAB5; }

@media (max-width: 768px) {
    .filter-bar { padding: 0 20px 30px; }
    .product-grid { grid-template-columns: 1fr 1fr; padding: 0 20px 60px; gap: 16px; }
}

@media (max-width: 480px) {
    .product-grid { gap: 12px; padding: 0 16px 60px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
    .product-card { border-radius: 18px; }
    .product-card-image { padding: 10px 10px 0; }
    .product-card-image img { border-radius: 12px; }
    .product-card-tag { top: 18px; left: 18px; font-size: 9px; padding: 4px 9px; }
    .coa-badge { left: 16px; bottom: 8px; padding: 5px 9px; font-size: 11px; gap: 4px; }
    .coa-badge svg { width: 11px; height: 11px; }
    .coa-badge .coa-link-arrow { display: none; }
    .product-card-info { padding: 18px 12px 12px; }
    .product-card-info h3 { font-size: 16px; letter-spacing: -0.4px; }
    .product-card-subtitle { font-size: 12px; margin-bottom: 10px; }
    .product-card-price { font-size: 18px; margin-bottom: 12px; }
    .product-card-price span { font-size: 11px; }
    .product-card-actions { grid-template-columns: 1fr; gap: 6px; }
    .btn-details, .btn-add { height: 38px; font-size: 13px; }
}
