
/* =====================================================
   FELIX NGUYEN SHOP
   PRODUCT DETAIL PAGE
   ===================================================== */

:root {
    --product-orange: #F28C18;
    --product-orange-dark: #D97608;
    --product-black: #202020;
    --product-text: #333333;
    --product-muted: #707070;
    --product-border: #E5E7EB;
    --product-light: #F4F5F7;
    --product-white: #FFFFFF;
}

/* GENERAL */

.product-detail {
    width: 100%;
    color: var(--product-text);
    background: #F4F5F7;
    font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
    line-height: 1.65;
}

.product-detail *,
.product-detail *::before,
.product-detail *::after {
    box-sizing: border-box;
}

.product-detail img {
    max-width: 100%;
}

.product-detail a {
    text-decoration: none;
}

/* BREADCRUMB */

.product-breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--product-muted);
    font-size: 12px;
}

.product-breadcrumb a {
    color: var(--product-text);
}

.product-breadcrumb a:hover {
    color: var(--product-orange-dark);
}

/* HERO */

.product-detail-hero {
    max-width: 1280px;
    margin: 12px auto 30px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 30px;
    align-items: start;
    background: var(--product-white);
    border: 1px solid #E6E6E6;
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.045);
}

/* PRODUCT GALLERY */

.product-gallery {
    min-width: 0;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F1F2F4;
    border-radius: 11px;
}

.product-main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-gallery-main:hover .product-main-image {
    transform: scale(1.025);
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.product-thumbnail {
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 3px;
    overflow: hidden;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid var(--product-border);
    border-radius: 7px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    padding: 2px;
    border: 2px solid var(--product-orange);
    background: #FFF8EF;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* PRODUCT SUMMARY */

.product-summary {
    min-width: 0;
}

.product-category-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--product-orange-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.product-summary h1 {
    margin: 0 0 10px;
    color: var(--product-black);
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.product-short-description {
    margin-bottom: 14px;
    color: #555555;
    font-size: 14px;
    line-height: 1.7;
}

/* HIGHLIGHTS */

.product-highlight-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0;
}

.product-highlight {
    min-width: 0;
    min-height: 84px;
    padding: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #FFF4E6;
    border: 1px solid #F7DFC0;
    border-radius: 9px;
}

.highlight-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B85D00;
    background: #FFE0B5;
    border-radius: 50%;
    font-size: 19px;
}

.product-highlight strong {
    display: block;
    margin-bottom: 2px;
    color: var(--product-black);
    font-size: 12px;
    line-height: 1.4;
}

.product-highlight p {
    margin: 0;
    color: var(--product-muted);
    font-size: 10px;
    line-height: 1.5;
}

/* PRICE */

.product-price-area {
    padding: 11px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--product-border);
    border-bottom: 1px solid var(--product-border);
}

.product-price-label {
    color: var(--product-muted);
    font-size: 12px;
}

.product-price-area strong {
    color: var(--product-orange-dark);
    font-size: 20px;
    font-weight: 800;
}

/* CONTACT BUTTONS */

.product-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-product-contact,
.btn-product-phone {
    min-height: 44px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-product-contact {
    color: #FFFFFF;
    background: var(--product-orange);
    border: 2px solid var(--product-orange);
}

.btn-product-contact:hover {
    color: #FFFFFF;
    background: var(--product-orange-dark);
    border-color: var(--product-orange-dark);
}

.btn-product-phone {
    color: var(--product-orange-dark);
    background: #FFFFFF;
    border: 2px solid var(--product-orange);
}

.btn-product-phone:hover {
    color: #FFFFFF;
    background: var(--product-orange);
}

.product-consult-note {
    margin: 9px 0 0;
    color: var(--product-muted);
    font-size: 11px;
    line-height: 1.55;
}

/* COMMON SECTION */

.product-section {
    padding: 48px 20px;
}

.product-section-heading {
    max-width: 850px;
    margin: 0 auto 25px;
    text-align: center;
}

.product-section-heading > span {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--product-orange-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.product-section-heading h2 {
    margin: 0 0 9px;
    color: var(--product-black);
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 800;
    line-height: 1.35;
}

.product-section-heading p {
    margin: 0;
    color: var(--product-muted);
    font-size: 13px;
}

.product-section-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px 28px;
    background: #FFFFFF;
    border-left: 5px solid var(--product-orange);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);
}

.product-section-content p {
    margin: 0 0 10px;
    color: #444444;
    font-size: 14px;
    line-height: 1.75;
}

.product-section-content p:last-child {
    margin-bottom: 0;
}

/* OVERVIEW */

.product-overview {
    background: #EAF0F5;
}

/* WORKING PRINCIPLE */

.product-working-principle {
    background: #FFFFFF;
}

.product-working-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
}

.product-working-text {
    padding: 20px;
    background: #F5F6F8;
    border-radius: 10px;
}

.product-working-text p {
    margin: 0 0 11px;
    color: #444444;
    font-size: 13px;
    line-height: 1.75;
}

.product-working-text p:last-child {
    margin-bottom: 0;
}

/* HORIZONTAL ENERGY FLOW */

.product-energy-flow {
    min-width: 0;
    padding: 20px 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    background: #FFF5E8;
    border: 1px solid #F5D7B1;
    border-radius: 12px;
}

.energy-flow-item {
    min-width: 0;
    min-height: 112px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #F2D5B2;
    border-radius: 9px;
}

.energy-flow-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--product-orange);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.energy-flow-item strong {
    display: block;
    color: var(--product-black);
    font-size: 11px;
    line-height: 1.4;
}

.energy-flow-item small {
    display: block;
    margin-top: 3px;
    color: var(--product-muted);
    font-size: 10px;
    line-height: 1.4;
}

.energy-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--product-orange-dark);
}

.energy-flow-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* TECHNOLOGY */

.product-technology {
    background: #202020;
}

.product-technology .product-section-heading > span {
    color: #FFAC4D;
}

.product-technology .product-section-heading h2 {
    color: #FFFFFF;
}

.product-technology .product-section-heading p {
    color: #C9C9C9;
}

.product-feature-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.product-feature-card {
    min-width: 0;
    padding: 20px 17px;
    background: #303030;
    border: 1px solid #444444;
    border-top: 4px solid var(--product-orange);
    border-radius: 9px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-feature-card:hover {
    transform: translateY(-4px);
    background: #383838;
}

.feature-number {
    margin-bottom: 8px;
    color: #FF9A2F;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.product-feature-card h3 {
    margin: 0 0 9px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
}

.product-feature-card p {
    margin: 0;
    color: #D0D0D0;
    font-size: 12px;
    line-height: 1.7;
}

/* START METHODS */

.product-start-methods {
    background: #FFFFFF;
}

.product-start-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-start-card {
    min-width: 0;
    padding: 20px 15px;
    background: #F7F7F7;
    border: 1px solid #E7E7E7;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-start-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.start-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C56B0B;
    background: #FFE5C5;
    border: 1px solid #F8D4A8;
    border-radius: 50%;
}

.start-icon svg {
    width: 42px;
    height: 42px;
    display: block;
}

.product-start-card h3 {
    margin: 0 0 7px;
    color: var(--product-black);
    font-size: 14px;
    line-height: 1.45;
}

.product-start-card p {
    margin: 0;
    color: var(--product-muted);
    font-size: 12px;
    line-height: 1.65;
}

/* SPECIFICATIONS */

.product-specifications {
    background: #EAF0F5;
}

.product-spec-table-wrapper {
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--product-border);
    border-radius: 9px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.product-spec-table th,
.product-spec-table td {
    padding: 9px 16px;
    border-bottom: 1px solid var(--product-border);
    text-align: left;
    line-height: 1.5;
}

.product-spec-table th {
    width: 40%;
    color: var(--product-black);
    background: #F1F3F5;
    font-weight: 700;
}

.product-spec-table td {
    color: #555555;
    background: #FFFFFF;
}

.product-spec-table tr:nth-child(even) td {
    background: #FAFAFA;
}

.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td {
    border-bottom: none;
}

.product-spec-note {
    max-width: 850px;
    margin: 12px auto 0;
    padding: 11px 15px;
    color: #76501F;
    background: #FFF7EB;
    border-left: 4px solid var(--product-orange);
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.65;
}

/* INSTALLATION GALLERY */

.product-installation {
    background: #FFFFFF;
}

.product-installation-gallery {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-installation-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F1F2F4;
    border: 1px solid #E1E1E1;
    border-radius: 9px;
}

.product-installation-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-installation-image:hover img {
    transform: scale(1.025);
}

/* FAQ */

.product-faq {
    background: #F1F2F4;
}

.product-faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-faq-item {
    padding: 12px 17px;
    background: #FFFFFF;
    border: 1px solid var(--product-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.product-faq-item summary {
    position: relative;
    padding-right: 22px;
    color: var(--product-black);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

.product-faq-item summary::-webkit-details-marker {
    display: none;
}

.product-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 0;
    right: 0;
    color: var(--product-orange-dark);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.product-faq-item[open] summary::after {
    content: "−";
}

.product-faq-item p {
    margin: 9px 0 0;
    padding-top: 9px;
    color: var(--product-muted);
    border-top: 1px solid #EEEEEE;
    font-size: 12px;
    line-height: 1.7;
}

/* CONTACT SECTION */

.product-contact-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #202020, #343434);
    border-top: 4px solid var(--product-orange);
    text-align: center;
}

.product-contact-content {
    max-width: 850px;
    margin: 0 auto;
}

.product-contact-content > span {
    color: #FFAC4D;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.product-contact-content h2 {
    margin: 8px 0;
    color: #FFFFFF;
    font-size: clamp(20px, 2.5vw, 27px);
    line-height: 1.4;
}

.product-contact-content p {
    margin: 0 0 15px;
    color: #D0D0D0;
    font-size: 12px;
    line-height: 1.65;
}

.product-contact-content .btn-product-contact {
    min-width: 175px;
    min-height: 40px;
}

/* TABLET */

@media (max-width: 1000px) {

    .product-detail-hero {
        margin: 12px 15px 25px;
        padding: 20px;
        gap: 22px;
    }

    .product-highlight {
        align-items: flex-start;
    }

    .product-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-working-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-working-text {
        padding: 17px;
    }

    .product-energy-flow {
        max-width: 750px;
        width: 100%;
        margin: 0 auto;
    }
}

/* SMALL TABLET */

@media (max-width: 760px) {

    .product-detail-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-gallery {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    .product-summary {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .product-start-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-installation-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .product-breadcrumb {
        padding: 13px 15px 8px;
        gap: 6px;
        font-size: 10px;
    }

    .product-detail-hero {
        margin: 8px 10px 20px;
        padding: 13px;
        gap: 18px;
        border-radius: 10px;
    }

    .product-summary h1 {
        font-size: 25px;
    }

    .product-short-description {
        font-size: 13px;
    }

    .product-gallery-thumbnails {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .product-thumbnail {
        flex: 0 0 16%;
        width: 16%;
    }

    .product-highlight-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .product-highlight {
        min-height: 100px;
        padding: 9px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .highlight-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .product-highlight strong {
        font-size: 11px;
    }

    .product-highlight p {
        font-size: 10px;
    }

    .product-contact-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-section {
        padding: 36px 14px;
    }

    .product-section-heading {
        margin-bottom: 20px;
    }

    .product-section-heading h2 {
        font-size: 22px;
    }

    .product-section-heading p {
        font-size: 12px;
    }

    .product-section-content {
        padding: 16px;
    }

    .product-section-content p {
        font-size: 13px;
    }

    .product-working-text {
        padding: 15px;
    }

    .product-working-text p {
        font-size: 12px;
    }

    .product-energy-flow {
        padding: 12px 9px;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .energy-flow-item {
        min-height: auto;
        padding: 10px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
    }

    .energy-flow-item > div {
        min-width: 0;
    }

    .energy-flow-arrow {
        height: 17px;
        transform: rotate(90deg);
    }

    .energy-flow-arrow svg {
        width: 20px;
        height: 17px;
    }

    .product-feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .product-feature-card {
        padding: 15px 12px;
    }

    .feature-number {
        font-size: 21px;
    }

    .product-feature-card h3 {
        font-size: 12px;
    }

    .product-feature-card p {
        font-size: 11px;
    }

    .product-start-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .product-start-card {
        padding: 15px 10px;
    }

    .start-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 10px;
    }

    .start-icon svg {
        width: 35px;
        height: 35px;
    }

    .product-start-card h3 {
        font-size: 12px;
    }

    .product-start-card p {
        font-size: 11px;
    }

    .product-spec-table {
        font-size: 11px;
    }

    .product-spec-table th,
    .product-spec-table td {
        padding: 8px 9px;
    }

    .product-spec-table th {
        width: 42%;
    }

    .product-spec-note {
        padding: 10px;
        font-size: 10px;
    }

    .product-installation-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .product-faq-item {
        padding: 11px 12px;
    }

    .product-faq-item summary {
        font-size: 12px;
    }

    .product-faq-item p {
        font-size: 11px;
    }

    .product-contact-section {
        padding: 25px 15px;
    }

    .product-contact-content h2 {
        font-size: 20px;
    }

}

/* SMALL MOBILE */

@media (max-width: 360px) {

    .product-highlight-list {
        grid-template-columns: 1fr;
    }

    .product-highlight {
        min-height: auto;
        flex-direction: row;
        align-items: center;
    }

    .product-feature-grid,
    .product-start-grid,
    .product-installation-gallery {
        grid-template-columns: 1fr;
    }

}
