/* =============================================
   SEARCH RESULTS — Hechizos de Amor
   ============================================= */

.hda-search {
    background: #FEF3E7;
    min-height: 60vh;
}

/* ---- Hero ---- */
.hda-search__hero {
    background: #960946;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
    color: #FEF3E7;
}

.hda-search__hero-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.hda-search__hero-label {
    font-family: 'Roboto Slab', serif;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 0.5rem;
    opacity: 0.8;
}

.hda-search__hero-title {
    font-family: 'Qalogre', serif;
    font-size: 2.4rem;
    font-weight: 400;
    margin: 0 0 0.8rem;
    line-height: 1.2;
    word-break: break-word;
}

.hda-search__hero-count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---- Search bar ---- */
.hda-search__bar {
    max-width: 36rem;
    margin: -1.2rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hda-search__form {
    display: flex;
    background: #fff;
    border-radius: 6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hda-search__input {
    flex: 1;
    border: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-family: 'Founders Grotesk Official', sans-serif;
    background: transparent;
    outline: none;
    color: #333;
}

.hda-search__input::placeholder {
    color: #A5A4A8;
}

.hda-search__submit {
    background: #960946;
    color: #FEF3E7;
    border: none;
    padding: 0.9rem 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

.hda-search__submit:hover {
    background: #BB5D80;
}

/* ---- Sections ---- */
.hda-search__section {
    max-width: 70rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.hda-search__section-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #960946;
}

.hda-search__section-title {
    font-family: 'Qalogre', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #960946;
    margin: 0;
}

.hda-search__section-count {
    font-size: 0.8rem;
    color: #A5A4A8;
}

/* ---- Grid ---- */
.hda-search__grid {
    display: grid;
    gap: 1.5rem;
}

.hda-search__grid--products {
    grid-template-columns: repeat(4, 1fr);
}

.hda-search__grid--posts {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Card ---- */
.hda-search__card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.hda-search__card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.hda-search__card-img {
    position: relative;
    overflow: hidden;
}

.hda-search__card--product .hda-search__card-img {
    padding-bottom: 100%;
}

.hda-search__card--post .hda-search__card-img {
    padding-bottom: 60%;
}

.hda-search__card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hda-search__card:hover .hda-search__card-img img {
    transform: scale(1.04);
}

.hda-search__badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: #960946;
    color: #FEF3E7;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3em 0.8em;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.hda-search__badge--category {
    background: #BB5D80;
    left: 0.6rem;
    right: auto;
}

.hda-search__card-body {
    padding: 1rem 1.2rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hda-search__card-date {
    font-size: 0.75rem;
    color: #A5A4A8;
    margin-bottom: 0.3rem;
}

.hda-search__card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    color: #333;
}

.hda-search__card-excerpt {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

/* Product price */
.hda-search__card-price {
    margin-top: auto;
    padding-top: 0.5rem;
}

.hda-search__price {
    font-weight: 700;
    color: #960946;
    font-size: 1rem;
}

.hda-search__price-old {
    text-decoration: line-through;
    color: #A5A4A8;
    font-size: 0.82rem;
    margin-right: 0.3rem;
}

/* ---- Pages list ---- */
.hda-search__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hda-search__list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: #fff;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #F3DBD7;
    transition: background 0.15s;
}

.hda-search__list-item:first-child {
    border-radius: 5px 5px 0 0;
}

.hda-search__list-item:last-child {
    border-radius: 0 0 5px 5px;
    border-bottom: none;
}

.hda-search__list-item:hover {
    background: #F8E7DF;
}

.hda-search__list-item svg {
    flex-shrink: 0;
    color: #BB5D80;
}

.hda-search__list-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

.hda-search__list-arrow {
    opacity: 0.4;
    transition: opacity 0.2s;
}

.hda-search__list-item:hover .hda-search__list-arrow {
    opacity: 1;
}

/* ---- Pagination ---- */
.hda-search__pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem 0 1rem;
    flex-wrap: wrap;
}

.hda-search__page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.hda-search__page-btn:hover {
    background: #F3DBD7;
}

.hda-search__page-btn--active {
    background: #960946;
    color: #FEF3E7;
    font-weight: 700;
}

.hda-search__page-btn--active:hover {
    background: #960946;
}

/* ---- Empty state ---- */
.hda-search__empty {
    padding: 4rem 1.5rem;
}

.hda-search__empty-inner {
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
}

.hda-search__empty-inner svg {
    margin-bottom: 1.5rem;
}

.hda-search__empty-inner h2 {
    font-family: 'Qalogre', serif;
    font-size: 1.6rem;
    color: #960946;
    margin: 0 0 0.5rem;
}

.hda-search__empty-inner p {
    color: #777;
    margin: 0 0 1.5rem;
}

.hda-search__empty-btn {
    display: inline-block;
    background: #960946;
    color: #FEF3E7;
    padding: 0.7rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.hda-search__empty-btn:hover {
    background: #BB5D80;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 1025px) {
    .hda-search__section {
        padding: 3rem 2rem 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hda-search__grid--products {
        grid-template-columns: repeat(3, 1fr);
    }

    .hda-search__grid--posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .hda-search__hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hda-search__hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hda-search__hero-title {
        font-size: 1.6rem;
    }

    .hda-search__grid--products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hda-search__grid--posts {
        grid-template-columns: 1fr;
    }

    .hda-search__section {
        padding: 2rem 1rem 1rem;
    }

    .hda-search__section-title {
        font-size: 1.3rem;
    }

    .hda-search__form {
        flex-direction: column;
        border-radius: 1rem;
    }

    .hda-search__input {
        border-bottom: 1px solid #F3DBD7;
    }

    .hda-search__submit {
        border-radius: 0 0 1rem 1rem;
    }

    .hda-search__card-title {
        font-size: 0.88rem;
    }
}