/* ============================================================
   Younger category / collection archive
   ============================================================ */

/* ── Hero ── */
.cat-hero {
    position: relative;
    padding: 64px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--amh-rule);
}
.cat-hero-title {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
}
.cat-hero-tagline {
    margin-top: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--amh-orange);
    letter-spacing: 0.02em;
}
.cat-hero-intro {
    max-width: 720px;
    margin: 20px auto 0;
    color: #555;
}

/* Image variant — full-bleed photo + overlay, light text */
.cat-hero--image {
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 80px 0;
    border-bottom: none;
    overflow: hidden;
}
.cat-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.cat-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(17,17,17,0.58), rgba(17,17,17,0.72));
}
.cat-hero--image .cat-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.cat-hero--image .cat-hero-title { color: #fff; }
.cat-hero--image .cat-hero-intro { color: rgba(255,255,255,0.9); }
/* tagline stays orange — reads well over the dark overlay */

/* ── Product grid ── */
.cat-grid-wrap {
    padding: 52px 0 80px;
    background: #faf8f4;                 /* faint warm ground so white cards read */
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 20px;
    background: #fff;
    border: 1px solid var(--amh-rule);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Orange accent bar, revealed on hover */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--amh-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.09);
}
.product-card:hover::before { transform: scaleX(1); }

.product-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #fff;                    /* matches the product photos */
    overflow: hidden;
}
.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-media img {
    transform: scale(1.04);
}

.product-card-eyebrow {
    display: inline-block;
    margin: 15px 0 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a938a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-card-eyebrow:hover { color: var(--amh-orange); }

.product-card-title {
    font-size: 1.15rem;
    margin: 0 0 14px;
}
.product-card-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}
.product-card:hover .product-card-title a { color: var(--amh-orange); }

/* Whole card is a link to the product page (stretched overlay);
   the eyebrow and PDF button ride above it so they stay clickable. */
.product-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-card-eyebrow,
.product-card-pdf {
    position: relative;
    z-index: 2;
}

/* Spec button carries the persistent brand orange, fills on hover */
.product-card-pdf {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--amh-orange);
    text-decoration: none;
    border: 1.5px solid var(--amh-orange);
    transition: background 0.2s ease, color 0.2s ease;
}
.product-card-pdf:hover {
    background: var(--amh-orange);
    color: #fff;
}

/* ── Pagination ── */
.cat-grid-wrap .pagination {
    margin-top: 48px;
    text-align: center;
}
.cat-grid-wrap .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    text-decoration: none;
    border: 1px solid var(--amh-rule);
}
.cat-grid-wrap .page-numbers.current {
    background: var(--amh-ink);
    color: #fff;
    border-color: var(--amh-ink);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .product-grid { gap: 26px; }
}
@media (max-width: 768px) {
    .cat-hero { padding: 44px 0 32px; }
    .cat-hero--image { min-height: 280px; padding: 56px 0; }
    .cat-hero-title { font-size: 2.1rem; }
    .cat-grid-wrap { padding: 40px 0 60px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 24px; }
}
