/* 3D Shop - Modern Stylesheet */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.nav-search {
    flex: 1;
    max-width: 600px;
}

.nav-search form {
    position: relative;
    display: flex;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.nav-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nav-search input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-search button {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    color: white;
}

.nav-search button:hover {
    background: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.dropdown {
    position: relative;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--bg-secondary);
}

.user-menu i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .user-menu i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px;
    animation: slideDown 0.2s ease;
    z-index: 1000;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Add padding area to prevent menu from closing */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-link {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
}

.btn-link:hover {
    background: var(--bg-secondary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover {
    gap: 10px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.category-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.badge-free {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

/* Product Image Overlay */
.product-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.product-overlay-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-overlay-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-overlay-price {
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.format-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-yellow { background: #fef3c7; color: #a16207; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-gray { background: #f1f5f9; color: #475569; }

.product-name {
    font-size: 16px;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: var(--text-primary);
}

.product-name a:hover {
    color: var(--primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.product-downloads {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    color: #fbbf24;
    font-size: 14px;
}

.star.filled {
    color: #f59e0b;
}

.rating-value {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* Flash Messages */
.flash-message {
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: #d1fae5;
    border: 1px solid var(--success);
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    border: 1px solid var(--error);
    color: #991b1b;
}

.flash-message button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.flash-message button:hover {
    opacity: 1;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auth Pages */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 32px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid var(--error);
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid var(--success);
    color: #065f46;
}

/* Shop Page */
.shop-page {
    padding: 40px 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.shop-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
    min-width: 280px;
    max-width: 280px;
}

.shop-main {
    min-width: 0;
    width: 100%;
}

.filter-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 4px;
}

.filter-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.filter-list a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateX(4px);
}

.filter-list a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.price-inputs input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.price-inputs input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.price-inputs span {
    display: none;
}

.price-filter .btn {
    width: 100%;
    justify-content: center;
    font-weight: 700;
}

.filter-quick {
    margin-top: 8px;
}

.filter-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
    text-align: center;
    border: 2px solid var(--border);
    font-weight: 600;
    background: white;
}

.filter-quick a::before {
    content: '🎁';
    font-size: 16px;
}

.filter-quick a:hover {
    border-color: var(--success);
    color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.filter-quick a.active {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.shop-info h1 {
    margin-bottom: 8px;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-info p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-sort label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.shop-sort select {
    padding: 12px 40px 12px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
}

.shop-sort select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shop-sort select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
    font-size: 14px;
}

.pagination-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.empty-state .btn {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar,
    .account-sidebar {
        position: static;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .navbar {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .auth-box {
        padding: 32px 24px;
    }
    
    .section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Product Page */
.product-page {
    padding: 40px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.product-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-dark);
}

.product-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    aspect-ratio: 16/9;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-main:hover .image-overlay {
    opacity: 1;
}

.overlay-info h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.overlay-info p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.thumb {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.product-breadcrumb {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

.product-header h1 {
    margin-bottom: 16px;
    font-size: 32px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.product-downloads {
    color: var(--text-muted);
    font-size: 14px;
}

.product-price-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    color: white;
}

.price-main {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
}

.price-note {
    opacity: 0.9;
    font-size: 14px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-specs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.product-specs h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 0;
    font-size: 15px;
}

.specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 600;
    width: 40%;
}

.specs-table td:last-child {
    font-weight: 600;
}

.product-tabs {
    margin-top: 48px;
}

.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}

.tab-btn {
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-size: 16px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.description-content {
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-secondary);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user strong {
    font-size: 16px;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-comment {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
    min-height: 70vh;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 140px;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.cart-item-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.cart-item-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--error);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.payment-note {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Success Page */
.success-page {
    padding: 40px 0;
}

.success-header {
    text-align: center;
    padding: 48px 0;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-muted);
}

.info-row .value {
    font-weight: 700;
}

.status-completed {
    color: var(--success);
}

.download-section {
    margin-bottom: 32px;
}

.download-notice {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.download-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.download-image {
    width: 180px;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.download-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin-bottom: 12px;
}

.download-meta {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.download-status {
    color: var(--text-muted);
    font-size: 14px;
}

.download-expires {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Account Pages */
.account-page {
    padding: 40px 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.account-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.account-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.account-user h3 {
    margin-top: 12px;
    font-size: 18px;
}

.account-menu {
    list-style: none;
}

.account-menu li {
    margin-bottom: 8px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 600;
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.library-items,
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.library-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.library-item:hover {
    box-shadow: var(--shadow-md);
}

.library-image {
    width: 180px;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.library-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-info {
    flex: 1;
}

.library-info h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.library-meta {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.library-status {
    margin-top: 16px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--success);
    font-weight: 600;
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.order-id {
    font-size: 18px;
    font-weight: 700;
}

.order-date {
    color: var(--text-muted);
    font-size: 14px;
}

.order-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.order-status.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.order-status.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info {
    display: flex;
    gap: 32px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.order-info-value {
    font-size: 16px;
    font-weight: 700;
}

.order-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.profile-section h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Review Action Box */
.review-action-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 32px;
}

.review-action-box h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 24px;
}

.review-action-box p {
    opacity: 0.95;
    margin-bottom: 20px;
}

.review-action-box .btn {
    background: white;
    color: var(--primary);
}

.review-action-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Reviews Summary */
.reviews-summary {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    text-align: center;
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.rating-stars-large {
    font-size: 32px;
    color: #fbbf24;
}

.rating-count {
    font-size: 16px;
    color: var(--text-muted);
}

/* Review Item Improvements */
.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.review-rating i {
    color: #fbbf24;
    font-size: 16px;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
}

/* Empty State Icon */
.empty-state-icon i {
    color: var(--text-muted);
}

/* Logo Icon */
.logo-icon {
    font-size: 28px;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

/* Nav Icons */
.nav-menu a i {
    margin-right: 6px;
}

/* Button Icons */
.btn i {
    margin-right: 6px;
}

/* Product Badge with Icon */
.product-badge i {
    margin-right: 4px;
}


/* Product Wishlist Button */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-wishlist-btn:hover {
    transform: scale(1.1);
    background: white;
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.product-wishlist-btn.active {
    color: #ef4444;
}

.product-wishlist-btn.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}
