/*
 * 070-bs-store-listing-archive.css — BlackSpace Store Listing Archive
 * Scope: /store-listing/ (Dokan store listing archive page)
 * Enqueued via 070-bs-store-listing-archive.php
 * Version 3.2.0 — March 2026 — Five-issue patch (DOM-verified)
 *
 * VERIFIED DOM STRUCTURE (live inspection March 2026):
 *
 * li.dokan-single-seller.woocommerce.coloum-3
 *   .store-wrapper  [position:relative — avatar positioning parent]
 *     .store-header
 *       .store-banner [Dokan sets min-height:220px — must override to 0]
 *         a > img
 *     .store-content
 *       .store-data-container
 *         .featured-favourite  (empty — hidden)
 *         .store-data > h2 > a | .dokan-seller-rating | .display-address
 *     .store-footer
 *       .seller-avatar > a > img  [ONLY avatar — repositioned absolutely]
 *       a (bare — no text, links to store — repurposed as "Visit Store →" via ::after)
 *       .dokan-btn.dokan-follow-store-button
 *
 * BUG FIXES IN v3.1.0:
 * 1. li width:100% — Dokan's style.css sets flex:0 1 auto (flex-basis:auto = content width)
 *    on the li. In a CSS grid this means the li shrinks to ~116px instead of filling
 *    the 354px track. Fix: width:100% !important on the li.
 * 2. min-height:0 on .store-banner — Dokan's style.css sets min-height:220px, overriding
 *    aspect-ratio:16/7. Fix: min-height:0 !important and height:auto !important on both
 *    .store-banner and .store-banner img.
 * 3. Avatar selector corrected — .seller-avatar appears ONLY inside .store-footer in
 *    Dokan's actual DOM (not in .store-header as assumed). Repositioned via absolute
 *    positioning relative to .store-wrapper using top:calc(43.75% - 36px).
 *    43.75% = banner aspect ratio (7/16) expressed as percentage of wrapper width.
 * 4. .store-wrapper overflow:hidden — clip border-radius and banner image zoom.
 *    li is overflow:visible to allow avatar to protrude beyond card top edge.
 * 5. Footer "Visit Store →" — bare <a> in footer has no text; added via ::after.
 *    .seller-avatar in footer given width:0/height:0 to not affect footer layout.
 *
 * Colors: #b0743e bronze | #1e1919 deep-brown | #c8925e bronze-300
 *   #efd9c0 bronze-100 | #f7eee5 bronze-050 | #f5f0eb warm-off-white
 *   #8c5d31 bronze-700 | #474747 graphite | #e6e6e6 silver-mist
 *   #1a1a1a neutral-900 | #2e2e2e neutral-700 | #fafafa neutral-025
 */


/* ══════════════════════════════════════════════════════════
   1. PAGE CONTAINER
   ══════════════════════════════════════════════════════════ */

.page-id-10154 .wd-content-layout,
.dokan-store-listing .wd-content-layout {
  padding-top: 24px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-bottom: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   2. HERO HEADER SECTION [51e371a]
   ══════════════════════════════════════════════════════════ */

.elementor-element.elementor-element-51e371a {
  background-color: #1e1919 !important;
  background-image:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(176,116,62,0.18) 0%, transparent 65%),
    repeating-linear-gradient(-45deg, transparent, transparent 44px,
      rgba(255,255,255,0.018) 44px, rgba(255,255,255,0.018) 45px) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  padding-top: 64px !important;
  padding-bottom: 60px !important;
  padding-left: 80px !important;
  padding-right: 80px !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.elementor-element.elementor-element-51e371a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #b0743e, transparent) !important;
  opacity: 0.45 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.elementor-element.elementor-element-51e371a .ekit-heading--title,
.elementor-element.elementor-element-51e371a .elementskit-section-title {
  color: #ffffff !important;
  font-size: 2.75rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 14px !important;
}

.elementor-element.elementor-element-51e371a .ekit-heading--title span:first-child span,
.elementor-element.elementor-element-51e371a .ekit-heading--title > span:first-of-type span {
  color: #c8925e !important;
}

.elementor-element.elementor-element-51e371a .ekit-heading__description,
.elementor-element.elementor-element-51e371a .ekit-heading__description p {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.875rem !important;
  line-height: 1.75 !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

.elementor-element.elementor-element-51e371a .elementor-widget-container { padding: 0 !important; }
.elementor-element.elementor-element-51e371a .ekit-heading,
.elementor-element.elementor-element-51e371a .elementskit-section-title-wraper { text-align: center !important; }
.elementor-element.elementor-element-51e371a .ekit-wid-con { margin: 0 !important; }


/* ══════════════════════════════════════════════════════════
   3. STORE LISTING SECTION [2f1a3097]
   ══════════════════════════════════════════════════════════ */

.elementor-element.elementor-element-2f1a3097 {
  background-color: #ffffff !important;
  padding-top: 48px !important;
  padding-bottom: 80px !important;
}

.elementor-element.elementor-element-2f1a3097 > .e-con-inner {
  max-width: 1200px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   4. FILTER BAR
   DOM: wrap > .left > p.store-count | .right > .item(filter btn) + form.sort-by + .toggle-view
   FIX: padding was 0 0 20px — content (43px) sat at top of 63px bar, appearing top-aligned.
   Solution: symmetric padding (10px top/bottom) so content sits in the true vertical center.
   FIX: .item wrapper (filter button parent) is display:block — makes it a block-level flex
   child in .right. Switch to display:flex + align-items:center so the button fills it properly.
   FIX: sort-by form is display:block — switch to display:flex + align-items:center.
   FIX: filter button padding was 8px 18px 8px 25px (extra-left from old hidden icon space).
   Corrected to symmetric 8px 18px.
   FIX: filter button hover was border+text only — now fills with #f7eee5 bg (bronze-050)
   to match the Follow button hover pattern.
   FIX: orderby select is display:inline — switch to display:block so it participates
   correctly in the flex row and text is vertically centered.
   ══════════════════════════════════════════════════════════ */

#dokan-store-listing-filter-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  /* FIX: was 0 0 20px — asymmetric padding made content appear top-aligned.
     Symmetric padding keeps content visually centered in the bar. */
  padding: 10px 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  margin-bottom: 32px !important;
  min-height: 44px !important;
}

/* .left: store count — flex so it aligns to center of bar */
#dokan-store-listing-filter-wrap .left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  align-self: center !important;
}

#dokan-store-listing-filter-wrap .left .store-count {
  margin: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1 !important;
}

/* .right: flex row, vertically centered */
#dokan-store-listing-filter-wrap .right {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  align-self: center !important;
}

/* FIX: .item wrapper (filter button parent div) is display:block by default.
   As a block-level flex child it doesn't inherit the .right align-items:center.
   display:flex + align-items:center makes it size to its button content and center it. */
#dokan-store-listing-filter-wrap .right .item {
  display: flex !important;
  align-items: center !important;
}

/* FIX: sort-by FORM is display:block — same issue as .item above. */
#dokan-store-listing-filter-wrap .right .sort-by {
  display: flex !important;
  align-items: center !important;
}

/* Sort select — HIGH-SPECIFICITY to beat Dokan's .right .item select rule.
   Dokan sets -webkit-appearance:none, padding:8px 20px, and no text-align.
   text-align:center + text-align-last:center centers the option text in the pill.
   Also zero out Dokan's margin:0 30px on .sort-by. */
#dokan-store-listing-filter-wrap .right .item.sort-by {
  margin: 0 !important;
}
#dokan-store-listing-filter-wrap .right .item select,
#dokan-store-listing-filter-wrap .sort-by select,
#dokan-store-listing-filter-wrap select {
  display: block !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 50px !important;
  padding: 8px 16px !important;
  font-family: Verdana, Geneva, sans-serif !important;
  font-size: 0.6875rem !important;
  color: #474747 !important;
  background: #ffffff !important;
  outline: none !important;
  cursor: pointer !important;
  min-width: 150px !important;
  transition: border-color 0.15s !important;
  height: auto !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-align-last: center !important;
}
#dokan-store-listing-filter-wrap .right .item select:hover,
#dokan-store-listing-filter-wrap .sort-by select:hover,
#dokan-store-listing-filter-wrap select:hover {
  border-color: #b0743e !important;
  color: #1a1a1a !important;
}

#dokan-store-listing-filter-wrap .sort-by label { display: none !important; }

/* Filter button — HIGH-SPECIFICITY SELECTOR to beat Dokan's rule:
   #dokan-store-listing-filter-wrap .right .item button { padding-left:35px; padding-right:25px; }
   Dokan specificity: (1,2,1). Our new selector: (1,3,0) — wins.
   Symmetric padding 8px 18px centers the text. */
#dokan-store-listing-filter-wrap .right .item .dokan-store-list-filter-button,
#dokan-store-listing-filter-wrap .dokan-store-list-filter-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  color: #474747 !important;
  padding: 8px 18px !important;
  font-family: Verdana, Geneva, sans-serif !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
#dokan-store-listing-filter-wrap .right .item .dokan-store-list-filter-button:hover,
#dokan-store-listing-filter-wrap .right .item .dokan-store-list-filter-button:focus,
#dokan-store-listing-filter-wrap .right .item .dokan-store-list-filter-button[aria-expanded="true"],
#dokan-store-listing-filter-wrap .dokan-store-list-filter-button:hover,
#dokan-store-listing-filter-wrap .dokan-store-list-filter-button:focus,
#dokan-store-listing-filter-wrap .dokan-store-list-filter-button[aria-expanded="true"] {
  border-color: #b0743e !important;
  color: #b0743e !important;
  background: #f7eee5 !important;
}
/* Hide dashicon and dokan-icons inside filter button */
#dokan-store-listing-filter-wrap .dokan-store-list-filter-button .dashicons,
#dokan-store-listing-filter-wrap .right .item .dokan-icons { display: none !important; }

/* Hide view toggle — grid view is fixed */
#dokan-store-listing-filter-wrap .toggle-view { display: none !important; }

#dokan-store-listing-filter-form-wrap .apply-filter .dokan-btn {
  border: 2px solid #000000 !important; background-color: #000000 !important;
  color: #ffffff !important; border-radius: 50px !important;
  font-family: Verdana, Geneva, sans-serif !important; font-size: 0.6875rem !important;
  font-weight: 700 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important;
  padding: 9px 22px !important; transition: background 0.15s, color 0.15s !important;
}
#dokan-store-listing-filter-form-wrap .apply-filter .dokan-btn:hover {
  background-color: #b0743e !important; border-color: #b0743e !important;
}
#dokan-store-listing-filter-form-wrap .bs-store-filter-reset.dokan-btn {
  border: 2px solid #e6e6e6 !important; background-color: #ffffff !important;
  color: #474747 !important; border-radius: 50px !important;
  font-family: Verdana, Geneva, sans-serif !important; font-size: 0.6875rem !important;
  font-weight: 700 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important;
  padding: 9px 22px !important;
}
#dokan-store-listing-filter-form-wrap .bs-store-filter-reset.dokan-btn:hover {
  border-color: #000000 !important; background-color: #000000 !important; color: #ffffff !important;
}


/* ══════════════════════════════════════════════════════════
   5. GRID WRAPPER
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap { margin-top: 0 !important; }

#dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-wrap: unset !important;
  align-items: unset !important;
}

/* Dokan injects a .dokan-clearfix div at end of ul — hide it */
#dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap .dokan-clearfix {
  display: none !important;
}

/* FIX: WoodMart/theme injects ::before { display:table; content:" " } on ul
   as a clearfix. In a CSS grid this ghost item occupies the first cell,
   pushing every real card forward by one position (empty top-left corner).
   display:none removes it from grid flow. Scalable to any card count. */
#dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap::before,
#dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap::after {
  display: none !important;
  content: none !important;
}


/* ══════════════════════════════════════════════════════════
   6. STORE CARD SHELL
   FIX: Dokan's style.css gives li flex:0 1 auto (flex-basis:auto = content width).
   A grid item with flex-basis:auto shrinks to content instead of filling the track.
   width:100% !important is the correct fix.
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap > li.dokan-single-seller {
  width: 100% !important;      /* FIX #1 — force li to fill its 354px grid track */
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  overflow: visible !important; /* visible so avatar circle can extend above/beyond card */
  box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
  position: relative !important;
}

#dokan-seller-listing-wrap.grid-view .dokan-seller-wrap > li.dokan-single-seller:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09) !important;
  transform: translateY(-3px) !important;
}


/* ══════════════════════════════════════════════════════════
   7. STORE WRAPPER
   Contains: .store-header (banner) + .store-content + .store-footer.
   overflow:hidden clips the banner zoom and enforces border-radius.
   position:relative is the anchor for the absolutely-positioned avatar.
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-wrapper {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding-top: 0 !important;
  position: relative !important;
  overflow: hidden !important;   /* clips banner zoom + enforces radius */
  border-radius: 10px !important;
}


/* ══════════════════════════════════════════════════════════
   8. STORE BANNER
   FIX #2: override Dokan's min-height:220px from style.css.
   aspect-ratio:16/7 controls height correctly once min-height is cleared.
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-header {
  display: block !important;
  position: relative !important;   /* avatar's absolute positioning anchors to this */
  padding: 0 !important; margin: 0 !important;
  border: none !important; background: none !important;
  flex-shrink: 0 !important; width: 100% !important;
}

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-banner {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 7 !important;
  min-height: 0 !important;   /* FIX #2a — override Dokan's min-height:220px */
  height: auto !important;
  overflow: hidden !important;
  position: relative !important;
  background: linear-gradient(135deg, #1e1919 0%, #5a3b1e 100%) !important; /* fallback */
  flex-shrink: 0 !important;
}

/* Gradient overlay — darkens banner bottom */
#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-banner::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, transparent 55%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-banner a {
  display: block !important; width: 100% !important; height: 100% !important;
}

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-banner img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;  /* FIX #2b — override Dokan's height:220px on img */
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transition: transform 0.35s ease !important;
  position: relative !important;
  z-index: 0 !important;
}

#dokan-seller-listing-wrap.grid-view .dokan-single-seller:hover .store-banner img {
  transform: scale(1.04) !important;
}


/* ══════════════════════════════════════════════════════════
   9. AVATAR
   VERIFIED: .seller-avatar is ONLY in .store-footer.
   It is positioned absolutely relative to .store-wrapper (position:relative).
   CRITICAL: .store-footer must NOT be position:relative — if it is, the
   avatar's top% calculates against footer height (~69px) not wrapper height.
   Fix: .store-footer gets position:static so .store-wrapper is the anchor.
   top:calc(43.75% - 36px) on store-wrapper:
     43.75% of wrapper HEIGHT... wait — % top on absolute child is % of
     containing block HEIGHT. store-wrapper height ≈ 223px.
     43.75% × 223 = 97.6px - 36 = 61.6px from top of wrapper.
     Banner is aspect-ratio 16/7 of width. Width=352, banner h=154px.
     We want avatar top at banner_h - 36 = 118px.
     So we use px-based calc relative to banner aspect ratio on the width:
     top: calc(43.75vw * ... ) — too complex. Simpler: use the banner
     as the positioning context. Put avatar inside .store-header instead via CSS.
     ACTUAL FIX: add position:relative to .store-header, position avatar
     absolutely bottom:-36px left:18px relative to .store-header (the banner wrapper).
     This is immune to card height and works at all widths.
   ══════════════════════════════════════════════════════════ */

/* store-header: position:relative for z-index stacking context (avatar sits above banner) */
#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-header {
  position: relative !important;
}

/* store-footer: position:static — does not intercept avatar's absolute positioning */
#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer {
  position: static !important;
}

/* ──────────────────────────────────────────────────────────
   AVATAR POSITIONING — DOM CONSTRAINT NOTES
   The .seller-avatar lives inside .store-footer, which is a SIBLING
   of .store-header — not a descendant. position:absolute can only
   resolve against ANCESTOR elements, not siblings. Therefore the
   avatar cannot be positioned relative to .store-header regardless
   of what position value .store-header has.

   The actual containing block chain from .seller-avatar upward is:
     .store-footer (position:static — skipped)
     .store-wrapper (position:relative — this IS the containing block)
     .li (position:relative — further up, not used)

   Therefore: avatar position is relative to .store-wrapper.
   Banner height = wrapper_width × (7/16) = wrapper_width × 0.4375.
   We want avatar top = banner_height - 36px (36px overlap into banner).
   CSS cannot use width-percentage in the `top` property (top:% uses
   containing block HEIGHT, not width). So we use calculated px values
   per breakpoint, derived from known grid math:

   Desktop (>960px, 3-col): li=354px → banner=154px → top=118px
   Tablet  (≤960px, 2-col): li≈528px → banner=231px → top=195px
   Mobile  (≤640px, 1-col, 16:6 ratio): banner≈231px  → top=195px
   480px   (1-col, 16:6, avatar 60px):  banner≈172px  → top=142px
   ────────────────────────────────────────────────────────── */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar {
  position: absolute !important;
  top: 118px !important;   /* desktop: banner(154px) - overlap(36px) = 118px from wrapper top */
  left: 18px !important;
  right: auto !important;
  bottom: auto !important;
  width: 72px !important;
  height: 72px !important;
  z-index: 5 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 0 !important;
}

/* Avatar link — the circle container.
   display:flex + centering ensures the placeholder image (and any avatar)
   is always centered horizontally and vertically inside the circle. */
#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid #ffffff !important;
  outline: 2px solid rgba(176,116,62,0.55) !important;
  outline-offset: 0 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
  background: #efd9c0 !important;
  pointer-events: none !important;  /* avatar is not a visit-store link */
}

/* Avatar image — fills circle, centered */
#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  flex-shrink: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   10. STORE CONTENT
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-content {
  flex: 1 1 auto !important;
  padding: 22px 18px 14px !important;
  background: transparent !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#dokan-seller-listing-wrap.grid-view .store-content .store-data-container {
  display: block !important; background: transparent !important; padding: 0 !important;
}

#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data,
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data.store_open_is_on {
  margin-top: 0 !important; padding-top: 0 !important;
}

/* Store name */
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data h2 {
  font-size: 1rem !important; font-weight: 700 !important; line-height: 1.2 !important;
  color: #000000 !important; margin: 0 0 8px !important; padding: 0 !important;
  display: block !important; overflow-wrap: break-word !important; word-break: break-word !important;
}
/* Dokan's style.css sets font-size:25px and text-shadow on h2 a — override both */
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data h2 a {
  font-size: 1rem !important;
  text-shadow: none !important;
  color: #000000 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data h2 a:hover {
  color: #b0743e !important;
}

/* Open/Closed status — hidden */
#dokan-seller-listing-wrap.grid-view .dokan-store-is-open-close-status,
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data .dokan-store-is-open-close-status {
  display: none !important;
}

/* Address — location pill */
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data .display-address {
  display: inline-flex !important; align-items: center !important; gap: 4px !important;
  font-size: 0.625rem !important; font-weight: 700 !important; letter-spacing: 0.08em !important;
  text-transform: uppercase !important; color: #474747 !important;
  background: #fafafa !important; border: 1px solid #e6e6e6 !important;
  border-radius: 50px !important; padding: 3px 10px !important;
  margin-top: 0 !important; line-height: 1.4 !important;
}

/* Rating */
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data .dokan-seller-rating {
  display: inline-flex !important; align-items: center !important; gap: 4px !important; margin-top: 8px !important;
}
#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .store-data .dokan-seller-rating p.rating {
  position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
}

/* Stars */
#dokan-seller-listing-wrap .dokan-seller-rating .dashicons,
#dokan-seller-listing-wrap.grid-view .store-content .dokan-seller-rating .dashicons {
  color: #FFCD3C !important; font-size: 14px !important; display: inline-block !important; line-height: 1 !important;
}

@font-face {
  font-family: "dashicons";
  src: url("/wp-includes/fonts/dashicons.woff2") format("woff2"),
       url("/wp-includes/fonts/dashicons.woff") format("woff");
  font-weight: normal; font-style: normal;
}
.dashicons { font-family: "dashicons" !important; font-weight: normal; font-style: normal; text-decoration: inherit; display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased; }
.dashicons-star-filled:before { content: "\f155"; }
.dashicons-star-empty:before  { content: "\f154"; }
.dashicons-star-empty { color: #d1d5db !important; }

#dokan-seller-listing-wrap.grid-view .store-content .store-data-container .featured-favourite {
  display: none !important;
}


/* ══════════════════════════════════════════════════════════
   11. STORE FOOTER
   VERIFIED: footer children are:
     .seller-avatar (repositioned absolute — not in flow)
     <a> wrapping avatar img (the visit-store link — hidden per brief)
     .dokan-follow-store-button
   position:static so .store-header anchors the avatar (not footer).
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer {
  position: static !important;  /* must not intercept avatar absolute positioning */
  margin-top: auto !important;
  padding: 12px 18px 14px !important;
  background: #fafafa !important;
  border-top: 1px solid #e6e6e6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Hide visit-store <a> — avatar link is not a CTA, no Visit Store link needed */
#dokan-seller-listing-wrap.grid-view .store-footer > a:not(.dokan-btn) {
  display: none !important;
}

/* Follow button */
#dokan-seller-listing-wrap.grid-view .store-footer .dokan-follow-store-button {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 50px !important;
  padding: 5px 14px !important;
  background: #ffffff !important;
  color: #474747 !important;
  cursor: pointer !important;
  font-family: Verdana, Geneva, sans-serif !important;
  transition: border-color 0.15s, color 0.15s, background 0.15s !important;
  margin-left: 0 !important;
}
#dokan-seller-listing-wrap.grid-view .store-footer .dokan-follow-store-button:hover {
  border-color: #b0743e !important; color: #b0743e !important; background: #f7eee5 !important;
}

#dokan-seller-listing-wrap .dokan-follow-store-button .dokan-follow-store-button-label-current { display: inline !important; }
#dokan-seller-listing-wrap .dokan-follow-store-button .dokan-follow-store-button-label-unfollow { display: none !important; }


/* ══════════════════════════════════════════════════════════
   12. GENERAL LINKS + PAGINATION
   ══════════════════════════════════════════════════════════ */

#dokan-seller-listing-wrap.grid-view .dokan-single-seller a {
  color: #000000 !important; text-decoration: none !important;
}

#dokan-seller-listing-wrap + .dokan-pagination,
.dokan-pagination {
  margin-top: 48px !important; display: flex !important; justify-content: center !important; gap: 6px !important;
}
.dokan-pagination .page-numbers {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 36px !important; height: 36px !important; border-radius: 50% !important;
  border: 1px solid #e6e6e6 !important; background: #ffffff !important;
  font-family: Verdana, Geneva, sans-serif !important; font-size: 0.8125rem !important;
  font-weight: 700 !important; color: #474747 !important; text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}
.dokan-pagination .page-numbers:hover,
.dokan-pagination .page-numbers.current {
  background: #b0743e !important; border-color: #b0743e !important; color: #ffffff !important;
}


/* ══════════════════════════════════════════════════════════
   13. RESPONSIVE — 960px
   ══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .elementor-element.elementor-element-51e371a {
    padding-top: 52px !important; padding-bottom: 48px !important;
    padding-left: 48px !important; padding-right: 48px !important;
  }
  .elementor-element.elementor-element-51e371a .ekit-heading--title { font-size: 2.25rem !important; }

  #dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap {
    grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important;
  }
  /* 2-col: li≈528px → banner=528×7/16=231px → avatar top=231-36=195px */
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar {
    top: 195px !important;
  }
  #dokan-store-listing-filter-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 10px 0 !important;
  }
  #dokan-store-listing-filter-wrap .right {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}


/* ══════════════════════════════════════════════════════════
   14. RESPONSIVE — 768px
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .page-id-10154 .wd-content-layout {
    padding-top: 16px !important; padding-left: 16px !important; padding-right: 16px !important;
  }
  .elementor-element.elementor-element-51e371a { padding: 48px 32px 44px !important; }
  .elementor-element.elementor-element-51e371a .ekit-heading--title { font-size: 2rem !important; }
  .elementor-element.elementor-element-2f1a3097 { padding-top: 36px !important; padding-bottom: 60px !important; }
}


/* ══════════════════════════════════════════════════════════
   15. RESPONSIVE — 640px
   ══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .page-id-10154 .wd-content-layout {
    padding-top: 12px !important; padding-left: 12px !important; padding-right: 12px !important;
  }
  .elementor-element.elementor-element-51e371a {
    padding: 48px 24px 44px !important; border-radius: 8px !important;
  }
  .elementor-element.elementor-element-51e371a .ekit-heading--title { font-size: 1.625rem !important; }
  .elementor-element.elementor-element-51e371a .ekit-heading__description p { font-size: 0.8125rem !important; }
  .elementor-element.elementor-element-2f1a3097 { padding-top: 28px !important; padding-bottom: 48px !important; }

  #dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap {
    grid-template-columns: 1fr !important; gap: 14px !important;
  }
  /* 1-col, 16:6 ratio: at 640px vp, ul≈616px → banner=616×6/16=231px → top=231-36=195px */
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar {
    top: 195px !important;
  }
  /* store-content padding-top must clear avatar: 36px overlap + 16px gap = 52px (unchanged) */
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-banner {
    aspect-ratio: 16 / 6 !important;
  }
}


/* ══════════════════════════════════════════════════════════
   16. RESPONSIVE — 480px
   ══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .page-id-10154 .wd-content-layout {
    padding-top: 10px !important; padding-left: 10px !important; padding-right: 10px !important;
  }
  .elementor-element.elementor-element-51e371a {
    padding: 40px 18px 36px !important; border-radius: 6px !important;
  }
  .elementor-element.elementor-element-51e371a .ekit-heading--title { font-size: 1.5rem !important; }
  .elementor-element.elementor-element-2f1a3097 { padding-top: 24px !important; padding-bottom: 40px !important; }

  #dokan-seller-listing-wrap.grid-view ul.dokan-seller-wrap { gap: 12px !important; }

  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar {
    width: 60px !important; height: 60px !important;
    /* 1-col, 16:6, 60px avatar: at 480px vp, ul≈460px → banner=460×6/16=172px → top=172-30=142px */
    top: 142px !important;
  }
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar a {
    width: 60px !important; height: 60px !important;
  }
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-footer .seller-avatar img {
    width: 60px !important; height: 60px !important; max-width: 60px !important;
  }
  #dokan-seller-listing-wrap.grid-view .dokan-single-seller .store-content {
    padding-top: 44px !important;
  }
}
