/* =============================================
   JRT Fencing — Category Page Premium Styles
   ============================================= */

/* ---- Hero Banner ---- */
.cat-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cat-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 10s ease;
}

.cat-hero:hover .cat-hero-bg {
    transform: scale(1.1);
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,31,61,0.93) 0%, rgba(0,31,61,0.72) 60%, rgba(0,31,61,0.45) 100%);
}

.cat-hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 70px;
    width: 100%;
}

/* Breadcrumb */
.cat-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cat-breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-breadcrumb a:hover { color: #d4af37; }

.cat-breadcrumb .sep { color: rgba(255,255,255,0.3); }

.cat-breadcrumb .current { color: #d4af37; }

/* Icon badge */
.cat-hero-icon {
    width: 62px;
    height: 62px;
    background: rgba(212,175,55,0.12);
    border: 1.5px solid rgba(212,175,55,0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

.cat-hero-icon i {
    font-size: 1.7rem;
    color: #d4af37;
}

/* Heading */
.cat-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    max-width: 620px;
}

.cat-hero h1 span {
    color: #d4af37;
}

.cat-hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* CTA buttons */
.cat-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cat-btn-gold {
    background: #d4af37;
    color: #001f3d;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}

.cat-btn-gold:hover {
    background: #c9a82e;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,175,55,0.45);
}

.cat-btn-ghost {
    background: transparent;
    color: #fff;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.45);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cat-btn-ghost:hover {
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
}

/* ---- Features Strip ---- */
.cat-features-strip {
    background: #001f3d;
    padding: 18px 0;
    border-bottom: 3px solid #d4af37;
}

.cat-features-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.cat-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}

.cat-feature i {
    color: #d4af37;
    font-size: 1rem;
}

/* ---- Products Section ---- */
.cat-products-section {
    background: #f4f6f9;
    padding: 72px 0;
}

.cat-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.cat-section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.cat-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

.cat-section-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Product grid — override products.css with premium layout */
.cat-products-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cat-products-section .product-card {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.cat-products-section .product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}

.cat-products-section .product-image {
    height: 240px;
    background: #f0f4f8;
    overflow: hidden;
    position: relative;
}

.cat-products-section .product-image img {
    transition: transform 0.45s ease;
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 20px;
}

.cat-products-section .product-card:hover .product-image img {
    transform: scale(1.06);
}

.cat-products-section .product-badge {
    top: 14px;
    left: 14px;
    font-size: 0.7rem;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.07em;
}

.cat-products-section .product-info {
    padding: 22px 22px 0;
}

.cat-products-section .product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 10px;
    line-height: 1.35;
}

.cat-products-section .product-description {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 14px;
}

.cat-products-section .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.cat-products-section .product-specs span {
    background: #eef2f7;
    color: #444;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cat-products-section .product-specs span i {
    color: #d4af37;
    font-size: 0.72rem;
}

.cat-products-section .size-selector label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 6px;
}

.cat-products-section .variant-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #001f3d;
    width: 100%;
    cursor: pointer;
    margin-bottom: 14px;
    background: #fff;
}

.cat-products-section .variant-select:focus {
    outline: none;
    border-color: #d4af37;
}

.cat-products-section .product-price {
    font-size: 0.83rem;
    color: #888;
    padding: 0 22px 12px;
}

.cat-products-section .price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #001f3d;
    display: block;
    line-height: 1.1;
}

.cat-products-section .product-actions {
    padding: 0 22px 22px;
    gap: 8px;
}

.cat-products-section .add-to-cart {
    background: #001f3d;
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    flex: 1;
}

.cat-products-section .add-to-cart:hover {
    background: #d4af37;
    color: #001f3d;
}

/* ---- Related Categories ---- */
.cat-related-section {
    padding: 72px 0;
    background: #fff;
}

.cat-related-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #001f3d;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.cat-related-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

.cat-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-related-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    text-decoration: none;
    display: block;
}

.cat-related-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.cat-related-card:hover .cat-related-card-bg {
    transform: scale(1.07);
}

.cat-related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,31,61,0.9) 0%, rgba(0,31,61,0.25) 100%);
    transition: background 0.3s;
}

.cat-related-card:hover .cat-related-card-overlay {
    background: linear-gradient(to top, rgba(0,31,61,0.95) 0%, rgba(0,31,61,0.4) 100%);
}

.cat-related-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
}

.cat-related-card-content h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cat-related-card-content span {
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.cat-related-card:hover .cat-related-card-content span {
    gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cat-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-hero h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .cat-hero { min-height: 340px; }
    .cat-hero h1 { font-size: 2rem; }
    .cat-hero-content { padding: 80px 0 50px; }
    .cat-features-inner { gap: 20px; }
    .cat-features-strip { padding: 16px 0; }
    .cat-products-section .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cat-related-grid { grid-template-columns: 1fr 1fr; }
    .cat-products-section .product-image { height: 200px; }
}

@media (max-width: 480px) {
    .cat-hero h1 { font-size: 1.7rem; }
    .cat-hero-icon { display: none; }
    .cat-related-grid { grid-template-columns: 1fr; }
    .cat-features-inner { flex-direction: column; gap: 12px; align-items: flex-start; padding: 0 20px; }
}

/* ── View Details Link (product page link on category cards) ── */
.view-details-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #001f3d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 4px;
    margin-top: 4px;
    transition: color 0.2s, gap 0.2s;
    border-bottom: 1.5px solid transparent;
}

.view-details-link i {
    font-size: 0.72rem;
    transition: transform 0.2s;
}

.view-details-link:hover {
    color: #d4af37;
    gap: 10px;
    border-bottom-color: #d4af37;
}

.view-details-link:hover i {
    transform: translateX(2px);
}

.cat-products-section .product-actions {
    flex-wrap: wrap;
    gap: 8px 12px;
}
