/* =========================================================
   SOKOIRA — SINGLE PRODUCT
   Twenty Twenty-Five Child + WooCommerce
   ========================================================= */


/* =========================================================
   1. GENERAL
   ========================================================= */

body.single-product {
    background: #fff;
}

body.single-product .nm-product-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.single-product img {
    max-width: 100%;
}


/* =========================================================
   2. BREADCRUMBS / NOTICES
   ========================================================= */

.nm-product-topbar {
    width: min(calc(100% - 48px), 1260px);
    max-width: 1260px;
    margin: 0 auto;
    padding: 22px 0 18px;
}

.nm-product-topbar .woocommerce-breadcrumb {
    margin: 0;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

.nm-product-topbar .woocommerce-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.nm-product-topbar .woocommerce-breadcrumb a:hover {
    color: #111;
}

.nm-product-topbar .woocommerce-notices-wrapper {
    margin-bottom: 18px;
}


/* =========================================================
   3. PRODUCT HERO
   Gallery + Product information
   ========================================================= */

.nm-product-hero {
    display: grid !important;
    grid-template-columns:
        minmax(0, 760px)
        minmax(330px, 380px);
    align-items: start !important;
    justify-content: center;

    width: min(calc(100% - 48px), 1260px) !important;
    max-width: 1260px !important;

    margin: 0 auto !important;
    padding: 0 0 90px !important;

    column-gap: 52px !important;
    row-gap: 0 !important;
}

.nm-product-hero > .wp-block-column {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-basis: auto !important;
}


/* =========================================================
   4. CLASSIC WOOCOMMERCE PRODUCT GALLERY
   Vertical thumbnails left + main image right
   ========================================================= */

.nm-product-media {
    width: 100% !important;
    max-width: 760px !important;
    min-width: 0 !important;
}

.nm-product-media
.wp-block-woocommerce-product-image-gallery {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
 * Το WooCommerce δημιουργεί:
 *
 * .woocommerce-product-gallery
 * ├── .woocommerce-product-gallery__trigger
 * ├── .flex-viewport
 * └── .flex-control-thumbs
 */

.nm-product-media .woocommerce-product-gallery {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;

    align-items: start !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    column-gap: 18px !important;

    float: none !important;
}

/* Κύρια περιοχή εικόνας */

.nm-product-media
.woocommerce-product-gallery
.flex-viewport {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

/*
 * Fallback πριν δημιουργηθεί το flex-viewport από το JS.
 */
/*
 * Αρχική κατάσταση πριν ενεργοποιηθεί το FlexSlider.
 * Εμφανίζεται μόνο η πρώτη εικόνα.
 */
.nm-product-media
.woocommerce-product-gallery:not(.flexslider)
> .woocommerce-product-gallery__wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nm-product-media
.woocommerce-product-gallery:not(.flexslider)
> .woocommerce-product-gallery__wrapper
> .woocommerce-product-gallery__image:not(:first-child) {
    display: none !important;
}


/*
 * Μην ορίζουμε width στον slider track και στα slides.
 * Τα υπολογίζει το FlexSlider με inline styles.
 */
.nm-product-media
.woocommerce-product-gallery
.flex-viewport
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.nm-product-media
.woocommerce-product-gallery
.flex-viewport
.woocommerce-product-gallery__image {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: left !important;
}

.nm-product-media
.woocommerce-product-gallery
.woocommerce-product-gallery__image a {
    display: block !important;
    width: 100% !important;
}

.nm-product-media
.woocommerce-product-gallery
.woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 760px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
}

.nm-product-media
.woocommerce-product-gallery
.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
}

.nm-product-media
.woocommerce-product-gallery
.woocommerce-product-gallery__image img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: 760px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center top !important;
}

/* Zoom icon */

.nm-product-media
.woocommerce-product-gallery
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;

    z-index: 20 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 38px !important;
    height: 38px !important;

    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;

    box-shadow: 0 1px 8px rgb(0 0 0 / 10%);
}

/* Vertical thumbnails */

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs {
    grid-column: 1 !important;
    grid-row: 1 !important;

    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    max-height: 760px !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 12px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    list-style: none !important;

    scrollbar-width: thin;

    float: none !important;
    clear: none !important;
}

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs::before,
.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs::after {
    display: none !important;
    content: none !important;
}

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs li {
    display: block !important;
    flex: 0 0 116px !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;

    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border: 1px solid #dedede !important;
    background: #f5f5f5 !important;

    list-style: none !important;

    float: none !important;
}

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs li img {
    display: block !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    min-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    opacity: 0.55 !important;
    cursor: pointer;
}

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs li img:hover {
    opacity: 0.8 !important;
}

.nm-product-media
.woocommerce-product-gallery
.flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    outline: 1px solid #111 !important;
    outline-offset: -1px;
}


/* =========================================================
   5. PRODUCT SUMMARY
   ========================================================= */

.nm-product-summary {
    position: sticky !important;
    top: 32px !important;

    width: 100% !important;
    max-width: 380px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;
}

.admin-bar .nm-product-summary {
    top: 66px !important;
}

.nm-product-eyebrow {
    margin: 0 0 10px;
    color: #696969;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nm-product-eyebrow a {
    color: inherit;
    text-decoration: none;
}

.nm-product-title {
    margin: 0 0 10px !important;

    font-size: clamp(28px, 2.2vw, 40px) !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
}

.nm-product-summary
.wc-block-components-product-rating {
    margin-bottom: 12px;
}

.nm-product-price {
    margin: 0 0 20px !important;

    font-size: 18px !important;
    line-height: 1.4;
}

.nm-product-price del {
    color: #858585;
    opacity: 1;
    font-size: 0.86em;
}

.nm-product-price ins {
    color: #111;
    text-decoration: none;
}

.nm-product-short-description {
    margin: 0 0 18px !important;

    color: #4d4d4d;
    font-size: 13px;
    line-height: 1.65;
}

.nm-product-short-description p {
    margin-top: 0;
}


/* =========================================================
   6. SIZE GUIDE BUTTON
   ========================================================= */

.nm-size-guide-btn {
    display: block;

    margin: 0 0 12px auto !important;
    padding: 0 0 2px !important;

    border: 0 !important;
    border-bottom: 1px solid #333 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #222 !important;

    font-size: 10px !important;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    cursor: pointer;
}

.nm-size-guide-btn:hover,
.nm-size-guide-btn:focus {
    border-bottom-color: transparent !important;
    background: transparent !important;
    color: #111 !important;
}


/* =========================================================
   7. ADD TO CART
   ========================================================= */

.nm-product-summary
.wp-block-add-to-cart-form {
    width: 100%;
    margin: 0;
}

.nm-product-summary form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 10px !important;
}

.nm-product-summary form.cart .quantity {
    flex: 0 0 66px !important;

    width: 66px !important;

    margin: 0 !important;
}

.nm-product-summary form.cart .qty {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 8px !important;

    border: 1px solid #ccc !important;
    border-radius: 0 !important;

    background: #fff;
    color: #111;

    text-align: center;
}

.nm-product-summary
form.cart
.single_add_to_cart_button {
    flex: 1 1 180px !important;

    min-height: 48px !important;

    margin: 0 !important;
    padding: 12px 20px !important;

    border: 1px solid #111 !important;
    border-radius: 0 !important;

    background: #111 !important;
    color: #fff !important;

    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.3;
    letter-spacing: 0.07em;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.nm-product-summary
form.cart
.single_add_to_cart_button:hover {
    background: #fff !important;
    color: #111 !important;
}

.nm-product-summary
form.cart
.single_add_to_cart_button.disabled,
.nm-product-summary
form.cart
.single_add_to_cart_button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}


/* =========================================================
   8. VARIABLE PRODUCTS
   ========================================================= */

.nm-product-summary
.variations_form {
    display: block !important;
}

.nm-product-summary table.variations {
    display: block;

    width: 100% !important;

    margin: 0 0 18px !important;
    border: 0 !important;
}

.nm-product-summary table.variations tbody,
.nm-product-summary table.variations tr {
    display: block;
    width: 100%;
}

.nm-product-summary table.variations tr {
    margin-bottom: 15px;
}

.nm-product-summary table.variations th,
.nm-product-summary table.variations td {
    display: block;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.nm-product-summary table.variations th {
    margin-bottom: 7px !important;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.nm-product-summary table.variations select {
    width: 100% !important;
    min-height: 46px;

    padding: 8px 36px 8px 12px;

    border: 1px solid #ccc;
    border-radius: 0;

    background-color: #fff;
    color: #111;
}

.nm-product-summary .reset_variations {
    display: inline-block !important;

    margin-top: 7px;

    color: #666;
    font-size: 10px;
}

.nm-product-summary
.single_variation_wrap {
    width: 100%;
}

.nm-product-summary
.single_variation {
    margin-bottom: 12px;
}


/* =========================================================
   9. PRODUCT SERVICES
   ========================================================= */

.nm-product-services {
    margin-top: 24px !important;
    border-top: 1px solid #e5e5e5;
}

.nm-product-services p {
    margin: 0 !important;
    padding: 14px 0 !important;

    border-bottom: 1px solid #e5e5e5;

    color: #656565;
    font-size: 11px;
    line-height: 1.55;
}

.nm-product-services strong {
    color: #181818;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* =========================================================
   10. PRODUCT META
   ========================================================= */

.nm-product-meta {
    margin-top: 18px !important;

    color: #777;
    font-size: 10px;
    line-height: 1.8;
}

.nm-product-meta .wp-block-group {
    display: block !important;
}

.nm-product-meta a {
    color: inherit;
}


/* =========================================================
   11. SIZE GUIDE MODAL
   ========================================================= */

.nm-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgb(0 0 0 / 55%);
}

.nm-modal[aria-hidden="false"] {
    display: flex;
}

.nm-modal-content {
    position: relative;

    width: min(100%, 850px);
    max-height: calc(100vh - 48px);

    padding: 36px;

    overflow-y: auto;

    background: #fff;
    color: #111;
}

.nm-modal-content h3 {
    margin: 0 0 26px;

    font-size: 26px;
    font-weight: 400;
}

.nm-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    background: transparent;
    color: #111;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.nm-size-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
    align-items: start;
    gap: 30px;
}

.nm-size-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.nm-size-table th,
.nm-size-table td {
    padding: 11px 9px;

    border: 1px solid #ddd;

    text-align: center;
}

.nm-size-table th:first-child,
.nm-size-table td:first-child {
    text-align: left;
}

.nm-size-note {
    margin: 10px 0 0;

    color: #777;
    font-size: 11px;
}

.nm-size-img {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   12. PRODUCT DETAILS / TABS
   ========================================================= */

.nm-product-details-section {
    width: 100%;

    padding: 68px 24px !important;

    border-top: 1px solid #ededed;

    background: #fafafa;
}

.nm-product-details-section
.wp-block-woocommerce-product-details {
    width: min(100%, 1260px);
    max-width: 1260px;

    margin: 0 auto !important;
}

.nm-product-details-section .wc-tabs {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;

    margin: 0 0 38px !important;
    padding: 0 !important;

    border: 0 !important;

    gap: 36px;

    list-style: none;
}

.nm-product-details-section .wc-tabs::before,
.nm-product-details-section .wc-tabs::after {
    display: none !important;
}

.nm-product-details-section .wc-tabs li {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
}

.nm-product-details-section .wc-tabs li::before,
.nm-product-details-section .wc-tabs li::after {
    display: none !important;
}

.nm-product-details-section .wc-tabs li a {
    display: block;

    padding: 0 0 7px !important;

    border-bottom: 1px solid transparent;

    color: #666 !important;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.nm-product-details-section
.wc-tabs li.active a {
    border-bottom-color: #111;
    color: #111 !important;
}

.nm-product-details-section
.woocommerce-Tabs-panel {
    width: min(100%, 1050px);

    margin: 0 auto !important;

    color: #333;
    font-size: 14px;
    line-height: 1.75;
}

.nm-product-details-section
.woocommerce-Tabs-panel h2 {
    margin-top: 0;

    font-size: 25px;
    font-weight: 400;
}


/* =========================================================
   13. RELATED PRODUCTS
   ========================================================= */

.nm-related-section {
    width: 100%;

    padding: 78px 24px 105px !important;

    background: #fff;
}

.nm-related-section
.wp-block-woocommerce-product-collection {
    width: min(100%, 1260px);
    max-width: 1260px;

    margin: 0 auto !important;
}

.nm-related-title {
    margin: 0 0 42px !important;

    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nm-related-section
.wc-block-product-template {
    gap: 28px !important;
}

.nm-related-section
.wc-block-product {
    margin: 0 !important;
}

.nm-related-section
.wc-block-components-product-image {
    overflow: hidden;

    margin: 0 0 16px !important;

    background: #f5f5f5;
}

.nm-related-section
.wc-block-components-product-image img {
    display: block;

    width: 100% !important;
    height: auto;

    aspect-ratio: 3 / 4;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.nm-related-section
.wc-block-components-product-image:hover img {
    transform: scale(1.025);
}

.nm-related-product-title {
    margin: 0 0 6px !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4;
}

.nm-related-product-title a {
    color: #111;
    text-decoration: none;
}

.nm-related-section
.wc-block-components-product-price {
    margin-bottom: 12px;

    font-size: 11px;
}

.nm-related-section
.wp-block-button__link,
.nm-related-section
.wc-block-components-product-button__button {
    min-height: 40px;

    padding: 10px 17px !important;

    border: 1px solid #111 !important;
    border-radius: 0 !important;

    background: #111 !important;
    color: #fff !important;

    font-size: 9px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   14. SMALLER DESKTOP / TABLET
   ========================================================= */

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

    .nm-product-topbar,
    .nm-product-hero {
        width: calc(100% - 40px) !important;
    }

    .nm-product-hero {
        grid-template-columns:
            minmax(0, 650px)
            minmax(310px, 340px);

        column-gap: 34px !important;
    }

    .nm-product-media .woocommerce-product-gallery {
        grid-template-columns: 78px minmax(0, 1fr) !important;
        column-gap: 13px !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .flex-control-thumbs {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .flex-control-thumbs li {
        flex-basis: 100px !important;

        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;

        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
    }

    .nm-product-title {
        font-size: 31px !important;
    }
}


/* =========================================================
   15. TABLET AND MOBILE
   Gallery first, summary below
   ========================================================= */

@media (max-width: 900px) {

    .nm-product-topbar {
        width: calc(100% - 30px);
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nm-product-hero {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        padding-bottom: 48px !important;
    }

    .nm-product-media,
    .nm-product-summary {
        width: 100% !important;
        max-width: none !important;
    }

    .nm-product-summary {
        position: static !important;

        padding: 28px 20px 0 !important;
    }

    /*
     * Στο mobile η κύρια εικόνα επάνω
     * και τα thumbnails οριζόντια από κάτω.
     */

    .nm-product-media .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        gap: 0 !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .flex-viewport,
    .nm-product-media
    .woocommerce-product-gallery
    > .woocommerce-product-gallery__wrapper {
        order: 1;

        width: 100% !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-height: none !important;

        object-fit: contain !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .flex-control-thumbs {
        order: 2;

        display: flex !important;
        flex-direction: row !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: none !important;

        padding: 10px 15px 0 !important;

        gap: 8px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .nm-product-media
    .woocommerce-product-gallery
    .flex-control-thumbs li {
        flex: 0 0 72px !important;

        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;

        height: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
    }

    .nm-product-title {
        font-size: 29px !important;
    }

    .nm-product-details-section {
        padding: 45px 20px !important;
    }

    .nm-product-details-section .wc-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;

        gap: 22px;

        overflow-x: auto;

        white-space: nowrap;
    }

    .nm-related-section {
        padding: 55px 20px 75px !important;
    }

    .nm-related-title {
        margin-bottom: 30px !important;
    }

    .nm-related-section
    .wc-block-product-template {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 26px 14px !important;
    }

    .nm-size-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   16. SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .nm-product-summary form.cart {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
    }

    .nm-product-summary form.cart .quantity {
        width: 64px !important;
    }

    .nm-product-summary
    form.cart
    .single_add_to_cart_button {
        width: 100% !important;
    }

    .nm-modal {
        padding: 12px;
    }

    .nm-modal-content {
        padding: 30px 18px 22px;
    }

    .nm-size-table {
        font-size: 11px;
    }

    .nm-size-table th,
    .nm-size-table td {
        padding: 8px 5px;
    }

    .nm-related-section
    .wc-block-product-template {
        gap: 24px 10px !important;
    }
}

.wc-block-components-product-image,
.wc-block-components-product-image > a,
.wc-block-components-product-image img {
    border-radius: 0 !important;
}