.initials-circle {
    width: 120px;
    height: 120px;
    background-color: #6c757d;
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Wishlist heart button — shared across home, search, and any card layout. */
.fav-btn-form {
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 0;
}
.fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow:
        0 4px 12px rgba(15, 42, 42, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    text-decoration: none;
    line-height: 1;
}
.fav-btn i {
    font-size: 17px;
    line-height: 1;
    display: block;
}
.fav-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: #e11d48;
    box-shadow:
        0 6px 16px rgba(225, 29, 72, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}
.fav-btn:active { transform: scale(0.95); }

.fav-btn.is-liked {
    background: #e11d48;
    color: #fff;
    box-shadow:
        0 6px 16px rgba(225, 29, 72, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.fav-btn.is-liked:hover {
    background: #be123c;
    color: #fff;
    transform: scale(1.1);
}

/* ─── Pagination — themed to teal primary, override Bootstrap blue ─── */
.pagination {
    gap: 6px;
    margin: 0;
    --bs-pagination-color: var(--primary, #006A6A);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-active-bg: var(--primary, #006A6A);
    --bs-pagination-active-border-color: var(--primary, #006A6A);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(0, 106, 106, 0.18);
    --bs-pagination-focus-color: var(--primary, #006A6A);
}

.page-link {
    color: var(--primary, #006A6A);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.page-link:hover {
    background: rgba(0, 106, 106, 0.08);
    color: var(--primary, #006A6A);
    border-color: rgba(0, 106, 106, 0.3);
    transform: translateY(-1px);
}

.page-link:focus {
    box-shadow: 0 0 0 3px rgba(0, 106, 106, 0.18);
    border-color: var(--primary, #006A6A);
}

.page-item.active .page-link,
.page-item .page-link.active {
    background: var(--primary, #006A6A);
    border-color: var(--primary, #006A6A);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 106, 106, 0.25);
}

.page-item.disabled .page-link {
    color: #9ca3af;
    background: #fafbfc;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Kaminari "gap" (ellipsis between pages) */
.pagination .page-item.gap span,
.pagination .page.gap {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: #9ca3af;
}

/* ─── Global button overrides ───
   The template's style.css has buggy :hover / :active / :focus / :active:focus
   rules on .btn-primary and .btn-outline-secondary that produce invisible text
   (e.g. teal text on a teal fill). Force readable colors in every state.
   ─────────────────────────────── */

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary, #006A6A) !important;
    border-color: var(--primary, #006A6A) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus,
.btn-primary:active:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #005555 !important;
    border-color: #005555 !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 106, 106, 0.18) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: rgba(0, 106, 106, 0.45) !important;
    border-color: rgba(0, 106, 106, 0.45) !important;
    color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Outline secondary (used by Cancel, "Add to wishlist" etc.) */
.btn-outline-secondary,
.btn-outline-secondary:link,
.btn-outline-secondary:visited {
    background-color: #fff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    box-shadow: none !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2) !important;
}

/* Outline primary — teal text, white bg → teal bg, white text on hover */
.btn-outline-primary,
.btn-outline-primary:link,
.btn-outline-primary:visited {
    background-color: #fff !important;
    border-color: var(--primary, #006A6A) !important;
    color: var(--primary, #006A6A) !important;
    box-shadow: none !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary, #006A6A) !important;
    border-color: var(--primary, #006A6A) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 106, 106, 0.18) !important;
}

/* Shop chip on listing cards — shown on home + search + any grid that
   renders listings/_card. Links straight to the storefront, bypassing
   the parent .listing-link so clicking the chip never navigates to the
   ad. Verified shops get a subtle teal tick next to the name. */
.listing-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px 10px;
    padding: 5px 10px;
    background: var(--surface-2, #f2f4f5);
    color: var(--text-body, #1f2937);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    max-width: calc(100% - 20px);
    transition: background .15s, border-color .15s, color .15s;
}
.listing-shop-chip:hover {
    background: rgba(0, 106, 106, 0.08);
    border-color: rgba(0, 106, 106, 0.35);
    color: var(--primary, #006A6A);
}
.listing-shop-chip > i.fa-shop {
    color: var(--primary, #006A6A);
    font-size: 11px;
}
.listing-shop-chip-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-shop-chip-tick {
    color: var(--primary, #006A6A);
    font-size: 12px;
    line-height: 1;
}
.listing-shop-chip.is-verified {
    background: rgba(0, 106, 106, 0.06);
    border-color: rgba(0, 106, 106, 0.25);
}

/* ─── Listing title links — bech green, no underline ───────────
   Default browser link styling was bleeding through on the home
   + search cards (blue, underlined). The h6 wrapper already has
   a dark colour defined but it doesn't inherit into the anchor,
   so target the anchor directly. Covers:
     • home category grid           (.grid-view .card h6 > a)
     • search / vertical listings   (.blog-widget h6 a, .bloglist-content h6 a)
     • listing card partial         (.listing-card .listing-title a,
                                     .listing-card a.listing-link)
   Hover lifts to a slightly darker teal so the state is still
   perceptible without reintroducing browser blue. */
.grid-view .card h6 > a,
.grid-view .card h6 > a:link,
.grid-view .card h6 > a:visited,
.blog-widget h6 > a,
.blog-widget h6 > a:link,
.blog-widget h6 > a:visited,
.bloglist-content h6 > a,
.bloglist-content h6 > a:link,
.bloglist-content h6 > a:visited,
.listing-card .listing-title,
.listing-card .listing-title a,
.listing-card a.listing-link {
    color: var(--primary, #006A6A) !important;
    text-decoration: none !important;
}

/* Image anchors — when a cover image fails to load, the <a>
   wrapper renders the alt text as a default blue underlined
   link. Keep it muted so a missing image doesn't look like a
   stray hyperlink in the card. */
.blog-widget .blog-img > a,
.blog-widget .blog-img > a:link,
.blog-widget .blog-img > a:visited,
.listing-card .listing-image > a,
.listing-card .listing-image > a:link,
.listing-card .listing-image > a:visited {
    color: var(--text-muted, #6b7280) !important;
    text-decoration: none !important;
}

.grid-view .card h6 > a:hover,
.grid-view .card h6 > a:focus,
.blog-widget h6 > a:hover,
.blog-widget h6 > a:focus,
.bloglist-content h6 > a:hover,
.bloglist-content h6 > a:focus,
.listing-card .listing-title a:hover,
.listing-card .listing-title a:focus,
.listing-card a.listing-link:hover,
.listing-card a.listing-link:focus {
    color: #00514F !important;
    text-decoration: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   Bech home — redesigned category sections, cards, and trust footer.
   Scoped under .bech-home-section / .bech-card so the theme's own
   .blog-widget / .section-heading rules in style.css don't collide.
   ────────────────────────────────────────────────────────────────── */

.bech-home-section {
    margin: 0;
    padding: 28px 0 8px;
}

.bech-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

.bech-section-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.bech-section-bar {
    width: 5px;
    height: 28px;
    border-radius: 3px;
    background: var(--primary, #006A6A);
    flex-shrink: 0;
}

.bech-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bech-section-count {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 106, 106, 0.08);
    color: var(--primary, #006A6A);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.bech-section-fallback {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.bech-section-fallback i { font-size: 10px; }

.bech-section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary, #006A6A) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 6px 2px;
    transition: gap .15s ease;
}
.bech-section-view-all:hover {
    color: #00514F !important;
    gap: 10px;
}
.bech-section-view-all i { font-size: 11px; }

/* ── Card grid ─────────────────────────────────────────────────── */

.bech-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 1199px) { .bech-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .bech-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .bech-card-grid { grid-template-columns: 1fr; } }

.bech-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #d1d5db;
}

.bech-card-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}
.bech-card-media img,
.bech-card-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.bech-card:hover .bech-card-media img { transform: scale(1.04); }

.bech-card-featured-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F59E0B;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

.bech-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.bech-card-fav .fav-icon,
.bech-card-fav button,
.bech-card-fav a { color: #374151; }
.bech-card-fav .fav-icon:hover,
.bech-card-fav button:hover { color: #ef4444; }

/* ── Card body ─────────────────────────────────────────────────── */

.bech-card-body {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.bech-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.bech-card-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.bech-card-initials {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--primary, #006A6A);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.bech-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 12.5px;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bech-card-category-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}
.bech-card-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
}

.bech-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.bech-card-title a,
.bech-card-title a:link,
.bech-card-title a:visited {
    color: #0f172a !important;
    text-decoration: none !important;
}
.bech-card-title a:hover,
.bech-card-title a:focus {
    color: var(--primary, #006A6A) !important;
    text-decoration: none !important;
}

.bech-card-price {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #006A6A);
    letter-spacing: -0.01em;
}

.bech-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    padding-top: 2px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 2px;
    padding-top: 10px;
}
.bech-card-location,
.bech-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bech-card-location i,
.bech-card-date i { color: #94a3b8; font-size: 11px; }

/* Card-level chip reset so the long chip margin from the existing
   listing-shop-chip rules (margin: 0 10px 10px) doesn't poke out
   of the clean new card padding. */
.bech-card .bech-card-chip {
    margin: 2px 0 0;
    align-self: flex-start;
    max-width: 100%;
}
.bech-card-seller-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.bech-card-seller-chip i { font-size: 10px; color: #94a3b8; }

/* ── Trust footer ──────────────────────────────────────────────── */

.bech-trust-footer {
    padding: 32px 0 44px;
    margin-top: 24px;
}
.bech-trust-grid {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 991px) { .bech-trust-grid { grid-template-columns: 1fr; gap: 20px; } }

.bech-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.bech-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 106, 106, 0.1);
    color: var(--primary, #006A6A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.bech-trust-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.bech-trust-copy {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}
