/**
 * Theme Shop Styles
 * 
 * Modern responsive styles for the TFS theme shop
 * 
 * @package TFS\SiteManager
 * @since 1.0.0
 */

/* Reset and Base Styles */
.tfs-theme-shop-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-text-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tfs-theme-shop-wrapper * {
    box-sizing: border-box;
}

/* Grid Layout */
.tfs-theme-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
    padding: 0;
}

/* Responsive grid columns */
.tfs-theme-grid.tfs-col-1 { grid-template-columns: 1fr; }
.tfs-theme-grid.tfs-col-2 { grid-template-columns: repeat(2, 1fr); }
.tfs-theme-grid.tfs-col-3 { grid-template-columns: repeat(3, 1fr); }
.tfs-theme-grid.tfs-col-4 { grid-template-columns: repeat(4, 1fr); }
.tfs-theme-grid.tfs-col-5 { grid-template-columns: repeat(5, 1fr); }
.tfs-theme-grid.tfs-col-6 { grid-template-columns: repeat(6, 1fr); }

/* Default responsive behavior */
@media (min-width: 1200px) {
    .tfs-theme-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .tfs-theme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .tfs-theme-grid { grid-template-columns: 1fr; }
    .tfs-theme-grid { gap: 20px; }
}

/* Theme Cards */
.tfs-theme-card {
    background: var(--color-bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border-default);
    position: relative;
}

.tfs-theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--w4l-brand);
}

.tfs-theme-card.tfs-card-hovered {
    z-index: 10;
}

/* Theme Image Section */
.tfs-theme-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--color-bg-surface-muted);
}

.tfs-theme-thumbnail-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

.tfs-theme-card img.theme-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tfs-theme-card:hover img.theme-thumbnail {
    transform: scale(1.08);
}

.tfs-theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.tfs-theme-card:hover .tfs-theme-overlay {
    opacity: 1;
}

.tfs-demo-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--w4l-brand);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.tfs-demo-btn:hover,
.tfs-demo-btn:focus {
    background: var(--color-bg-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--w4l-brand);
    color: #5a67d8;
    text-decoration: none;
}

.tfs-demo-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Placeholder for themes without images */
.tfs-theme-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--color-bg-surface-muted) 0%, var(--color-bg-surface-muted) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    text-align: center;
}

.tfs-theme-placeholder .dashicons {
    font-size: 3.5rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.tfs-theme-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Theme Info Section */
.tfs-theme-info {
    padding: 30px;
}

.tfs-theme-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.tfs-theme-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-default);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.tfs-type-badge {
    background: var(--color-bg-surface-muted);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Type-specific badge colors */
.tfs-type-badge.tfs-type-business {
    background: #bee3f8;
    color: #2b6cb0;
}

.tfs-type-badge.tfs-type-ecommerce {
    background: #c6f6d5;
    color: #276749;
}

.tfs-type-badge.tfs-type-portfolio {
    background: var(--color-bg-danger-subtle);
    color: #c53030;
}

.tfs-type-badge.tfs-type-general {
    background: #e9d8fd;
    color: #6b46c1;
}

/* Theme Description */
.tfs-theme-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Features Section */
.tfs-theme-features {
    margin-bottom: 25px;
}

.tfs-theme-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-default);
    margin: 0 0 12px 0;
}

.tfs-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tfs-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.tfs-features-list .dashicons {
    color: var(--ref-success-500);
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tfs-more-features {
    color: var(--w4l-brand);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tfs-more-features:hover {
    color: #5a67d8;
}

/* Subscription Plans Section */
.tfs-subscription-plans {
    border-top: 1px solid var(--color-border-default);
    padding-top: 25px;
    margin-top: 25px;
}

.tfs-subscription-plans h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-default);
    margin: 0 0 20px 0;
}

.tfs-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1400px) {
    .tfs-plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Plan Options */
.tfs-plan-option {
    border: 2px solid var(--color-border-default);
    border-radius: 12px;
    padding: 20px 16px;
    position: relative;
    transition: all 0.3s ease;
    background: var(--color-bg-surface);
    cursor: pointer;
}

.tfs-plan-option:hover {
    border-color: var(--w4l-brand);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
}

.tfs-plan-popular {
    border-color: var(--w4l-brand);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(30, 79, 194, 0.03) 100%);
    position: relative;
}

.tfs-popular-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: linear-gradient(135deg, var(--w4l-brand), var(--w4l-brand-hover));
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Plan Header */
.tfs-plan-header {
    text-align: center;
    margin-bottom: 16px;
}

.tfs-plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-default);
    margin: 0 0 8px 0;
}

.tfs-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
    gap: 2px;
}

.tfs-currency {
    font-size: 0.9rem;
    color: var(--w4l-brand);
    font-weight: 600;
}

.tfs-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4l-brand);
    line-height: 1;
}

.tfs-period {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Plan Features */
.tfs-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.tfs-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.tfs-plan-features .dashicons {
    color: var(--ref-success-500);
    font-size: 14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Plan Actions */
.tfs-plan-actions {
    margin-top: 16px;
}

/* Button styles moved to tfs-sm-utilities.css
   Theme-specific button customizations remain below */

/* Demo Link */
.tfs-theme-demo-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-default);
}

.tfs-demo-link {
    width: 100%;
    text-align: center;
}

.tfs-demo-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Theme-specific button state overrides */
.tfs-btn-primary {
    background: linear-gradient(135deg, var(--w4l-brand), var(--w4l-brand-hover));
    width: 100%;
}

.tfs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.tfs-btn-primary:active {
    transform: translateY(0);
}

.tfs-btn-outline:hover {
    border-color: var(--w4l-brand);
    color: var(--w4l-brand);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.tfs-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.tfs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tfs-btn-success {
    background: linear-gradient(135deg, var(--ref-success-500), var(--ref-success-500)) !important;
    color: white !important;
}

/* List Layout Styles */
.tfs-theme-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tfs-theme-list-item {
    background: white;
    border: 1px solid var(--color-border-default);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.tfs-theme-list-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--w4l-brand);
}

.tfs-theme-image-small {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.tfs-theme-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfs-theme-placeholder-small {
    width: 100%;
    height: 100%;
    background: var(--color-bg-surface-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
}

.tfs-theme-placeholder-small .dashicons {
    font-size: 2rem;
}

.tfs-theme-content {
    flex: 1;
    min-width: 0;
}

.tfs-theme-content .tfs-theme-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.tfs-theme-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.tfs-theme-meta .tfs-theme-price {
    font-weight: 600;
    color: var(--w4l-brand);
}

/* Showcase Layout */
.tfs-theme-showcase {
    display: grid;
    gap: 30px;
}

.tfs-showcase-item.featured {
    grid-column: 1 / -1;
}

.tfs-showcase-item.featured .tfs-theme-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.tfs-showcase-item.featured .tfs-theme-image {
    height: 400px;
}

/* No Themes Found */
.no-themes-found {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-bg-surface-muted);
    border-radius: 12px;
    margin: 40px 0;
}

.no-themes-found h3 {
    color: var(--color-text-default);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.no-themes-found p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tfs-theme-info {
        padding: 20px;
    }
    
    .tfs-theme-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tfs-theme-title {
        font-size: 1.3rem;
    }
    
    .tfs-subscription-plans h4 {
        font-size: 1rem;
    }
    
    .tfs-plan-option {
        padding: 16px;
    }
    
    .tfs-plans-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tfs-theme-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tfs-theme-image-small {
        width: 100%;
        height: 150px;
    }
    
    .tfs-theme-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tfs-showcase-item.featured .tfs-theme-card {
        grid-template-columns: 1fr;
    }
    
    .tfs-showcase-item.featured .tfs-theme-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .tfs-theme-grid {
        gap: 15px;
        margin: 20px 0;
    }
    
    .tfs-theme-info {
        padding: 16px;
    }
    
    .tfs-theme-title {
        font-size: 1.2rem;
    }
    
    .tfs-plan-option {
        padding: 12px;
    }
    
    .tfs-demo-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Button responsive styles moved to tfs-sm-utilities.css */
    
    .tfs-theme-list {
        gap: 15px;
    }
    
    .tfs-theme-list-item {
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .tfs-theme-card {
        box-shadow: none;
        border: 1px solid var(--color-border-default);
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .tfs-theme-overlay,
    .tfs-demo-btn,
    .tfs-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tfs-theme-card {
        border-width: 2px;
    }
    
    .tfs-btn-primary {
        background: #0066cc;
    }
    
    .tfs-type-badge {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tfs-theme-card,
    .tfs-btn,
    .tfs-demo-btn,
    .tfs-theme-card img {
        transition: none;
    }
    
    .tfs-theme-card:hover {
        transform: none;
    }
}

/* =================================================================
   WooCommerce Product Cards — ThemeForest-style
   ================================================================= */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 10px;
    margin: 0;
    list-style: none;
}
@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { ul.products { grid-template-columns: 1fr; } }

li.tfs-product-card {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.tfs-card-inner {
    background: var(--color-bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border-default);
    transition: all 0.3s ease;
}
.tfs-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--w4l-brand);
}

.tfs-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-bg-surface-hover);
}
.tfs-card-image-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}
.tfs-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    transition: transform 8s ease;
}
.tfs-card-inner:hover .tfs-card-image img {
    transform: translateY(calc(-100% + 220px));
}
.tfs-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-subtle);
}
.tfs-card-placeholder .dashicons { font-size: 48px; width: 48px; height: 48px; }

/* Live Preview button — in card footer next to cart */
.tfs-card-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    background: transparent;
    color: var(--color-action-filled-secondary) !important;
    border: 1px solid var(--color-action-filled-secondary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.tfs-card-preview-btn:hover {
    background: var(--color-action-filled-secondary);
    color: var(--color-action-filled-secondary-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.2);
}

/* Sales count — below price in card body */
.tfs-card-sales-count {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.tfs-card-price-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tfs-card-body {
    padding: 16px 20px 20px;
}
.tfs-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.3;
}
.tfs-card-title a {
    color: var(--color-text-default);
    text-decoration: none;
}
.tfs-card-title a:hover { color: var(--w4l-brand); }

.tfs-card-sku {
    display: block;
    font-size: 12px;
    color: var(--color-text-subtle);
    font-weight: 500;
    margin: -8px 0 12px;
    letter-spacing: 0.3px;
}

.tfs-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tfs-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tfs-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tfs-price-was {
    font-size: 14px;
    color: var(--color-text-subtle);
}
.tfs-price-was del { text-decoration: line-through; }
.tfs-price-now {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-action-primary);
}

.tfs-card-cart-btn {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--color-action-primary);
    border-radius: 8px;
    background: var(--color-action-primary);
    color: var(--color-action-primary-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.tfs-card-cart-btn svg {
    stroke: currentColor;
}
.tfs-card-cart-btn:hover {
    background: var(--color-action-primary-hover);
    border-color: var(--color-action-primary-hover);
    color: var(--color-action-primary-text);
}
.tfs-card-cart-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* =================================================================
   Filter Tags
   ================================================================= */
.tfs-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 10px;
}
.tfs-filter-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--color-border-default);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}
.tfs-filter-tag:hover {
    border-color: var(--w4l-brand);
    color: var(--w4l-brand);
}
.tfs-filter-tag.active {
    background: linear-gradient(135deg, var(--w4l-brand), var(--w4l-brand-hover));
    color: var(--color-text-inverse);
    border-color: transparent;
}
.tfs-filter-tag.active:hover {
    color: var(--color-text-inverse);
}

/* =================================================================
   Single Product — Go to Checkout button (green)
   ================================================================= */
.single-product .single_add_to_cart_button,
.single-product button[name="add-to-cart"] {
    background: var(--ref-success-500) !important;
    color: var(--color-text-inverse) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
}
.single-product .single_add_to_cart_button:hover,
.single-product button[name="add-to-cart"]:hover {
    background: var(--ref-success-500) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(72,187,120,0.4) !important;
}

/* Hide Stripe Link button on product and cart pages */
.single-product #wc-stripe-payment-request-wrapper,
.single-product .wc-stripe-payment-request-wrapper,
.woocommerce-cart #wc-stripe-payment-request-wrapper,
.woocommerce-cart .wc-stripe-payment-request-wrapper,
#payment .payment_method_stripe_payment_request,
.wc-stripe-payment-request-button-wrapper {
    display: none !important;
}

/* Live Demo button styling on single product */
.tfs-buttons-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.tfs-buttons-wrapper .live-demo-btn {
    background: linear-gradient(135deg, var(--w4l-brand), var(--w4l-brand-hover)) !important;
    color: var(--color-text-inverse) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.tfs-buttons-wrapper .live-demo-btn:hover {
    opacity: 0.9 !important;
}

/* =================================================================
   WooCommerce loader override — disable block UI overlays
   ================================================================= */
.woocommerce .blockUI.blockOverlay,
.woocommerce .loader,
.blockUI.blockOverlay,
.tfs-cart-loading-overlay {
    display: none !important;
}

/* =================================================================
   Shop page — Divider between filters and products + theme count
   ================================================================= */
.tfs-shop-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-border-default);
}
.tfs-shop-divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-border-default);
}
.tfs-shop-theme-count {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}
.tfs-shop-theme-count strong {
    color: var(--color-text-strong);
    font-weight: 700;
}

/* =================================================================
   Shop pagination — styled to match theme
   ================================================================= */
.woocommerce-pagination {
    padding: 40px 0 20px;
    text-align: center;
}
.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.woocommerce-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    border: none !important;
    list-style: none;
    background: none !important;
    box-shadow: none !important;
}
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    cursor: pointer;
}
.woocommerce-pagination .page-numbers:hover {
    border-color: var(--w4l-brand);
    color: var(--w4l-brand);
    background: #f0f3ff;
}
.woocommerce-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--w4l-brand), var(--w4l-brand-hover));
    color: var(--color-text-inverse);
    border-color: transparent;
    cursor: default;
}
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev {
    font-size: 18px;
    font-weight: 400;
}

/* =================================================================
   Stripe Link hide on checkout
   ================================================================= */
.woocommerce-checkout #wc-stripe-payment-request-wrapper,
.woocommerce-checkout .wc-stripe-payment-request-wrapper,
.woocommerce-checkout .wc-stripe-link-payment-method,
#payment .wc-stripe-upe-element .LinkAutofillPrompt,
.wc-stripe-link-payment-button {
    display: none !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tfs-theme-shop-wrapper {
        color: var(--color-border-default);
    }
    
    .tfs-theme-card {
        background: var(--color-bg-inverse);
        border-color: var(--color-text-secondary);
    }
    
    .tfs-theme-title {
        color: var(--color-border-default);
    }
    
    .tfs-theme-excerpt {
        color: var(--color-text-subtle);
    }
    
    .tfs-theme-placeholder {
        background: var(--color-text-strong);
    }
    
    .no-themes-found {
        background: var(--color-bg-inverse);
    }
}