* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.catalogue-landing {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #ffffff;
    min-height: 100vh;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.business-header {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.business-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    background: #f9fafb;
}

.business-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #6b7280;
}

.business-title {
    font-size: 32px;
    margin: 0 0 24px;
    font-weight: 700;
    color: #111827;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: #ffffff;
    color: #111827;
}

.btn:active {
    transform: scale(0.98);
}

.btn-contact {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.btn-contact:hover {
    background: #059669;
    border-color: #059669;
}

.btn-directions {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-directions:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-favorites {
    background: #ffffff;
    color: #6b7280;
    padding: 8px;
    width: 38px;
    height: 38px;
    justify-content: center;
}

.btn-favorites:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-favorites .dashicons-heart {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.btn-favorites .dashicons-heart.favorited {
    color: #ef4444;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 12px;
        gap: 12px;
    }
    
    .business-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

.product-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px !important; 
    overflow: hidden;
    border: none;
    background: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f4f4f4;
}

.product-overlay {
    position: relative;
    padding: 16px 0;
    background: transparent;
    color: #000000;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #000000;
    letter-spacing: -0.01em;
}

.product-description {
    display: none;
}

.product-price {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 0;
}

.btn-view {
    background: #fff;
    color: #111827;
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    border: none;
}

.btn-view:hover {
    background: #f9fafb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #111827;
    padding: 30px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.close-modal:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-content-full {
    width: 100%;
    max-width: 600px;
    height: 90vh;
    max-height: 800px;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal-top {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.close-modal-top:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn-top:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn-top .dashicons.favorited {
    color: #ef4444;
}

.product-detail-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-detail-image {
    flex: 1;
    overflow: hidden;
    min-height: 300px;
    background-color: #f3f4f6; /* Soft background for un-cropped images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-height: none !important; 
    object-fit: cover !important; 
}

.product-detail-info {
    padding: 30px;
    background: #fff;
    overflow-y: auto;
}

.product-detail-info h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.detail-price {
    font-size: 24px;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.owner-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-edit {
    background: #f9fafb;
    color: #111827;
    font-size: 13px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
}

.btn-edit:hover {
    background: #f3f4f6;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

.favorite-item {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.favorite-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.favorite-info {
    padding: 12px;
}

.favorite-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.favorite-info .price {
    color: #2563eb;
    font-weight: 700;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}
/* Desktop Top-Aligned Layout - FULL WIDTH FIX */
@media (min-width: 1024px) {
    .catalogue-landing {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        left: auto;
        right: auto;
    }
    
    .business-header {
        position: relative;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        padding: 60px 40px 40px;
        margin-bottom: 40px;
    }
    
    .products-grid {
        padding: 0 40px;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Responsive Grid: 2 mobile, 4 desktop */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0;
    }
}

/* Full Image Product Cards with 1/3 Overlay */
.product-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px !important; 
    overflow: hidden;
    border: none;
    background: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.product-card .product-image,
.product-card .product-image-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.product-card .product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card .product-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: auto; min-height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 16px 66px 16px !important; /* Increased bottom padding to clear the price pill */
    color: #ffffff;
    z-index: 2;
}
.product-card .product-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px;
}
.product-card .product-price {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 400;
}
.product-card .product-description {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 1.5;
    padding-bottom: 2px;
}
.product-card .btn-view {
    display: none !important;
}

/* Premium Pill Buttons & Circular Favorites */
.catalogue-btn-primary,
.catalogue-btn-secondary,
.contact-btn,
.direction-btn {
    border-radius: 9999px !important;
    padding: 12px 24px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}
.catalogue-btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}
.catalogue-btn-secondary {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e5e7eb !important;
}
#favorites-toggle {
    border-radius: 50% !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #000000;
}
@media (min-width: 768px) {
    .business-header {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 40px;
        text-align: left;
        max-width: 800px;
        margin: 0 auto;
        padding: 60px 20px;
    }
    
    .business-avatar {
        margin: 0;
        flex-shrink: 0;
        width: 150px;
        height: 150px;
    }
    
    .business-header h1 {
        margin-top: 0;
        font-size: 32px;
    }
    
    .business-header h1 {
        margin-top: 0;
        font-size: 32px;
        justify-content: flex-start !important;
    }
    
    .business-actions {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 15px;
    }
}
.btn-favorites .dashicons-heart,
.close-modal-top .dashicons,
.favorite-btn-top .dashicons {
    color: #000000;
}
.favorite-btn-top .dashicons.favorited,
.btn-favorites .dashicons-heart.favorited {
    color: #ef4444 !important;
}
.business-short-description {
    font-size: 15px;
    color: #4b5563;
    margin: -16px auto 24px auto;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* Desktop header matching reference image */
@media (min-width: 1024px) {
    .business-header {
        padding: 60px 20px 40px;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .business-header-inner {
        display: flex;
        align-items: flex-start;
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .business-avatar {
        width: 160px;
        height: 160px;
        flex-shrink: 0;
        margin: 0;
        border: 4px solid #e5e7eb;
    }
    
    .business-info {
        flex: 1;
        padding-top: 10px;
    }
    
    .business-title {
        font-size: 36px;
        margin: 0 0 12px 0;
        text-align: left;
    }
    
    .business-short-description {
        font-size: 17px;
        color: #4b5563;
        max-width: 500px;
        margin: 0 0 24px 0;
    }
    
    .action-buttons {
        justify-content: flex-start;
        margin-top: 8px;
    }
}

/* Fix visibility of icons */
.btn-favorites .dashicons-heart,
.close-modal-top .dashicons,
.favorite-btn-top .dashicons,
.close-modal {
    color: #111827 !important;
}

.btn-favorites .dashicons-heart.favorited,
.favorite-btn-top .dashicons.favorited {
    color: #ef4444 !important;
}

.close-modal {
    color: #6b7280 !important;
}

.close-modal:hover {
    color: #111827 !important;
}

/* Product Card Fixes for Admin View */
.product-card .product-overlay {
    height: 40% !important;
    padding: 20px 16px !important;
}

.product-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
}

.product-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
}

.product-description {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

/* Keep overlay consistent on hover (stops the black shape flash) */
.product-card:hover .product-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%) !important;
}

/* Premium Minimalist Marketplace Layout Engine Style Definitions */
.fruitful-marketplace-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}
.marketplace-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 48px auto;
}
.marketplace-search-wrapper .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
}
#marketplace-search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px !important;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
    transition: all 0.2s ease-in-out;
}
#marketplace-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37,99,235,0.06);
}
.marketplace-grid {
    display: grid;
    gap: 32px;
}

/* Explicit columns rule: 2 on mobile, 3 on desktop layouts */
@media (max-width: 1023px) {
    .marketplace-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 1024px) {
    .marketplace-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

.marketplace-card {
    background: #ffffff;
    border-radius: 20px !important; /* Premium rounded corner design standard */
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.marketplace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.card-link-wrapper { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card-image-section { height: 180px; overflow: hidden; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.card-image-section img { width: 100%; height: 100%; object-fit: cover; }
.card-info-section { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-business-title { margin: 0 0 8px 0; font-size: 19px; font-weight: 600; color: #111827; }
.card-business-desc { margin: 0 0 20px 0; font-size: 14px; color: #4b5563; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-view-btn { margin-top: auto; display: block; text-align: center; background: #2563eb; color: #ffffff; padding: 11px; border-radius: 12px !important; font-size: 14px; font-weight: 500; }

/* Onboarding Card Interface Frame Formatting Styles */
.fruitful-onboard-container { max-width: 540px; margin: 60px auto; padding: 0 20px; }
.onboard-card { background: #ffffff; border-radius: 20px !important; padding: 40px; border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.onboard-card h2 { margin: 0 0 6px 0; font-size: 24px; font-weight: 700; color: #111827; text-align: center; }
.onboard-subtitle { margin: 0 0 32px 0; font-size: 14px; color: #6b7280; text-align: center; }
.onboard-form-group { margin-bottom: 22px; }
.onboard-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #374151; font-size: 14px; }
.file-upload-wrapper { position: relative; border: 2px dashed #d1d5db; border-radius: 12px !important; padding: 24px; text-align: center; background: #f9fafb; cursor: pointer; }
.file-upload-wrapper input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.onboard-btn-primary { width: 100%; background: #2563eb; color: #ffffff; border: none; padding: 14px; border-radius: 12px !important; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Mobile Specific Fixes for Marketplace 2-column Layout */
@media (max-width: 600px) {
    .fruitful-marketplace-container { 
        padding: 0 12px; 
    }
    .marketplace-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
    }
    .card-info-section { 
        padding: 12px; 
    }
    .card-business-title { 
        font-size: 14px; 
        margin-bottom: 4px; 
        line-height: 1.2; 
    }
    .card-business-desc { 
        font-size: 12px; 
        margin-bottom: 10px; 
    }
    .card-image-section { 
        height: 110px; 
    }
    .card-view-btn { 
        padding: 8px; 
        font-size: 12px; 
        border-radius: 8px !important; 
    }
}
/* Market Page Layout */
.market-search-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 52px;
    margin-bottom: 24px;
}

.market-search-wrapper input[type="search"] {
    flex-grow: 1;
    height: 100%;
    border-radius: 20px !important;
    padding: 0 24px;
    border: 1px solid #e5e7eb;
    margin: 0;
}

.market-search-wrapper .add-btn-pill {
    height: 40px; /* Reduced from 100% */
    align-self: center; /* Centers it vertically next to the search bar */
    display: inline-flex;
    align-items: center;
    padding: 0 20px; /* Tighter padding */
    font-size: 14px; /* Smaller text */
    border-radius: 20px !important;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

/* Desktop Business Header & Grid Alignment */
@media (min-width: 768px) {
    .business-header {
        display: flex;
        align-items: center; 
        text-align: left;
        padding: 56px 20px !important; /* Added 20px left/right padding back */
        max-width: 1200px; 
        margin: 0 auto;
    }
    
    .business-avatar {
        width: 200px !important; /* Large circle */
        height: 200px !important;
        flex-shrink: 0;
        margin: 0 40px 0 0 !important; /* Pushes text to the right */
        border-radius: 50%;
    }
    
    .business-header-content { /* Ensure your text and buttons are wrapped in a div with this class if they aren't already */
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 200px; /* Matches image height */
    }
    
    /* Aligns the product grid exactly with the header image */
    .catalogue-container, .products-grid, .catalogue-products { 
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 20px !important; /* Pushes grid inward off the edges */
        padding-right: 20px !important;
    }
}
/* High Quality Product Images */
.product-card img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}
/* Premium Frosted Glass Price Pill */
.premium-price-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 4px 10px !important; /* Made smaller */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px !important; /* Made text smaller */
    font-weight: 700;
    color: #111827;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
}
.premium-price-pill .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4b5563;
}
.premium-price-pill .price-line {
    width: 1px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.2);
}
/* Kill all black hover/click overlays on product cards */
.product-card::after,
.product-card::before,
.product-card:hover::after,
.product-card:active::after,
.product-card .overlay,
.product-card:hover .overlay {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
    display: none !important;
}
/* Mobile adjustments for price pill and overlay */
@media (max-width: 640px) {
    .premium-price-pill {
        padding: 3px 8px !important;
        font-size: 11px !important;
        bottom: 8px;
        left: 8px;
    }
    .premium-price-pill .dashicons {
        font-size: 13px;
        width: 13px;
        height: 13px;
    }
    .product-card .product-overlay {
        padding: 12px 12px 52px 12px !important; /* INCREASED from 42px to 52px */
    }
}

/* Search Modal Horizontal Carousel */
#search-results-carousel::-webkit-scrollbar { height: 8px; }
#search-results-carousel::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
#search-results-carousel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
#search-results-carousel .product-card {
    flex: 0 0 280px; 
    max-width: 80vw;
    scroll-snap-align: start;
    margin-bottom: 0;
}

/* Search Results Carousel Navigation */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: #f9fafb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #111827 !important;
}

#carousel-prev { left: -18px; }
#carousel-next { right: -18px; }

/* Hide the native scrollbar for a cleaner look when arrows are present */
#search-results-carousel {
    -ms-overflow-style: none; 
    scrollbar-width: none;  
}

#search-results-carousel::-webkit-scrollbar { 
    display: none; 
}
/* ==========================================================================
   PREMIUM CUSTOM DESIGN OVERRIDES & UI ENGINE FIXES
   ========================================================================== */

/* 1. Force Visibility of Catalogue Grid Descriptions */
.product-card .product-overlay .product-description {
    display: block !important;
    visibility: visible !important;
    opacity: 0.95 !important;
    color: #e5e7eb !important;
}

/* 2. White Typography and Icons on the Card Overlay Price Pills Only */
.product-card .premium-price-pill {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.product-card .premium-price-pill .dashicons {
    color: #ffffff !important;
}

.product-card .premium-price-pill .price-line {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* 3. Global Premium Forest Green Brand Synchronization (#043B27) */
.btn-contact, 
.card-view-btn, 
.market-search-wrapper .add-btn-pill,
.add-btn-pill,
.btn-view {
    background-color: #00490A !important;
    border-color: #00490A !important;
    color: #ffffff !important;
}

.btn-contact:hover, 
.card-view-btn:hover, 
.market-search-wrapper .add-btn-pill:hover,
.add-btn-pill:hover,
.btn-view:hover {
    background-color: #032c1d !important;
    border-color: #032c1d !important;
    color: #ffffff !important;
}