/**
 * Sim Racing Prebuilds - Frontend Styles
 * Matching the forum plugin style
 */

/* CSS Variables - matching forum */
.srp-prebuilds {
    max-width: 1120px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    --oc-primary: #2563eb;
    --oc-primary-dark: #1d4ed8;
    --oc-secondary: #475569;
    --oc-accent: #8b5cf6;
    --oc-success: #10b981;
    --oc-warning: #f59e0b;
    --oc-danger: #ef4444;
    --oc-surface: #ffffff;
    --oc-bg: #f8fafc;
    --oc-text-main: #1e293b;
    --oc-text-muted: #64748b;
    --oc-gradient-primary: linear-gradient(135deg, #2563eb, #4f46e5);
    --oc-gradient-surface: linear-gradient(145deg, #ffffff, #f8fafc);
    --oc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --oc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --oc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --oc-radius-md: 0.75rem;
    --oc-radius-lg: 1rem;
}

.srp-no-prebuilds {
    text-align: center;
    color: var(--oc-text-muted);
    padding: 60px 20px;
    font-size: 1rem;
    background: var(--oc-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--oc-radius-lg);
}

/* Category Section */
.srp-category {
    margin-bottom: 50px;
}

.srp-category:last-child {
    margin-bottom: 0;
}

.srp-category-title {
    margin: 0 0 30px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    line-height: 1.3;
}

/* Prebuilds Grid */
.srp-prebuilds .srp-category .srp-prebuilds-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}

/* Prebuild Card */
.srp-prebuild-card {
    background: var(--oc-surface) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--oc-radius-lg) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: var(--oc-shadow-sm) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.srp-prebuild-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--oc-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.srp-prebuild-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-lg);
    border-color: #cbd5e1;
}

.srp-prebuild-card:hover::before {
    opacity: 1;
}

/* Card Header */
.srp-card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f6fc, #e8f0f8);
    border-bottom: 2px solid var(--oc-primary);
}

.srp-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.srp-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.srp-card-header .srp-total-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2271b1;
    white-space: nowrap;
}

.srp-card-description {
    margin: 10px 0 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

/* Components List - Horizontal Columns (High specificity for Breakdance compatibility) */
.srp-prebuilds .srp-prebuild-card .srp-card-components {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    background: var(--oc-bg) !important;
}

.srp-prebuilds .srp-prebuild-card .srp-card-components .srp-component {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 16px 14px !important;
    background: var(--oc-surface) !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: background-color 0.2s ease !important;
    flex: 1 1 calc(25% - 1px) !important;
    min-width: 100px !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
}

.srp-prebuilds .srp-prebuild-card .srp-component:last-child {
    border-right: none;
}

.srp-prebuilds .srp-prebuild-card .srp-component:hover {
    background-color: #f8fafc;
}

.srp-prebuilds .srp-prebuild-card .srp-comp-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oc-text-muted);
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--oc-primary);
    width: 100%;
}

.srp-prebuilds .srp-prebuild-card .srp-comp-image {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.srp-prebuilds .srp-prebuild-card .srp-comp-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srp-prebuilds .srp-prebuild-card .srp-comp-note {
    font-size: 0.7rem;
    color: var(--oc-text-muted);
    font-style: italic;
    line-height: 1.2;
}

.srp-prebuilds .srp-prebuild-card .srp-comp-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2271b1;
    margin-top: auto;
}

/* Card Overview */
.srp-card-overview {
    padding: 18px 24px;
    border-top: 1px solid #e2e8f0;
    background: var(--oc-surface);
}

.srp-card-overview p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Card Footer */
.srp-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border-top: 1px solid #e5e7eb;
}

.srp-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2271b1;
    line-height: 1.2;
}

.srp-view-build {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--oc-shadow-sm);
}

.srp-view-build:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-md);
    color: #ffffff;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .srp-prebuilds .srp-category .srp-prebuilds-grid {
        grid-template-columns: 1fr !important;
    }

    /* Components 2-column grid on tablet */
    .srp-prebuilds .srp-prebuild-card .srp-card-components .srp-component {
        flex: 1 1 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .srp-prebuilds {
        padding: 20px 16px !important;
    }

    .srp-prebuilds .srp-category .srp-prebuilds-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .srp-category {
        margin-bottom: 36px;
    }

    .srp-category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    /* Card styling - softer shadows and cleaner look */
    .srp-prebuild-card {
        border-radius: 16px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    }

    /* Card Header Mobile - cleaner layout */
    .srp-card-header {
        padding: 18px 20px;
        background: linear-gradient(135deg, #f8fafc, #f0f6fc);
    }

    .srp-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .srp-card-header h3 {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .srp-card-header .srp-total-price {
        font-size: 1.35rem;
        font-weight: 700;
    }

    .srp-card-description {
        font-size: 0.85rem;
        margin-top: 10px;
        line-height: 1.5;
    }

    /* Components Grid Mobile - clean 2-column layout */
    .srp-prebuilds .srp-prebuild-card .srp-card-components {
        padding: 8px !important;
        gap: 8px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        background: #f8fafc !important;
    }

    .srp-prebuilds .srp-prebuild-card .srp-card-components .srp-component {
        flex: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 14px 12px !important;
        gap: 8px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        border-right: 1px solid #e2e8f0 !important;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-category {
        font-size: 0.65rem;
        padding-bottom: 6px;
        margin-bottom: 4px;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-image {
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
        border-radius: 10px;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-name {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-weight: 600;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-price {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-note {
        font-size: 0.7rem;
    }

    /* Card Footer Mobile - stacked buttons */
    .srp-card-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px !important;
        background: #ffffff;
        margin: 0;
    }

    .srp-total-price {
        font-size: 1.4rem;
    }

    .srp-view-build {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
        border-radius: 12px;
        font-weight: 600;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Compare button on mobile */
    .srp-compare-toggle {
        padding: 14px 16px;
        font-size: 0.9rem;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        margin: 0 !important;
        border-radius: 12px;
        box-sizing: border-box !important;
    }
}

/* Extra Small Screens - 1 column stacked */
@media (max-width: 480px) {
    .srp-prebuilds {
        padding: 16px 12px !important;
    }

    .srp-category-title {
        font-size: 1.25rem;
    }

    .srp-card-header {
        padding: 16px;
    }

    .srp-card-header h3 {
        font-size: 1.1rem;
    }

    /* Stack components into single column on very small screens */
    .srp-prebuilds .srp-prebuild-card .srp-card-components {
        grid-template-columns: 1fr !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .srp-prebuilds .srp-prebuild-card .srp-card-components .srp-component {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-category {
        display: none;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-image {
        width: 40px;
        height: 40px;
        min-width: 40px;
        order: 0;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-name {
        flex: 1;
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        text-align: left;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-price {
        min-width: fit-content;
        text-align: right;
        font-size: 0.85rem;
    }

    .srp-prebuilds .srp-prebuild-card .srp-comp-note {
        display: none;
    }

    .srp-card-footer {
        padding: 14px 16px;
    }

    .srp-view-build {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.srp-prebuild-card {
    animation: fadeInUp 0.4s ease-out;
}

.srp-category:nth-child(2) .srp-prebuild-card {
    animation-delay: 0.1s;
}

.srp-category:nth-child(3) .srp-prebuild-card {
    animation-delay: 0.2s;
}

/* Hover states for cards */
@media (hover: hover) and (pointer: fine) {
    .srp-prebuild-card:hover {
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: #2271b1;
    }
}

/* ============================================
   COMPARISON FEATURE STYLES
   ============================================ */

/* Compare Toggle Button on Cards */
.srp-compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-right: 10px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srp-compare-toggle:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.srp-compare-toggle.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border-color: #2563eb;
}

.srp-compare-toggle.active:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.srp-compare-icon {
    font-weight: bold;
    font-size: 1rem;
}

/* Floating Compare Bar */
.srp-compare-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

.srp-compare-bar.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.srp-compare-count {
    font-weight: 500;
    font-size: 0.9rem;
}

.srp-compare-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srp-compare-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: scale(1.05);
}

.srp-compare-clear {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.srp-compare-clear:hover {
    color: #ffffff;
    border-color: #64748b;
}

/* Compare Modal */
.srp-compare-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.srp-compare-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.srp-compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.srp-compare-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

.srp-compare-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.srp-compare-close:hover {
    color: #ef4444;
}

.srp-compare-modal-body {
    overflow-x: auto;
    padding: 0;
}

/* Comparison Table */
.srp-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.srp-compare-table th,
.srp-compare-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.srp-compare-table thead tr {
    background: linear-gradient(135deg, #f0f6fc, #e8f0f8);
}

.srp-cmp-header-cell {
    min-width: 200px;
}

.srp-cmp-label-cell {
    text-align: left;
    background: #f8fafc;
    min-width: 120px;
    font-weight: 600;
    color: #475569;
}

.srp-cmp-prebuild-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.srp-cmp-prebuild-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
}

.srp-cmp-data-cell {
    padding: 12px 16px;
}

.srp-cmp-empty {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.srp-cmp-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 4px;
    margin-bottom: 8px;
}

.srp-cmp-comp-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.srp-cmp-comp-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2271b1;
}

.srp-cmp-action-row td {
    padding: 20px 16px;
    background: #f8fafc;
}

.srp-cmp-view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.srp-cmp-view-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Compare */
@media (max-width: 768px) {
    .srp-compare-bar {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 12px 16px;
        gap: 10px;
        border-radius: 14px;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .srp-compare-count {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .srp-compare-btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
    }

    .srp-compare-clear {
        padding: 10px 14px;
    }

    .srp-compare-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .srp-compare-modal {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        width: 100%;
    }

    .srp-compare-modal-header {
        padding: 14px 16px;
        position: sticky;
        top: 0;
        background: #f8fafc;
        z-index: 10;
    }

    .srp-compare-modal-header h2 {
        font-size: 1.1rem;
    }

    .srp-compare-modal-body {
        -webkit-overflow-scrolling: touch;
    }

    .srp-compare-table {
        min-width: 500px;
    }

    .srp-compare-table th,
    .srp-compare-table td {
        padding: 10px 12px;
    }

    .srp-cmp-header-cell {
        min-width: 140px;
    }

    .srp-cmp-label-cell {
        min-width: 80px;
        font-size: 0.75rem;
        position: sticky;
        left: 0;
        z-index: 5;
    }

    .srp-cmp-prebuild-name {
        font-size: 0.85rem;
    }

    .srp-cmp-prebuild-price {
        font-size: 0.95rem;
    }

    .srp-cmp-img {
        width: 36px;
        height: 36px;
    }

    .srp-cmp-comp-name {
        font-size: 0.75rem;
    }

    .srp-cmp-comp-price {
        font-size: 0.8rem;
    }

    .srp-cmp-view-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* Featured Prebuilds Mobile */
@media (max-width: 768px) {
    .srp-featured-section {
        margin: 24px auto 0;
        border-radius: 12px;
    }

    .srp-featured-header {
        padding: 16px;
    }

    .srp-featured-title {
        font-size: 1rem;
    }

    .srp-featured-subtitle {
        font-size: 0.8rem;
    }

    .srp-featured-section .srp-featured-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 14px !important;
    }

    .srp-featured-card {
        padding: 20px;
    }

    .srp-featured-name {
        font-size: 1.1rem;
    }

    .srp-featured-price {
        font-size: 1.1rem;
    }

    .srp-featured-desc {
        font-size: 0.9rem;
        margin-top: 6px;
    }

    .srp-featured-preview {
        padding: 12px 0;
        gap: 12px;
    }

    .srp-preview-img {
        width: 48px;
        height: 48px;
    }

    .srp-preview-more {
        width: 48px;
        height: 48px;
        font-size: 0.85rem;
    }

    .srp-featured-count {
        font-size: 0.85rem;
        display: none;
        /* Hide count on mobile to save space */
    }

    .srp-featured-section .srp-card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .srp-featured-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        box-sizing: border-box;
    }
}

/* Featured Prebuilds - Desktop (Restored) */
.srp-featured-section {
    max-width: 1120px !important;
    width: 100% !important;
    margin: 40px auto 0 !important;
    box-sizing: border-box !important;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.srp-featured-section .srp-featured-header {
    padding: 16px 20px 14px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 16px;
}

.srp-featured-section .srp-featured-title {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.srp-featured-section .srp-featured-title svg {
    color: #f59e0b;
}

.srp-featured-section .srp-featured-subtitle {
    margin: 0;
    font-size: 0.9rem;
    font-size: 0.9rem;
    color: #64748b;
}

.srp-featured-show-all {
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.srp-featured-show-all:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .srp-featured-section .srp-featured-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 20px 16px;
    }

    .srp-featured-section .srp-featured-title {
        justify-content: center;
        font-size: 1.15rem;
    }

    .srp-featured-show-all {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 12px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        margin-top: 4px;
        box-sizing: border-box;
    }
}

.srp-featured-section .srp-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.srp-featured-section .srp-featured-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.srp-featured-section .srp-featured-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.srp-featured-section .srp-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.srp-featured-section .srp-featured-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.srp-featured-section .srp-featured-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.srp-featured-section .srp-featured-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srp-featured-section .srp-featured-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.srp-featured-section .srp-preview-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    padding: 4px;
}

.srp-featured-section .srp-preview-more {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0284c7;
}

.srp-featured-section .srp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.srp-featured-section .srp-featured-count {
    font-size: 0.8rem;
    color: #94a3b8;
}

.srp-featured-section .srp-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.srp-featured-section .srp-featured-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: scale(1.02);
}