/* Category detail page */
.cp-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: #111;
}

.cp-hero-media {
    position: absolute;
    inset: 0;
}

.cp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.cp-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 52%, rgba(10, 10, 10, 0.28) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.15) 55%, rgba(10, 10, 10, 0.35) 100%);
}

.cp-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px 0 56px;
    width: 100%;
}

.cp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 22px;
}

.cp-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.cp-breadcrumb a:hover {
    color: #ffb4b4;
}

.cp-hero-copy {
    max-width: 720px;
}

.cp-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.cp-hero-copy > p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    max-width: 560px;
}

.cp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.cp-hero-meta i {
    color: #e31e24;
    margin-right: 6px;
}

.cp-hero-actions,
.cp-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-btn-primary,
.cp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: 0.2s ease;
}

.cp-btn-primary {
    background: #e31e24;
    color: #fff;
}

.cp-btn-primary:hover {
    background: #c4181e;
    color: #fff;
}

.cp-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.cp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cp-section {
    padding: 64px 0;
}

.cp-products-section {
    background: #f7f7f8;
}

.cp-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.cp-section-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-section-head p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.cp-link-all {
    color: #e31e24;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
}

.cp-link-all:hover {
    text-decoration: underline;
}

.cp-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cp-sub-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
    min-height: 132px;
}

.cp-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: #ffd0d2;
}

.cp-sub-image {
    background: #f0f1f3;
}

.cp-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-sub-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cp-sub-body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.cp-sub-body p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.cp-sub-body span {
    margin-top: 4px;
    color: #e31e24;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cp-product-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
}

.cp-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.cp-product-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
}

.cp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.cp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 8px;
    border-radius: 999px;
}

.cp-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cp-product-cat {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.cp-product-body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.cp-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cp-product-body h3 a:hover {
    color: #e31e24;
}

.cp-product-body p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.cp-product-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cp-product-foot strong {
    font-size: 16px;
    color: #111;
}

.cp-product-foot a {
    color: #e31e24;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
}

.cp-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 16px;
    padding: 48px 20px;
}

.cp-empty i {
    font-size: 32px;
    color: #e31e24;
    margin-bottom: 12px;
}

.cp-empty h3 {
    margin: 0 0 8px;
    font-weight: 800;
}

.cp-empty p {
    color: #666;
    margin: 0 0 18px;
}

.cp-pagination {
    margin-top: 28px;
}

.cp-cta {
    background: #111;
    color: #fff;
    padding: 48px 0;
}

.cp-cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.cp-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.6;
}

.cp-cta .cp-btn-ghost {
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1100px) {
    .cp-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cp-sub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cp-hero {
        min-height: 480px;
    }

    .cp-hero-inner {
        padding: 36px 0 40px;
    }

    .cp-sub-grid,
    .cp-product-grid {
        grid-template-columns: 1fr;
    }

    .cp-sub-card {
        grid-template-columns: 100px 1fr;
    }

    .cp-section {
        padding: 44px 0;
    }
}
