/* Wedzaar — premium vendor cards. Prefixed wz-vp- to avoid theme collisions (no .title / .deal-section). */

/* Isolate from theme sections & prevent horizontal scroll from swiper */
.wz-vp-section {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-x: clip;
    padding-top: calc(12px + (28 - 12) * ((100vw - 320px) / (1920 - 320)));
    padding-bottom: calc(12px + (36 - 12) * ((100vw - 320px) / (1920 - 320)));
    box-sizing: border-box;
}

.wz-vp-section .wz-vp-container {
    max-width: 100%;
}

.wz-vp-category-block {
    position: relative;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.wz-vp-category-block:last-child {
    margin-bottom: 0;
}

.wz-vp-category-block .wz-vp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: nowrap;
    margin-bottom: 1.25rem;
}

/* Do NOT use theme .title — it is display:inline-block and breaks flex on small screens */
.wz-vp-category-block .wz-vp-title-row .wz-vp-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.wz-vp-category-block .wz-vp-title-row .wz-vp-title h2 {
    font-family: "Exo 2", "Public Sans", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3d2c32;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
    font-size: clamp(1.1rem, 2.8vw + 0.65rem, 1.65rem);
}

/* Nav arrows — top right */
.wz-vp-swiper-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wz-vp-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(233, 30, 99, 0.22);
    background: linear-gradient(145deg, #fff 0%, #fff8fa 100%);
    color: #c2185b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.2s ease;
    box-shadow: 0 4px 14px rgba(192, 57, 99, 0.08);
}

.wz-vp-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.45);
    color: #9c1460;
    box-shadow: 0 8px 22px rgba(192, 57, 99, 0.14);
}

.wz-vp-nav-btn:disabled,
.wz-vp-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.wz-vp-nav-btn i {
    font-size: 0.85rem;
}

/* Swiper root: hidden overflow fixes mobile track width; padding allows card shadow */
.wz-vp-swiper.swiper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 4px 2px 12px;
    -webkit-tap-highlight-color: transparent;
}

.wz-vp-swiper .swiper-wrapper {
    box-sizing: border-box;
    align-items: stretch;
}

.wz-vp-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

/* Card shell */
.wz-vp-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 32px rgba(61, 44, 50, 0.09);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(255, 228, 234, 0.9);
    display: flex;
    flex-direction: column;
}

.wz-vp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(61, 44, 50, 0.13);
}

/* Image area */
.wz-vp-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(160deg, #fdf8fa 0%, #f5eef2 50%, #faf6f0 100%);
}

.wz-vp-img-wrap .wz-vp-img-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wz-vp-img-wrap .wz-vp-img-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px);
    transform: scale(1.18);
    opacity: 0.58;
}

.wz-vp-img-wrap .wz-vp-img-main {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    z-index: 1;
}

.wz-vp-img-wrap .wz-vp-img-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.wz-vp-img-wrap .wz-vp-img-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
    overflow: hidden;
}

/* Ribbon + verified */
.wz-vp-img-wrap .wz-vp-top-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.wz-vp-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #7a5c1e;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.wz-vp-verified i {
    color: #c9a227;
    font-size: 0.75rem;
}

.wz-vp-ribbon {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e91e63 0%, #ff7a7a 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.35);
}

/* Body */
.wz-vp-body {
    padding: 1.15rem 1.25rem 1.35rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wz-vp-tag {
    display: inline-block;
    background: linear-gradient(180deg, #ffe4ea 0%, #ffd6e2 100%);
    color: #ad1457;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wz-vp-rating {
    margin: 0.65rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: #d4af37;
    font-size: 0.85rem;
}

.wz-vp-rating .wz-vp-rating-icons {
    display: flex;
    justify-content: center;
    gap: 0.15rem;
}

.wz-vp-rating .fa-star:not(.text-warning):not(.fill) {
    color: #e8ddd0;
}

.wz-vp-name {
    margin: 0.65rem 0 0.35rem;
    font-family: "Exo 2", "Public Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2d1f24;
    line-height: 1.3;
}

.wz-vp-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wz-vp-name a:hover {
    color: #c2185b;
}

.wz-vp-category {
    margin: 0;
    font-size: 0.82rem;
    color: #6d5a62;
    font-weight: 500;
}

.wz-vp-desc {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #5a4d52;
    line-height: 1.45;
}

.wz-vp-meta-row {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: #7d6e74;
}

.wz-vp-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wz-vp-meta-row i {
    color: #c9a227;
    font-size: 0.7rem;
}

/* Actions */
.wz-vp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    gap: 0.75rem;
}

.wz-vp-actions .wz-vp-actions-icons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.wz-vp-actions .wz-vp-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8f4f6 0%, #f0e8ec 100%);
    color: #6d5a62;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(61, 44, 50, 0.06);
}

.wz-vp-actions .wz-vp-icon-btn:hover {
    transform: scale(1.06);
    background: #fff;
    color: #c2185b;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.15);
}

.wz-vp-actions .wz-vp-book-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(45deg, #e91e63 0%, #ff6b6b 45%, #ff8e8e 100%);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.wz-vp-actions .wz-vp-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(233, 30, 99, 0.42);
    color: #fff;
}

.wz-vp-actions .wz-vp-book-btn i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Reset theme heading/button rules inside vendor cards */
.wz-vp-section .wz-vp-card h3.wz-vp-name {
    font-size: 1.1rem;
}

/* --- Mobile: stack heading + nav, tighten touch carousel --- */
@media (max-width: 575.98px) {
    .wz-vp-category-block .wz-vp-title-row {
        flex-wrap: wrap;
        align-items: center;
    }

    .wz-vp-swiper-nav {
        width: 100%;
        justify-content: flex-end;
        order: 3;
    }

    .wz-vp-category-block .wz-vp-title-row .wz-vp-title {
        flex: 1 1 calc(100% - 100px);
    }

    .wz-vp-nav-btn {
        width: 38px;
        height: 38px;
    }

    .wz-vp-img-wrap {
        height: 220px;
    }

    .wz-vp-body {
        padding: 1rem 0.9rem 1.15rem;
    }

    .wz-vp-meta-row {
        gap: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .wz-vp-actions {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .wz-vp-actions .wz-vp-book-btn {
        flex: 1 1 auto;
        min-width: min(100%, 9rem);
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .wz-vp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wz-vp-actions .wz-vp-actions-icons {
        justify-content: center;
    }

    .wz-vp-actions .wz-vp-book-btn {
        width: 100%;
        min-width: 0;
    }

    .wz-vp-img-wrap .wz-vp-top-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wz-vp-img-wrap .wz-vp-ribbon {
        align-self: flex-end;
    }
}
