/* ========================================
   SMAJ STORE - Global Styles
   Part of SMAJ Ecosystem
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #7d3cff;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --bg-color: #03050c;
    --bg-white: #0a0e1f;
    --bg-dark: #05070f;
    --bg-gray: rgba(255, 255, 255, 0.05);
    
    --text-primary: #f4f4ff;
    --text-secondary: #b1b6d3;
    --text-light: #8a91b2;
    --text-white: #ffffff;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-dark: #111624;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 15px 35px -10px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Header Styles
   ======================================== */

.ecosystem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-to-hub {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.back-to-hub:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-logo img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    border: none;
    object-fit: cover;
    display: block;
}

.store-logo span {
    display: none;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(125, 60, 255, 0.25);
}

.search-bar i {
    color: var(--text-light);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

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

.wallet-status {
    position: relative;
}

.wallet-text {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.wallet-text:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.wallet-connected .wallet-text {
    background: var(--success-color);
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.wallet-status:hover .wallet-dropdown,
.wallet-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-info {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.wallet-balance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.balance-amount {
    font-weight: 700;
    color: var(--primary-color);
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.wallet-address i {
    cursor: pointer;
    transition: var(--transition-fast);
}

.wallet-address i:hover {
    color: var(--primary-color);
}

.disconnect-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--danger-color);
    transition: var(--transition-fast);
}

.disconnect-btn:hover {
    background: var(--danger-color);
    color: var(--text-white);
}

.connect-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.header-icon:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0 4px;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.notification-icon:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-white);
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-weight: 600;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
}

.user-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.profile-dropdown a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* ========================================
   Hero Section
   ======================================== */

.store-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--secondary-color);
}

.store-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.store-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.pi-rate-info {
    margin: 0 auto;
    max-width: 520px;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-white);
    font-size: 16px;
}

.pi-rate-info i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary-color);
    font-size: 20px;
}

.pi-rate-info strong {
    font-size: 16px;
    display: block;
    color: var(--text-white);
}

.pi-rate-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-light);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.wallet-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.wallet-indicator i {
    font-size: 24px;
    color: var(--success-color);
}

.wallet-indicator span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.connected-address {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Trust Badges
   ======================================== */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badges .badge i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 18px;
}

.trust-badges .badge strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}

.trust-badges .badge span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: 60px 24px;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-fast);
}

.view-all:hover {
    gap: 12px;
}

/* ========================================
   Categories Grid
   ======================================== */

.categories-section {
    background: var(--bg-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card i {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: 16px;
}

.category-card span {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.category-card .product-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   Products Grid
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: #0f1325;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-new {
    padding: 4px 10px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-sale {
    padding: 4px 10px;
    background: var(--danger-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition-fast);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.product-info {
    padding: 16px;
}

.product-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    transition: var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--success-color);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.seller-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.add-to-cart-btn {
    flex: 1;
    padding: 10px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

.buy-now-btn {
    padding: 10px 16px;
    background: var(--secondary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.buy-now-btn:hover {
    background: var(--secondary-dark);
}

/* ========================================
   Vendors Grid
   ======================================== */

.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.vendor-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vendor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vendor-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
}

.vendor-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.vendor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.vendor-rating i {
    color: var(--secondary-color);
}

.vendor-stats {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.vendor-stat {
    text-align: center;
    flex: 1;
}

.vendor-stat span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.vendor-stat small {
    font-size: 12px;
    color: var(--text-secondary);
}

.vendor-actions {
    display: flex;
    gap: 12px;
}

.visit-store-btn {
    flex: 1;
    padding: 10px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
}

.visit-store-btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   Promo Banner
   ======================================== */

.promo-banner {
    background: linear-gradient(135deg, #05070f 0%, #312074 100%);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.promo-banner h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.promo-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.promo-banner .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Footer
   ======================================== */

.ecosystem-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 300px;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.link-column a {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.link-column a:hover {
    color: var(--primary-light);
}

.link-column a i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-light);
    margin: 4px 0;
}

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

@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .ecosystem-header {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .header-center {
        order: 3;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .store-hero {
        padding: 40px 16px;
    }
    
    .store-hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vendors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-left {
        flex-wrap: wrap;
    }
    
    .back-to-hub span {
        display: none;
    }
    
    .store-logo span {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

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

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Notification Styles
   ======================================== */

.smaj-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--success-color);
}

.smaj-notification.show {
    transform: translateX(0);
}

.smaj-notification.notification-success {
    border-left-color: var(--success-color);
}

.smaj-notification.notification-success .notification-content i {
    color: var(--success-color);
}

.smaj-notification.notification-warning {
    border-left-color: var(--warning-color);
}

.smaj-notification.notification-warning .notification-content i {
    color: var(--warning-color);
}

.smaj-notification.notification-info {
    border-left-color: var(--info-color);
}

.smaj-notification.notification-info .notification-content i {
    color: var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 20px;
}

.notification-content span {
    font-size: 14px;
    color: var(--text-primary);
}

.smaj-notification button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.smaj-notification button:hover {
    color: var(--text-primary);
}

