﻿/* ================= SHARED PAGE LAYOUT ================= */

.site-page {
    background: #f6f4ef;
    padding: 42px 0 55px 0;
}
.insp-side-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insp-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: #efefef;
    color: #1f2a44;
    text-decoration: none;
    border-radius: 4px;
    font-size: 20px;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}

.insp-side-item:hover {
    background: #e3e3e3;
}

.insp-side-item.active {
    color: #1f2a44;
}

.insp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #b3b3b3;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin-left: 16px;
}

.insp-side-item.active .insp-arrow {
    background: #27313b;
}

@media screen and (max-width: 900px) {
    .insp-side-item {
        font-size: 18px;
        padding: 18px 20px;
    }
}

.info-side .insp-side-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.info-side .insp-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 22px;
    background: #ececec;
    color: #223047;
    text-decoration: none;
    border-radius: 4px;
    font-size: 19px;
    line-height: 1.25;
}

.info-side .insp-side-item:hover {
    background: #e3e3e3;
    text-decoration: none;
}

.info-side .insp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    margin-left: 16px;
    border-radius: 50%;
    background: #b5b5b5;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.info-side .insp-side-item.active .insp-arrow {
    background: #26313a;
}

.info-side .insp-side-item span:first-child {
    display: block;
    flex: 1;
}

@media screen and (max-width: 900px) {
    .info-side .insp-side-item {
        font-size: 17px;
        padding: 18px 18px;
    }
}

/* ORDER PROCESS GRID */

/* PROCESS SECTION */

.woo-order-process {
    margin-top: 25px;
}

.order-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.process-step {
    position: relative;
    text-align: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* IMAGE */
.process-step img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* NUMBER BADGE */
.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #1f1f1f;
    color: #fff;
    font-size: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
}

/* TEXT */
.step-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

/* ARROWS (DESKTOP ONLY) */
.process-step::after {
    content: "➜";
    position: absolute;
    right: -12px;
    top: 40%;
    font-size: 16px;
    color: #999;
}

/* REMOVE ARROW EVERY 4TH ITEM */
.process-step:nth-child(4n)::after {
    content: none;
}


.woo-summary {
    float: right;
    width: 48%;
    box-sizing: border-box;
}

.woo-actions,
.woo-attributes {
    width: 100%;
    box-sizing: border-box;
}

.woo-attributes {
    border-collapse: collapse;
    margin: 0 0 24px 0;
    table-layout: fixed;
}

.woo-attributes th,
.woo-attributes td {
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
    box-sizing: border-box;
}

.woo-attributes th {
    width: 140px;
    background: #f4f4f4;
    font-weight: 600;
}

.woo-actions .wishlist-link,
.woo-actions .woo-enquiry-btn,
.woo-actions a,
.woo-actions button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.product-name { color: #1f1f1f; }
.product-category { color: #444444; }
.product-price { color: #4a3500; }
.product-description { color: #222222; }

.accordion-header {
    background: #f7f7f7;
    color: #1f1f1f;
}

.accordion-content {
    background: #ffffff;
    color: #222222;
}

.back-link { color: #1f1f1f; }

/* ================= RELATED PRODUCTS ================= */

.related-products {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 15px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.related-item {
    flex: 0 0 220px;
    width: 220px;
    text-align: center;
}

.related-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #ddd;
    display: block;
}

.related-name {
    font-size: 13px;
    margin-top: 6px;
    color: #222222;
    line-height: 1.4;
}

/* ================= PRODUCT PAGE ================= */

.woo-product-wrap { margin-top: 24px; }

.woo-gallery { float: left; width: 48%; }
.woo-summary { float: right; width: 48%; }

.woo-main-image {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    padding: 18px;
}

.woo-main-img {
    width: 100%;
    object-fit: contain;
}

.woo-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.woo-thumb {
    border: 1px solid #d8d8d8;
    background: #ffffff;
    padding: 8px;
}

.woo-thumb img {
    width: 100%;
    height: 95px;
    object-fit: contain;
}

.woo-title {
    font-size: 40px;
    color: #1f1f1f;
    margin-bottom: 12px;
}

.woo-meta-code {
    font-size: 16px;
    color: #444444;
    margin-bottom: 16px;
}

.woo-price {
    font-size: 32px;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 18px;
}

.woo-short-description {
    font-size: 18px;
    line-height: 1.7em;
    color: #2f2f2f;
    margin-bottom: 22px;
}

/* ================= ACTION BUTTONS ================= */

.woo-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.woo-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.woo-action-btn-dark {
    background: #25282c;
    color: #ffffff;
}

.woo-action-btn-dark:hover {
    background: #17191c;
}

.woo-action-btn-wishlist {
    background: #7f3a6d;
    color: #ffffff;
}

.woo-action-btn-wishlist:hover {
    background: #682d59;
}

.woo-action-icon {
    margin-right: 8px;
}

/* ================= DESCRIPTION + ACCORDION ================= */

.product-copy-block { margin-top: 28px; }

.product-copy-text {
    color: #2f2f2f;
    font-size: 19px;
    line-height: 1.55;
}

.product-detail-accordion {
    margin-top: 14px;
    border-top: 1px solid #6a6a6a;
}

.product-detail-item {
    border-bottom: 1px solid #6a6a6a;
}

.product-detail-toggle {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.product-detail-icon {
    font-size: 30px;
    color: #1c1c1c;
}

.product-detail-title {
    font-size: 17px;
    color: #1f1f1f;
}

.product-detail-panel {
    padding: 0 0 18px 26px;
    color: #2f2f2f;
}

/* ================= MODAL FIX ================= */

.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.product-modal.is-open {
    display: block;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.product-modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 560px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.22);
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
}

.product-modal-subtitle {
    color: #333333;
}

.product-form-row input,
.product-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfcfcf;
    color: #222;
    box-sizing: border-box;
}

.product-form-row textarea {
    min-height: 140px;
}

body.modal-open {
    overflow: hidden;
}

/* CLEAN FOCUS STYLE FOR PROCESS STEPS */

.process-step a:focus,
.process-step button:focus {
    outline: none;
}

/* subtle highlight instead of blue box */
.process-step a:focus img,
.process-step a:hover img {
    box-shadow: 0 0 0 2px #c8b38a; /* soft gold tone */
    transform: scale(1.03);
    transition: all 0.2s ease;
}

/* optional smoother base */
.process-step img {
    transition: all 0.2s ease;
}

.woo-gallery {
    width: 42%;
    float: left;
}

.woo-summary {
    width: 54%;
    float: right;
}

.woo-main-image {
    max-width: 460px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.woo-main-img {
    width: 100%;
    max-width: 460px;
    max-height: 460px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.woo-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-width: 460px;
    margin: 0 auto 24px auto;
}

.woo-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #d8d2c8;
    background: #ffffff;
}

.woo-related-under-image {
    max-width: 520px;
    margin: 10px auto 0 auto;
}

.woo-related-under-image h2 {
    font-size: 24px;
    margin: 0 0 18px 0;
    text-align: left;
}

.woo-related-under-image .related-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.woo-related-under-image .related-item {
    text-align: center;
}

.woo-related-under-image .related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.woo-related-under-image .related-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #ddd3b4;
    padding: 10px;
    box-sizing: border-box;
}

.woo-related-under-image .related-name {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4em;
    color: #2f2f2f;
}

@media screen and (max-width: 1000px) {
    .woo-gallery,
    .woo-summary {
        float: none;
        width: 100%;
    }

    .woo-main-image,
    .woo-gallery-thumbs,
    .woo-related-under-image {
        max-width: 100%;
    }

    .woo-related-under-image .related-products {
        grid-template-columns: 1fr;
    }
}

/* PRODUCT ACTION BUTTONS - FORCE SINGLE ROW */
.woo-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.woo-action-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional: tighten icons */
.woo-action-icon {
    margin-right: 6px;
}

.woo-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.woo-action-btn {
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woo-action-icon {
    margin-right: 6px;
}

/* RELATED PRODUCTS UNDER IMAGE */
.woo-related-under-image {
    max-width: 460px;
    width: 100%;
    margin: 15px auto 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.woo-related-under-image .related-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.woo-related-under-image .related-item {
    min-width: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.woo-related-under-image .related-item a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.woo-related-under-image .related-item img {
    display: block;
    width: 100%;
    height: 95px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #ddd3b4;
    padding: 6px;
    box-sizing: border-box;
}

.woo-related-under-image .related-name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3em;
    color: #2f2f2f;
    word-break: break-word;
}

.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.product-modal-dialog {
    position: relative;
    max-width: 700px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    z-index: 2;
    box-sizing: border-box;
}

.product-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.product-action-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.product-action-feedback.success {
    color: #2e6b2e;
}

.product-action-feedback.error {
    color: #a12b2b;
}

body.modal-open {
    overflow: hidden;
}

.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.product-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 30px);
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    padding: 30px;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.product-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.product-action-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.product-action-feedback.success {
    color: #2e6b2e;
}

.product-action-feedback.error {
    color: #a12b2b;
}

.product-action-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.product-action-feedback.success {
    color: #2e6b2e;
}

.product-action-feedback.error {
    color: #a12b2b;
}

.wishlist-count {
    display: none;
    margin-left: 4px;
    font-weight: 700;
}

.product-form-feedback,
.product-action-feedback {
    margin-top: 12px;
    font-size: 14px;
}

.product-form-feedback.success,
.product-action-feedback.success {
    color: #2e6b2e;
}

.product-form-feedback.error,
.product-action-feedback.error {
    color: #a12b2b;
}

.product-detail-panel[hidden] {
    display: none !important;
}
@media screen and (max-width: 640px) {
    .product-modal-dialog {
        width: calc(100% - 20px);
        padding: 20px;
    }
}

@media screen and (max-width: 1000px) {
    .woo-related-under-image {
        max-width: 100%;
    }

    .woo-related-under-image .related-products {
        grid-template-columns: 1fr;
    }

    .woo-related-under-image .related-item img {
        height: 140px;
    }
}

@media screen and (max-width: 600px) {
    .woo-actions {
        grid-template-columns: 1fr;
    }

    .woo-action-btn {
        white-space: normal;
    }
}
/* ================= RESPONSIVE ================= */

@media screen and (max-width: 900px) {
    .woo-gallery,
    .woo-summary {
        float: none;
        width: 100%;
    }

    .related-item {
        flex: 0 0 200px;
        width: 200px;
    }

    .related-item img {
        height: 165px;
    }
}

@media screen and (max-width: 640px) {
    .woo-title { font-size: 30px; }
    .woo-price { font-size: 26px; }

    .related-products {
        gap: 12px;
    }

    .related-item {
        flex: 0 0 170px;
        width: 170px;
    }

    .related-item img {
        height: 145px;
    }

    .related-name {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .related-item {
        flex: 0 0 150px;
        width: 150px;
    }

    .related-item img {
        height: 130px;
    }
} 
/* TABLET */
@media (max-width: 900px) {
    .order-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        content: none;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .order-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .woo-main-image {
        max-height: 280px;
        padding: 10px;
        background: #fff;
        border-radius: 6px;
    }

    .woo-main-img {
        max-height: 260px;
        object-fit: contain;
    }

}

@media screen and (max-width: 1000px) {
    .woo-product-wrap {
        display: flex;
        flex-direction: column;
    }

    .woo-gallery {
        order: 1;
        width: 100%;
        float: none;
    }

    .woo-summary {
        order: 2;
        width: 100%;
        float: none;
    }

    .woo-related-under-image {
        order: 3;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media screen and (max-width: 1000px) {
    .woo-product-wrap {
        display: flex;
        flex-direction: column;
    }

    .woo-gallery {
        display: contents;
    }

    .woo-main-image {
        order: 1;
    }

    .woo-gallery-thumbs,
    #pnlGalleryThumbs {
        order: 2;
    }

    .woo-summary {
        order: 3;
        width: 100%;
        float: none;
    }

    .woo-related-under-image,
    #pnlRelated {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin: 24px 0 0 0;
    }
}
