
@font-face {
    font-family: "Peyda-main";
    src: url("../fonts/peydabold.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  
  @font-face {
    font-family: "vazir-main";
    src: url("../fonts/vazir.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  @font-face {
    font-family: "lalezar-main";
    src: url("../fonts/lalezar.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
 
  
* {
    font-family:"Peyda-main" ;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
    :root {
    --primary-dark: #0f0f0f;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #252525;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFED4B 50%, #FFD700 100%);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --border-color: #333333;
    }
    
    body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    }
    
    /* Custom Scrollbar */
    ::-webkit-scrollbar {
    width: 10px;
    }
    
    ::-webkit-scrollbar-track {
    background: var(--secondary-dark);
    }
    
    ::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
    }
    
    /* Header */
    header {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    }
    
    header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    }
    
    .logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    }
    
    .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    }
    
    .nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    }
    
    .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    }
    
    .nav-menu a:hover::after {
    width: 100%;
    }
    
    .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    }
    
    .cart-icon {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    }
    
    .cart-icon:hover {
    color: var(--accent-purple);
    transform: scale(1.1);
    }
    
    .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-red);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
    font-weight: bold;
    }
    
    .mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    }
    
    /* Hero Section */
    .hero {
    margin-top: 70px;
    padding: 5rem 5%;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    }
    
    .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 600" xmlns="http://www.w3.org/2000/svg"><path d="M0 300 Q 300 200 600 300 T 1200 300 L 1200 600 L 0 600 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: wave 20s linear infinite;
    }
    
    @keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1200px); }
    }
    
    .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    }
    
    .hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    }
    
    .hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
    }
    
    .hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    }
    
    .stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    }
    
    .stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    }
    
    .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    }
    
    .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    }
    
    /* Filters Section */
    .filters-section {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 10;
    }
    
    .filters-container {
    background: var(--secondary-dark);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    }
    
    .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    }
    
    .filters-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    }
    
    .view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--tertiary-dark);
    padding: 0.3rem;
    border-radius: 10px;
    }
    
    .view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    }
    
    .view-btn.active {
    background: var(--accent-purple);
    color: white;
    }
    
    .filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    }
    
    .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    }
    
    .filter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    }
    
    .filter-select,
    .filter-input {
    padding: 0.8rem 1rem;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    }
    
    .filter-select:hover,
    .filter-input:hover {
    border-color: var(--accent-purple);
    }
    
    .filter-select:focus,
    .filter-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    }
    
    .search-box {
    grid-column: span 2;
    position: relative;
    }
    
    .search-input {
    width: 100%;
    padding-right: 3rem;
    }
    
    .search-icon {
    position: absolute;
    left: 1rem;
    top:70%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    }
    
    .price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    }
    
    .price-input {
    flex: 1;
    }
    
    .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    }
    
    .filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    }
    
    .filter-tag:hover {
    background: var(--accent-pink);
    }
    
    /* Templates Grid */
    .templates-section {
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    }
    
    .templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    }
    
    .template-card {
    background: var(--secondary-dark);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    }
    
    .template-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    }
    
    .template-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    z-index: 2;
    }
    
    .badge-new {
    background: rgba(16, 185, 129, 0.9);
    }
    
    .badge-hot {
    background: rgba(239, 68, 68, 0.9);
    }
    
    .badge-pro {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    }
    
    .template-preview {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--tertiary-dark);
    }
    
    .template-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    }
    
    .template-card:hover .template-image {
    transform: scale(1.05);
    }
    
    .template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    }
    
    .template-card:hover .template-overlay {
    opacity: 1;
    }
    
    .overlay-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    }
    
    .overlay-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.05);
    }
    
    .template-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    }
    
    .template-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    }
    
    .template-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    }
    
    .template-category {
    color: var(--accent-purple);
    font-size: 0.85rem;
    }
    
    .template-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--warning-yellow);
    font-size: 0.9rem;
    }
    
    .template-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    
    .template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    }
    
    .feature-tag {
    padding: 0.3rem 0.8rem;
    background: var(--tertiary-dark);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    }
    
    .template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    }
    
    .template-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    }
    
    .price-current {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-green);
    }
    
    .price-original {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    }
    
    .price-discount {
    padding: 0.2rem 0.5rem;
    background: var(--danger-red);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    }
    
    .template-actions {
    display: flex;
    gap: 0.5rem;
    }
    
    .btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    }
    
    .btn-primary {
    background: var(--primary-gradient);
    color: white;
    }
    
    .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
    }
    
    .btn-secondary {
    background: var(--tertiary-dark);
    color: var(--text-primary);
    }
    
    .btn-secondary:hover {
    background: var(--accent-purple);
    }
    
    .btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    }
    
    /* Template Details Modal */
    .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    }
    
    .modal.active {
    display: flex;
    }
    
    .modal-content {
    background: var(--secondary-dark);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
    from {
    transform: translateY(50px);
    opacity: 0;
    }
    to {
    transform: translateY(0);
    opacity: 1;
    }
    }
    
    .modal-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    }
    
    .modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
    
    .modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    }
    
    .modal-close:hover {
    background: var(--danger-red);
    transform: scale(1.1);
    }
    
    .modal-body {
    padding: 2rem;
    }
    
    .modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
    
    .modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    }
    
    .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    }
    
    .meta-item i {
    color: var(--accent-purple);
    }
    
    .modal-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    }
    
    .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    }
    
    .feature-card {
    background: var(--tertiary-dark);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    }
    
    .feature-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    }
    
    .feature-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
    }
    
    .feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    }
    
    .feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    }
    
    .modal-footer {
    background: var(--tertiary-dark);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    
    .modal-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    }
    
    .modal-actions {
    display: flex;
    gap: 1rem;
    }
    
    /* Shopping Cart */
    .cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    }
    
    .cart-modal.active {
    display: flex;
    }
    
    .cart-content {
    background: var(--secondary-dark);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    animation: slideUp 0.3s ease;
    }
    
    .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    }
    
    .cart-items {
    margin-bottom: 2rem;
    }
    
    .cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--tertiary-dark);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    }
    
    .cart-item:hover {
    transform: translateX(-5px);
    }
    
    .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    }
    
    .cart-item-details {
    flex: 1;
    }
    
    .cart-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    }
    
    .cart-item-category {
    color: var(--text-secondary);
    font-size: 0.85rem;
    }
    
    .cart-item-price {
    color: var(--success-green);
    font-weight: bold;
    margin-top: 0.5rem;
    }
    
    .cart-item-remove {
    color: var(--danger-red);
    cursor: pointer;
    align-self: center;
    transition: all 0.3s ease;
    }
    
    .cart-item-remove:hover {
    transform: scale(1.2);
    }
    
    .cart-summary {
    background: var(--tertiary-dark);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    }
    
    .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    }
    
    .summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    }
    
    .cart-actions {
    display: flex;
    gap: 1rem;
    }
    
    .empty-cart {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    }
    
    .empty-cart i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    }
    
    /* Preview Modal */
    .preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 3000;
    }
    
    .preview-modal.active {
    display: block;
    }
    
    .preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    }
    
    .preview-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 3001;
    }
    
    .preview-device {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    }
    
    .preview-device.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    }
    
    .preview-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--danger-red);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    }
    
    .preview-close:hover {
    transform: scale(1.1);
    }
    
    /* Pagination */
    .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    }
    
    .page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--secondary-dark);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .page-btn:hover:not(:disabled) {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    }
    
    .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    }
    
    .page-btn.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    }
    
    /* Toast Notification */
    .toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    }
    
    .toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    }
    
    .toast.error {
    background: var(--danger-red);
    }
    
    /* Footer */
    footer {
    background: var(--secondary-dark);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    }
    
    .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    }
    
    .footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-purple);
    }
    
    .footer-links {
    list-style: none;
    }
    
    .footer-links li {
    margin-bottom: 0.5rem;
    }
    
    .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
    color: var(--accent-purple);
    transform: translateX(-5px);
    display: inline-block;
    }
    
    .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    }
    
    /* Animations */
    @keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(30px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
    }
    
    @keyframes pulse {
    0%, 100% {
    transform: scale(1);
    }
    50% {
    transform: scale(1.05);
    }
    }
    
    /* Responsive Design */
    @media (max-width: 1200px) {
    .templates-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    }
    
    @media (max-width: 768px) {
    .nav-menu {
    display: none;
    }
    
    .mobile-menu-toggle {
    display: block;
    }
    
    .hero h1 {
    font-size: 2.5rem;
    }
    
    .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-grid {
    grid-template-columns: 1fr;
    }
    
    .search-box {
    grid-column: span 1;
    }
    
    .templates-grid {
    grid-template-columns: 1fr;
    }
    
    .modal-content {
    margin: 1rem;
    }
    
    .features-grid {
    grid-template-columns: 1fr;
    }
    
    .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    }
    }
    
    @media (max-width: 480px) {
    .hero {
    padding: 3rem 5%;
    }
    
    .hero h1 {
    font-size: 2rem;
    }
    
    .stat-box {
    padding: 1rem;
    }
    
    .stat-number {
    font-size: 2rem;
    }
    
    .filters-container {
    padding: 1.5rem;
    }
    
    .price-range {
    flex-direction: column;
    }
    
    .template-actions {
    flex-direction: column;
    }
    
    .btn {
    width: 100%;
    justify-content: center;
    }
    
    .cart-actions {
    flex-direction: column;
    }
    
    .modal-footer {
    flex-direction: column;
    gap: 1rem;
    }
    
    .modal-actions {
    width: 100%;
    flex-direction: column;
    }
    }