/* MRC theme — page styles for Products (delta over base.css) */

/* ============================================================
   Products 内页专属样式（版式参考 doukecatlitter.com 产品列表页）
   ============================================================ */
        /* ---- 页面 Hero（极简：标题 + 一句话） ---- */
        .prod-hero {

            position: relative;
            overflow: hidden;
            padding-top: var(--nav-height); /* 避开吸顶导航条 */
            background: url('../images/hero-cat.webp') center 20% / cover no-repeat; /* 叠加小猫背景 */
            color: var(--white);
            text-align: center;
            padding-bottom: 56px;
}

/* 左侧深色渐变遮罩，保证文字可读，右侧猫图清晰 */
        .prod-hero::before {

            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(100deg, rgba(0, 60, 22, 0.94) 0%, rgba(0, 78, 29, 0.78) 38%, rgba(0, 122, 43, 0.30) 72%, rgba(0, 88, 31, 0.40) 100%);
}

.prod-hero .container {

            position: relative;
            z-index: 1;
}

.prod-hero .container {

            padding-top: 72px;
}

.prod-hero h1 {

            font-family: 'Fredoka One', cursive;
            font-size: 60px;
            font-weight: 400;
            letter-spacing: 1px;
            margin-bottom: 16px;
}

.prod-hero .hero-sub {

            font-size: 19px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.85);
            max-width: 720px;
            margin: 0 auto;
            line-height: 1.7;
}

/* ---- 面包屑（Hero 横幅下方，正文顶部） ---- */
        .prod-breadcrumb {

            background: var(--white);
            border-bottom: 1px solid #ececec;
}

.prod-breadcrumb .container {

            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 14px;
            padding-bottom: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-500);
}

.prod-breadcrumb a {

            color: var(--green-dark);
            transition: color 0.25s;
}

.prod-breadcrumb a:hover {

            color: var(--green);
}

.prod-breadcrumb .sep {

            color: var(--gray-300);
}

.prod-breadcrumb .current {

            color: var(--gray-900);
}

/* ---- 两栏布局：左侧分类侧边栏 + 右侧产品区 ---- */
        .prod-layout {

            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 44px;
            padding-top: 48px;
            padding-bottom: 88px;
            align-items: start;
}

/* 左侧分类侧边栏（吸顶） */
        .prod-sidebar {

            position: sticky;
            top: calc(var(--nav-height) + 24px);
            background: var(--white);
            border-radius: 18px;
            border: 1px solid #eef0ee;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            overflow-y: auto; /* 矮屏下侧栏内部滚动，Contact 块不再被顶出屏幕 */
            max-height: calc(100vh - var(--nav-height) - 48px);
            scrollbar-width: thin;
}

.prod-sidebar .sb-title {

            padding: 18px 22px;
            background: var(--green);
            color: var(--white);
            font-family: 'Fredoka One', cursive;
            font-size: 20px;
            letter-spacing: 0.5px;
}

.prod-sidebar .sb-list a {

            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 22px;
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-700);
            border-bottom: 1px solid #f2f2f2;
            transition: background 0.25s, color 0.25s, padding-left 0.25s;
}

.prod-sidebar .sb-list a:hover {

            background: var(--green-light);
            color: var(--green-dark);
            padding-left: 28px;
}

.prod-sidebar .sb-list a.active {

            background: var(--green);
            color: var(--white);
}

.prod-sidebar .sb-list a .arrow {

            font-size: 13px;
            opacity: 0.6;
}

.prod-sidebar .sb-contact {

            padding: 20px 22px;
            background: var(--green-light);
}

.prod-sidebar .sb-contact h6 {

            font-size: 15px;
            font-weight: 700;
            color: var(--green-dark);
            margin-bottom: 10px;
}

.prod-sidebar .sb-contact p {

            font-size: 13px;
            line-height: 1.9;
            color: var(--gray-700);
}

.prod-sidebar .sb-contact a {

            color: var(--green-dark);
            font-weight: 600;
}

/* ---- 右侧产品主区 ---- */
        .prod-main {

            min-width: 0;
}

.prod-panel {

            display: none;
}

.prod-panel.active {

            display: block; /* 切换即时显示，无动画顿挫 */
}

.prod-panel {

            margin-bottom: 56px;
}

.prod-panel:last-child {

            margin-bottom: 0;
}

.chip {

            border: none;
            cursor: pointer;
            padding: 6px 16px;
            background: var(--green-light);
            color: var(--green-dark);
            border-radius: 60px;
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.25s, color 0.25s;
}

.chip:hover {

            background: rgba(0, 167, 58, 0.15);
}

.chip.active {

            background: var(--green);
            color: var(--white);
}

.prod-empty {

            display: none;
            text-align: center;
            padding: 48px 20px;
            background: var(--gray-100);
            border-radius: 16px;
            color: var(--gray-500);
            font-size: 15px;
}

.prod-empty a {

            color: var(--green-dark);
            font-weight: 700;
}

.prod-block-head {

            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 26px;
            padding-bottom: 16px;
            border-bottom: 2px solid var(--green-light);
}

.prod-block-head h2 {

            font-family: 'Fredoka One', cursive;
            font-size: 32px;
            font-weight: 400;
            color: var(--gray-900);
}

.prod-block-head h2 span {

            color: var(--green);
}

.prod-block-head .chips {

            display: flex;
            flex-wrap: wrap;
            gap: 8px;
}

.prod-block-head .chips span {

            padding: 5px 14px;
            background: var(--green-light);
            color: var(--green-dark);
            border-radius: 60px;
            font-size: 13px;
            font-weight: 600;
}

/* ---- 产品卡（参考 douke：图→品名→描述→Read More，一行 3 列） ---- */
        .prod-grid {

            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 26px;
}

.prod-card {

            background: var(--gray-100); /* 卡片浅灰底，衬托白底产品图 */
            border-radius: 18px;
            padding: 18px 18px 22px;
            border: 1px solid #eef0ee;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
            transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
            display: flex;
            flex-direction: column;
}

.prod-card:hover {

            transform: translateY(-6px);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

/* 产品图已统一为 650×650 正方形白底图：
           图片区按 1:1 自适应铺满（object-fit:contain 自动适配任意比例，不拉伸变形），无阴影 */
        .prod-card .thumb {

            aspect-ratio: 1 / 1;
            border-radius: 16px;
            overflow: visible;
            background: transparent;
            margin-bottom: 18px;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
}

.prod-card .thumb img {

            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 14px;
            transition: transform 0.4s var(--ease);
}

.prod-card:hover .thumb img {

            transform: scale(1.04);
}

.prod-card .brand {

            font-size: 12px;
            font-weight: 700;
            color: var(--green);
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 4px;
}

.prod-card h4 {

            font-size: 17px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 8px;
}

.prod-card .desc {

            font-size: 13.5px;
            line-height: 1.65;
            color: var(--gray-500);
            flex-grow: 1;
            margin-bottom: 16px;
}

.prod-card .read-more {

            display: inline-block;
            align-self: flex-start;
            padding: 9px 22px;
            background: var(--white);
            color: var(--green) !important;
            border: 1px solid rgba(16, 34, 20, 0.06);
            border-radius: 60px;
            font-size: 13.5px;
            font-weight: 700;
            transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.prod-card .read-more:hover {

            background: var(--green);
            color: var(--white) !important;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(0, 167, 58, 0.25);
}

/* ---- OEM 定制 CTA 横幅 ---- */
        .prod-cta {

            padding: 96px 0;
            background: linear-gradient(155deg, #004e1d 0%, #007a2b 55%, #00581f 100%);
            color: var(--white);
            text-align: center;
}

.prod-cta h2 {

            font-family: 'Fredoka One', cursive;
            font-size: 46px;
            font-weight: 400;
            margin-bottom: 16px;
}

.prod-cta p {

            font-size: 17px;
            color: rgba(255, 255, 255, 0.85);
            max-width: 720px;
            margin: 0 auto 34px;
            line-height: 1.8;
}

.prod-cta .cta-btns {

            display: flex;
            justify-content: center;
            gap: 18px;
            flex-wrap: wrap;
}

.prod-cta .btn-main {

            display: inline-block;
            padding: 15px 40px;
            background: var(--white);
            color: var(--green-dark) !important;
            border-radius: 60px;
            font-size: 16px;
            font-weight: 700;
            transition: transform 0.3s, box-shadow 0.3s;
}

.prod-cta .btn-main:hover {

            transform: translateY(-2px);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.prod-cta .btn-ghost {

            display: inline-block;
            padding: 15px 40px;
            border: 2px solid rgba(255, 255, 255, 0.6);
            color: var(--white);
            border-radius: 60px;
            font-size: 16px;
            font-weight: 700;
            transition: background 0.3s, border-color 0.3s;
}

.prod-cta .btn-ghost:hover {

            background: rgba(255, 255, 255, 0.12);
            border-color: var(--white);
}

/* 导航当前页高亮 */
        .nav-links a.active {

            color: var(--green);
}

.navbar.scrolled .nav-links a.active {

            color: var(--green);
}

/* ---- 响应式 ---- */
        @media (max-width: 1200px) {

            .prod-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .prod-hero h1 {
                font-size: 52px;
            }
}

@media (max-width: 992px) {

            /* 侧边栏改为顶部横向分类条 */
            .prod-layout {
                grid-template-columns: 1fr;
                gap: 32px;
            }
            .prod-sidebar {
                position: static;
            }
            .prod-sidebar .sb-title {
                display: none;
            }
            .prod-sidebar .sb-list {
                display: flex;
                flex-wrap: wrap;
                padding: 14px;
                gap: 8px;
            }
            .prod-sidebar .sb-list a {
                border-bottom: none;
                border-radius: 60px;
                padding: 9px 18px;
                background: var(--green-light);
                color: var(--green-dark);
            }
            .prod-sidebar .sb-list a:hover {
                padding-left: 18px;
            }
            .prod-sidebar .sb-list a.active {
                background: var(--green);
                color: var(--white);
            }
            .prod-sidebar .sb-list a .arrow {
                display: none;
            }
            .prod-sidebar .sb-contact {
                display: none;
            }
            .prod-hero h1 {
                font-size: 44px;
            }
}

@media (max-width: 768px) {

            .prod-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .prod-hero h1 {
                font-size: 36px;
            }
            .prod-hero .hero-sub {
                font-size: 16px;
            }
            .prod-block-head {
                flex-direction: column;
                align-items: flex-start;
            }
            .prod-cta h2 {
                font-size: 34px;
            }
            .prod-cta {
                padding: 64px 0;
            }
}

@media (max-width: 480px) {

            .prod-grid {
                grid-template-columns: 1fr 1fr;
                gap: 14px;
            }
            .prod-card {
                padding: 12px 12px 16px;
            }
            .prod-card .thumb {
                padding: 6px;
                border-radius: 12px;
            }
            .prod-card .thumb img {
                border-radius: 10px;
            }
            .prod-card h4 {
                font-size: 15px;
            }
            .prod-card .desc {
                font-size: 12.5px;
            }
            .prod-card .read-more {
                padding: 8px 16px;
                font-size: 12.5px;
            }
}

/* ============================================================
           品牌手风琴侧边栏 + 产品区标题计数（Products 页）
           ============================================================ */
        .sb-list {

            display: block;
            padding: 0;
}

.sb-item {

            border-bottom: 1px solid #f2f2f2;
}

.sb-item:last-child {

            border-bottom: none;
}

.sb-cat {

            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 15px 22px;
            background: none;
            border: 0;
            cursor: pointer;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-700);
            text-align: left;
            transition: background 0.25s, color 0.25s;
}

.sb-cat:hover {

            background: #f7faf8;
            color: var(--green-dark);
}

.sb-item.open > .sb-cat {

            background: #f4f6f4;
            color: var(--green-dark);
}

.sb-item.active > .sb-cat {

            color: var(--green);
            /* 仅靠绿色文字（3.22:1）区分当前品牌太弱，补淡底 + 左侧色条 */
            background: var(--green-light);
            font-weight: 700;
            box-shadow: inset 3px 0 0 var(--green);
}

.sb-ico {

            position: relative;
            width: 13px;
            height: 13px;
            flex-shrink: 0;
            color: #9aa09c;
}

.sb-ico::before,
        .sb-ico::after {

            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            background: currentColor;
            border-radius: 1px;
            transform: translate(-50%, -50%);
}

.sb-ico::before {

            width: 12px;
            height: 1.5px;
}

.sb-ico::after {

            width: 1.5px;
            height: 12px;
            transition: transform 0.25s, opacity 0.25s;
}

.sb-item.open .sb-ico::after {

            transform: translate(-50%, -50%) scaleY(0);
            opacity: 0;
}

.sb-item.no-sub .sb-ico {

            display: none;
}

.sb-subs {

            display: none;
            padding-bottom: 10px;
            background: #fbfcfb;
}

.sb-item.open .sb-subs {

            display: block;
}

.sb-list .sb-sub {

            display: block;
            padding: 10px 22px 10px 40px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--gray-500);
            border-bottom: 1px solid #f2f4f2;
            transition: color 0.2s, background 0.2s, padding-left 0.2s;
}

.sb-list .sb-sub:last-child {

            border-bottom: none;
}

.sb-list .sb-sub:hover {

            color: var(--green-dark);
            background: #f1f8f3;
            padding-left: 44px;
}

.sb-list .sb-sub.active {

            color: var(--green-dark);
            font-weight: 700;
            background: #eaf6ee;
}

.prod-card .read-more.read-more-off {

            background: var(--white) !important;
            color: var(--gray-500) !important;
            border-color: rgba(16, 34, 20, 0.04);
            box-shadow: none;
            cursor: default;
            pointer-events: none;
}

.prod-count {

            font-size: 14px;
            font-weight: 600;
            color: var(--gray-500);
            white-space: nowrap;
}

@media (max-width: 768px) {

            .sb-list {
                display: block;
                flex-wrap: nowrap;
                padding: 0;
                gap: 0;
            }
            .sb-cat {
                padding: 13px 16px;
                font-size: 14px;
            }
            .sb-list .sb-sub {
                padding: 9px 16px 9px 32px;
                font-size: 13px;
            }
            .sb-list .sb-sub:hover {
                padding-left: 34px;
            }
}

/* ---- Card alignment hardening ----
   Cards without a subtitle used to lose the vertical spacer, so their
   Read More button floated up under the title and the row looked ragged.
   Anchoring the button to the card bottom keeps every row on one baseline. */
.prod-card .desc {
    flex-grow: 0;
}

.prod-card .read-more {
    margin-top: auto;
}

.prod-card .thumb img {
    display: block;
}
