/* MEGPA product detail template */
.product-detail-page .container { width: min(1280px, 89%); }
.product-detail-page .footer-contact { display: none; }

.product-detail-summary { min-height: 752px; padding: 61px 0 63px; background: #f3f3f3; }
.product-detail-layout { display: grid; grid-template-columns: 628fr 617fr; align-items: start; gap: 35px; }
.detail-product-image { display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; background: #fff; border: 1px solid #e5e5e5; }
.detail-product-image img { width: 100%; height: 100%; object-fit: contain; }
.detail-product-info { min-width: 0; }
.detail-product-category { margin: 0 0 16px; color: #666; font-size: 15px; line-height: 1.2; }
.detail-product-info h2 { margin: 0; color: #292929; font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.detail-product-price { display: flex; align-items: baseline; gap: 14px; margin: 12px 0 20px; color: #303030; font-size: clamp(27px, 2.5vw, 36px); font-weight: 700; line-height: 1.15; }
.detail-product-price span { color: #737373; font-size: 14px; font-weight: 400; }
.detail-purchase-row { display: flex; align-items: center; gap: 16px; }
.detail-quantity { display: grid; width: 120px; height: 50px; flex: 0 0 120px; grid-template-columns: 1fr 1fr 1fr; border: 1px solid var(--color-orange); background: #fff; }
.detail-quantity button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--color-orange); font-size: 19px; cursor: pointer; }
.detail-quantity button:first-child, .detail-quantity output { border-right: 1px solid #e6e6e6; }
.detail-quantity output { display: grid; place-items: center; color: #343434; font-size: 14px; }
.detail-add-button { display: inline-flex; min-width: 143px; height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--color-orange); background: var(--color-orange); color: #fff; font-size: 12px; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.detail-add-button:hover:not(:disabled) { border-color: #d94e00; background: #d94e00; }
.detail-add-button:disabled { opacity: .7; cursor: wait; }
.detail-product-description { margin: 24px 0 0; color: #555; font-size: 16px; line-height: 1.48; }

.product-tabs-section { min-height: 820px; padding: 78px 0 84px; background: #fff; }
.product-tabs-container { width: min(1280px, 89%); }
.product-tabs { display: flex; align-items: stretch; }
.product-tab { display: inline-flex; min-width: 120px; height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid #dedede; background: #ededed; color: #777; font-size: 14px; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.product-tab + .product-tab { border-left: 0; }
.product-tab.is-active { position: relative; z-index: 1; border-color: var(--color-orange); background: #fff; color: var(--color-orange); }
.product-tab span { font-size: 14px; }
.product-information-panel { border: 1px solid #e0e0e0; background: #faf8f6; }
.product-tab-panel { padding: 46px 60px 54px; }
.product-description-panel { min-height: 610px; }
.product-tab-panel h3 { margin: 0 0 17px; color: #292929; font-size: 24px; font-weight: 600; line-height: 1.25; }
.description-list { margin: 0; padding: 0; list-style: none; color: #5a5a5a; font-size: 16px; line-height: 1.82; }
.product-description-panel hr { height: 1px; margin: 28px 0 29px; border: 0; background: #dedbd8; }
.generic-product-description { max-width: 1000px; margin: 0; color: #555; font-size: 15px; line-height: 1.55; }
.product-highlight-panel { min-height: 879px; padding: 49px 60px; }
.product-spec-scroll { width: 100%; overflow-x: auto; }
.product-specifications { width: 100%; min-width: 760px; border-collapse: collapse; border: 1px solid #bdb9b5; background: #fff; color: #303030; font-size: 15px; line-height: 1.35; text-align: left; }
.product-specifications th, .product-specifications td { min-height: 59px; padding: 17px 30px; border: 1px solid #bdb9b5; vertical-align: middle; }
.product-specifications th { width: 40%; background: #fff; font-weight: 500; }
.product-specifications tr:first-child th, .product-specifications tr:first-child td { background: #fffaf5; }

.related-products-section { min-height: 790px; padding: 82px 0 64px; background: #f3f3f3; }
.related-products-container { width: min(1280px, 89%); }
.related-products-section .section-heading { margin-bottom: 33px; }
.related-products-section .section-heading h2 { font-size: 40px; }
.related-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.related-product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e1e1e1; background: #fff; }
.related-product-image { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid #e7e7e7; }
.related-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.related-product-card:hover .related-product-image img { transform: scale(1.025); }
.related-product-info { display: flex; min-height: 243px; flex: 1; flex-direction: column; align-items: stretch; padding: 22px 24px 24px; }
.related-product-category { margin: 0 0 7px; color: #777; font-size: 14px; line-height: 1.3; }
.related-product-info h3 { margin: 0; color: #2b2b2b; font-size: 17px; font-weight: 600; line-height: 1.3; }
.related-product-info h3 a:hover { color: var(--color-orange); }
.related-product-price { margin: 15px 0 0; color: #333; font-size: 28px; font-weight: 700; line-height: 1.15; }
.related-product-info .catalog-add-button { height: 50px; min-height: 50px; margin-top: auto; font-size: 12px; }

@media (max-width: 1180px) {
    .detail-product-layout { grid-template-columns: 1fr 1fr; gap: 24px; }
    .detail-product-info h2 { font-size: 27px; }
    .detail-product-price { font-size: 29px; }
    .detail-product-description { font-size: 14px; }
    .related-products-section { min-height: 0; }
    .related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .related-product-info { padding: 18px 16px; }
    .related-product-info h3 { font-size: 15px; }
    .related-product-price { font-size: 24px; }
}

@media (max-width: 980px) {
    .product-detail-summary { min-height: 0; padding-block: 40px; }
    .detail-product-layout { grid-template-columns: 1fr 1fr; }
    .detail-product-image { align-self: center; }
    .detail-product-info h2 { font-size: 23px; }
    .detail-product-price { flex-wrap: wrap; gap: 5px 10px; font-size: 25px; }
    .detail-product-description { font-size: 13px; }
    .product-tabs-section { min-height: 0; padding-block: 48px; }
    .product-tab-panel, .product-highlight-panel { min-height: 0; padding: 36px; }
    .related-products-section { padding-block: 50px; }
    .related-products-section .section-heading h2 { font-size: 34px; }
    .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related-product-info { min-height: 220px; }
}

@media (max-width: 700px) {
    .product-detail-page .container, .product-tabs-container, .related-products-container { width: calc(100% - 36px); }
    .product-detail-summary { padding-block: 24px 32px; }
    .detail-product-layout { grid-template-columns: 1fr; gap: 20px; }
    .detail-product-image { width: 100%; max-height: 360px; aspect-ratio: 1.1; }
    .detail-product-info h2 { font-size: 24px; }
    .detail-product-price { margin-block: 10px 16px; font-size: 28px; }
    .detail-purchase-row { gap: 10px; }
    .detail-quantity { width: 106px; height: 44px; flex-basis: 106px; }
    .detail-add-button { height: 44px; min-width: 132px; }
    .detail-product-description { margin-top: 18px; font-size: 13px; }
    .product-tabs-section { padding-block: 36px; }
    .product-tab { min-width: 108px; height: 42px; font-size: 12px; }
    .product-tab-panel, .product-highlight-panel { padding: 26px 20px; }
    .product-tab-panel h3 { font-size: 19px; }
    .description-list { font-size: 13px; line-height: 1.8; }
    .product-description-panel hr { margin-block: 22px; }
    .product-specifications { min-width: 640px; font-size: 12px; }
    .product-specifications th, .product-specifications td { padding: 13px 15px; }
    .related-products-section { padding-block: 42px; }
    .related-products-section .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
    .related-products-section .section-heading h2 { font-size: 30px; }
    .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .related-product-image { aspect-ratio: .92; }
    .related-product-info { min-height: 208px; padding: 13px 11px; }
    .related-product-category { font-size: 11px; }
    .related-product-info h3 { font-size: 13px; }
    .related-product-price { margin-top: 10px; font-size: 20px; }
    .related-product-info .catalog-add-button { min-height: 38px; height: 38px; padding-inline: 6px; font-size: 10px; }
}
