/**
 * Shop Editor Styles
 * Beautiful shadcn/ui design with celebration touches
 * 
 * @package GoodVibesOnly
 */

/* ===========================
   Full Screen Mode - Hide WordPress Admin UI
   =========================== */

/* Hide WordPress admin bar */
.goodvibesonly_page_goodvibesonly-shop-editor #wpadminbar {
    display: none !important;
}

/* Hide WordPress admin sidebar */
.goodvibesonly_page_goodvibesonly-shop-editor #adminmenuback,
.goodvibesonly_page_goodvibesonly-shop-editor #adminmenuwrap {
    display: none !important;
}

/* Adjust body for full screen */
.goodvibesonly_page_goodvibesonly-shop-editor {
    margin-top: 0 !important;
}

/* Expand content area to full width */
.goodvibesonly_page_goodvibesonly-shop-editor #wpcontent {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.goodvibesonly_page_goodvibesonly-shop-editor #wpbody-content {
    padding-bottom: 0 !important;
}

/* ===========================
   Sidebar Layout (Standalone Page)
   =========================== */

.gvo-shop-editor-wrap {
    display: flex;
    gap: 0;
    margin: 0;
    background: #f9fafb;
    min-height: 100vh;
}

.gvo-shop-sidebar {
    width: 240px;
    min-height: 100vh;
    background: white;
    border-right: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.gvo-shop-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-shop-sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.gvo-shop-sidebar-header h2 svg {
    flex-shrink: 0;
}

.gvo-shop-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.gvo-shop-nav li {
    margin: 0;
}

.gvo-shop-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.gvo-shop-nav li a:hover {
    background: #f9fafb;
    color: #111827;
}

.gvo-shop-nav li a.active {
    background: #f9fafb;
    color: #111827;
    border-left-color: #18181b;
    font-weight: 500;
}

.gvo-shop-nav li a svg {
    flex-shrink: 0;
}

.gvo-shop-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    overflow-x: hidden;
}

.gvo-shop-tab {
    display: none;
}

.gvo-shop-tab.active {
    display: block;
}

/* Hide old horizontal subnav when using new sidebar layout */
.gvo-shop-editor-wrap .gvo-shop-subnav {
    display: none !important;
}

/* ===========================
   Dashboard Layout (Legacy)
   =========================== */

.gvo-shop-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Hero Section */
.gvo-shop-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-hero-welcome h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gvo-hero-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.gvo-hero-quick-actions {
    display: flex;
    gap: 12px;
}

/* ===========================
   Products Interface
   =========================== */

.gvo-shop-products-tab .gvo-product-card {
    transition: box-shadow 0.2s, transform 0.2s;
}

.gvo-shop-products-tab .gvo-product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.gvo-shop-products-tab .gvo-product-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
}

.gvo-shop-products-tab #gvo-products-search:focus,
.gvo-shop-products-tab select:focus {
    outline: none;
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1);
}

.gvo-products-bulk-actions {
    animation: slideDown 0.3s ease-out;
}

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

/* Product Grid Responsiveness */
@media (max-width: 768px) {
    .gvo-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    .gvo-products-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start !important;
    }
    
    .gvo-products-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .gvo-products-filters {
        flex-direction: column;
    }
}

/* Image Upload Zone */
#gvo-product-image-upload:hover {
    background: #f5f5f5 !important;
    border-color: #18181b !important;
}

/* AI Generation Sections */
.gvo-ai-generation-section {
    transition: all 0.2s;
}

.gvo-ai-generation-section:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Loading Spinner */
.gvo-spinner {
    animation: spin 0.6s linear infinite;
}

/* Product Select Checkboxes */
.gvo-product-select {
    cursor: pointer;
    accent-color: #18181b;
}

.gvo-product-select:hover {
    transform: scale(1.1);
}

/* Pagination Buttons */
#gvo-products-pagination button:hover:not(:disabled) {
    background: #fafafa !important;
}

#gvo-products-pagination button:disabled {
    cursor: not-allowed;
}

/* Tab Transitions */
.gvo-product-tab-content {
    animation: fadeIn 0.2s ease-out;
}

/* Empty State */
#gvo-products-empty button:hover {
    background: #27272a !important;
}

/* ===========================
   Buttons
   =========================== */

.gvo-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.gvo-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gvo-btn-ghost:hover {
    background: #f9fafb;
    color: #111827;
}

.gvo-btn-sm {
    padding: 4px 12px;
    font-size: 13px;
}

/* ===========================
   Stats Grid
   =========================== */

.gvo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.gvo-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease;
}

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

.gvo-stat-highlight {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1),
                0 4px 12px rgba(251, 191, 36, 0.15);
}

.gvo-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gvo-stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.gvo-stat-period {
    font-size: 12px;
    color: #9ca3af;
}

.gvo-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0;
    line-height: 1;
}

.gvo-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.gvo-stat-change.positive {
    color: #10b981;
    background: #d1fae5;
}

.gvo-stat-change.positive svg {
    stroke: #10b981;
}

.gvo-stat-change.negative {
    color: #ef4444;
    background: #fee2e2;
}

.gvo-stat-change.negative svg {
    stroke: #ef4444;
}

.gvo-stat-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.gvo-dot {
    color: #d1d5db;
}

.gvo-stat-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.gvo-stat-footer.celebration {
    color: #f59e0b;
    border-top-color: rgba(251, 191, 36, 0.2);
}

.gvo-stat-visual {
    margin-top: 12px;
}

.gvo-sparkline {
    width: 100%;
    height: 40px;
}

/* ===========================
   Sections
   =========================== */

.gvo-shop-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.gvo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gvo-section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gvo-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gvo-select-clean {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: white;
    cursor: pointer;
}

.gvo-select-clean:focus {
    outline: none;
    border-color: #3b82f6;
}

/* ===========================
   Products List
   =========================== */

.gvo-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gvo-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gvo-product-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gvo-product-top {
    border-color: #fbbf24;
    background: linear-gradient(90deg, #fff 0%, #fef3c7 100%);
}

.gvo-product-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gvo-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.gvo-rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.gvo-hot-indicator {
    font-size: 16px;
}

.gvo-product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.gvo-product-info {
    flex: 1;
    min-width: 0;
}

.gvo-product-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gvo-product-sku {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.gvo-product-metrics {
    display: flex;
    gap: 24px;
}

.gvo-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gvo-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.gvo-metric-label {
    font-size: 12px;
    color: #6b7280;
}

/* ===========================
   Insights Grid
   =========================== */

.gvo-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gvo-insight-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    animation: slideInUp 0.6s ease;
}

.gvo-insight-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gvo-insight-celebration {
    background: linear-gradient(135deg, #fff 0%, #fef3c7 100%);
    border-color: #fbbf24;
    position: relative;
    overflow: hidden;
}

.gvo-insight-positive {
    border-color: #10b981;
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}

.gvo-insight-success {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #fff 0%, #dbeafe 100%);
}

.gvo-insight-suggestion {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #fff 0%, #ede9fe 100%);
}

.gvo-insight-opportunity {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff 0%, #fed7aa 100%);
}

.gvo-insight-info {
    border-color: #6b7280;
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
}

.gvo-insight-icon {
    font-size: 32px;
    line-height: 1;
}

.gvo-insight-content {
    flex: 1;
}

.gvo-insight-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.gvo-insight-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* ===========================
   Quick Actions Bar
   =========================== */

.gvo-quick-actions-bar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.gvo-quick-actions-bar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.gvo-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gvo-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gvo-action-card:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.gvo-action-card svg {
    color: #6b7280;
}

.gvo-action-card span {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-align: center;
}

/* ===========================
   Celebration Toast
   =========================== */

#gvo-celebration-toasts {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gvo-celebration-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gvo-celebration-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.gvo-toast-icon {
    font-size: 28px;
    line-height: 1;
}

.gvo-toast-content {
    flex: 1;
}

.gvo-toast-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.gvo-toast-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.gvo-toast-close {
    padding: 4px 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.gvo-toast-close:hover {
    color: #111827;
}

/* ===========================
   Confetti Animation
   =========================== */

.gvo-confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: -20px;
    z-index: 9998;
    animation: confetti-fall 2s ease-out forwards;
}

@keyframes confetti-fall {
    to {
        top: 100vh;
        opacity: 0;
        transform: translateX(30px) rotate(360deg);
    }
}

/* ===========================
   Loading & Empty States
   =========================== */

.gvo-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.gvo-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

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

.gvo-loading-state p {
    margin: 0;
    font-size: 14px;
}

.gvo-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

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

.gvo-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

/* ===========================
   Animations
   =========================== */

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

/* ===========================
   Analytics Dashboard
   =========================== */

.gvo-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-header-left h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.gvo-header-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.gvo-header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gvo-select-clean {
    padding: 8px 32px 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gvo-select-clean:hover {
    border-color: #d1d5db;
}

.gvo-custom-date-range {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.gvo-input-clean {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
}

.gvo-analytics-section {
    margin-bottom: 40px;
}

.gvo-analytics-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
}

.gvo-analytics-section h3 svg {
    color: #6b7280;
}

.gvo-analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gvo-analytics-stat-card {
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gvo-analytics-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gvo-stat-card-wide {
    grid-column: span 2;
}

.gvo-stat-header {
    margin-bottom: 16px;
}

.gvo-stat-chart {
    height: 80px;
    margin-top: 16px;
}

.gvo-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.gvo-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.gvo-stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.gvo-stat-change.positive {
    color: #10b981;
}

.gvo-stat-change.positive svg {
    transform: rotate(-90deg);
}

.gvo-stat-change.negative {
    color: #ef4444;
}

.gvo-stat-change.negative svg {
    transform: rotate(90deg);
}

.gvo-stat-detail {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.gvo-analytics-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.gvo-summary-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gvo-summary-label {
    font-size: 13px;
    color: #6b7280;
}

.gvo-summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.gvo-analytics-table {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.gvo-analytics-table thead {
    background: #f9fafb;
}

.gvo-analytics-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-analytics-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-analytics-table tbody tr:last-child td {
    border-bottom: none;
}

.gvo-analytics-table tbody tr:hover {
    background: #f9fafb;
}

.gvo-loyalty-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gvo-loyalty-stat {
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.gvo-tier-distribution {
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.gvo-tier-distribution h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.gvo-tier-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gvo-tier-bar {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: 12px;
    align-items: center;
}

.gvo-tier-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.gvo-tier-progress {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.gvo-tier-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gvo-tier-count {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-align: right;
}

.gvo-products-analytics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gvo-product-analytics-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gvo-product-analytics-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gvo-product-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.gvo-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.gvo-product-details {
    flex: 1;
}

.gvo-product-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.gvo-product-sku {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.gvo-product-analytics-metrics {
    display: flex;
    gap: 24px;
}

.gvo-metric {
    text-align: right;
}

.gvo-metric-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.gvo-metric-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Product Modal Overlay */
.gvo-product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.gvo-product-modal.visible {
    display: flex !important;
}

.gvo-product-modal-content {
    position: relative;
    z-index: 1000000;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gvo-product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e4e4e7;
}

.gvo-product-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #18181b;
}

.gvo-product-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.gvo-product-modal-close:hover {
    background: #f4f4f5;
}

.gvo-product-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e4e4e7;
    background: #fafafa;
}

.gvo-product-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    cursor: pointer;
}

.gvo-product-tab.active {
    border-bottom-color: #18181b;
    color: #18181b;
}

.gvo-product-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.gvo-product-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e4e4e7;
}

.gvo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.gvo-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.gvo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.gvo-modal-close:hover {
    background: #f9fafb;
}

.gvo-modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gvo-modal-body {
    padding: 20px;
    background: white;
}

.gvo-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.gvo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.gvo-btn-primary {
    padding: 8px 16px;
    background: #111827;
    border: 1px solid #111827;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gvo-btn-primary:hover {
    background: #1f2937;
    border-color: #1f2937;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .gvo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gvo-insights-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .gvo-shop-dashboard {
        padding: 16px;
    }
    
    .gvo-shop-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gvo-hero-quick-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .gvo-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gvo-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .gvo-product-metrics {
        flex-direction: column;
        gap: 8px;
    }
    
    .gvo-insights-grid {
        grid-template-columns: 1fr;
    }
    
    #gvo-celebration-toasts {
        right: 12px;
        left: 12px;
    }
    
    .gvo-celebration-toast {
        min-width: auto;
        max-width: none;
    }
}

/* Creative Hub Styles */
.gvo-creative-hub-container {
    animation: fadeIn 0.3s ease-out;
}

.gvo-subject-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gvo-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gvo-category-tab.active {
    color: #18181b !important;
    border-bottom-color: #18181b !important;
}

.gvo-category-tab:hover {
    color: #18181b;
}

.gvo-modal {
    animation: fadeIn 0.2s ease-out;
}

.gvo-modal .gvo-modal-content {
    animation: slideUp 0.3s ease-out;
}

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

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

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#gvo-subjects-grid::-webkit-scrollbar {
    width: 6px;
}

#gvo-subjects-grid::-webkit-scrollbar-track {
    background: #f4f4f5;
    border-radius: 3px;
}

#gvo-subjects-grid::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
}

#gvo-subjects-grid::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

details[open] summary svg {
    transform: rotate(90deg);
}

.gvo-variation-type-btn.active,
.gvo-variation-count-btn.active {
    transition: all 0.2s ease;
}

/* ===========================
   Video Preset Cards & Categories
   =========================== */

.gvo-preset-card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gvo-preset-card:hover {
    border-color: #18181b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gvo-preset-card.active {
    border-color: #18181b;
    background: #fafafa;
    box-shadow: 0 0 0 2px #18181b;
}

.preset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.preset-icon {
    font-size: 24px;
    line-height: 1;
}

.preset-favorite {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.preset-favorite:hover {
    color: #71717a;
}

.preset-favorite.active {
    color: #fbbf24;
}

.preset-favorite svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.preset-body h5 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}

.preset-body p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #71717a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preset-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-tag {
    padding: 2px 8px;
    background: #f4f4f5;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #71717a;
    text-transform: lowercase;
}

.gvo-filter-tag {
    transition: all 0.2s ease;
}

.gvo-filter-tag:hover {
    background: #f4f4f5 !important;
    border-color: #d4d4d8 !important;
    color: #52525b !important;
}

.gvo-filter-tag.active {
    background: #18181b !important;
    color: white !important;
}

.category-arrow {
    transition: transform 0.2s ease;
}

.gvo-category-header.active .category-arrow {
    transform: rotate(180deg);
}

.gvo-category-header:hover {
    background: #fafafa !important;
}

.gvo-category-presets {
    transition: all 0.2s ease;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e4e4e7;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #18181b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #18181b;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.1);
}
