﻿/* ============================================================
    PRODUCTS INDEX - CLEAN REDESIGN
    ============================================================ */

/* -- Search Toolbar -- */
.prod-toolbar {
    --prod-ctrl-h: 44px;
    position: sticky;
    top: 72px;
    z-index: 30;
    background: transparent;
    padding: 10px 0;
    border-bottom: none;
    box-shadow: none;
    transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}

.prod-toolbar.is-scrolled {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .prod-toolbar.is-scrolled {
    background: rgba(10, 15, 41, 0.86);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prod-toolbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
}

.prod-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.prod-search-form {
    width: 100%;
    display: flex;
    align-items: center;
    height: var(--prod-ctrl-h);
    margin: 0;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.prod-search-form:focus-within {
    background: #fff;
    border-color: #008fd7;
    box-shadow: 0 0 0 3px rgba(0, 143, 215, 0.1);
}

.prod-search-ico {
    flex-shrink: 0;
    padding: 0 8px 0 14px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    line-height: 1;
}

.prod-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 0 8px 0 0;
    height: 100%;
    line-height: 1;
    font-size: 0.875rem;
    color: #1a1a2e;
    min-width: 0;
}

.prod-search-input::placeholder { color: rgba(0, 0, 0, 0.38); }

.prod-search-btn {
    flex-shrink: 0;
    border: none;
    background: #008fd7;
    color: #fff;
    width: 34px;
    height: 34px;
    margin: 3px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
}

.prod-search-btn i { font-size: 0.88rem; }
.prod-search-btn:hover { background: #0077b6; transform: scale(1.05); }

.prod-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    box-shadow: 0 10px 24px rgba(18, 34, 58, 0.14);
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.prod-suggest-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #1a1a2e;
    cursor: pointer;
}

.prod-suggest-item:hover {
    background: rgba(0, 143, 215, 0.1);
    color: #00679e;
}

.prod-tracking-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--prod-ctrl-h);
    margin: 0;
    box-sizing: border-box;
    gap: 5px;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    white-space: nowrap;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    transition: color .18s, background .18s, border-color .18s;
}

.prod-tracking-link:hover {
    color: #008fd7;
    background: rgba(0, 143, 215, 0.08);
    border-color: #008fd7;
}

.prod-tracking-link i { font-size: 0.95rem; }

/* Dark mode tuning for product toolbar */
[data-theme="dark"] .prod-search-form {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .prod-search-form:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #33b9ff;
    box-shadow: 0 0 0 3px rgba(51, 185, 255, 0.18);
}

[data-theme="dark"] .prod-search-ico {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .prod-search-input {
    color: rgba(245, 249, 255, 0.96);
}

[data-theme="dark"] .prod-search-input::placeholder {
    color: rgba(230, 238, 250, 0.62);
}

[data-theme="dark"] .prod-search-suggest {
    border-color: rgba(255, 255, 255, 0.2);
    background: #101a33;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .prod-suggest-item {
    color: rgba(240, 247, 255, 0.94);
}

[data-theme="dark"] .prod-suggest-item:hover {
    background: rgba(51, 185, 255, 0.18);
    color: #b9e9ff;
}

[data-theme="dark"] .prod-tracking-link {
    color: rgba(245, 249, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .prod-tracking-link:hover {
    color: #8dd9ff;
    border-color: #33b9ff;
    background: rgba(51, 185, 255, 0.12);
}

/* -- Hero -- */
.prod-hero {
    background: linear-gradient(180deg, #0d1333 0%, #0a0f29 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prod-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(0,143,215,0.11) 0%, transparent 55%);
    pointer-events: none;
}

.prod-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.prod-hero-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.prod-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.prod-accent {
    color: var(--accent-color);
}

.prod-hero-sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.prod-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.prod-breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.prod-breadcrumb a:hover { text-decoration: underline; }
.prod-breadcrumb i { color: rgba(255,255,255,0.3); font-size: 1rem; }
.prod-breadcrumb span { color: rgba(255,255,255,0.6); }

.prod-hero-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 28px;
    flex-shrink: 0;
}

.prod-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

.prod-stat-num {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.prod-stat-lbl {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    white-space: nowrap;
}

.prod-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* -- Main section -- */
.prod-main {
    background: linear-gradient(180deg, #0a0f29 0%, #070b1f 100%);
    padding: 48px 0 80px;
}

/* -- Filter bar -- */
.prod-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prod-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.prod-filter-pill:hover {
    color: var(--accent-color);
    border-color: rgba(0,143,215,0.35);
    background: rgba(0,143,215,0.08);
}

.prod-filter-pill.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark, #006fae) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,143,215,0.3);
}

.prod-filter-pill i { font-size: 1rem; }

.prod-pill-count {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.prod-filter-pill.active .prod-pill-count { background: rgba(255,255,255,0.25); }

/* -- Count bar -- */
.prod-count-bar {
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.prod-count-bar strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* -- Category section (browse mode) -- */
.prod-section {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prod-section:last-of-type { border-bottom: none; margin-bottom: 0; }

.prod-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.prod-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prod-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.prod-section-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 480px;
}

.prod-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent-color);
    background: rgba(0,143,215,0.08);
    border: 1px solid rgba(0,143,215,0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.prod-view-all:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: transparent;
}

.prod-view-all i { font-size: 1.1rem; transition: transform 0.2s ease; }
.prod-view-all:hover i { transform: translateX(3px); }

/* -- Product grid -- */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* -- Product card -- */
.prod-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.prod-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,143,215,0.28);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35), 0 0 20px rgba(0,143,215,0.08);
}

/* Card image */
.prod-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(255,255,255,0.03);
    flex-shrink: 0;
}

.prod-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-card:hover .prod-card-img { transform: scale(1.06); }

.prod-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
}

.prod-card-noimg i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.12);
}

/* Category tag (filtered mode) */
.prod-cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--accent-color);
    z-index: 2;
    letter-spacing: 0.04em;
}

/* Hover overlay */
.prod-img-hover {
    position: absolute;
    inset: 0;
    background: rgba(10,15,41,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prod-card:hover .prod-img-hover { opacity: 1; }

.prod-view-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark, #006fae) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,143,215,0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.prod-card:hover .prod-view-circle { transform: scale(1); }

/* Card body */
.prod-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prod-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prod-card-name a:hover { color: var(--accent-color); }

.prod-card-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
}

.prod-card-time i { font-size: 0.9rem; }

.prod-card-price {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-color);
    padding: 5px 10px;
    background: rgba(0,143,215,0.09);
    border-left: 3px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
    margin-top: auto;
}

.prod-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 4px;
    align-self: flex-start;
    transition: gap 0.2s ease, color 0.2s ease;
}

.prod-card-link:hover {
    gap: 8px;
    color: var(--accent-light, #33b3e8);
}

.prod-card-link i { font-size: 1.05rem; }

/* -- "More" card -- */
.prod-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.13);
    border-radius: 14px;
    text-decoration: none;
    min-height: 160px;
    transition: all 0.25s ease;
    color: rgba(255,255,255,0.5);
    padding: 20px;
}

.prod-more-card:hover {
    background: rgba(0,143,215,0.07);
    border-color: rgba(0,143,215,0.35);
    transform: translateY(-4px);
    color: var(--accent-color);
}

.prod-more-card i {
    font-size: 2rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.25s ease;
}

.prod-more-card:hover i { color: var(--accent-color); }

.prod-more-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.prod-more-lbl {
    font-size: 0.75rem;
    font-weight: 500;
}

/* -- Pagination -- */
.prod-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

/* -- Empty state -- */
.prod-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.35);
}

.prod-empty i {
    font-size: 4rem;
    display: block;
    margin: 0 auto 16px;
    opacity: 0.2;
}

.prod-empty p { font-size: 1rem; margin: 0; }

/* -- CTA -- */
.prod-cta {
    background: linear-gradient(180deg, #070b1f 0%, #0d1333 100%);
    padding: 64px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.prod-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #008ED6 0%, #0056B3 100%);
    border-radius: 12px;
    padding: 44px 48px;
}

.prod-cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.prod-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    max-width: 520px;
    line-height: 1.65;
}

/* -- Responsive -- */
@media (max-width: 1400px) {
    .prod-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .prod-hero { padding: 60px 0 48px; }
    .prod-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .prod-hero-stats {
        width: 100%;
        justify-content: space-around;
        padding: 16px 20px;
    }
    .prod-stat { padding: 0 12px; }
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .prod-hero-title { font-size: 2.25rem; }
    .prod-main { padding: 38px 0 56px; }
    .prod-filter-bar {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }
    .prod-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .prod-toolbar {
        --prod-ctrl-h: 40px;
        top: 64px;
        padding: 8px 0;
    }

    .prod-toolbar-inner { gap: 8px; }

    .prod-search-form { height: var(--prod-ctrl-h); }

    .prod-search-input {
        font-size: 0.8rem;
        padding: 0 8px 0 0;
    }

    .prod-tracking-link {
        font-size: 0.8rem;
        padding: 0 12px;
        height: var(--prod-ctrl-h);
    }

    .prod-hero {
        padding: 44px 0 34px;
    }
    .prod-hero-inner {
        gap: 18px;
    }
    .prod-hero-label {
        margin-bottom: 10px;
        letter-spacing: 0.14em;
    }
    .prod-hero-title {
        font-size: 1.72rem;
        margin-bottom: 8px;
    }
    .prod-hero-sub {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .prod-hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 10px 8px;
        border-radius: 12px;
    }
    .prod-stat {
        padding: 0;
        min-width: 0;
    }
    .prod-stat-num {
        font-size: 1.18rem;
        margin-bottom: 1px;
    }
    .prod-stat-lbl {
        font-size: 0.65rem;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }
    .prod-stat-divider {
        display: none;
    }

    .prod-main {
        padding: 28px 0 44px;
    }

    .prod-filter-bar {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        position: static;
        top: auto;
        z-index: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding-top: 8px;
        padding-left: 2px;
        padding-right: 2px;
        padding-bottom: 14px;
        margin-bottom: 22px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .prod-filter-pill {
        flex-shrink: 0;
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 999px;
    }
    .prod-pill-count {
        font-size: 0.64rem;
        padding: 1px 6px;
    }

    .prod-section {
        margin-bottom: 34px;
        padding-bottom: 34px;
    }
    .prod-section-head { flex-direction: column; gap: 10px; margin-bottom: 14px; }
    .prod-section-title {
        font-size: 1.08rem;
    }
    .prod-section-sub {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .prod-view-all { align-self: flex-start; }

    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-card {
        border-radius: 12px;
    }
    .prod-card-img-wrap { aspect-ratio: 4 / 4.15; }
    .prod-img-hover {
        display: none;
    }
    .prod-card-body { padding: 8px 9px 9px; gap: 3px; }
    .prod-card-name {
        font-size: 0.84rem;
        line-height: 1.28;
        -webkit-line-clamp: 2;
    }
    .prod-card-time {
        display: none;
    }
    .prod-card-price {
        padding: 3px 6px;
        font-size: 0.74rem;
        border-left-width: 2px;
        border-radius: 0 5px 5px 0;
    }
    .prod-card-link {
        margin-top: 1px;
        font-size: 0.72rem;
    }

    .prod-count-bar {
        margin-bottom: 14px;
        font-size: 0.78rem;
    }

    .prod-cta-inner {
        padding: 22px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        border-radius: 14px;
    }
    .prod-cta-title {
        font-size: 1.24rem;
        margin-bottom: 6px;
    }
    .prod-cta-sub {
        font-size: 0.86rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .prod-toolbar-inner {
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
    }

    .prod-search-wrap {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        order: 0;
    }

    .prod-search-form {
        width: 100%;
    }

    .prod-tracking-link {
        flex: 0 0 auto;
        justify-content: center;
        order: 0;
        height: var(--prod-ctrl-h);
        padding: 0 10px;
        font-size: 0.76rem;
        gap: 4px;
    }

    .prod-hero-title { font-size: 1.52rem; }
    .prod-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 8px 6px;
    }
    .prod-stat {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 6px 2px;
        min-width: 0;
    }
    .prod-stat-num { font-size: 1rem; }
    .prod-stat-lbl { font-size: 0.62rem; }

    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .prod-card-name { font-size: 0.8rem; }
    .prod-card-price { font-size: 0.7rem; }
    .prod-card-img-wrap { aspect-ratio: 4 / 4.35; }
    .prod-card-body { padding: 7px 8px 8px; gap: 2px; }
    .prod-main { padding: 24px 0 40px; }
    .prod-section { margin-bottom: 28px; padding-bottom: 28px; }
    .prod-section-title { font-size: 1rem; }
    .prod-section-sub { font-size: 0.78rem; }

    .prod-filter-pill {
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .prod-count-bar {
        margin-bottom: 10px;
        font-size: 0.74rem;
    }

    .prod-view-all {
        padding: 6px 12px;
        font-size: 0.76rem;
    }

    .prod-cta-inner {
        padding: 16px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .prod-cta-title {
        font-size: 1.06rem;
    }

    .prod-cta-sub {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}

@media (max-width: 360px) {
    .prod-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .prod-card-img-wrap {
        aspect-ratio: 16 / 10;
    }

    .prod-card-body {
        padding: 9px 10px 10px;
    }

    .prod-toolbar { top: 58px; }
}


/* ---------------------------------------------------------------
    PRODUCT DETAIL PAGE - pd-* components
    --------------------------------------------------------------- */

/* -- Breadcrumb bar -- */
.pd-breadcrumb-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.pd-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.pd-breadcrumb a:hover { color: var(--accent-color); }
.pd-breadcrumb i { font-size: 0.875rem; opacity: .5; }
.pd-breadcrumb span { color: var(--text-heading); font-weight: 500; }

/* -- Main product section -- */
.pd-main {
    padding: 48px 0 56px;
}
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* -- Gallery -- */
.pd-gallery { position: sticky; top: 100px; }

.pd-main-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.03); }
.pd-img-counter {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(0,0,0,.65);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
}
.pd-zoom-hint {
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity .3s;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.pd-main-img-wrap:hover .pd-zoom-hint { opacity: 1; }

.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    opacity: .65;
    transition: all .2s;
    flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active,
.pd-thumb:hover {
    opacity: 1;
    border-color: var(--accent-color);
}

/* -- Product info panel -- */
.pd-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(0, 143, 215, .1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.pd-name {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
}
.pd-short-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* -- Price box -- */
.pd-price-box {
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.pd-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-bottom: 4px;
}
.pd-price-value {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}
.pd-min-order {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* -- Info chips -- */
.pd-chips {
    display: flex;
    gap: 16px 28px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.pd-chip {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex: none;
    min-width: 130px;
}
.pd-chip i {
    font-size: 1.125rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}
.pd-chip strong {
    display: block;
    color: var(--text-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 1px;
}

/* -- CTA buttons -- */
.pd-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.pd-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: #008ED6;
    color: #fff;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.pd-btn-wa:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.pd-btn-wa i { font-size: 1.1rem; }
.pd-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    background: transparent;
    color: var(--text-heading);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.pd-btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* -- Share -- */
.pd-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.pd-share-lbl {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}
.pd-share-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all .2s;
}
.pd-share-btn:hover { color: #fff; border-color: var(--accent-color); background: var(--accent-color); }

/* -- Detail section below -- */
.pd-detail-section {
    padding: 0 0 80px;
    background: var(--body-bg);
}
.pd-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
.pd-detail-main { display: flex; flex-direction: column; gap: 0; }
.pd-detail-main > .pd-card { padding-bottom: 36px; border-bottom: 1px solid var(--border-color); padding-top: 36px; }
.pd-detail-main > .pd-card:first-child { padding-top: 0; }
.pd-detail-main > .pd-card:last-child { border-bottom: none; padding-bottom: 0; }

/* -- Card component (open section, no borders) -- */
.pd-card { /* borderless section block */ }
.pd-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 14px;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--border-color);
}
.pd-card-head i {
    font-size: 1.1rem;
    color: var(--accent-color);
}
.pd-card-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.pd-card-body { padding: 0; }
.pd-description {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* -- Related products sidebar card -- */
.pd-related-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.pd-related-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}
.pd-related-head i {
    font-size: 1.1rem;
    color: var(--accent-color);
}
.pd-related-head h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.pd-related-body { padding: 12px; }

/* -- Specs list (clean pill style, no table) -- */
.pd-spec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    transition: background .15s;
}
.pd-spec-list .pd-spec-item:last-child { border-bottom: none; }
.pd-spec-item:hover { background: none; }
.pd-spec-item::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0;
}
.pd-spec-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 130px;
    flex-shrink: 0;
}
.pd-spec-divider {
    color: var(--border-color);
    font-weight: 400;
    flex-shrink: 0;
}
.pd-spec-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    flex: 1;
}

/* -- Color info note box -- */
.pd-color-note {
    background: rgba(0, 143, 215, .07);
    border: 1px solid rgba(0, 143, 215, .2);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pd-color-note-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pd-color-note-body { flex: 1; }
.pd-color-note-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 6px;
}
.pd-color-note-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 8px;
}
.pd-color-note-highlight {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

/* -- Sidebar -- */
.pd-detail-sidebar { display: flex; flex-direction: column; gap: 20px; }

.pd-sidebar-order {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0071aa 100%);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pd-sidebar-order-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.pd-sidebar-order-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 6px;
    line-height: 1.6;
}

/* -- Related products -- */
.pd-related { display: flex; flex-direction: column; gap: 4px; }
.pd-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-heading);
    transition: background .2s;
}
.pd-related-item:hover { background: rgba(0,143,215,.06); color: var(--text-heading); }
.pd-related-img {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--body-bg);
    border: 1px solid var(--border-color);
}
.pd-related-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-related-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.25rem;
}
.pd-related-info { flex: 1; min-width: 0; }
.pd-related-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pd-related-price {
    font-size: 0.8125rem;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}
.pd-related-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .2s;
}
.pd-related-item:hover .pd-related-arrow { transform: translateX(3px); color: var(--accent-color); }

/* -- Responsive -- */
@media (max-width: 1100px) {
    .pd-layout { gap: 36px; }
    .pd-detail-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 992px) {
    .pd-layout { grid-template-columns: 1fr; gap: 32px; }
    .pd-gallery { position: static; }
    .pd-detail-layout { grid-template-columns: 1fr; }
    .pd-detail-sidebar { flex-direction: row; flex-wrap: wrap; }
    .pd-detail-sidebar > * { flex: 1; min-width: 260px; }
    .pd-name { font-size: 1.625rem; }
}
@media (max-width: 768px) {
    .pd-main { padding: 28px 0 36px; }
    .pd-layout { gap: 20px; }
    .pd-main-img-wrap {
        background: transparent;
        border: none;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(8, 16, 40, 0.2);
    }
    .pd-main-img {
        transform: none;
        filter: saturate(1.02) contrast(1.02);
    }
    .pd-thumbs {
        margin-top: 14px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }
    .pd-thumb {
        width: 60px;
        height: 60px;
        border: none;
        opacity: 1;
        box-shadow: 0 3px 10px rgba(8, 16, 40, 0.16);
    }
    .pd-thumb.active {
        transform: translateY(-1px);
        box-shadow: 0 0 0 2px var(--accent-color), 0 6px 14px rgba(0, 143, 215, 0.28);
    }
    .pd-short-desc {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    .pd-chips { flex-direction: column; gap: 10px; margin-bottom: 18px; }
    .pd-chip {
        padding: 10px 12px;
        border-radius: 10px;
    }
    .pd-chip strong {
        font-size: 0.8rem;
    }
    .pd-chip span {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    .pd-cta { flex-direction: column; gap: 8px; }
    .pd-btn-wa, .pd-btn-outline { width: 100%; justify-content: center; }
    .pd-btn-wa, .pd-btn-outline {
        padding: 11px 14px;
        font-size: 0.86rem;
        border-radius: 10px;
    }
    .pd-share {
        gap: 8px;
        padding-top: 12px;
    }
    .pd-share-lbl {
        font-size: 0.78rem;
    }
    .pd-share-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .pd-spec-item { flex-wrap: wrap; }
    .pd-spec-label { min-width: 100px; }
    .pd-detail-sidebar { flex-direction: column; }
    .pd-card {
        border-radius: 12px;
    }
    .pd-card-head {
        padding-bottom: 10px;
        margin-bottom: 12px;
    }
}
@media (max-width: 480px) {
    .pd-name { font-size: 1.375rem; }
    .pd-price-value { font-size: 1.375rem; }
    .pd-thumbs { gap: 8px; margin-top: 12px; }
    .pd-thumb { width: 54px; height: 54px; }
    .pd-main { padding: 22px 0 28px; }
    .pd-main-img-wrap {
        border-radius: 12px;
        background: transparent;
        border: none;
        box-shadow: 0 8px 20px rgba(8, 16, 40, 0.18);
    }
    .pd-thumb.active {
        box-shadow: 0 0 0 1.5px var(--accent-color), 0 5px 12px rgba(0, 143, 215, 0.24);
    }
    .pd-short-desc {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .pd-chip {
        padding: 9px 10px;
        gap: 8px;
    }
    .pd-chip i {
        font-size: 1rem;
    }
    .pd-chip strong,
    .pd-chip span {
        font-size: 0.76rem;
    }
    .pd-btn-wa, .pd-btn-outline {
        font-size: 0.82rem;
        padding: 10px 12px;
    }
    .pd-card-head h2 {
        font-size: 0.95rem;
    }
    .pd-description,
    .pd-description p,
    .pd-spec-value,
    .pd-spec-label {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    .pd-color-note {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }
    .pd-color-note-icon {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    .pd-sidebar-order {
        padding: 16px 14px;
        border-radius: 12px;
    }
    .pd-sidebar-order-title {
        font-size: 0.96rem;
    }
    .pd-sidebar-order-sub {
        font-size: 0.78rem;
    }
}


/* ---------------------------------------------------------------
    PORTFOLIO DETAIL PAGE - pfs-* extras (reuses pd-* base)
    --------------------------------------------------------------- */

.pfs-client {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: -4px 0 16px;
}
.pfs-client i { color: var(--accent-color); font-size: 1.125rem; }

.pfs-featured-badge {
    position: absolute;
    top: 14px; left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.pfs-chip-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.pfs-chip-link:hover { text-decoration: underline; }

.pfs-related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Rich text content from editor - clean typography */
.pfs-rich-text { line-height: 1.8; }
.pfs-rich-text p {
    margin: 0 0 1em;
    color: var(--text-body);
    font-size: 0.9375rem;
}
.pfs-rich-text p:last-child { margin-bottom: 0; }
.pfs-rich-text ul,
.pfs-rich-text ol {
    padding-left: 1.5em;
    margin: 0 0 1em;
}
.pfs-rich-text li {
    margin-bottom: .4em;
    color: var(--text-body);
    font-size: 0.9375rem;
}
.pfs-rich-text h2,
.pfs-rich-text h3,
.pfs-rich-text h4 {
    color: var(--text-heading);
    font-weight: 700;
    margin: 1.25em 0 .5em;
}
.pfs-rich-text strong { color: var(--text-heading); }
.pfs-rich-text a { color: var(--accent-color); }

@media (max-width: 768px) {
    .pfs-client {
        font-size: 0.9rem;
        gap: 6px;
        margin: -2px 0 12px;
    }

    .pfs-featured-badge {
        top: 10px;
        left: 10px;
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .pfs-rich-text p,
    .pfs-rich-text li {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .pfs-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .pfs-client {
        font-size: 0.82rem;
    }

    .pfs-featured-badge {
        top: 8px;
        left: 8px;
        font-size: 0.62rem;
        padding: 4px 8px;
    }

    .pfs-rich-text p,
    .pfs-rich-text li {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .pfs-related-grid {
        grid-template-columns: 1fr;
    }
}

.prod-card-img-wrap{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#eef3fb;
    min-height:280px;
    padding:40px;
    overflow:hidden;
}

.prod-card-img{
    width:100%;
    max-width:220px;
    object-fit:contain;
    transition:0.4s ease;
}

.prod-card:hover .prod-card-img{
    transform:scale(1.05);
}

.prod-card-noimg{
    font-size:70px;
    color:#b5b5b5;
}