/* PRODUCT DETAIL V2 PREVIEW */

.pd2 {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 24px 55px;
    color: #26352e;
    font: 15px/1.65 Arial, sans-serif;
    text-align: left;
}
.pd2 * { box-sizing: border-box; }
.pd2 a { color: #287456; }
.pd2 button, .pd2 input, .pd2 select {
    font: inherit;
}
.pd2 h1 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin: 18px 0 8px;
    color: #20362b;
}
.pd2 h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #284f3d;
}
.pd2 h3 {
    font-size: 16px;
    line-height: 1.5;
}
.pd2-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #66736c;
    font-size: 13px;
}
.pd2-catalog {
    font-size: 16px;
    color: #59675f;
    margin-bottom: 15px;
}
.pd2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.pd2-tags a, .pd2-tags span {
    border: 1px solid #cfe1d7;
    background: #f3f8f5;
    color: #35694e;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 13px;
}
.pd2-main {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    gap: 36px;
    align-items: start;
    margin-top: 26px;
}
.pd2-gallery, .pd2-purchase {
    min-width: 0;
}
.pd2-gallery-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.pd2-thumbnails {
    width: 78px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
}
.pd2-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 1px solid #dce2de;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
}
.pd2-thumb.selected {
    border: 2px solid #438f70;
}
.pd2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd2-image-column {
    flex: 1;
    min-width: 0;
}
.pd2-main-image {
    width: 100%;
    min-height: 360px;
    border: 1px solid #dce2de;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    cursor: zoom-in;
}
.pd2-main-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
}
.pd2-image-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 12px 0 3px;
    color: #5d6b63;
}
.pd2-image-controls button {
    background: white;
    border: 1px solid #dce2de;
    border-radius: 4px;
    padding: 4px 12px;
    color: #438f70;
}
.pd2-image-hint {
    font-size: 12px;
    color: #68776e;
    text-align: center;
}
.pd2-image-description {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    font-weight: normal;
    overflow-wrap: anywhere;
}
.pd2-no-image {
    min-height: 320px;
    display: grid;
    place-items: center;
    background: #f7f9f8;
    border: 1px solid #dce2de;
    color: #68776e;
}
.pd2-order-card {
    padding: 24px;
    border: 1px solid #dce5df;
    border-radius: 7px;
    background: #fff;
}
.pd2-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0ee;
}
.pd2-order-row label {
    margin: 0;
}
.pd2-order-row strong {
    text-align: right;
}
.pd2-in-stock { color: #25834d; }
.pd2-other-stock { color: #a45a20; }
.pd2-order-row select {
    min-width: 135px;
    max-width: 60%;
    padding: 7px 10px;
    border: 1px solid #ccd7d0;
    border-radius: 4px;
    background: #fff;
}
.pd2-price { font-size: 23px; }
.pd2-quantity-control {
    display: flex;
    align-items: stretch;
}
.pd2-quantity-control button,
.pd2-quantity-control input {
    border: 1px solid #ccd7d0;
    background: #fff;
    text-align: center;
    padding: 5px;
}
.pd2-quantity-control button { width: 34px; }
.pd2-quantity-control input { width: 65px; }
.pd2-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.pd2-subtotal strong { font-size: 24px; }
.pd2-primary, .pd2-secondary {
    display: block;
    width: 100%;
    border-radius: 4px;
    padding: 12px;
    font-weight: 700 !important;
    text-align: center;
}
.pd2-primary {
    color: #fff;
    background: #438f70;
    border: 1px solid #438f70;
}
.pd2-primary:hover { background: #32775a; }
.pd2-secondary {
    color: #35775a;
    background: #fff;
    border: 1px solid #438f70;
    margin-top: 12px;
}
.pd2-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 20px;
    font-size: 14px;
}
.pd2-key-info { margin-top: 28px; }
.pd2-section { margin-top: 38px; }
.pd2-section > h2 {
    padding-bottom: 12px;
    border-bottom: 2px solid #438f70;
}
.pd2-table { margin: 0; }
.pd2-table > div {
    display: grid;
    grid-template-columns: minmax(135px, 26%) minmax(0, 1fr);
    border-bottom: 1px solid #e4eae6;
}
.pd2-table > div:nth-child(odd) {
    background: #f5f8f6;
}
.pd2-table dt, .pd2-table dd {
    margin: 0;
    padding: 12px 15px;
    overflow-wrap: anywhere;
    text-align: left;
}
.pd2-table dt { font-weight: 600; }
.pd2-table dd { font-weight: normal; }
.pd2-key-info .pd2-table > div {
    grid-template-columns: 42% 58%;
}
.pd2-publication {
    padding: 16px 0;
    border-bottom: 1px solid #e4eae6;
}
.pd2-related {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.pd2-related-card {
    border: 1px solid #dce5df;
    padding: 16px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}
.pd2-related-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}
.pd2-related-cart {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}
.pd2-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 42px;
}
.pd2-service-grid > section {
    border: 1px solid #dce5df;
    padding: 20px;
    border-radius: 5px;
    overflow-wrap: anywhere;
}
.pd2-service-grid p { margin: 7px 0; }
.pd2-lightbox {
    position: fixed;
    inset: 0;
    width: max-content;
    max-width: 94vw;
    max-height: 94vh;
    padding: 40px 18px 18px;
    margin: auto;
    background: #fff;
    border: 0;
    border-radius: 6px;
}
.pd2-lightbox::backdrop {
    background: rgba(0,0,0,.78);
}
.pd2-lightbox img {
    display: block;
    max-width: 88vw;
    max-height: 82vh;
    object-fit: contain;
}
#pd2-close-zoom {
    position: absolute;
    top: 4px;
    right: 12px;
    border: 0;
    background: white;
    font-size: 26px;
}
.pd2 button:focus-visible,
.pd2 a:focus-visible {
    outline: 2px solid #287456;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .pd2-main { grid-template-columns: 1fr; gap: 26px; }
    .pd2-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd2-service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .pd2 { padding: 18px 14px 35px; }
    .pd2 h1 { font-size: 24px; }
    .pd2-gallery-layout { flex-direction: column-reverse; }
    .pd2-image-column { width: 100%; }
    .pd2-thumbnails {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    .pd2-main-image { min-height: 240px; padding: 10px; }
    .pd2-order-card { padding: 16px; }
    .pd2-table > div { grid-template-columns: 1fr; }
    .pd2-table dt { padding-bottom: 3px; }
    .pd2-table dd { padding-top: 3px; }
    .pd2-related-card { padding: 10px; }
}


/* PRODUCT DETAIL HIDE SUBTOTAL V1 */

#pd2-root .pd2-subtotal {
    display: none !important;
}



/* PRODUCT DETAIL COMPACT COLUMNS V8 */

#pd2-root {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

#pd2-root .pd2-main {
    align-items: start !important;
    gap: 26px !important;
}

#pd2-root .pd2-purchase {
    display: block !important;
    align-self: start !important;
    width: 100%;
    max-width: 380px;
    min-width: 0;
}

#pd2-root .pd2-order-card {
    display: block !important;
    padding: 12px !important;
}

#pd2-root .pd2-order-card > h2 {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 8px !important;
}

/* Align labels and values in two compact columns */

#pd2-root .pd2-order-row {
    display: grid !important;
    grid-template-columns:
        minmax(0, 46fr)
        minmax(0, 54fr);
    align-items: center !important;
    justify-content: start !important;
    column-gap: 12px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    min-height: 30px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

#pd2-root .pd2-order-row > * {
    min-width: 0;
    text-align: left !important;
    justify-self: start !important;
}

#pd2-root .pd2-order-row strong,
#pd2-root .pd2-order-row label,
#pd2-root .pd2-order-row span {
    font-size: 13px !important;
    text-align: left !important;
}

#pd2-root .pd2-order-row select {
    width: 110px !important;
    max-width: 100% !important;
    height: 28px !important;
    padding: 2px 5px !important;
    font-size: 13px !important;
}

#pd2-root .pd2-order-row .pd2-price {
    font-size: 18px !important;
}

#pd2-root .pd2-quantity-control {
    justify-content: flex-start !important;
    max-width: 100%;
}

#pd2-root .pd2-quantity-control button {
    width: 25px !important;
    height: 28px !important;
    padding: 0 !important;
}

#pd2-root .pd2-quantity-control input {
    width: 38px !important;
    height: 28px !important;
    padding: 0 !important;
}

#pd2-root .pd2-subtotal {
    display: none !important;
}

/* Compact buttons */

#pd2-root .pd2-primary,
#pd2-root .pd2-secondary {
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

#pd2-root .pd2-resources {
    padding-top: 8px !important;
    gap: 4px 10px !important;
    font-size: 12px !important;
    flex-wrap: wrap;
}

/* Key product information */

#pd2-root .pd2-key-info {
    margin-top: 12px !important;
    padding-top: 0 !important;
}

#pd2-root .pd2-key-info h2 {
    font-size: 17px !important;
    margin-bottom: 6px !important;
}

#pd2-root .pd2-key-info .pd2-table > div {
    grid-template-columns:
        minmax(0, 46fr)
        minmax(0, 54fr) !important;
    min-height: 0 !important;
}

#pd2-root .pd2-key-info .pd2-table dt,
#pd2-root .pd2-key-info .pd2-table dd {
    padding: 5px 7px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
}

@media (min-width: 1101px) {

    #pd2-root .pd2-main {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 380px) !important;
    }

}

@media (min-width: 901px)
       and (max-width: 1100px) {

    #pd2-root .pd2-main {
        grid-template-columns:
            minmax(0, 60fr)
            minmax(0, 40fr) !important;
    }

}

@media (max-width: 900px) {

    #pd2-root .pd2-main {
        grid-template-columns: 1fr !important;
    }

    #pd2-root .pd2-purchase {
        max-width: none;
    }

}



/* PRODUCT DETAIL COA FOLD V1 */

#pd2-root .pd2-coa-details {
    display: block;
    max-width: 100%;
    min-width: 0;
}

#pd2-root .pd2-coa-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    cursor: pointer;
    color: #19734d;
    font-size: 13px;
    font-weight: 500;
    list-style: none;
}

#pd2-root .pd2-coa-summary::-webkit-details-marker {
    display: none;
}

#pd2-root .pd2-coa-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}

#pd2-root .pd2-coa-details[open] .pd2-coa-arrow {
    transform: rotate(225deg);
    margin-top: 3px;
}

#pd2-root .pd2-coa-panel {
    margin-top: 9px;
    padding: 12px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    color: #333;
    text-align: left;
}

#pd2-root .pd2-coa-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

#pd2-root .pd2-coa-close {
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    padding: 0 3px;
    line-height: 1;
}

#pd2-root .pd2-coa-form {
    display: block;
    margin: 0;
}

#pd2-root .pd2-coa-form label {
    display: block;
    margin: 8px 0 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}

#pd2-root .pd2-coa-form input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 5px 8px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
    color: #333;
}

#pd2-root .pd2-coa-catalog {
    background: #f5f5f5;
}

#pd2-root .pd2-coa-download {
    width: 100%;
    margin-top: 10px;
    padding: 7px 8px;
    border: 0;
    border-radius: 4px;
    background: #19734d;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

#pd2-root .pd2-coa-download:hover {
    background: #145c3e;
}

#pd2-root .pd2-coa-help {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #666;
}

