/* ============================================================
   Pick.Guitars — Single Store Template Styles
   Path in child theme: /assets/css/pg-store.css
   Enqueue conditionally on dokan_is_store_page().
   ============================================================ */

:root {
    --pg-blue: #1e3fff;
    --pg-blue-dark: #1530cc;
    --pg-orange: #f4622e;
    --pg-orange-dark: #d54e1e;
    --pg-ink: #0e0e10;
    --pg-ink-muted: #5b5b66;
    --pg-line: #e6e7ec;
    --pg-surface: #ffffff;
    --pg-surface-alt: #f7f8fb;
    --pg-radius-sm: 8px;
    --pg-radius: 14px;
    --pg-radius-lg: 20px;
    --pg-radius-pill: 999px;
    --pg-shadow-sm: 0 1px 2px rgba(14, 14, 16, .04), 0 1px 4px rgba(14, 14, 16, .04);
    --pg-shadow: 0 4px 16px rgba(14, 14, 16, .06), 0 2px 4px rgba(14, 14, 16, .04);
    --pg-shadow-lg: 0 16px 48px rgba(14, 14, 16, .14);
    --pg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

.pg-store,
.pg-store *,
.pg-store *::before,
.pg-store *::after {
    box-sizing: border-box;
}

.pg-store {
    font-family: var(--pg-font);
    color: var(--pg-ink);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* ---------- Hide any leftover Dokan sidebar ---------- */
.pg-store .dokan-store-sidebar,
.pg-store #dokan-secondary {
    display: none;
}

/* ---------- Header ---------- */
.pg-store__header {
    position: relative;
    border-radius: var(--pg-radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--pg-blue);
    border: 1px solid var(--pg-line);
}

.pg-store__banner {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: var(--pg-blue);
    position: relative;
}

.pg-store__banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 63, 255, 0) 0%, rgba(14, 14, 16, .35) 100%);
}

.pg-store__identity {
    background: var(--pg-surface);
    padding: 24px;
}

.pg-store__identity-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}

.pg-store__avatar {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pg-surface-alt);
    border: 4px solid var(--pg-surface);
    box-shadow: var(--pg-shadow);
    margin-top: -72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg-store .pg-store__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.pg-store__avatar-fallback {
    font-size: 36px;
    font-weight: 700;
    color: var(--pg-blue);
}

.pg-store__heading { min-width: 0; }

.pg-store__name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    color: var(--pg-ink);
}

.pg-store__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pg-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--pg-radius-pill);
    background: var(--pg-surface-alt);
    color: var(--pg-ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.pg-store__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pg-ink-muted);
    margin-bottom: 4px;
}

.pg-store__rating-stars {
    display: inline-flex;
    gap: 1px;
    color: var(--pg-line);
}

.pg-star {
    width: 16px;
    height: 16px;
}

.pg-star.is-filled {
    color: var(--pg-orange);
}

.pg-store__desc {
    font-size: 15px;
    color: var(--pg-ink-muted);
    margin: 8px 0 0;
    line-height: 1.5;
    max-width: 60ch;
}

.pg-store__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    flex-shrink: 0;
}

.pg-store__social {
    display: flex;
    gap: 8px;
}

.pg-store__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pg-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-ink-muted);
    transition: background .15s, color .15s;
}

.pg-store__social a:hover {
    background: var(--pg-blue);
    color: #fff;
}

.pg-store__social svg {
    width: 16px;
    height: 16px;
}

/* ---------- Meta strip ---------- */
.pg-store__meta {
    margin-bottom: 24px;
}

.pg-store__meta-inner {
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.pg-store__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pg-ink);
    text-decoration: none;
}

.pg-store__meta-item--link {
    transition: color .15s;
}

.pg-store__meta-item--link:hover {
    color: var(--pg-blue);
}

.pg-store__meta-action {
    margin-left: auto;
}

.pg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--pg-blue);
}

/* ============================================================
   ABOUT SECTION — vendor extended profile
   Paste this into pg-store.css, anywhere BEFORE the
   "Responsive" media-query block at the bottom of the file.
   ============================================================ */

.pg-store__about {
    margin-bottom: 24px;
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 28px;
}

.pg-store__about-inner {
    display: grid;
    gap: 32px;
    align-items: start;
}

.pg-store__about-inner--split { grid-template-columns: 1fr 1fr; }
.pg-store__about-inner--solo  { grid-template-columns: 1fr; }

.pg-store__about-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--pg-ink);
}

.pg-store__about-text p { margin: 0 0 1em; }
.pg-store__about-text p:last-child { margin-bottom: 0; }

.pg-store__about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--pg-radius);
    display: block;
}

@media (max-width: 768px) {
    .pg-store__about-inner--split { grid-template-columns: 1fr; gap: 20px; }
    .pg-store__about { padding: 20px; }
}

/* ---------- Filter pills ---------- */
.pg-store__filters {
    margin-bottom: 24px;
}

.pg-store__filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--pg-radius-pill);
    border: 1px solid var(--pg-line);
    background: var(--pg-surface);
    color: var(--pg-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.2;
    transition: all .15s;
}

.pg-pill:hover {
    border-color: var(--pg-blue);
    color: var(--pg-blue);
}

.pg-pill.is-active {
    background: var(--pg-blue);
    border-color: var(--pg-blue);
    color: #fff;
}

/* ---------- Buttons ---------- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--pg-radius-pill);
    border: 1px solid transparent;
    background: transparent;
    color: var(--pg-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: all .15s;
}

.pg-btn--primary {
    background: var(--pg-orange);
    color: #fff !important;
}

.pg-btn--primary:hover,
.pg-btn--primary:focus {
    background: var(--pg-orange-dark);
    color: #fff;
}

.pg-btn--secondary {
    background: var(--pg-blue);
    color: #fff;
}

.pg-btn--secondary:hover,
.pg-btn--secondary:focus {
    background: var(--pg-blue-dark);
    color: #fff;
}

.pg-btn--ghost {
    border-color: var(--pg-line);
    color: var(--pg-ink);
    background: var(--pg-surface);
}

.pg-btn--ghost:hover,
.pg-btn--ghost:focus {
    border-color: var(--pg-blue);
    color: var(--pg-blue);
}

/* ---------- Product grid ---------- */
.pg-store__main {
    margin-bottom: 48px;
}

/* Apply grid wherever our cards are rendered (store pages + WC archives). */
/* .pg-grid is added to ul.products via woocommerce_product_loop_start filter. */
/* Desktop default: 3 columns. Tablet/mobile overridden in media queries below. */
ul.products.pg-grid,
.pg-store__grid ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Kill WC's clearfix pseudo-elements that fight grid layout */
ul.products.pg-grid::before,
ul.products.pg-grid::after {
    content: none;
    display: none;
}

/* ---------- Product card ---------- */
/* Specificity (0,4,2) ties .woocommerce ul.products.columns-N li.product;
   our stylesheet loads later via wp_enqueue dependency so we win. */
.woocommerce ul.products li.product.pg-card {
    position: relative;
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    float: none;
    clear: none;
}

.woocommerce ul.products li.product.pg-card:hover {
    box-shadow: var(--pg-shadow);
    border-color: transparent;
    transform: translateY(-2px);
}

.pg-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--pg-surface-alt);
    overflow: hidden;
}

.pg-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    max-width: none;
    transition: transform .3s;
}

.woocommerce ul.products li.product.pg-card:hover .pg-card__media img {
    transform: scale(1.04);
}

.pg-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--pg-radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    z-index: 2;
    color: #fff;
}

.pg-card__badge--sale {
    background: var(--pg-orange);
}

.pg-card__badge--featured {
    background: var(--pg-blue);
}

.pg-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.pg-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: var(--pg-ink);
}

.pg-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Make the whole card clickable while keeping title as the semantic link */
.pg-card__title a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pg-card__meta {
    font-size: 13px;
    color: var(--pg-ink-muted);
    margin: 0;
}

.pg-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
}

.pg-card__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--pg-ink);
}

.pg-card__price .woocommerce-Price-amount {
    color: inherit;
}

.pg-card__price del {
    color: var(--pg-ink-muted);
    font-weight: 400;
    font-size: 14px;
    margin-right: 6px;
}

.pg-card__price ins {
    text-decoration: none;
    color: var(--pg-orange);
}

/* ---------- Add to cart button (and other WC product-type buttons) ---------- */
/* z-index: 2 keeps it clickable above .pg-card__title a::before card overlay */
.pg-card .button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--pg-radius-pill);
    background: var(--pg-orange);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .15s;
}

.pg-card .button:hover,
.pg-card .button:focus {
    background: var(--pg-orange-dark);
    color: #fff;
}

/* Loading state WC toggles via JS during AJAX add */
.pg-card .button.loading {
    opacity: .7;
    pointer-events: none;
}

.pg-card .button.loading::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pg-spin .6s linear infinite;
}

/* Hide WC's inline "View cart" link that appears next to the button
   after a successful add — it breaks the card layout, and the site
   header cart icon already signals the add. */
.pg-card .added_to_cart {
    display: none;
}

@keyframes pg-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Pagination ---------- */
.pg-store__pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pg-store__pagination .navigation,
.pg-store__pagination .pagination,
.pg-store__pagination .dokan-pagination-container {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-store__pagination a,
.pg-store__pagination span {
    padding: 8px 14px;
    border-radius: var(--pg-radius-sm);
    border: 1px solid var(--pg-line);
    color: var(--pg-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.pg-store__pagination a:hover {
    border-color: var(--pg-blue);
    color: var(--pg-blue);
}

.pg-store__pagination .current,
.pg-store__pagination .active {
    background: var(--pg-blue);
    border-color: var(--pg-blue);
    color: #fff;
}

/* ---------- Empty state ---------- */
.pg-store__empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--pg-ink-muted);
    background: var(--pg-surface-alt);
    border-radius: var(--pg-radius);
    font-size: 16px;
}

/* ---------- Modal ---------- */
.pg-modal[hidden] {
    display: none;
}

.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pg-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 16, .6);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.pg-modal__dialog {
    position: relative;
    background: var(--pg-surface);
    border-radius: var(--pg-radius-lg);
    box-shadow: var(--pg-shadow-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--pg-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pg-modal__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--pg-ink);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-modal__subtitle {
    font-size: 13px;
    font-weight: 400;
    color: var(--pg-ink-muted);
}

.pg-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--pg-surface-alt);
    color: var(--pg-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}

.pg-modal__close:hover {
    background: var(--pg-line);
}

.pg-modal__close svg {
    width: 18px;
    height: 18px;
}

.pg-modal__body {
    flex: 1;
    overflow: hidden;
    background: var(--pg-surface-alt);
}

.pg-modal__body iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
}

.pg-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--pg-line);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dokan-store-products-filter-area {
    display: none !important;
}
.dokan-store #breadcrumbs {
    display: none !important;
}

/* ============================================================
   Store Lists — Dokan stores listing page
   ============================================================ */

.pg-store-list {
    margin: 24px 0;
}

.pg-store-list__grid,
#dokan-seller-listing-wrap ul.pg-store-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Dokan's stylesheet adds ::before/::after as a clearfix on .dokan-seller-wrap.
   In a CSS Grid container those pseudo-elements become grid items and push
   our first card into column 2. Killing them puts everything back in line. */
#dokan-seller-listing-wrap ul.pg-store-list__grid.dokan-seller-wrap::before,
#dokan-seller-listing-wrap ul.pg-store-list__grid.dokan-seller-wrap::after {
    content: none;
    display: none;
}

/* ---------- Store card ---------- */
/* ID-prefixed selector beats Dokan's #dokan-seller-listing-wrap ul.dokan-seller-wrap li
   which was applying padding: 0 15px and squeezing each card. */
.pg-store-card,
#dokan-seller-listing-wrap ul.pg-store-list__grid > li.pg-store-card {
    position: relative;
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    float: none;
    justify-self: stretch;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}

.pg-store-card:hover {
    box-shadow: var(--pg-shadow);
    border-color: transparent;
    transform: translateY(-2px);
}

/* ---------- Media: banner + badges + avatar ---------- */
.pg-store-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--pg-blue) 0%, var(--pg-blue-dark) 100%);
}

/* Fallback initial shown when no banner is uploaded */
.pg-store-card__media::before {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .25);
    font-size: 88px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.pg-store-card__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-store-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--pg-radius-pill);
    background: var(--pg-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pg-store-card__status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--pg-radius-pill);
    background: rgba(255, 255, 255, .95);
    color: var(--pg-ink);
    font-size: 11px;
    font-weight: 600;
}

.pg-store-card__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pg-store-card__status.is-open {
    color: #00875a;
}

.pg-store-card__status.is-closed {
    color: var(--pg-ink-muted);
}

.pg-store-card__avatar {
    position: absolute;
    left: 16px;
    bottom: -24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--pg-surface);
    border: 3px solid var(--pg-surface);
    box-shadow: var(--pg-shadow-sm);
    overflow: hidden;
}

.pg-store-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-store-card__avatar span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--pg-surface-alt);
    color: var(--pg-blue);
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
}

/* ---------- Body ---------- */
.pg-store-card__body {
    padding: 36px 20px 20px;   /* extra top for avatar overlap */
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.pg-store-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--pg-ink);
}

.pg-store-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Make the whole card clickable while keeping title as the semantic link */
.pg-store-card__title a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pg-store-card__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--pg-ink-muted);
}

.pg-store-card__location svg {
    width: 14px;
    height: 14px;
    color: var(--pg-blue);
    flex-shrink: 0;
}

.pg-store-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pg-store-card__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--pg-ink);
    margin-top: auto;
    padding-top: 4px;
}

.pg-store-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pg-store-card__stat svg {
    width: 14px;
    height: 14px;
    color: var(--pg-orange);
}

.pg-store-card__stat-muted {
    color: var(--pg-ink-muted);
}

.pg-store-card__cta {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: 4px;
}

.pg-store-card__cta svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.pg-store-card:hover .pg-store-card__cta svg {
    transform: translateX(2px);
}

/* ---------- Dokan filter/sort toolbar restyling ---------- */
/* Hide the grid/list toggle — we're committed to grid */
.dokan-store-lists-filter-form-wrapper .listing-view-switch,
.dokan-store-lists-filter-form-wrapper .seller-list-view-toggle,
.dokan-seller-listing-search-and-filter .listing-view-switch {
    display: none !important;
}

/* Wrap and breathe the toolbar */
.dokan-store-lists-filter-form-wrapper,
.dokan-seller-listing-search-and-filter {
    background: var(--pg-surface);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-family: var(--pg-font);
}

/* Sort select, search input */
.dokan-store-lists-filter-form-wrapper select,
.dokan-store-lists-filter-form-wrapper input[type="text"],
.dokan-seller-listing-search-and-filter select,
.dokan-seller-listing-search-and-filter input[type="text"] {
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius-sm);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--pg-ink);
    background: var(--pg-surface);
}

/* Pagination on the store list (reuse store pagination styles) */
.pg-store-list__pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pg-store-list__pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-store-list__pagination a,
.pg-store-list__pagination span {
    padding: 8px 14px;
    border-radius: var(--pg-radius-sm);
    border: 1px solid var(--pg-line);
    color: var(--pg-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

.pg-store-list__pagination a:hover {
    border-color: var(--pg-blue);
    color: var(--pg-blue);
}

.pg-store-list__pagination .current {
    background: var(--pg-blue);
    border-color: var(--pg-blue);
    color: #fff;
}

/* Empty state */
.pg-store-list__empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--pg-ink-muted);
    background: var(--pg-surface-alt);
    border-radius: var(--pg-radius);
    font-size: 16px;
}

/* ---------- Responsive ---------- */

/* Tablet: 2 columns */
@media (max-width: 1023px) {
    ul.products.pg-grid,
    .pg-store__grid ul.products,
    .pg-store-list__grid,
    #dokan-seller-listing-wrap ul.pg-store-list__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column + sizing tweaks */
@media (max-width: 639px) {
    .pg-store { padding: 16px; }

    .pg-store__banner { height: 160px; }

    .pg-store__identity { padding: 20px; }

    .pg-store__identity-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .pg-store__avatar {
        margin-top: -56px;
        margin-left: auto;
        margin-right: auto;
        width: 80px;
        height: 80px;
    }

    .pg-store__tags,
    .pg-store__rating { justify-content: center; }

    .pg-store__actions { align-items: center; }

    .pg-store__name { font-size: 22px; }

    .pg-store__meta-inner { gap: 12px; }

    .pg-store__meta-action {
        margin-left: 0;
        width: 100%;
    }

    ul.products.pg-grid,
    .pg-store__grid ul.products,
    .pg-store-list__grid,
    #dokan-seller-listing-wrap ul.pg-store-list__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pg-card__body { padding: 12px; }

    .pg-card__title { font-size: 14px; }

    .pg-card__price { font-size: 15px; }

    .pg-card .button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pg-modal { padding: 12px; }

    .pg-modal__body iframe { height: 320px; }
}