.product-detail,
.related-section {
    max-width: 1200px;
}

.product-topbar {
    background: transparent;
    box-shadow: none;
    border: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.product-back-link,
.product-navi-text {
    color: #171717;
    text-decoration: none;
}

.product-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.product-back-link:hover,
.product-navi-text:hover {
    color: #555;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
}

.product-breadcrumb .product-navi-text {
    font-weight: 500 !important;
}

.breadcrumb-separator {
    color: #8b8b8b;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 32px;
    align-items: start;
}

.product-media-panel,
.product-summary-panel,
.product-info-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.product-media-panel {
    padding: 18px;
}

.product-gallery {
    max-width: 100%;
    overflow: hidden;
}

.product-main-img {
    width: 100%;
    height: 620px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f7f7f5;
    border-radius: 6px;
}

.product-main-img-empty {
    padding: 80px;
}

.carousel-control-next,
.carousel-control-prev {
    width: 46px;
    background-color: rgba(0, 0, 0, 0.12);
}

.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    justify-content: center;
}

.product-thumbs .thumb {
    border: 2px solid transparent;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    flex: 0 0 auto;
    cursor: pointer;
}

.product-thumbs .thumb img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.product-thumbs .thumb.active {
    border-color: #111;
}

.product-thumbs::-webkit-scrollbar,
.related-slider::-webkit-scrollbar {
    height: 6px;
}

.product-thumbs::-webkit-scrollbar-thumb,
.related-slider::-webkit-scrollbar-thumb {
    background: #dedede;
    border-radius: 999px;
}

.product-summary-panel {
    position: sticky;
    top: 96px;
    padding: 28px;
}

.product-eyebrow {
    margin: 0 0 10px;
    color: #696969;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-title {
    margin: 0 0 18px;
    color: #111;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.request-price {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    margin-bottom: 22px;
    color: #111;
    background: #ffbd84;
    border: 1px solid #f1a766;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.summary-facts {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-fact {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ededed;
}

.summary-fact span {
    color: #757575;
    font-size: 0.92rem;
}

.summary-fact strong {
    color: #1e1e1e;
    text-align: right;
    font-size: 0.95rem;
}

.enquiry-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.cart-add-panel {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
}

.cart-quantity-control {
    display: grid;
    gap: 5px;
}

.cart-quantity-control label {
    color: #666;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-quantity-control input {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.enquiry-btn i {
    font-size: 16px;
    flex-shrink: 0;
}

.enquiry-btn:hover {
    transform: translateY(-1px);
}

.enquiry-btn-primary {
    color: #fff;
    background: #1d7d49;
    border: 1px solid #1d7d49;
}

.enquiry-btn-primary:hover {
    color: #fff;
    background: #17683d;
}

.enquiry-btn-secondary {
    color: #161616;
    background: #fff;
    border: 1px solid #cfcfcf;
}

.enquiry-btn-secondary:hover {
    color: #161616;
    border-color: #909090;
}

.add-cart-btn {
    color: #111;
    background: #ffbd84;
    border: 1px solid #f1a766;
}

.add-cart-btn:hover {
    color: #111;
    background: #f2aa6a;
}

.cart-action-message {
    min-height: 20px;
    color: #1d7d49;
    font-size: 0.9rem;
    font-weight: 800;
}

.cart-action-message.error {
    color: #b42318;
}

.enquiry-note {
    display: flex;
    gap: 10px;
    padding: 14px;
    color: #4f4f4f;
    background: #f7f7f5;
    border: 1px solid #ededed;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.enquiry-note i {
    margin-top: 4px;
    color: #333;
}

.product-info-section {
    width: 100%;
    margin-top: 32px;
}

.product-info-card {
    padding: 32px;
}

.product-info-header {
    margin-bottom: 24px;
}

.product-info-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.product-info-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #111;
    border-radius: 2px;
}

.product-description {
    max-width: 860px;
    margin-bottom: 28px;
}

.product-description p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    background: #fafafa;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.related-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.related-controls {
    display: flex;
    gap: 8px;
}

.related-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #dedede;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-btn:hover {
    border-color: #9f9f9f;
    transform: translateY(-2px);
}

.related-btn.disabled {
    color: #bdbdbd;
    border-color: transparent;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
}

.related-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.related-item {
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 280px;
}

.related-item:hover {
    color: inherit;
}

.related-card {
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.related-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f7f7f5;
}

.related-card-body {
    min-height: 104px;
    padding: 12px;
    background-color: #f3f1ef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.related-name {
    color: #151515;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.related-price {
    align-self: flex-start;
    padding: 6px 10px;
    color: #111;
    background-color: #ffbd84;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.title-underline {
    width: 60px;
    margin: 0 auto 1rem auto;
    border: 0;
    padding-bottom: 3px;
    display: block !important;
}

.pswp img {
    object-fit: contain;
}

@media (max-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-summary-panel {
        position: static;
    }

    .product-main-img {
        height: 460px;
    }

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

@media (max-width: 768px) {
    .product-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-breadcrumb {
        justify-content: flex-start;
    }

    .product-media-panel,
    .product-summary-panel,
    .product-info-card {
        padding: 18px;
    }

    .product-main-img {
        height: 360px;
    }

    .product-title {
        font-size: 1.55rem;
    }

    .product-info-title {
        font-size: 1.35rem;
    }

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

    .related-item {
        width: 76%;
    }
}

@media (max-width: 576px) {
    .product-detail {
        padding-top: 28px !important;
    }

    .product-main-img {
        height: 300px;
    }

    .product-thumbs {
        justify-content: flex-start;
    }

    .summary-fact {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .summary-fact strong {
        text-align: left;
    }
}
