/* ===========================
   Exclusive Deals Carousel
   =========================== */

:root {
    --qe-bg: #ffffff;
    --qe-text: #111827;
    --qe-muted: #6b7280;
    --qe-border: #e5e7eb;
    --qe-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
    --qe-radius: 14px;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* section wrapper: wide + minimal padding */
.qe-section {
    padding: 22px 0;
}

.qe-wrap {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.qe-sectionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.qe-sectionTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--qe-text);
}

.qe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--qe-border);
    color: var(--qe-text);
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}

.qe-btn:hover {
    background: rgba(17, 24, 39, 0.03);
}

.qe-btnIcon {
    opacity: .65;
    font-size: 18px;
    margin-top: -1px;
}

/* Carousel shell */
.qe-carousel {
    position: relative;
}

/* Track (one row) */
.qe-carouselTrack {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.qe-carouselTrack::-webkit-scrollbar {
    display: none;
}

/* Cards (reduced size, clean) */
.qe-card {
    flex: 0 0 auto;
    width: 240px;
    /* reduced size */
    background: var(--qe-bg);
    border: 1px solid var(--qe-border);
    border-radius: var(--qe-radius);
    box-shadow: var(--qe-shadow);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transform: translateZ(0);
    /* smoother scrolling on some GPUs */
}

.qe-card:hover {
    border-color: rgba(17, 24, 39, 0.18);
}

.qe-cardMedia {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
}

.qe-cardMedia img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* time chip */
.qe-chip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.85);
    color: var(--qe-text);
    backdrop-filter: blur(8px);
}

.qe-chipIcon {
    opacity: .7;
}

.qe-cardBody {
    padding: 12px 12px 13px;
}

.qe-cardTitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--qe-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}

.qe-priceRow {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.qe-oldPrice {
    font-size: 12px;
    color: var(--qe-muted);
    text-decoration: line-through;
}

.qe-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--qe-text);
}

.qe-discount {
    margin-left: auto;
    font-size: 12px;
    font-weight: 650;
    color: #065f46;
    padding: 4px 10px;
}

/* Carousel buttons (minimal, unobtrusive) */
.qe-carouselBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--qe-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    user-select: none;
}

.qe-carouselBtn:hover {
    background: #fff;
}

.qe-carouselBtn:disabled {
    opacity: .35;
    cursor: default;
}

.qe-carouselBtn--prev {
    left: -6px;
}

.qe-carouselBtn--next {
    right: -6px;
}

/* Responsive sizing */
@media (max-width: 900px) {
    .qe-wrap {
        width: calc(100% - 28px);
    }

    .qe-card {
        width: 220px;
    }

    .qe-carouselBtn--prev {
        left: -2px;
    }

    .qe-carouselBtn--next {
        right: -2px;
    }
}

@media (max-width: 520px) {
    .qe-card {
        width: 200px;
    }

    .qe-sectionHead {
        align-items: flex-end;
    }

    .qe-sectionTitle {
        font-size: 16px;
    }
}

/* ===========================
   End Exclusive Deals Carousel
   =========================== */

   /* =========================================================
   Qwik-E-Mart — Business Directory (public) styling
   Targets existing markup in /views/businesses.view.php only
   ========================================================= */

   .qe-page {
       padding: 24px 0 48px;
   }

   .qe-wrap {
       max-width: 1280px;
       margin: 0 auto;
       padding: 0 16px;
   }

   .qe-pageHead {
       margin: 10px 0 18px;
   }

   .qe-pageTitle {
       margin: 0;
       font-size: 34px;
       line-height: 1.1;
       letter-spacing: -0.02em;
   }

   .qe-pageSub {
       margin: 10px 0 0;
       color: rgba(0, 0, 0, 0.65);
       font-size: 14px;
   }

   /* Empty state */
   .qe-empty {
       border: 1px solid rgba(0, 0, 0, 0.10);
       background: #fff;
       border-radius: 14px;
       padding: 18px;
       box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
       max-width: 560px;
   }

   .qe-emptyTitle {
       font-size: 18px;
       font-weight: 700;
       margin-bottom: 6px;
   }

   .qe-emptyText {
       color: rgba(0, 0, 0, 0.65);
       margin-bottom: 14px;
   }

   .qe-emptyActions .qe-btn {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       height: 36px;
       padding: 0 14px;
       border-radius: 10px;
       text-decoration: none;
       font-weight: 600;
   }

   .qe-btn.qe-btn--primary {
       background: #111;
       color: #fff;
       border: 1px solid #111;
   }

   .qe-btn.qe-btn--primary:hover {
       filter: brightness(1.05);
   }

/* Businesses directory tiles (scoped to this view) */
.qe-bizGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 22px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .qe-bizGrid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 580px) {
    .qe-bizGrid {
        grid-template-columns: 1fr;
    }
}

.qe-vendorCard {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(20, 35, 55, .06);
    overflow: hidden;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.qe-vendorLink {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Top banner */
.qe-vendorBanner {
    position: relative;
    height: 110px;
    background:
        radial-gradient(900px 180px at 20% 40%, rgba(37, 99, 235, .18), rgba(37, 99, 235, 0) 55%),
        radial-gradient(700px 160px at 80% 30%, rgba(17, 24, 39, .10), rgba(17, 24, 39, 0) 58%),
        linear-gradient(135deg, #f3f6fb, #eef3fb);
}

.qe-vendorBannerImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured badge */
.qe-vendorFeatured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

/* Avatar */
.qe-vendorAvatar {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 22px rgba(20, 35, 55, .08);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.qe-vendorAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qe-vendorAvatar--initials span {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: .5px;
    color: #6f7b88;
}

/* Body */
.qe-vendorBody {
    padding: 44px 16px 18px;
    text-align: center;
    flex: 1;
}

.qe-vendorName {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #2b3a49;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qe-vendorVerified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
}

.qe-vendorVerified svg {
    width: 11px;
    height: 11px;
    fill: #fff;
}

.qe-vendorTitle {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    color: #7f8b98;
}

.qe-vendorDesc {
    margin: 10px auto 0;
    max-width: 44ch;
    font-size: 13px;
    line-height: 1.35;
    color: #6f7b88;
}

/* Footer link */
.qe-vendorFooter {
    border-top: 1px solid #e8edf3;
    padding: 1rem 1.25rem;
    text-align: center;
}

.qe-vendorFooter span {
    font-size: 14px;
    font-weight: 500;
    color: #2b3a49;
    transition: opacity .2s ease;
}

.qe-vendorCard:hover .qe-vendorFooter span {
    opacity: .7;
}
   