/*
 * Gimolost UI v1.1 — conservative refresh for xt_responsive
 * ----------------------------------------------------------
 * Intentionally follows the existing xt_responsive visual language:
 * PT Sans, #333/#555 text, #b35500 orange accent, #197c45 cart green,
 * square corners, light #e0e0e0 borders and no card shadows.
 *
 * Rollback: restore css/css.php from ROLLBACK, restore the template files,
 * then delete this gimolost.css file and clear the xt:Commerce cache.
 */

/* ---------- shared section headings ---------- */
.gimolost-section-title {
    margin: 22px 0 11px;
    font-family: "pt_sansbold", Helvetica, Arial, sans-serif;
    font-size: 21px;
    font-weight: normal;
    line-height: 1.1;
    color: #333333;
    text-transform: uppercase;
}

/* ---------- automatic categories on the start page ---------- */
#box-start-page-categories.gimolost-start-categories {
    margin: 0 0 26px;
    font-size: 1em;
}

#box-start-page-categories.gimolost-start-categories .row,
.gimolost-subcategory-grid .row {
    margin-left: -8px;
    margin-right: -8px;
}

#box-start-page-categories.gimolost-start-categories .col,
.gimolost-subcategory-grid .col {
    padding-left: 8px;
    padding-right: 8px;
}

.gimolost-category-card {
    display: block;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
    text-decoration: none !important;
    transition: border-color .15s ease, background-color .15s ease;
}

.gimolost-category-card:hover,
.gimolost-category-card:focus {
    border-color: #b35500;
    color: #663100;
    text-decoration: none !important;
}

.gimolost-category-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    overflow: hidden;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.gimolost-category-card__image img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
}

.gimolost-category-card__placeholder {
    color: #bdbdbd;
    font-size: 38px;
}

.gimolost-category-card__title {
    display: block;
    min-height: 43px;
    padding: 10px 11px;
    font-family: "pt_sansbold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    color: inherit;
}

/* ---------- subcategories on category pages ---------- */
.gimolost-subcategory-grid {
    margin: 22px 0 18px;
}

.categorie-listing.gimolost-subcategory-grid .section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.gimolost-subcategory-grid .gimolost-category-card__image {
    height: 135px;
}

.gimolost-subcategory-grid .gimolost-category-card__title {
    min-height: 41px;
    font-size: 15px;
}

/* ---------- category product grid ---------- */
.gimolost-product-grid {
    display: flex;
    flex-wrap: wrap;
}

.gimolost-product-grid > .col {
    display: flex;
    float: none;
}

.gimolost-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px !important;
    overflow: hidden;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    background: #ffffff;
    box-shadow: none !important;
    transition: border-color .15s ease;
}

.gimolost-product-card:hover {
    border-color: #b8b8b8 !important;
}

.gimolost-product-card .section-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 !important;
}

.gimolost-product-card .gimolost-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    margin: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.gimolost-product-card .gimolost-product-image .image-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    padding: 10px;
}

.gimolost-product-card .gimolost-product-image img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.gimolost-product-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 13px 14px 10px;
}

.gimolost-product-card .title {
    margin: 0 0 8px;
}

.gimolost-product-card .title .h4 {
    min-height: 44px;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.gimolost-product-card .title .h4 a {
    display: -webkit-box;
    overflow: hidden;
    color: #333333;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gimolost-product-card .title .h4 a:hover,
.gimolost-product-card .title .h4 a:focus {
    color: #b35500;
}

.gimolost-product-card .product-reviews {
    min-height: 18px;
    margin: 0 0 5px;
}

.gimolost-product-card .product-price {
    margin: auto 0 2px;
    font-size: 19px;
    color: #333333;
}

.gimolost-product-card .vpe,
.gimolost-product-card .product-tax-shipping,
.gimolost-product-card .product-stock,
.gimolost-product-card .gimolost-available-soon {
    margin: 2px 0 0;
    color: #777777;
    font-size: 12px;
    line-height: 1.35;
}

.gimolost-product-card .section-footer {
    margin: 0 !important;
    padding: 0 14px 14px !important;
}

.gimolost-product-card .gimolost-card-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.gimolost-product-card .gimolost-card-actions .btn {
    float: none !important;
    min-width: 0 !important;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.2;
}

.gimolost-product-card .gimolost-card-actions .gimolost-details-btn {
    flex: 1 1 auto;
    text-align: center;
}

.gimolost-product-card .gimolost-card-actions .btn-cart,
.gimolost-product-card .gimolost-card-actions .notify {
    flex: 0 0 42px;
    width: 42px;
}

/* ---------- start-page product sliders ---------- */
.product-slider .gimolost-product-card {
    margin: 0 7px 8px !important;
}

.product-slider .gimolost-product-card .gimolost-product-image {
    height: 205px;
}

/* Leave native xt:Commerce headline, button, orange and green styles intact. */

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .gimolost-category-card__image {
        height: 140px;
    }
    .gimolost-product-card .gimolost-product-image {
        height: 205px;
    }
}

@media (max-width: 767px) {
    #box-start-page-categories.gimolost-start-categories {
        margin-bottom: 18px;
    }
    .gimolost-category-card__image {
        height: 125px;
    }
    .gimolost-category-card__title {
        min-height: 40px;
        padding: 9px;
        font-size: 14px;
    }
    .gimolost-product-card .gimolost-product-image,
    .product-slider .gimolost-product-card .gimolost-product-image {
        height: 220px;
    }
    .gimolost-product-card__content {
        padding: 12px 13px 9px;
    }
    .gimolost-product-card .section-footer {
        padding: 0 13px 13px !important;
    }
}

@media (max-width: 420px) {
    .gimolost-category-card__image {
        height: 110px;
    }
}
