/* ============================================================
   HEARTFELT HISTORY — FLAT HIGHLIGHTS SLIDER
   NORMAL SWIPER VERSION (NO FAKE LOOP)
============================================================ */

/* ------------------------------------------------------------
   WRAPPER
------------------------------------------------------------ */

.hh-flat {
    width: 100%;
    margin: 3em auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Fix mobile left clipping */
@media (max-width: 700px) {
    .hh-flat {
        padding-left: 0 !important;
        padding-right: 5vw;
    }
}

/* ------------------------------------------------------------
   SIDE GRADIENTS (desktop only)
------------------------------------------------------------ */

.hh-flat::before,
.hh-flat::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 5;
}

.hh-flat::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45), rgba(0,0,0,0));
}

.hh-flat::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.45), rgba(0,0,0,0));
}

@media (max-width: 700px) {
    .hh-flat::before,
    .hh-flat::after {
        display: none;
    }
}

/* ------------------------------------------------------------
   SWIPER BASE
------------------------------------------------------------ */

.hh-flat-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

/* Let Swiper control widths; we only handle layout */
.hh-flat .swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto !important;
    box-sizing: border-box;
}

/* ============================================================
   CARD — UNIFORM HEIGHT, VISUAL MAX WIDTH
============================================================ */

.hh-flat-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform .3s ease;
    width: 100%;
    max-width: 350px;      /* visual cap */
    background: #fff;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0 auto;        /* center card within slide when slide is wider */
}

/* Clickable wrapper */
.hh-flat-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================================
   IMAGE — FIXED HEIGHT + TOP-CENTER CROPPING
============================================================ */

.hh-flat-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 700px) {
    .hh-flat-image {
        height: 280px;
    }
}

.hh-flat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;   /* keep heads in frame */
    transition: transform .55s ease, filter .55s ease;
    will-change: transform;
}

.hh-flat-card:hover .hh-flat-image img {
    transform: scale(1.06);
    filter: brightness(1.03);
}

/* Sale badge */
.hh-flat-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c23428;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid #fff;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================
   CONTENT
============================================================ */

.hh-flat-content {
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hh-flat-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: .25em;
}

.hh-flat-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: .25em;
    text-transform: capitalize;
}

.hh-flat-price {
    font-size: 16px;
    color: #a67739;
    font-weight: 600;
    margin-bottom: .25em;
}

.hh-flat-excerpt {
    font-size: 14px;
    color: #444;
    margin-bottom: .75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   BUTTONS
============================================================ */

.hh-flat-btn {
    padding: .5em 1em;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    margin-top: auto;
    display: inline-block;
}

.hh-flat-product .hh-flat-btn {
    background: #c23428;
}
.hh-flat-product .hh-flat-btn:hover {
    background: #a52b22;
}

.hh-flat-blog .hh-flat-btn {
    background: #a67739;
}
.hh-flat-blog .hh-flat-btn:hover {
    background: #8a5f2f;
}

.hh-flat-manual-btn {
    background: #c49e4d;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    margin-top: auto;
    transition: background .3s ease;
}
.hh-flat-manual-btn:hover {
    background: #a67f32;
}

/* ============================================================
   ARROWS
============================================================ */

.hh-flat .swiper-button-next,
.hh-flat .swiper-button-prev {
    color: #ffffff;
    text-shadow: 0 2px 12px #000;
}

/* ============================================================
   END
============================================================ */