/* * * * * * * * * * * * * * * * * *\
/*           SHOP PAGES            *|
\* * * * * * * * * * * * * * * * * */

/* Filter bar */
.fm-shop-filters {
    background: #fff;
    border: 1px solid rgba(106, 138, 146, 0.2);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.fm-shop-filters .form-control,
.fm-shop-filters .form-select {
    border-color: rgba(106, 138, 146, 0.35);
    border-radius: 5px;
    font-family: "Lora", serif;
    font-size: 0.95rem;
    color: var(--fm-black);
}

.fm-shop-filters .form-control:focus,
.fm-shop-filters .form-select:focus {
    border-color: var(--fm-primary-color);
    box-shadow: 0 0 0 0.15rem rgba(106, 138, 146, 0.2);
}

.fm-shop-filters label {
    font-family: "Montserrat", serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #777;
}

/* Product card */
.fm-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(106, 138, 146, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.fm-product-card:hover {
    box-shadow: 0 10px 36px rgba(106, 138, 146, 0.2);
    transform: translateY(-4px);
}

.fm-product-img {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.fm-product-card:hover .fm-product-img img {
    transform: scale(1.05);
}

.fm-product-img-placeholder {
    color: rgba(106, 138, 146, 0.35);
    font-size: 2rem;
}

.fm-product-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fm-product-name {
    font-family: "Montserrat", serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--fm-black);
    flex: 1;
}

.fm-product-price {
    font-family: "Montserrat", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fm-primary-color);
    margin-bottom: 0.5rem;
}

.fm-product-price-original {
    font-family: "Montserrat", serif;
    font-size: 0.88rem;
    color: #bbb;
    text-decoration: line-through;
    margin-right: 0.3rem;
}

.fm-product-price-sale {
    font-family: "Montserrat", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--fm-danger-color);
}

.fm-stock-badge {
    display: inline-block;
    font-family: "Montserrat", serif;
    font-size: 0.65rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.fm-stock-badge--in {
    color: var(--fm-success-color);
    background: rgba(92, 184, 92, 0.12);
}

.fm-stock-badge--out {
    color: var(--fm-danger-color);
    background: rgba(217, 83, 79, 0.12);
}

/* Pagination */
.fm-pagination {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.fm-pagination .page-link {
    font-family: "Montserrat", serif;
    font-size: 0.85rem;
    color: var(--fm-primary-color);
    border-color: rgba(106, 138, 146, 0.3);
    border-radius: 5px !important;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fm-pagination .page-link:hover,
.fm-pagination .page-link:focus {
    background-color: var(--fm-primary-color);
    border-color: var(--fm-primary-color);
    color: var(--fm-white);
    box-shadow: none;
}

.fm-pagination .page-item.disabled .page-link {
    color: var(--fm-primary-color);
    background-color: rgba(106, 138, 146, 0.1);
    border-color: rgba(106, 138, 146, 0.15);
}

/* Product detail — gallery */
.fm-gallery-main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: #f5f5f5;
}

.fm-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease;
}

.fm-gallery-main img:hover {
    transform: scale(1.02);
}

.fm-gallery-placeholder {
    border-radius: 8px;
    background: #f5f5f5;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(106, 138, 146, 0.35);
    font-size: 3rem;
    margin-bottom: 0.6rem;
}

.fm-gallery-thumb {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.fm-gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.fm-gallery-thumb:hover {
    border-color: var(--fm-primary-color);
}

/* Product detail — info */
.fm-product-detail-price {
    font-family: "Montserrat", serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--fm-primary-color);
    margin-bottom: 0.75rem;
}

.fm-product-detail-price-original {
    font-family: "Montserrat", serif;
    font-size: 1.1rem;
    color: #bbb;
    text-decoration: line-through;
    margin-right: 0.4rem;
}

.fm-product-detail-price-sale {
    font-family: "Montserrat", serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--fm-danger-color);
}

.fm-product-detail-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(106, 138, 146, 0.15);
    padding-bottom: 1.5rem;
}

.fm-form-label {
    font-family: "Montserrat", serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #777;
    margin-bottom: 0.4rem;
    display: block;
}

.fm-product-detail .form-control,
.fm-product-detail .form-select {
    border-color: rgba(106, 138, 146, 0.35);
    border-radius: 5px;
    font-family: "Lora", serif;
    font-size: 0.95rem;
}

.fm-product-detail .form-control:focus,
.fm-product-detail .form-select:focus {
    border-color: var(--fm-primary-color);
    box-shadow: 0 0 0 0.15rem rgba(106, 138, 146, 0.2);
}

@media screen and (max-width: 767px) {
    .fm-gallery-main img {
        height: 280px;
    }

    .fm-gallery-placeholder {
        height: 280px;
    }
}
