/* ==========================================================
   PRODUCT CATEGORY SUB-PAGES
   single-zone-dfmd / multi-zone-dfmd / handheld-detectors /
   pedestrian-access / vehicular-access / other-security
   ========================================================== */


/* ──────────────────────────────────────────────────────────
   CATEGORY INTRO SECTION
   Centered UPPERCASE gradient title + centered description
────────────────────────────────────────────────────────── */
/* Category intro uses ph-header structure — additional padding override for product pages */
.pc-products-loop ~ .ph-header,
.ph-header + .pc-products-loop .ph-header {
    padding: 37px 5% 44px;
}

/* Keep legacy .pc-cat-intro selector working if used elsewhere */
.pc-cat-intro {
    text-align: center;
    padding: 37px 5% 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.ph-header__title,
.pc-cat-intro__title {
    font-size: 48px;
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
    display: block;
}


.pc-cat-intro__desc p:last-child { margin-bottom: 0; }


/* ──────────────────────────────────────────────────────────
   PRODUCTS LOOP
   Alternating image/text rows — generous white space
────────────────────────────────────────────────────────── */
.pc-products-loop {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 5% 90px;
}

.pc-product-row {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 70px 0;
}

.pc-product-row + .pc-product-row { padding-top: 0; }

/* Even rows (0,2,4): image left, text right */
.pc-row--img-left  { flex-direction: row; }

/* Odd rows (1,3,5): text left, image right */
.pc-row--img-right { flex-direction: row-reverse; }

/* ── Image column ── */
.pc-product-image {
    flex: 0 0 42%;
    max-width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-product-image img {
    max-width: 100%;
    max-height: 380px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.14));
    transition: transform 0.5s ease;
}

.pc-product-row:hover .pc-product-image img {
    transform: scale(1.04);
}

.pc-image-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #ede8f8 0%, #c9a8f5 100%);
    border-radius: 8px;
    opacity: 0.35;
}

/* ── Text column ── */
.pc-product-info {
    flex: 1;
    min-width: 0;
}

.pc-text--left  { text-align: left; }
.pc-text--right { text-align: right; }

/* ── Product name ── */
.pc-product-name {
    font-size: 32px;
    font-weight: 300;
    color: #491084;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0;
}

/* ── Product description ── */
.pc-product-desc p {
    font-size: 16px;
    line-height: 1.5;
    color: #491084;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.pc-product-desc p:last-child { margin-bottom: 0; }

.pc-text--left  .pc-product-desc p { text-align: left; }
.pc-text--right .pc-product-desc p { text-align: right; }

/* ── Download PDF button ── */
.pc-product-btn-wrap {
    margin-top: 24px;
}

.pc-download-btn {
    display: inline-block;
    background: #491084;
    color: #ffffff !important;
    font-family: Inter, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.pc-download-btn:hover {
    background: #6018b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73,16,132,0.35);
    color: #fff !important;
}


/* =========================================
   RESPONSIVE BREAKPOINTS — follows responsive.css pattern
   ========================================= */

/* --- Mobile Small (360px to 480px) --- */
@media (min-width: 360px) and (max-width: 480px) {
    .pc-cat-intro { padding: 28px 1rem 18px; }
    .pc-cat-intro__title,
    .ph-header__title { font-size: 18px; letter-spacing: 0.8px; }
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; gap: 18px; padding: 28px 0; }
    .pc-product-image { flex: none; max-width: 90%; width: 90%; margin: 0 auto; }
    .pc-product-image img { max-height: 200px; }
    .pc-image-placeholder { min-height: 180px; }
    .pc-product-name { font-size: 20px; }
    .pc-product-desc p { font-size: 14px; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
    .pc-products-loop { padding: 10px 20px 40px; }
    .pc-download-btn { display: block; text-align: center; }
}

/* =====================================================
   SPECIFIC MOBILE VIEWPORTS
   320×568 · 360×780 · 360×800 · 360×880
   384×832 · 393×851 · 412×915 · 414×896
   ===================================================== */

/* 320×568 */
@media (min-width: 320px) and (max-width: 359px) {
    .pc-cat-intro { padding: 22px 14px 14px; }
    .pc-cat-intro__title,
    .ph-header__title { font-size: 16px; letter-spacing: 0.5px; }
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; gap: 14px; padding: 22px 0; }
    .pc-product-image { flex: none; max-width: 90%; width: 90%; margin: 0 auto; }
    .pc-product-image img { max-height: 170px; }
    .pc-product-name { font-size: 17px; }
    .pc-product-desc p { font-size: 13px; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
    .pc-products-loop { padding: 8px 14px 32px; }
    .pc-download-btn { display: block; text-align: center; font-size: 12px; padding: 10px 20px; }
}

/* 360×780 · 360×800 · 360×880 */
@media (min-width: 360px) and (max-width: 360px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 17px; }
    .pc-product-name { font-size: 19px; }
    .pc-product-desc p { font-size: 13px; }
}

/* 384×832 */
@media (min-width: 381px) and (max-width: 390px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 18px; }
    .pc-product-name { font-size: 20px; }
}

/* 393×851 */
@media (min-width: 391px) and (max-width: 400px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 18px; }
    .pc-product-name { font-size: 20px; }
}

/* 412×915 · 414×896 */
@media (min-width: 410px) and (max-width: 420px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 19px; }
    .pc-product-name { font-size: 21px; }
}

/* --- Tablets (481px to 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
    .pc-cat-intro { padding: 40px 5% 24px; }
    .pc-cat-intro__title,
    .ph-header__title { font-size: 26px; }
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; gap: 28px; padding: 40px 0; }
    .pc-product-image { flex: none; max-width: 75%; width: 75%; margin: 0 auto; }
    .pc-product-image img { max-height: 260px; }
    .pc-product-name { font-size: 24px; }
    .pc-product-desc p { font-size: 15px; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
    .pc-products-loop { padding: 20px 5% 52px; }
    .pc-download-btn { display: block; }
}

/* --- 540px to 720px --- */
@media (min-width: 540px) and (max-width: 720px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 28px; }
    .pc-product-image { max-width: 70%; width: 70%; }
    .pc-product-name { font-size: 26px; }
}

/* --- 344px to 882px --- */
@media (min-width: 344px) and (max-width: 882px) {
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; }
    .pc-product-image { flex: none; max-width: 90%; width: 90%; margin: 0 auto; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
}

/* --- Max Width 768px (Mobile / Tablet Boundary) --- */
@media (max-width: 768px) {
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; gap: 24px; }
    .pc-product-image { flex: none; max-width: 80%; width: 80%; margin: 0 auto; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
}

/* --- Laptop Range (850px to 1023px) --- */
@media (min-width: 850px) and (max-width: 1023px) {
    .pc-cat-intro { padding: 44px 5% 28px; }
    .pc-cat-intro__title,
    .ph-header__title { font-size: 36px; }
    .pc-product-row { gap: 60px; padding: 58px 0; }
    .pc-product-image { flex: 0 0 42%; max-width: 42%; }
    .pc-product-name { font-size: 28px; }
    .pc-product-desc p { font-size: 15px; }
    .pc-products-loop { padding: 20px 5% 70px; }
}

/* --- Laptops — Webkit Tablets & High-DPI (768px–1024px) --- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    .pc-cat-intro { padding: 44px 5% 28px; }
    .pc-product-row,
    .pc-row--img-left,
    .pc-row--img-right { flex-direction: column !important; gap: 32px; padding: 50px 0; }
    .pc-product-image { flex: none; max-width: 60%; width: 60%; margin: 0 auto; }
    .pc-product-info { width: 100%; }
    .pc-text--right,
    .pc-text--right .pc-product-desc p { text-align: left; }
    .pc-products-loop { padding: 20px 5% 60px; }
}

/* --- Standard Desktop (1024px to 1368px) --- */
@media (min-width: 1024px) and (max-width: 1368px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 42px; }
    .pc-product-row { gap: 70px; padding: 64px 0; }
    .pc-product-name { font-size: 30px; }
    .pc-product-desc p { font-size: 15.5px; }
}

/* --- Desktop Wide (1025px and up) --- */
@media (min-width: 1025px) {
    .pc-product-row { gap: 80px; padding: 70px 0; }
    .pc-cat-intro { padding: 50px 5% 36px; }
    .pc-product-name { font-size: 32px; }
}

/* --- Ultra Wide (1600px and up) --- */
@media (min-width: 1600px) {
    .pc-cat-intro__title,
    .ph-header__title { font-size: 54px; }
    .pc-product-name { font-size: 36px; }
    .pc-product-desc p { font-size: 17px; }
    .pc-product-image img { max-height: 440px; }
}
