/* The HighWay Brand Green: #2f5d2f */

#seed-finder-root { 
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    color: #1f2937;
}

/* Quick Picks Section */
.sf-quick-picks-section {
    text-align: center;
    margin-bottom: 24px;
    padding: 28px 12px;
    background: #f8faf8;
    border-radius: 16px;
    border: 2px solid #d1e7d1;
}

.sf-quick-picks-title {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.sf-quick-picks-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.sf-quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
}

.sf-quick-pick-btn {
    padding: 14px 18px;
    background: white;
    border: 2px solid #c5dbc5;
    border-radius: 12px;
    color: #2f5d2f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sf-qp-label {
    flex: 1;
}

.sf-quick-pick-btn:hover {
    border-color: #2f5d2f;
    background: #f0f7f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 93, 47, 0.15);
}

.sf-quick-pick-btn.active {
    background: #2f5d2f;
    color: white;
    border-color: #2f5d2f;
    box-shadow: 0 4px 12px rgba(47, 93, 47, 0.3);
}

.sf-qp-arrow {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.5;
    margin-left: 8px;
    flex-shrink: 0;
}

.sf-quick-pick-btn:hover .sf-qp-arrow,
.sf-quick-pick-btn.active .sf-qp-arrow {
    opacity: 1;
}

.sf-quick-picks-note {
    font-size: 13px;
    color: #9ca3af;
    margin: 18px 0 0 0;
}

/* Active Filter Indicator */
.sf-active-filter-indicator {
    text-align: center;
    padding: 12px;
    background: #2f5d2f;
    color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sf-active-filter-label {
    font-weight: 700;
}

.sf-active-filter-arrow {
    font-size: 18px;
}

/* Filters Wrapper */
.sf-filters-wrapper {
    margin-bottom: 24px;
}

/* Filter Label */
.sf-filter-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #2f5d2f;
    margin-bottom: 8px;
}

/* Search Wrapper */
.sf-search-wrapper {
    margin-bottom: 12px;
    position: relative;
}

.sf-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sf-search-input:focus {
    outline: none;
    border-color: #2f5d2f;
}

/* Search Dropdown */
.sf-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #2f5d2f;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.sf-search-result {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.sf-search-result:last-child {
    border-bottom: none;
}

.sf-search-result:hover {
    background: #f0f4f0;
}

.sf-search-title {
    font-weight: 600;
    color: #1f2937;
}

.sf-search-breeder {
    font-size: 13px;
    color: #6b7280;
}

/* Filter Toggle Button */
.sf-filter-toggle {
    width: 100%;
    padding: 12px 16px;
    background: #2f5d2f;
    color: white;
    border: 2px solid #2f5d2f;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.sf-filter-toggle:hover {
    background: #245024;
}

.sf-arrow {
    font-size: 12px;
}

/* Filters Container */
.sf-filters-container {
    background: white;
    border: 2px solid #2f5d2f;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Accordion */
.sf-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.sf-accordion-item:last-child {
    border-bottom: none;
}

.sf-accordion-header {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.sf-accordion-header:hover {
    background: #f9fafb;
}

.sf-accordion-arrow {
    font-size: 12px;
    color: #6b7280;
}

.sf-accordion-content {
    padding: 12px 16px;
    background: #f9fafb;
}

/* Button Group */
.sf-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-filter-btn {
    padding: 8px 14px;
    border: 2px solid #2f5d2f;
    background: white;
    color: #2f5d2f;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.sf-filter-btn:hover {
    background: #f0f4f0;
}

.sf-filter-btn.active {
    background: #2f5d2f;
    color: white;
}

/* Filter Actions */
.sf-filter-actions {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.sf-btn-filter-action {
    width: 100%;
}

.sf-btn-secondary {
    padding: 12px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.sf-btn-secondary:hover {
    background: #4b5563;
}

/* Clear Filters Sticky Button */
#sf-clear-filters-sticky-container {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    padding: 12px 0;
    margin-bottom: 16px;
}

.sf-btn-clear-sticky {
    width: 100%;
    padding: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.sf-btn-clear-sticky:hover {
    background: #dc2626;
}

/* Sort Container */
.sf-sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sf-sort-label {
    font-weight: 600;
    color: #1f2937;
}

.sf-sort-select-compact {
    padding: 8px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Grid */
.sf-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 24px;
    margin-top: 24px;
    min-height: 200px;
}

/* Card */
.sf-card { 
    border: 2px solid transparent; 
    border-radius: 16px; 
    background: white; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #2f5d2f;
}

.sf-card-top-pick {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(47, 93, 47, 0.15);
}

/* Top Pick Badge - Right-side ribbon with wrap-around fold */
.sf-top-pick-badge {
    position: absolute;
    top: 14px;
    right: -8px;
    background: linear-gradient(135deg, #2f5d2f 0%, #1a4a1a 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px 9px 14px;
    border-radius: 4px 0 0 4px;
    z-index: 10;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.sf-top-pick-badge::before {
    content: "👑 ";
}

/* Fold triangle underneath the ribbon */
.sf-top-pick-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #143314 transparent transparent;
}

.sf-card-top-pick .sf-card-image-container {
    position: relative;
}

/* Card Image */
.sf-card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    position: relative;
}

.sf-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Card Content */
.sf-card-content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: 0 0 14px 14px;
    background: white;
}

/* Card Title */
.sf-card-title-link {
    text-decoration: none;
    color: inherit;
}

.sf-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f2937;
    line-height: 1.3;
    transition: color 0.2s;
}

.sf-card-title:hover {
    color: #2f5d2f;
}

/* Card Breeder - NOW GREEN */
.sf-card-breeder {
    font-size: 14px;
    margin-bottom: 8px;
}

.sf-card-breeder-link {
    color: #2f5d2f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.sf-card-breeder-link:hover {
    color: #245024;
    text-decoration: underline;
}

.sf-card-breeder-text {
    color: #6b7280;
}

/* Card Rating - Clickable */
.sf-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sf-card-rating:hover .sf-rating-arrow {
    color: #2f5d2f;
}

.sf-rating-num {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.sf-rating-count {
    color: #6b7280;
    font-size: 13px;
}

.sf-rating-arrow {
    color: #9ca3af;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.2s;
}

/* Star Display */
.sf-star-display {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
}

.sf-star-display .sf-star {
    cursor: default;
    color: #f59e0b;
    line-height: 1;
}

.sf-star-display .sf-star.empty {
    color: #d1d5db;
}

/* Partial star styles */
.sf-star-partial {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.sf-star-partial .sf-star {
    line-height: 1;
    display: inline-block;
}

.sf-star-partial .sf-star.empty {
    color: #d1d5db;
    position: relative;
    z-index: 1;
}

.sf-star-partial .sf-star:not(.empty) {
    color: #f59e0b;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

/* Callout + Retailers Combined Wrapper */
.sf-card-promo-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

/* Callout Message - TIGHT PADDING, GREEN COLOR */
.sf-card-callout {
    background: #2f5d2f;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Standalone callout (no retailers below) */
.sf-card-callout.sf-callout-standalone {
    border-radius: 8px;
    margin-bottom: 14px;
}

/* Retailers Section - Light green bg, integrated with callout */
.sf-card-retailers {
    background: #eef5ee;
    padding: 8px 12px;
    margin-bottom: 0;
}

/* Standalone retailers (no callout above) */
.sf-card-retailers.sf-retailers-standalone {
    border-radius: 8px;
    margin-bottom: 14px;
}

.sf-retailer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    flex-wrap: nowrap;
}

.sf-retailer-row:not(:last-child) {
    border-bottom: 1px solid rgba(47, 93, 47, 0.12);
}

.sf-retailer-link {
    color: #2f5d2f;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    overflow-wrap: break-word;
    word-break: normal;
    min-width: 0;
}

.sf-retailer-link:hover {
    color: #245024;
    text-decoration: underline;
}

.sf-retailer-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.sf-retailer-code {
    background: rgba(47, 93, 47, 0.15);
    color: #2f5d2f;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sf-copy-code {
    background: none;
    color: #2f5d2f;
    border: none;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sf-copy-code:hover {
    color: #245024;
}

.sf-copy-code.copied {
    color: #16a34a;
    text-decoration: none;
}

/* Card Details */
.sf-card-details {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 14px;
}

.sf-card-details strong {
    color: #1f2937;
    font-weight: 600;
}

.sf-card-details div {
    margin-bottom: 2px;
}

/* Buy Container (fallback) */
.sf-card-buy-container {
    text-align: center;
    margin-bottom: 14px;
}

.sf-card-buy-container .sf-btn-primary {
    display: inline-block;
    width: auto;
    min-width: 150px;
    max-width: 100%;
    padding: 12px 28px;
}

/* Grown & Tested by The HighWay Section - VERTICAL LAYOUT */
.sf-card-highway {
    background: linear-gradient(135deg, #eef5ee 0%, #e3ede3 100%);
    border: 1px solid #c5dbc5;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 8px;
    text-align: center;
}

.sf-highway-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sf-highway-icon {
    background: #2f5d2f;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.sf-highway-text {
    color: #2f5d2f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sf-highway-link {
    color: #2f5d2f;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
    display: block;
}

.sf-highway-link:hover {
    color: #245024;
}

/* User Stats (Avg Yield, Avg Veg from feedback) */
.sf-card-user-stats {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    padding: 8px 0 4px;
}

/* Highway + Stats - highway directly above footer */

.sf-stat-sep {
    margin: 0 8px;
    color: #d1d5db;
}

/* Card Bottom Wrapper - pushes highway + footer to bottom */
.sf-card-bottom {
    margin-top: auto;
}

/* Card Footer */
.sf-card-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.sf-card-footer-links {
    padding-top: 4px;
}

.sf-footer-sep {
    color: #d1d5db;
    margin: 0 8px;
}

/* Buttons */
.sf-btn-primary { 
    display: inline-block; 
    padding: 12px 28px; 
    background: #2f5d2f; 
    color: white !important; 
    text-decoration: none !important; 
    border-radius: 8px; 
    font-weight: 600; 
    transition: all 0.2s;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(47, 93, 47, 0.2);
}

.sf-btn-primary:hover { 
    background: #245024;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 93, 47, 0.3);
}

.sf-link-btn {
    background: none;
    border: none;
    color: #2f5d2f !important;
    cursor: pointer;
    text-decoration: underline !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    transition: color 0.2s;
}

.sf-link-btn:hover {
    color: #245024 !important;
}

/* Load More Button */
#sf-load-more {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    padding: 14px 28px;
    background: #2f5d2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

#sf-load-more:hover {
    background: #245024;
    transform: translateY(-2px);
}

#sf-load-more:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* No Results */
.sf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Modal Overlay */
.sf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.sf-modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.sf-modal-large {
    max-width: 700px;
}

.sf-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f3f4f6;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sf-modal-close:hover {
    background: #e5e7eb;
}

.sf-modal h3 {
    margin: 0 0 20px 0;
    color: #2f5d2f;
    font-size: 20px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.sf-form-group {
    margin-bottom: 16px;
}

.sf-form-group label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    font-size: 14px;
}

.sf-form-group input[type="text"],
.sf-form-group input[type="number"],
.sf-form-group input[type="url"],
.sf-form-group textarea,
.sf-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sf-form-group input:focus,
.sf-form-group textarea:focus,
.sf-form-group select:focus {
    outline: none;
    border-color: #2f5d2f;
}

/* Star Rating Input */
.sf-star-rating-input {
    font-size: 32px;
    display: flex;
    gap: 4px;
}

.sf-clickable-star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.sf-clickable-star:hover,
.sf-clickable-star.active {
    color: #f59e0b;
}

/* Ratings List in Modal */
.sf-ratings-list {
    max-height: 400px;
    overflow-y: auto;
}

.sf-rating-item {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sf-rating-item:last-child {
    border-bottom: none;
}

.sf-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sf-rating-header strong {
    color: #1f2937;
}

.sf-rating-header span {
    color: #9ca3af;
    font-size: 13px;
}

.sf-rating-stars {
    margin-bottom: 8px;
}

.sf-rating-detail {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.sf-rating-comment {
    font-size: 14px;
    color: #4b5563;
    margin-top: 8px;
    line-height: 1.5;
}

.sf-rating-photos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sf-rating-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sf-rating-photos img:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #seed-finder-root {
        padding: 12px;
    }
    
    .sf-quick-picks-grid {
        grid-template-columns: 1fr;
    }
    
    .sf-quick-pick-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .sf-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sf-card-image-container {
        height: 180px;
    }
    
    .sf-card-content {
        padding: 14px 16px 16px;
    }
    
    .sf-card-title {
        font-size: 18px;
    }
    
    .sf-modal {
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
    }
    
    .sf-card-user-stats {
        font-size: 12px;
    }
    
    .sf-highway-content {
        justify-content: center;
    }
}

/* Force full width for seed finder on breeder pages */
.post-type-archive-breeder #seed-finder-root,
.single-breeder #seed-finder-root {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}