/* ==========================================================================
   GREYTON MARKETPLACE — Vendor Styles
   ========================================================================== */

/* ==========================================================================
   VENDOR DIRECTORY / LIST
   ========================================================================== */

.wcpv-vendor-list-shortcode,
.greyton-vendor-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 600px) {
    .wcpv-vendor-list-shortcode,
    .greyton-vendor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wcpv-vendor-list-shortcode,
    .greyton-vendor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   VENDOR CARD
   ========================================================================== */

.wcpv-vendor-list-shortcode li,
.greyton-vendor-card {
    background: var(--greyton-white);
    border: 1px solid var(--greyton-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.wcpv-vendor-list-shortcode li:hover,
.greyton-vendor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Vendor cover image */
.greyton-vendor-cover {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--greyton-primary) 0%, var(--greyton-primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.greyton-vendor-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vendor logo on cover */
.greyton-vendor-avatar {
    width: 84px;
    height: 84px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 3px solid var(--greyton-white);
    background: var(--greyton-parchment);
    position: relative;
    margin: -42px auto 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    z-index: 1;
    padding: 6px;
}

.greyton-vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Default avatar when no logo */
.greyton-vendor-avatar-default {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--greyton-primary);
    color: var(--greyton-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Vendor card body */
.greyton-vendor-info {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Vendor name */
.greyton-vendor-name,
.wcpv-vendor-list-shortcode .wcpv-vendor-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--greyton-dark);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-xs);
    transition: color var(--transition-fast);
}

.greyton-vendor-name:hover,
.wcpv-vendor-list-shortcode .wcpv-vendor-name:hover {
    color: var(--greyton-secondary);
}

/* Vendor category badge */
.greyton-vendor-category {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
    background: var(--greyton-parchment);
    color: var(--greyton-medium);
}

/* Vendor description */
.greyton-vendor-description {
    font-size: 0.9rem;
    color: var(--greyton-medium);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vendor card footer */
.greyton-vendor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--greyton-border-light);
    margin-top: auto;
}

/* Product count */
.greyton-vendor-products {
    font-size: 0.8rem;
    color: var(--greyton-light);
}

/* Visit shop link */
.greyton-vendor-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--greyton-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.greyton-vendor-link:hover {
    color: var(--greyton-accent);
    gap: 8px;
}

.greyton-vendor-link::after {
    content: '\2192'; /* → arrow */
    transition: inherit;
}

/* ==========================================================================
   VENDOR PROFILE PAGE (Taxonomy Archive)
   ========================================================================== */

.greyton-vendor-profile-header {
    background: var(--greyton-white);
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.greyton-vendor-profile-cover {
    height: 300px;
    background: linear-gradient(135deg, var(--greyton-primary) 0%, var(--greyton-primary-light) 100%);
    position: relative;
}

.greyton-vendor-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.greyton-vendor-profile-info {
    max-width: 96%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    position: relative;
}

.greyton-vendor-profile-avatar {
    width: 100px;
    height: 100px;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    border: 3px solid var(--greyton-border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    background: var(--greyton-parchment);
    padding: 8px;
}

.greyton-vendor-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Reuse default avatar style inside profile */
.greyton-vendor-profile-avatar .greyton-vendor-avatar-default {
    font-size: 2.5rem;
}

.greyton-vendor-profile-details {
    flex: 1;
    min-width: 0;
}

.greyton-vendor-profile-details h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--greyton-primary);
    margin: 0 0 var(--space-xs);
}

/* Badges row */
.greyton-vendor-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.greyton-vendor-profile-badges .greyton-vendor-category {
    margin-bottom: 0;
}

/* Saturday Market badge */
.greyton-vendor-saturday-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--greyton-accent);
    color: var(--greyton-dark);
}

/* Meta row (location, product count) */
.greyton-vendor-profile-meta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--greyton-medium);
}

.greyton-vendor-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.greyton-vendor-profile-meta svg {
    color: var(--greyton-primary-light);
    flex-shrink: 0;
}

/* Google address link */
.greyton-vendor-address a {
    border-bottom: 1px dashed var(--greyton-border);
    transition: border-color var(--transition-fast);
}

.greyton-vendor-address a:hover {
    border-bottom-color: var(--greyton-secondary);
}

/* Live opening hours */
.greyton-vendor-hours--live {
    font-weight: 600;
    color: var(--greyton-primary);
    cursor: help;
}

.greyton-vendor-hours--live svg {
    color: var(--greyton-primary);
}

/* Open indicator */
.greyton-vendor-hours--open {
    color: var(--greyton-primary);
}

.greyton-vendor-hours--open strong {
    color: var(--greyton-primary);
}

/* Closed indicator */
.greyton-vendor-hours--closed {
    color: var(--greyton-light);
    font-weight: 400;
}

.greyton-vendor-hours--closed svg {
    color: var(--greyton-light);
}

.greyton-vendor-profile-meta a {
    color: var(--greyton-secondary);
    text-decoration: none;
}

.greyton-vendor-profile-meta a:hover {
    color: var(--greyton-secondary-dark);
    text-decoration: underline;
}

/* WhatsApp icon */
.greyton-vendor-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25D366 !important;
    text-decoration: none !important;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.greyton-vendor-whatsapp:hover {
    color: #1DA851 !important;
    transform: scale(1.15);
}

.greyton-vendor-whatsapp svg {
    color: inherit !important;
    flex-shrink: 0;
}

/* Bio / description */
.greyton-vendor-profile-bio {
    color: var(--greyton-medium);
    font-size: 1rem;
    line-height: 1.75;
}

.greyton-vendor-profile-bio p {
    margin: 0 0 var(--space-sm);
}

.greyton-vendor-profile-bio p:last-child {
    margin-bottom: 0;
}

/* Product count (below bio) */
.greyton-vendor-product-count {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--greyton-medium);
    margin-top: var(--space-sm);
}

.greyton-vendor-product-count svg {
    color: var(--greyton-primary-light);
    flex-shrink: 0;
}

/* Vendor story section */
.greyton-vendor-profile-story {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--greyton-border-light);
}

.greyton-vendor-profile-story h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--greyton-primary);
    margin: 0 0 var(--space-sm);
}

.greyton-vendor-profile-story p {
    color: var(--greyton-medium);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0 0 var(--space-sm);
}

.greyton-vendor-profile-story p:last-child {
    margin-bottom: 0;
}

/* Product grid wrapper below profile */
.greyton-vendor-products-wrap {
    max-width: 96%;
    margin: 0 auto;
    padding: var(--space-lg) 0 var(--space-3xl);
}

/* Remove Astra's default page title / banner / archive description on vendor pages.
   Our custom template handles the full vendor profile header. */
.greyton-vendor-page .ast-archive-description,
.greyton-vendor-page .ast-archive-entry-banner,
.greyton-vendor-page .page-header,
.greyton-vendor-page .woocommerce-products-header,
.greyton-vendor-page .wcpv-vendor-logo,
.greyton-vendor-page .wcpv-vendor-profile.entry-summary {
    display: none !important;
}

/* ==========================================================================
   VENDOR CATEGORY PILLS (Vendor Shop Page Filter)
   ========================================================================== */

.greyton-vendor-cats {
    background: var(--greyton-white);
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--greyton-border-light);
}

.greyton-vendor-cats-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.greyton-vendor-cat-pill {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--greyton-medium);
    background: var(--greyton-parchment);
    border: 1px solid var(--greyton-border);
    transition: all var(--transition-fast);
}

.greyton-vendor-cat-pill:hover {
    color: var(--greyton-secondary);
    border-color: var(--greyton-secondary);
    background: var(--greyton-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.greyton-vendor-cat-pill--active,
.greyton-vendor-cat-pill--active:visited,
.greyton-vendor-cat-pill--active:focus,
.greyton-vendor-cat-pill--active:active {
    background: var(--greyton-secondary);
    color: var(--greyton-white);
    border-color: var(--greyton-secondary);
}

.greyton-vendor-cat-pill--active:hover {
    background: var(--greyton-accent);
    border-color: var(--greyton-accent);
    color: var(--greyton-white);
}

/* Vendor product search box */
.greyton-vendor-search {
    position: relative;
    width: 220px;
    margin-left: auto;
}

.greyton-vendor-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--greyton-light);
    pointer-events: none;
}

.greyton-vendor-search-input {
    width: 100%;
    padding: 8px 14px 8px 32px !important;
    border: 1px solid var(--greyton-border);
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--greyton-dark);
    background: var(--greyton-parchment);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    box-sizing: border-box;
}

.greyton-vendor-search-input::placeholder {
    color: var(--greyton-light);
}

.greyton-vendor-search-input:focus {
    outline: none;
    border-color: var(--greyton-primary-light);
    background: var(--greyton-white);
    box-shadow: 0 0 0 3px rgba(123, 160, 91, 0.15);
}

/* "No products match" message */
.greyton-vendor-no-match {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    color: var(--greyton-medium);
    font-size: 1rem;
}

/* ==========================================================================
   VENDOR REGISTRATION FORM
   ========================================================================== */

.wcpv-shortcode-registration-form,
.greyton-vendor-registration {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    background: var(--greyton-white);
    border: 1px solid var(--greyton-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-sizing: border-box;
}

.greyton-vendor-registration h2 {
    font-family: var(--font-heading);
    color: var(--greyton-primary);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.greyton-vendor-registration .greyton-reg-subtitle {
    font-family: var(--font-accent);
    color: var(--greyton-secondary);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: var(--space-2xl);
    display: block;
}

/* Form rows */
.wcpv-shortcode-registration-form .form-row {
    margin-bottom: var(--space-lg);
}

.wcpv-shortcode-registration-form label {
    font-weight: 600;
    color: var(--greyton-dark);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    display: block;
}

.wcpv-shortcode-registration-form .required {
    color: var(--greyton-secondary);
}

.wcpv-shortcode-registration-form .input-text,
.wcpv-shortcode-registration-form textarea,
.wcpv-shortcode-registration-form select {
    border: 1px solid var(--greyton-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--greyton-dark);
    background: var(--greyton-white);
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wcpv-shortcode-registration-form .input-text:focus,
.wcpv-shortcode-registration-form textarea:focus,
.wcpv-shortcode-registration-form select:focus {
    border-color: var(--greyton-primary-light);
    box-shadow: 0 0 0 3px rgba(123, 160, 91, 0.15);
    outline: none;
}

.wcpv-shortcode-registration-form .wcpv-field-note {
    font-size: 0.8rem;
    color: var(--greyton-medium);
    font-style: italic;
    margin-top: var(--space-xs);
    display: block;
}

/* Submit button */
.wcpv-shortcode-registration-form input[type="submit"],
.greyton-vendor-registration .button {
    background: var(--greyton-secondary) !important;
    color: var(--greyton-white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 48px !important;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: block;
    width: 100%;
    margin-top: var(--space-xl);
}

.wcpv-shortcode-registration-form input[type="submit"]:hover {
    background: var(--greyton-accent) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Registration benefits section */
.greyton-reg-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--greyton-parchment);
    border-radius: var(--radius-md);
}

@media (min-width: 600px) {
    .greyton-reg-benefits {
        grid-template-columns: repeat(3, 1fr);
    }
}

.greyton-reg-benefit {
    text-align: center;
    padding: var(--space-md);
}

.greyton-reg-benefit-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.greyton-reg-benefit h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--greyton-primary);
    margin-bottom: var(--space-xs);
}

.greyton-reg-benefit p {
    font-size: 0.85rem;
    color: var(--greyton-medium);
    line-height: 1.5;
}

/* ==========================================================================
   "SOLD BY" BADGES
   ========================================================================== */

.wcpv-sold-by-loop,
.wcpv-sold-by {
    font-size: 0.8rem;
    color: var(--greyton-medium);
}

.wcpv-sold-by-loop a,
.wcpv-sold-by a {
    color: var(--greyton-primary);
    font-weight: 600;
    text-decoration: none;
}

.wcpv-sold-by-loop a:hover,
.wcpv-sold-by a:hover {
    color: var(--greyton-secondary);
}

/* "Made in Greyton" badge */
.greyton-made-local {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--greyton-primary);
    background: #e8f5e0;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.greyton-made-local::before {
    content: '\1F331'; /* seedling emoji as indicator */
}

/* ==========================================================================
   VENDOR SIDEBAR WIDGET
   ========================================================================== */

.greyton-vendor-widget {
    background: var(--greyton-white);
    border: 1px solid var(--greyton-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.greyton-vendor-widget img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
}

.greyton-vendor-widget h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.greyton-vendor-widget a {
    color: var(--greyton-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================================
   HIDE PLUGIN DEFAULT VENDOR PROFILE
   On vendor pages, our custom profile replaces the plugin's output.
   ========================================================================== */

.wcpv-vendor-logo,
.wcpv-vendor-profile.entry-summary {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   VENDOR PAGE — COMPACT 5-COLUMN PRODUCT GRID
   Dense catalog layout for vendors with large product counts (e.g. food clubs).
   ========================================================================== */

/* 4-col grid */
.greyton-vendor-products-wrap ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--space-md) !important;
}

@media (max-width: 1024px) {
    .greyton-vendor-products-wrap ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .greyton-vendor-products-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-sm) !important;
    }
}

/* Compact card — remove default WC flex-grow spacing that creates vertical gaps */
.greyton-vendor-products-wrap ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;  /* don't spread content to fill height */
}

/* The anchor wrapping image + title — kill its bottom padding */
.greyton-vendor-products-wrap ul.products li.product .woocommerce-loop-product__link {
    padding-bottom: 0 !important;
    display: block !important;
}

/* Fixed-height image */
.greyton-vendor-products-wrap ul.products li.product a img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Title: tight, 2-line clamp */
.greyton-vendor-products-wrap ul.products li.product .woocommerce-loop-product__title,
.greyton-vendor-products-wrap ul.products li.product h2 {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    padding: var(--space-xs) var(--space-sm) var(--space-xs) !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em; /* reserve 2-line height so cards align */
}

/* Price: no extra spacing */
.greyton-vendor-products-wrap ul.products li.product .price {
    font-size: 0.88rem !important;
    padding: 0 var(--space-sm) var(--space-xs) !important;
    margin: 0 !important;
    color: var(--greyton-secondary) !important;
    font-weight: 700;
    display: block !important;
}

/* Hide "Sold By: The Greyt Life" on the vendor's own page — it's redundant */
.greyton-vendor-products-wrap ul.products li.product .wcpv-sold-by-loop {
    display: none !important;
}

/* Hide the default WooCommerce short description block — options are rendered as pills instead */
.greyton-vendor-products-wrap ul.products li.product .woocommerce-product-details__short-description {
    display: none !important;
}

/* Options pills container */
.greyton-vendor-products-wrap ul.products li.product .greyton-product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px var(--space-sm) var(--space-xs);
}

/* Each option pill (e.g. "500g", "1kg", "2 litre") */
.greyton-product-option-pill {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: var(--greyton-parchment);
    color: var(--greyton-medium);
    border: 1px solid var(--greyton-border);
    white-space: nowrap;
}

/* Fallback plain-text options line */
.greyton-vendor-products-wrap ul.products li.product .greyton-product-options-text {
    font-size: 0.72rem;
    color: var(--greyton-light);
    padding: 2px var(--space-sm) var(--space-xs);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "Order on FoodHub" button — flush to bottom of card */
.greyton-vendor-products-wrap ul.products li.product .button,
.greyton-vendor-products-wrap ul.products li.product a.button {
    font-size: 0.78rem !important;
    padding: 7px 12px !important;
    margin: auto var(--space-sm) var(--space-sm) !important;
    width: calc(100% - var(--space-md)) !important;
    text-align: center !important;
    border-radius: var(--radius-sm) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
}

/* Reduce hover lift on dense grids */
.greyton-vendor-products-wrap ul.products li.product:hover {
    transform: translateY(-3px) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .greyton-vendor-profile-header {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .greyton-vendor-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md) var(--space-md) var(--space-lg);
    }

    .greyton-vendor-profile-avatar {
        width: 80px;
        height: 80px;
    }

    .greyton-vendor-profile-avatar .greyton-vendor-avatar-default {
        font-size: 2rem;
    }

    .greyton-vendor-profile-badges {
        justify-content: center;
    }

    .greyton-vendor-profile-meta {
        justify-content: center;
    }

    .greyton-vendor-profile-story {
        text-align: left;
    }

    .greyton-vendor-cats {
        padding: var(--space-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .greyton-vendor-cats-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        padding: 0;
    }

    .greyton-vendor-cat-pill {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .greyton-vendor-search {
        width: 100%;
        margin-left: 0;
        margin-top: var(--space-xs);
    }

    .wcpv-shortcode-registration-form,
    .greyton-vendor-registration {
        padding: var(--space-md);
        margin-left: var(--space-sm);
        margin-right: var(--space-sm);
        border-radius: var(--radius-md);
    }

    .greyton-vendor-cover {
        height: 120px;
    }
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */

.greyton-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 22, 0.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.greyton-qv-overlay--open {
    opacity: 1;
    visibility: visible;
}

.greyton-qv-modal {
    background: var(--greyton-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    overflow: hidden;
    position: relative;
    transform: translateY(18px);
    transition: transform 0.25s ease;
}

.greyton-qv-overlay--open .greyton-qv-modal {
    transform: translateY(0);
}

/* Button is a direct child of the overlay (position:fixed), so
   position:absolute here is relative to the full viewport. */
.greyton-qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #fff;
    color: var(--greyton-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(44, 36, 22, 0.25);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.greyton-qv-close:hover {
    background: var(--greyton-secondary);
    border-color: var(--greyton-secondary);
    color: #fff;
}

.greyton-qv-image {
    width: 44%;
    flex-shrink: 0;
    background: var(--greyton-parchment);
    overflow: hidden;
}

.greyton-qv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.greyton-qv-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--greyton-border);
}

.greyton-qv-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-xl) var(--space-xl);
    overflow-y: auto;
}

.greyton-qv-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--greyton-dark);
    line-height: 1.3;
    margin: 0;
}

.greyton-qv-price .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--greyton-secondary);
}

.greyton-qv-actions {
    margin-top: auto;
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.greyton-qv-actions .button {
    display: block;
    text-align: center;
}

body.greyton-qv-open {
    overflow: hidden;
}

/* Quick view — mobile: centered card with close button floating above */
@media (max-width: 640px) {
    .greyton-qv-overlay {
        /* 52px top padding reserves space for the close button (top:16 + 38px
           button height = 54px) so the X sits just above the modal card. */
        padding: 52px 16px 16px;
        align-items: flex-start;
    }

    .greyton-qv-close {
        top: 8px;
        right: 8px;
    }

    .greyton-qv-modal {
        flex-direction: column;
        max-width: 100%;
        max-height: 100%;
        border-radius: var(--radius-lg);
        transform: translateY(16px) scale(0.97);
    }

    .greyton-qv-overlay--open .greyton-qv-modal {
        transform: translateY(0) scale(1);
    }

    .greyton-qv-image {
        width: 100%;
        height: 190px;
        flex-shrink: 0;
    }

    .greyton-qv-info {
        padding: var(--space-md) var(--space-md) var(--space-lg);
    }

    .greyton-qv-title {
        font-size: 1.1rem;
    }
}
