/*
 * Purpose: product page css.
 * Author: Unknown
 */
 
/* ── Page theme ── */
.pc-page {
    --pc-green: #3ABE3A;
    --pc-green-dark: #179917;
    --pc-muted: #5d6b5d;
    --pc-line: #dceadc;
    --pc-soft: #f5fbf5;
    --pc-ink: #101810;
    --pc-gold: #CCB034;
    --accent: var(--pc-green);
    --line: var(--pc-line);
    --muted: var(--pc-muted);
    --ink: var(--pc-ink);
    color: var(--ink);
    background: #fbfefb;
}

.pc-section { padding: 65px 0; }

/* ── Hero ── */
.pc-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    background: white;
}

.pc-hero .container {
    position: relative;
    z-index: 2;
}

.pc-hero-title {
    margin-bottom: 14px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: .95;
    letter-spacing: 0;
}

.pc-hero-description {
    max-width: 610px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.pc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 20px;
}

.pc-hero-visual img {
    max-height: 440px;
    object-fit: contain;
}

/* ── Chips ── */
.pc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 12px 18px;
    border-radius: 20px;
    color: #163416;
    background: #f6f8f9;
    font-size: 13px;
    line-height: 1;
    margin: 4px 8px 0 0;
    white-space: nowrap;
}

.pc-chip::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    background: #3ca65c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* ── Placeholder ── */
.pc-placeholder {
    color: #718071;
    font-weight: 600;
}

/* ── Section title ── */
.pc-section-title {
    margin-bottom: 14px;
    color: var(--pc-gold);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

/* ══ Carousel system ══ */
.pc-carousel {
    position: relative;
    margin: 0 -12px;
}

.pc-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 max(24px, 4vw);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 8px 12px 20px;
    margin: 0;
    list-style: none;
}

.pc-track.is-static {
    overflow-x: visible;
    scroll-snap-type: none;
    scrollbar-width: none;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.pc-track.is-static::-webkit-scrollbar { display: none; }

.pc-track.is-static .pc-slide {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    padding: 0;
}

.pc-track::-webkit-scrollbar { display: none; }

.pc-slide {
    flex: 0 0 calc(50% - 24px);
    min-width: 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 6px;
}

.pc-slide .pc-card-ingredient,
.pc-slide .pc-card-patent {
    height: 100%;
}

/* ══ Cards ══ */
.pc-card-ingredient {
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(18, 54, 18, .05);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.pc-card-ingredient:hover {
    transform: translateY(-3px);
    border-color: var(--accent, rgba(58, 190, 58, .55));
    box-shadow: 0 4px 14px rgba(18, 54, 18, .10);
}

.pc-card-ingredient img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pc-card-ingredient-body { padding: 24px; }

.pc-card-ingredient-body h3 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
}

.pc-card-ingredient-body p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

#patent-track .pc-slide {
    flex: 0 0 calc(38% - 24px);
}

.pc-card-patent {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px -6px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.03);
    transition: box-shadow .25s ease, transform .25s ease;
    cursor: pointer;
}

.pc-card-patent:hover {
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.pc-patent-img-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.pc-patent-img-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.pc-patent-label {
    padding: 12px 16px;
    text-align: center;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #fff;
}

.pc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    padding: 20px;
}

.pc-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.pc-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-lightbox-inner img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.pc-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease;
}

.pc-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.pc-lightbox-caption {
    position: absolute;
    bottom: -36px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

/* ══ Feature image ══ */
.pc-feature-row > [class*="col-"] {
    display: flex;
}

.pc-feature-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.pc-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ══ Feature cards ══ */
.pc-feature-list {
    display: flex;
    flex-direction: column;
}

.pc-feature-card {
    flex: 1 1 0;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(18, 54, 18, .06);
    border: 1px solid rgba(18, 54, 18, .06);
    min-width: 0;
}

.pc-feature-card + .pc-feature-card {
    margin-top: 16px;
}

@media (max-width: 991.98px) {
    .pc-feature-row > [class*="col-"] {
        display: block;
    }

    .pc-feature-image {
        min-height: 0;
    }

    .pc-feature-card {
        flex: 0 0 auto;
    }
}

.pc-feature-card h4 {
    margin-bottom: 8px;
    color: #163416;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pc-feature-card p {
    margin-bottom: 0;
    color: #4a6a4a;
    line-height: 1.65;
    font-size: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.pc-feature-card h3 {
    margin-bottom: 10px;
    color: #163416;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (max-width: 991.98px) {
    .pc-sticky-features .pc-feature-sticky {
        position: static;
    }

    .pc-sticky-features .pc-feature-image {
        min-height: 0;
    }

    .pc-sticky-features .pc-feature-card {
        padding: 26px;
    }
}

/* ══ Arrow buttons ══ */
.pc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    cursor: pointer;
    font-size: 18px;
    color: var(--ink);
    transition: opacity .35s ease, transform .35s ease,
                border-color .25s, background .25s, box-shadow .25s;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    opacity: 1;
    pointer-events: auto;
}

.pc-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.85);
}

.pc-btn:hover {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 6px 20px rgba(18, 54, 18, .10);
}

.pc-btn:active { transform: translateY(-50%) scale(.92); }
.pc-btn.prev { left: -6px; }
.pc-btn.next { right: -6px; }

/* ══ FAQ accordion ══ */
.pc-faq-wrap {
    max-width: 930px;
    margin: 0 auto;
}

.pc-faq .accordion-section-title {
    position: relative;
    margin-bottom: 12px;
    padding: 21px 58px 21px 24px;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    color: var(--ink);
    background: #ffffff;
    font-size: 18px;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.pc-faq .accordion-section-title:before {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--accent);
}

.pc-faq .accordion-section-title.active {
    color: #ffffff;
    border-color: var(--accent) !important;
    background: var(--accent);
}

.pc-faq .accordion-section-title.active:before { color: #ffffff; }

.pc-faq .accordion-section-content {
    margin: -4px 0 14px;
    padding: 0 24px 22px;
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pc-faq .accordion-section-content p { margin-bottom: 0; }

.pc-faq .accordion-section-content .pc-placeholder {
    display: block;
    white-space: normal;
}

/* ══ Responsive ══ */
@media (max-width: 991px) {
    .pc-section { padding: 64px 0; }
    .pc-hero { padding: 72px 0 58px; }
    .pc-hero-visual { min-height: auto; margin-top: 30px; }
    .pc-slide { flex: 0 0 calc(50% - 24px); }
    #patent-track .pc-slide { flex: 0 0 calc(40% - 24px); }
    .pc-btn { width: 38px; height: 38px; font-size: 15px; }
}

@media (max-width: 767px) {
    .pc-slide { flex: 0 0 calc(78% - 24px); }
    #patent-track .pc-slide { flex: 0 0 calc(55% - 300px); }
    .pc-btn { display: none; }
    
    .pc-track.is-static {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
    }
    
    .pc-track .is-static .pc-slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        flex: 0 0 calc(78% - 24px);
        max-width: none;
        padding: 0 6px;
    }
}

@media (max-width: 575px) {
    .pc-chip {
        min-height: 28px;
        padding: 6px 10px;
        font-size: 12px;
        margin-top: 6px;
    }
    .pc-faq .accordion-section-title {
        padding-right: 52px;
        font-size: 16px;
    }
}
