/* Product detail page specific styles. Shared header, sticky search and footer live in common.css. */

.product-detail-page {
    background: var(--bg);
}

.product-header-search {
    flex: 3;
    min-width: 0;
}

.product-header-search .search-form {
    height: 40px;
    flex: 1;
    border: 1px solid var(--orange-deep);
}

.product-header-search .search-form input {
    font-size: 13px;
}

.product-header-search .search-form_button {
    padding: 0 35px;
    font-size: 16px;
}

.product-breadcrumb {
    padding: 22px 24px 24px 24px;
    color: var(--text-mute);
}

.product-breadcrumb .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 0px;
}

.product-breadcrumb_path {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 6;
    flex-shrink: 0;
    color: var(--text-mute);
    font-size: 14px;
    white-space: nowrap;
}

.product-breadcrumb_path a {
    color: var(--text-sub);
    transition: color .18s;
}

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

.product-breadcrumb_path span {
    color: #ccc;
}

.product-breadcrumb_path b {
    color: var(--text);
    font-weight: 700;
}

.product-main {
    padding-bottom: 40px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 24px;
    align-items: start;
}

.product-content,
.product-sidebar {
    min-width: 0;
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-hero-card,
.product-section,
.product-side-card {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, .045), 0 2px 8px rgba(15, 23, 42, .025);
}

.product-hero-card {
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.product-hero-card::before {
    content: "";
    position: absolute;
    right: -52px;
    top: -56px;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: rgba(255, 87, 34, .055);
    pointer-events: none;
}

.product-gallery,
.product-summary {
    position: relative;
    z-index: 1;
}

.product-gallery-main {
    width: 100%;
    height: 430px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f8fa;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.product-thumbs-viewport {
    width: 420px;
    overflow: hidden;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    width: max-content;
    transition: transform .22s;
    will-change: transform;
}

.product-thumb-nav {
    width: 28px;
    height: 76px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, color .18s, border-color .18s;
}

.product-thumb-nav:hover {
    background: var(--orange-soft);
    border-color: var(--orange-line);
    color: var(--orange-deep);
}

.product-thumb-nav :is(svg, img) {
    width: 18px;
    height: 18px;
}

.product-thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
}

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

.product-thumb.is-active {
    border: 2px solid var(--orange-deep);
    box-shadow: 0 0 0 2px rgba(255, 80, 0, .08);
}

.product-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-tag {
    background: var(--orange-soft);
    color: var(--orange-deep);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.product-subtag {
    font-size: 12px;
    color: #9ca3af;
}

.product-title {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 28px;
    line-height: 1.32;
    font-weight: 800;
}

.product-desc {
    margin: 0 0 18px;
    max-width: 680px;
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.65;
}

.product-price-box {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
    padding: 17px 20px;
    border: 1px solid var(--orange-line);
    border-radius: 12px;
    background: linear-gradient(90deg, #fff7f1, #fff);
}

.product-price-box span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-mute);
    font-size: 13px;
}

.product-price-box strong {
    display: block;
    color: var(--orange-deep);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.product-price-box em {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.product-price-box p {
    margin: 0 0 4px;
    color: var(--text-mute);
    font-size: 13px;
}

.product-key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.product-key-stats div {
    padding: 13px 16px;
    border-right: 1px solid #eee;
    background: #fff;
}

.product-key-stats div:last-child {
    border-right: 0;
}

.product-key-stats span,
.product-param-grid span {
    display: block;
    color: var(--text-mute);
    font-size: 12px;
}

.product-key-stats b,
.product-param-grid b {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 14px;
}

.product-param-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.product-param-grid div {
    display: grid;
    grid-template-columns: 88px 1fr;
    min-height: 38px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.product-param-grid span {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f5f5;
}

.product-param-grid b {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 12px;
    color: #555;
    font-weight: 500;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.product-actions span {
    color: var(--text-mute);
    font-size: 13px;
}

.product-btn {
    height: 44px;
    padding: 0 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    transition: filter .18s, background .18s, color .18s, border-color .18s;
}

.product-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
}

.product-btn-outline {
    border: 1px solid var(--orange-deep);
    color: var(--orange-deep);
    background: #fff;
}

.product-btn:hover {
    filter: brightness(1.05);
}

.product-tabs {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    height: 48px;
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.product-tabs button {
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-right: 1px solid #f0f0f0;
    background: #fff;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.product-tabs button:hover,
.product-tabs button.is-active {
    background: var(--orange-soft);
    color: var(--orange-deep);
}

.product-section {
    margin-top: 20px;
    padding: 26px;
    border-radius: 16px;
    scroll-margin-top: 78px;
}

.product-section-title,
.product-side-title {
    margin: 0 0 18px;
    padding-left: 12px;
    border-left: 4px solid var(--orange-deep);
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.product-intro {
    /* display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 24px;
    align-items: start; */
}

.product-intro p {
    margin: 0;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.85;
}

.product-intro p+p {
    margin-top: 12px;
}

.product-intro-image {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f6;
}

.product-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.product-advantage-grid div {
    min-height: 102px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}

.product-advantage-grid b {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
}

.product-advantage-grid span {
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.product-spec-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.product-spec-table div {
    display: grid;
    grid-template-columns: 88px 1fr;
    min-height: 42px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-spec-table div:nth-child(4n) {
    border-right: 0;
}

.product-spec-table div:nth-last-child(-n+4) {
    border-bottom: 0;
}

.product-spec-table span,
.product-spec-table b {
    display: flex;
    align-items: center;
    padding: 10px 12px;
}

.product-spec-table span {
    color: var(--text-mute);
    background: #fafafa;
}

.product-spec-table b {
    color: #555;
    font-weight: 500;
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
}

.contact-info,
.contact-map {
    min-height: 300px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.contact-info {
    padding: 22px;
}

.contact-info h3 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.contact-info dl {
    margin: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    row-gap: 14px;
    column-gap: 12px;
}

.contact-info dt {
    color: var(--text-mute);
}

.contact-info dd {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.contact-map {
    position: relative;
    overflow: hidden;
    background: #eef3f7;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(61, 111, 209, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 111, 209, .08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.map-road {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(209, 213, 219, .8);
}

.map-road-a {
    left: -30px;
    right: -30px;
    top: 118px;
    height: 34px;
    transform: rotate(-8deg);
}

.map-road-b {
    top: -40px;
    bottom: -40px;
    left: 58%;
    width: 32px;
    transform: rotate(22deg);
}

.map-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 230px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--orange-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
    transform: translate(-50%, -50%);
}

.map-marker span {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    background: var(--orange-deep);
    transform: rotate(-45deg);
}

.map-marker span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.map-marker strong,
.map-marker em {
    display: block;
    transform: none;
}

.map-marker strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
}

.map-marker em {
    margin-top: 4px;
    color: var(--text-mute);
    font-style: normal;
    font-size: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.related-card {
    display: block;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}

.related-card:hover {
    border-color: var(--orange-line);
    box-shadow: var(--shadow-hover);
}

.related-card img {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.related-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 15px;
}

.related-card span {
    display: block;
    margin-top: 6px;
    color: var(--orange-deep);
    font-weight: 800;
}

.product-side-card {
    border-radius: 14px;
    padding: 20px;
}

.supplier-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.supplier-card-head img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.supplier-card-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.35;
}

.supplier-card-head p {
    display: flex;
    gap: 6px;
    margin: 7px 0 0;
}

.supplier-card-head span {
    padding: 2px 6px;
    border: 1px solid var(--orange-line);
    border-radius: 4px;
    background: var(--orange-soft);
    color: var(--orange-deep);
    font-size: 11px;
}

.supplier-card-meta p {
    margin: 8px 0;
    color: var(--text-sub);
    line-height: 1.55;
}

.supplier-card-meta b {
    color: var(--text);
}

.side-outline-btn {
    display: inline-block;
    width: 100%;
    height: 40px;
    line-height: 38px;
    margin-top: 10px;
    border: 1px solid var(--orange-deep);
    border-radius: 8px;
    background: #fff;
    color: var(--orange-deep);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    transition: background .18s, color .18s;
}

.side-outline-btn:hover {
    background: var(--orange-deep);
    color: #fff;
}

.quick-inquiry form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-inquiry input,
.quick-inquiry textarea {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fafafa;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: 0;
    transition: border-color .18s, box-shadow .18s, background .18s;
}

.quick-inquiry input {
    height: 38px;
    padding: 0 12px;
}

.quick-inquiry textarea {
    height: 70px;
    resize: none;
    padding: 10px 12px;
}

.quick-inquiry input:focus,
.quick-inquiry textarea:focus {
    border-color: var(--orange-deep);
    box-shadow: 0 0 0 3px rgba(255, 80, 0, .08);
    background: #fff;
}

.quick-inquiry button {
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.side-related-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.side-related-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-related-item img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-related-item b,
.side-related-item em {
    display: block;
}

.side-related-item b {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
}

.side-related-item em {
    margin-top: 6px;
    color: var(--orange-deep);
    font-style: normal;
    font-weight: 800;
}

.product-toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    max-width: 420px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(34, 34, 34, .92);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity .2s, transform .2s;
}

.product-toast :is(svg, img) {
    color: #57d68d;
    flex-shrink: 0;
}

.product-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media(max-width:1420px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .product-hero-card {
        grid-template-columns: 460px minmax(0, 1fr);
    }

    .product-gallery-main {
        height: 430px;
    }
}
