/*
 * Grundfos Otpadni
 * PrestaShop 1.6
 */


/* =========================================================
   FULL WIDTH PAGE
   ========================================================= */

body#module-grundfosotpadni-display #left_column,
body.goq-full-width-page #left_column {
    display: none !important;
}

body#module-grundfosotpadni-display #right_column,
body.goq-full-width-page #right_column {
    display: none !important;
}

body#module-grundfosotpadni-display #center_column,
body.goq-full-width-page #center_column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

body#module-grundfosotpadni-display #columns,
body.goq-full-width-page #columns {
    width: 100% !important;
}

body#module-grundfosotpadni-display .columns-container,
body.goq-full-width-page .columns-container {
    width: 100% !important;
}


/* =========================================================
   MAIN
   ========================================================= */

#grundfosotpadni {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

#grundfosotpadni *,
#grundfosotpadni *:before,
#grundfosotpadni *:after {
    box-sizing: border-box;
}

.grundfosotpadni-inner {
    width: 100%;
    margin: 0 auto;
}


/* =========================================================
   TITLE
   ========================================================= */

.grundfosotpadni-title {
    margin: 0 0 30px 0;
    padding: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}


/* =========================================================
   SECTION
   ========================================================= */

.grundfosotpadni-section {
    width: 100%;
    margin: 0 0 35px 0;
}

.grundfosotpadni-section-title {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 2px solid #333;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.grundfosotpadni-products {
    width: 100%;
}


/* =========================================================
   PRODUCT ROW
   ========================================================= */

.grundfosotpadni-product {
    width: 100%;
    display: flex;
    align-items: center;

    margin: 0 0 12px 0;
    padding: 15px;

    background: #fff;
    border: 1px solid #ddd;

    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.grundfosotpadni-product:hover {
    border-color: #bbb;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.08);
}


/* =========================================================
   IMAGE
   ========================================================= */

.grundfosotpadni-product-image-wrap {
    flex: 0 0 105px;

    width: 105px;
    min-width: 105px;

    margin-right: 18px;

    text-align: center;
}

.grundfosotpadni-product-image-link {
    display: block;
}

.grundfosotpadni-product-image {
    display: block;

    width: 100px;
    height: 100px;

    object-fit: contain;

    margin: 0 auto;
}

.grundfosotpadni-no-image {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: #f5f5f5;
    color: #888;

    font-size: 12px;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.grundfosotpadni-product-main {
    flex: 1 1 auto;
    min-width: 0;

    padding-right: 20px;
}


/* =========================================================
   NAME
   ========================================================= */

.grundfosotpadni-product-name {
    margin: 0 0 3px 0;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 700;
}

.grundfosotpadni-product-name a {
    color: #333;
    text-decoration: none;
}

.grundfosotpadni-product-name a:hover {
    text-decoration: underline;
}


/* =========================================================
   CODE
   ========================================================= */

.grundfosotpadni-product-code {
    margin: 0 0 8px 0;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   PURPOSE
   ========================================================= */

.grundfosotpadni-purpose {
    margin: 0 0 10px 0;

    color: #444;

    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   SPECS
   ========================================================= */

.grundfosotpadni-specs {
    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    gap: 6px 16px;

    white-space: nowrap;
    overflow-x: auto;
}

.grundfosotpadni-spec {
    display: inline-block;

    flex: 0 0 auto;

    color: #333;

    font-size: 12px;
    line-height: 1.5;

    white-space: nowrap;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.grundfosotpadni-product-right {
    flex: 0 0 205px;

    width: 205px;
    min-width: 205px;

    text-align: right;
}


/* =========================================================
   PRICE
   ========================================================= */

.grundfosotpadni-price {
    margin: 0 0 12px 0;

    font-size: 20px;
    line-height: 1.2;

    font-weight: 700;

    color: #333;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.grundfosotpadni-actions {
    display: flex;

    flex-direction: column;

    gap: 7px;

    align-items: stretch;
}

.grundfosotpadni-button {
    display: block;

    width: 100%;

    padding: 8px 10px;

    border: 1px solid #333;

    text-align: center;

    font-size: 12px;
    line-height: 1.3;

    cursor: pointer;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.grundfosotpadni-button-view {
    background: #fff;
    color: #333;
}

.grundfosotpadni-button-view:hover {
    background: #f2f2f2;
    color: #333;
    text-decoration: none;
}

.grundfosotpadni-button-cart {
    background: #333;
    color: #fff;
}

.grundfosotpadni-button-cart:hover {
    background: #111;
    color: #fff;
}

.grundfosotpadni-button-cart:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.grundfosotpadni-message {
    width: 100%;

    padding: 20px;

    margin: 0 0 20px 0;

    text-align: center;

    background: #f5f5f5;

    font-size: 14px;
}

.grundfosotpadni-error {
    background: #fff0f0;
    color: #b00000;
    border: 1px solid #e0b0b0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .grundfosotpadni-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .grundfosotpadni-section-title {
        font-size: 19px;
    }

    .grundfosotpadni-product {
        display: block;

        padding: 15px;
    }

    .grundfosotpadni-product-image-wrap {
        width: 100%;
        min-width: 0;

        margin: 0 0 15px 0;
    }

    .grundfosotpadni-product-image {
        width: 130px;
        height: 130px;
    }

    .grundfosotpadni-no-image {
        width: 130px;
        height: 130px;
    }

    .grundfosotpadni-product-main {
        padding-right: 0;
    }

    .grundfosotpadni-product-name {
        font-size: 16px;
    }

    .grundfosotpadni-purpose {
        font-size: 13px;
    }

    .grundfosotpadni-specs {
        display: block;

        overflow-x: visible;
        white-space: normal;
    }

    .grundfosotpadni-spec {
        display: block;

        margin-bottom: 4px;

        white-space: normal;
    }

    .grundfosotpadni-product-right {
        width: 100%;
        min-width: 0;

        margin-top: 15px;

        text-align: left;
    }

    .grundfosotpadni-price {
        font-size: 20px;
    }

    .grundfosotpadni-actions {
        display: flex;
        flex-direction: column;
    }
}
