body.deye-product-detail {
    background: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

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

.p_breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.p_breadcrumbList {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.p_breadcrumbItem {
    display: flex;
    align-items: center;
    color: #666;
}

.p_breadcrumbItem + .p_breadcrumbItem::before {
    content: ">";
    margin: 0 8px;
    color: #999;
}

.p_breadcrumbItem a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.p_breadcrumbItem a:hover {
    color: var(--primary);
}

.p_breadcrumbItem span {
    color: #333;
    font-weight: 600;
}

.p_breadcrumbItem .fa-home {
    margin-right: 4px;
}

.detail-main {
    padding: 30px 0 60px;
    background: #fff;
}

.detail-main > .ui.container2 {
    max-width: 1400px;
}

.detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-left {
    flex: 0 0 62%;
    max-width: 62%;
}

.detail-right {
    flex: 0 0 38%;
    max-width: 38%;
}

.detail-gallery {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.detail-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    width: 80px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-item:hover {
    border-color: #ccc;
}

.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.detail-gallery-main {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 20px;
    position: relative;
}

.detail-gallery-main::before {
    content: "\f106";
    font-family: "FontAwesome";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.detail-gallery-main::after {
    content: "\f00e";
    font-family: "FontAwesome";
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-gallery-main:hover::before,
.detail-gallery-main:hover::after {
    color: #666;
}

.detail-gallery-main img {
    width: 100%;
    display: block;
    cursor: zoom-in;
    border-radius: 6px;
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.detail-share-title {
    margin: 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-share-icons {
    display: flex;
    gap: 6px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.share-icon:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.share-icon.facebook { background: #3b5998; }
.share-icon.twitter { background: #1da1f2; }
.share-icon.linkedin { background: #0077b5; }
.share-icon.pinterest { background: #bd081c; }

.detail-tabs {
    margin-top: 30px;
}

.p_tabName {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p_nameItem {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: var(--primary);
    border: none;
    border-bottom: none;
    margin-right: -1px;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s, color 0.2s;
}

.p_nameItem.active {
    background: var(--primary);
    color: #fff;
}

.p_tabContent {
    padding: 25px 0;
}

.p_detail {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.p_detail p {
    margin: 0 0 15px;
}

.p_detail img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.p_detail h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.spec-table td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #444;
}

.spec-table tr:nth-child(odd) {
    background: #f8f8f8;
}

.spec-table td p {
    margin: 0;
}

.detail-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.detail-sidebar-title {
    font-size: 26px;
    font-weight: 800;
    color: #222;
    margin: 0 0 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.detail-sidebar-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #e0e0e0;
}

.detail-sidebar .detail-contact-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.detail-sidebar .contact-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-sidebar .contact-icon i {
    color: #fff;
}

.detail-sidebar .contact-label {
    font-size: 14px;
    color: #444;
    margin-bottom: 3px;
}

.detail-sidebar .contact-value {
    font-size: 18px;
    font-weight: 700;
}

.detail-sidebar .contact-value a {
    color: var(--primary);
}

.detail-sidebar .contact-value a:hover {
    text-decoration: underline;
}

.detail-sidebar-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 0;
    border-top: 1px dotted #e0e0e0;
    border-bottom: 1px dotted #e0e0e0;
}

.detail-sidebar-certs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.detail-sidebar-certs span i {
    color: #666;
    font-size: 28px;
}

.detail-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.detail-sidebar-buttons .btn-inquire-now {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

.detail-sidebar-buttons .btn-related {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--primary);
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
}

.detail-sidebar-buttons .btn-related:hover {
    background: #f8f8f8;
}

.detail-sidebar-hint {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.5;
}

.detail-sidebar-hint a {
    color: var(--primary);
    font-weight: 700;
}

.detail-sidebar-hint a:hover {
    text-decoration: underline;
}

.detail-sidebar-category,
.detail-sidebar-tags {
    margin-top: 22px;
    padding-top: 0;
    border-top: none;
}

.sidebar-section-label {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.sidebar-category-links a {
    display: inline-block;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-category-links a:hover {
    background: #e8e8e8;
    color: #222;
}

.sidebar-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-tag-list span {
    display: inline-block;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #444;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-tag-list span:hover {
    background: #e8e8e8;
    color: #222;
}

.detail-inquiry-section {
    padding: 36px 0 50px;
    background: #fff;
}

.detail-inquiry-section > .ui.container2 {
    max-width: 1400px;
}

.inquiry-box {
    background: #fff;
    border-radius: 0;
    padding: 0;
    border: 0;
    width: 60%;
    max-width: 60%;
}

.inquiry-header {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 18px;
}

.inquiry-header h2 {
    margin: 0;
    min-width: 220px;
    padding: 16px 36px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--primary);
    text-align: center;
}

.inquiry-header::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--primary);
}

.inquiry-note {
    margin: 0 0 26px;
    font-size: 14px;
    color: #222;
    line-height: 1.7;
}

.inquiry-product-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #cfd8df;
    border-radius: 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.inquiry-product-row label {
    margin-right: 2px;
    font-weight: 600;
    color: #333;
}

.inquiry-product-name {
    color: #555;
}

.inquiry-field-row {
    display: flex;
    gap: 28px;
    margin-bottom: 16px;
}

.inquiry-field {
    flex: 1;
}

.inquiry-field input,
.inquiry-field-full textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8df;
    border-radius: 0;
    font-size: 15px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}

.inquiry-field input:focus,
.inquiry-field-full textarea:focus {
    border-color: var(--primary);
}

.inquiry-field input::placeholder,
.inquiry-field-full textarea::placeholder {
    color: #6b7a90;
}

.inquiry-field-full {
    margin-bottom: 18px;
}

.inquiry-field-full textarea {
    min-height: 100px;
}

.inquiry-submit-wrap {
    display: flex;
    justify-content: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.detail-related-section {
    padding: 50px 0;
    background: #fff;
}

.detail-related-section > .ui.container2 {
    max-width: 1400px;
}

.related-header p {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 25px;
}

.related-grid {
    display: flex;
    gap: 25px;
}

.related-item {
    flex: 1;
    min-width: 0;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.related-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.related-item-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.related-item-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-item:hover .related-item-img img {
    transform: scale(1.05);
}

.related-item-title {
    margin: 0;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
}

.related-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.related-item-title a:hover {
    color: var(--primary);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    display: block;
    border-radius: 4px;
}

@media (max-width: 1100px) {
    .detail-layout {
        flex-direction: column;
    }

    .detail-right {
        flex: none;
        width: 100%;
    }

    .detail-sidebar {
        position: static;
    }

    .related-grid {
        flex-wrap: wrap;
    }

    .related-item {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 767px) {
    .deye-product-detail .inner-page {
        margin-top: 0 !important;
    }

    .deye-product-detail .inner-page::before {
        display: none !important;
        content: none !important;
    }

    .deye-product-detail .inner-catList,
    .deye-product-detail .p_breadcrumb {
        display: none !important;
    }

    .deye-product-detail .detail-main {
        padding: 12px 0 40px;
    }

    .detail-gallery {
        flex-direction: column;
    }

    .detail-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        order: 2;
    }

    .thumb-item {
        width: 70px;
        height: 70px;
    }

    .detail-gallery-main {
        order: 1;
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-actions-row {
        flex-direction: column;
    }

    .btn-inquire-now,
    .btn-catalog {
        width: 100%;
        justify-content: center;
    }

    .detail-view-similar {
        flex-direction: column;
        gap: 15px;
    }

    .p_nameItem {
        padding: 10px 16px;
        font-size: 14px;
    }

    .p_detail h2 {
        font-size: 18px;
    }

    .inquiry-field-row {
        flex-direction: column;
    }

    .related-item {
        flex: none;
        width: 100%;
    }

    .related-grid {
        flex-direction: column;
    }

    .inquiry-box {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }


    .inquiry-header {
        flex-direction: column;
        align-items: stretch;
    }

    .inquiry-header h2 {
        min-width: 0;
        width: 100%;
    }

    .inquiry-header::after {
        display: none;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
