
/* =====================================================
   FELIX NGUYEN SHOP
   ACCESSORY PRODUCT DETAIL
   CLEAN & COMPACT LAYOUT
   ===================================================== */

/* BASE */

.accessory-detail {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    color: #222;
}

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

/* BREADCRUMB */

.accessory-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 18px 0;
    color: #777;
    font-size: 13px;
}

.accessory-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.accessory-breadcrumb a:hover {
    color: #ed721c;
}

.accessory-breadcrumb span:last-child {
    color: #222;
}

/* PRODUCT HERO */

.accessory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 42px;
    align-items: start;
    padding: 5px 0 38px;
    border-bottom: 1px solid #ededed;
}

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

.accessory-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border-radius: 12px;
}

.accessory-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.accessory-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 5px;
}

.accessory-thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.accessory-thumbnail:hover,
.accessory-thumbnail.active {
    border-color: #ed721c;
    box-shadow: 0 0 0 1px #ed721c;
}

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

/* PRODUCT INFORMATION */

.accessory-information {
    padding-top: 8px;
}

.accessory-category-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #ed721c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.accessory-information h1 {
    margin: 0 0 15px;
    color: #222;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.35;
    font-weight: 750;
}

.accessory-summary {
    margin: 0 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.accessory-contact-price {
    padding: 17px 20px;
    margin-bottom: 20px;
    background: #fff8f2;
    border-left: 3px solid #ed721c;
    border-radius: 7px;
}

.accessory-price-label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 13px;
}

.accessory-contact-price strong {
    display: block;
    color: #ed721c;
    font-size: 25px;
}

.accessory-contact-price p {
    margin: 6px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.accessory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.accessory-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.accessory-button-primary {
    color: #fff;
    background: #ed721c;
    border: 1px solid #ed721c;
}

.accessory-button-primary:hover {
    color: #fff;
    background: #d85f0c;
    border-color: #d85f0c;
}

.accessory-button-secondary {
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
}

.accessory-button-secondary:hover {
    color: #ed721c;
    border-color: #ed721c;
}

.accessory-trust-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.accessory-trust-note span {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: #299b65;
    border-radius: 50%;
    font-size: 12px;
}

/* COMMON SECTION */

.accessory-section {
    margin: 0 0 42px;
}

.accessory-section-heading {
    margin-bottom: 18px;
}

.accessory-section-heading > span {
    display: inline-block;
    margin-bottom: 6px;
    color: #ed721c;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.7px;
}

.accessory-section-heading h2 {
    margin: 0;
    color: #222;
    font-size: clamp(21px, 2.5vw, 27px);
    line-height: 1.4;
}

.accessory-section-heading p {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

/* PRODUCT SPECIFICATIONS */

.accessory-product-information {
    padding-top: 35px;
}

.accessory-specification-wrapper {
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 9px;
}

.accessory-specification-table {
    width: 100%;
    border-collapse: collapse;
}

.accessory-specification-table tr:nth-child(odd) {
    background: #f8f9fa;
}

.accessory-specification-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #eaeaea;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
}

.accessory-specification-table tr:last-child td {
    border-bottom: 0;
}

.accessory-specification-table td:first-child {
    width: 32%;
    color: #666;
    font-weight: 600;
}

.accessory-specification-table td:last-child {
    color: #222;
    font-weight: 600;
}

/* DESCRIPTION */

.accessory-content-section {
    padding-top: 5px;
}

.accessory-description {
    color: #444;
    font-size: 15px;
    line-height: 1.85;
}

.accessory-description p {
    margin: 0 0 13px;
}

.accessory-description ul,
.accessory-description ol {
    padding-left: 23px;
    margin: 10px 0 17px;
}

.accessory-description li {
    padding-left: 4px;
    margin-bottom: 7px;
}

.accessory-description strong {
    color: #222;
}

/* PRODUCT IMAGE GRID */

.accessory-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.accessory-image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border-radius: 9px;
}

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

.accessory-image-card:hover img {
    transform: scale(1.035);
}

/* BUYING NOTE */

.accessory-buying-guide {
    padding: 20px 22px;
    margin-top: 24px;
    background: #fff8f2;
    border-left: 3px solid #ed721c;
    border-radius: 7px;
}

.accessory-buying-guide-content h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 17px;
    line-height: 1.5;
}

.accessory-buying-note {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

.accessory-buying-note p {
    margin: 0 0 8px;
}

.accessory-buying-note p:last-child {
    margin-bottom: 0;
}

.accessory-buying-note ul {
    padding-left: 21px;
    margin: 8px 0;
}

.accessory-buying-note li {
    margin-bottom: 6px;
}

/* CONTACT */

.accessory-contact {
    padding: 38px 25px;
    margin: 42px 0 45px;
    color: #fff;
    background: #242424;
    border-radius: 11px;
    text-align: center;
}

.accessory-contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.accessory-contact-content > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff9a50;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.8px;
}

.accessory-contact-content h2 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.4;
}

.accessory-contact-content p {
    margin: 0 auto 20px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.8;
}

/* RESPONSIVE: TABLET */

@media (max-width: 900px) {
    .accessory-hero {
        gap: 27px;
    }

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

/* RESPONSIVE: MOBILE */

@media (max-width: 650px) {

    .accessory-detail {
        width: calc(100% - 28px);
    }

    .accessory-breadcrumb {
        padding: 14px 0;
        gap: 6px;
        font-size: 12px;
    }

    .accessory-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 27px;
    }

    .accessory-main-image {
        border-radius: 9px;
    }

    .accessory-thumbnail {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .accessory-information {
        padding-top: 0;
    }

    .accessory-information h1 {
        margin-bottom: 12px;
        font-size: 25px;
    }

    .accessory-summary {
        margin-bottom: 17px;
        font-size: 14px;
    }

    .accessory-contact-price {
        padding: 15px 16px;
        margin-bottom: 17px;
    }

    .accessory-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .accessory-button {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 13px;
    }

    .accessory-trust-note {
        margin-top: 15px;
        font-size: 12px;
    }

    .accessory-section {
        margin-bottom: 32px;
    }

    .accessory-product-information {
        padding-top: 27px;
    }

    .accessory-section-heading {
        margin-bottom: 14px;
    }

    .accessory-section-heading h2 {
        font-size: 21px;
    }

    .accessory-specification-table td {
        padding: 11px 10px;
        font-size: 13px;
    }

    .accessory-specification-table td:first-child {
        width: 38%;
    }

    .accessory-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .accessory-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 17px;
    }

    .accessory-buying-guide {
        padding: 17px 15px;
        margin-top: 19px;
    }

    .accessory-buying-guide-content h3 {
        font-size: 16px;
    }

    .accessory-buying-note {
        font-size: 13px;
    }

    .accessory-contact {
        padding: 30px 17px;
        margin: 30px 0;
    }

    .accessory-contact-content h2 {
        font-size: 22px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .accessory-thumbnail,
    .accessory-button,
    .accessory-image-card img {
        transition: none;
    }
}
