/* ── Page ── */
.pm-page { background: #f8f9fa; min-height: 100vh; }

/* ── Category Hero ── */
.pm-cat-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000 100%);
    padding: 4rem 0 3rem;
    position: relative; overflow: hidden;
    /* Break out of .content-wrapper's max-width: 1440px so the band runs
       edge-to-edge instead of leaving page-background gutters on wide screens. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.pm-cat-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(102,126,234,0.2) 0%, transparent 65%);
}
.pm-cat-hero-content { position: relative; z-index: 1; }
.pm-cat-icon {
    font-size: 4rem; line-height: 1;
    filter: drop-shadow(0 0 20px rgba(102,126,234,0.5));
}
.pm-cat-hero h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; color: #fff !important; }
.pm-cat-hero p  { color: rgba(255,255,255,0.65) !important; }
.pm-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; }
.pm-breadcrumb a:hover { color: #fff; }
.pm-breadcrumb span { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.pm-breadcrumb .sep { margin: 0 0.4rem; color: rgba(255,255,255,0.35); }

/* ── Live Prices Strip ── */
.pm-prices-strip {
    background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.85rem 0;
}
.pm-prices-strip .price-scroll {
    display: flex; gap: 1.5rem; align-items: center;
    overflow-x: auto; scrollbar-width: none;
}
.pm-prices-strip .price-scroll::-webkit-scrollbar { display: none; }
.pm-price-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #f8f9fa; border: 1px solid #e9ecef;
    border-radius: 50px; padding: 0.45rem 1rem;
    white-space: nowrap; font-size: 0.875rem;
    font-weight: 600; color: #2c3e50; flex-shrink: 0;
    transition: all 0.3s ease;
}
.pm-price-chip:hover { border-color: #000000; background: rgba(102,126,234,0.06); }
.pm-price-chip .live-dot {
    width: 7px; height: 7px; background: #28a745;
    border-radius: 50%; animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.pm-price-chip .price-val { color: #28a745; }

/* ── Section Title ── */
.pm-section-title {
    font-size: 1.5rem; font-weight: 800;
    color: #1a1a2e !important; display: inline-block;
}
.pm-section-title::after {
    content: ''; display: block;
    width: 44px; height: 4px;
    background: linear-gradient(135deg, var(--primary, #007aff) 0%, var(--secondary, #000000) 100%);
    border-radius: 2px; margin-top: 0.35rem;
}

/* ── Subcategory Cards ── */
.pm-subcat-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.pm-subcat-card:hover {
    transform: translateY(-8px);
    border-color: #000000;
    box-shadow: 0 16px 40px rgba(102,126,234,0.18);
    color: inherit; text-decoration: none;
}
.pm-subcat-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.pm-subcat-body h4 { font-size: 1.2rem; font-weight: 700; color: #1a1a2e !important; margin-bottom: 0.4rem; }
.pm-subcat-body .sub-meta { color: #6c757d; font-size: 0.875rem; display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem; }
.pm-subcat-body .sub-meta i { color: #000000; }
.pm-type-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.25rem; }
.pm-type-badge {
    background: rgba(102,126,234,0.08); color: #000000;
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 50px; padding: 0.2rem 0.75rem;
    font-size: 0.75rem; font-weight: 600;
}
.pm-subcat-footer {
    margin-top: auto; padding: 1rem 1.75rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.pm-subcat-footer .pm-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #000; color: #fff;
    border: 2px solid #000; border-radius: 10px;
    padding: 0.6rem 1.25rem;
    font-weight: 700; font-size: 0.875rem;
    text-decoration: none; transition: all 0.3s ease;
    width: 100%; justify-content: center;
}
.pm-subcat-card:hover .pm-btn { background: #000000; border-color: #000000; }

/* ── Featured Product Cards ── */
.pm-feat-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    height: 100%; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.pm-feat-card:hover {
    transform: translateY(-8px);
    border-color: #000000;
    box-shadow: 0 16px 40px rgba(102,126,234,0.18);
    color: inherit; text-decoration: none;
}
.pm-feat-img {
    position: relative; padding-top: 100%; overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}
.pm-feat-img img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.pm-feat-card:hover .pm-feat-img img { transform: scale(1.08); }
.pm-feat-img-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.pm-feat-img-placeholder i { font-size: 3rem; color: #adb5bd; }
.pm-feat-body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.pm-feat-body h6 {
    font-size: 0.95rem; font-weight: 700; color: #1a1a2e !important;
    margin-bottom: 0.35rem; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-feat-body .feat-meta { color: #6c757d; font-size: 0.78rem; margin-bottom: 0.5rem; }
.pm-feat-body .feat-price {
    font-size: 1.15rem; font-weight: 800; color: #28a745; margin-top: auto;
    display: flex; align-items: center; gap: 0.35rem;
}
.pm-feat-body .live-icon { font-size: 0.55rem; color: #28a745; animation: blink 1.5s infinite; }
