/* ============================================
   Main Styles - Digital Arts Store
   Dark Neon Theme with Animations
   ============================================ */

:root {
    --primary: #ffff00;
    --secondary: #ff0066;
    --accent: #ff6600;
    --bg: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --glow: 0.8;
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 24px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.nav-brand h1 a {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background: var(--secondary);
    color: var(--bg);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-delete {
    background: rgba(255, 0, 102, 0.2);
    border: 1px solid #ff0066;
    color: #ff6699;
}

.btn-delete:hover {
    background: #ff0066;
    color: white;
}

/* ============================================
   Banner Slider
   ============================================ */

.banner-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
    margin: 20px 0;
}

.slider-container {
    display: flex;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.8s ease;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #2a2a3a 100%);
    padding: 60px 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.2);
}

.page-header h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============================================
   Featured Section
   ============================================ */

.featured-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.featured-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* ============================================
   Products Grid
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.1);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.4);
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    filter: brightness(1.1);
}

.product-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions form,
.product-actions a {
    flex: 1;
}

/* ============================================
   Categories Section
   ============================================ */

.categories-section {
    padding: 60px 0;
}

.categories-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 0, 0.05) 100%);
    padding: 30px;
    border: 2px solid rgba(255, 255, 0, 0.3);
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.4);
    transform: translateY(-5px);
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ============================================
   Plans Section
   ============================================ */

.plans-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.plans-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 0, 0.2);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.1);
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.4);
    transform: scale(1.05);
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.4);
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.plan-card h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.plan-price {
    font-size: 32px;
    color: var(--accent);
    font-weight: bold;
}

.plan-billing {
    color: var(--text-secondary);
    font-size: 14px;
}

.plan-description {
    color: var(--text-secondary);
    margin: 15px 0;
    font-size: 14px;
}

.features-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.features-list li {
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 0, 0.1);
    font-size: 14px;
}

.features-list li:last-child {
    border-bottom: none;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 0, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.2);
}

.cta-section h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   Catalog Page
   ============================================ */

.catalog-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.catalog-sidebar {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 0, 0.2);
    height: fit-content;
}

.catalog-sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    padding: 10px 15px;
    background: rgba(255, 255, 0, 0.05);
    border-left: 3px solid transparent;
    transition: var(--transition);
    color: var(--text-secondary);
}

.category-item:hover,
.category-item.active {
    border-left-color: var(--primary);
    background: rgba(255, 255, 0, 0.1);
    color: var(--primary);
}

.catalog-main {
    padding: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: 5px;
    color: var(--primary);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: var(--bg);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ============================================
   Cart Page
   ============================================ */

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 0, 0.2);
}

.cart-section-header {
    margin: 30px 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.cart-section-header h3 {
    color: var(--primary);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: rgba(255, 255, 0, 0.1);
    padding: 15px;
    text-align: left;
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid var(--primary);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 0, 0.1);
}

.cart-table input[type="number"] {
    width: 60px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    border-radius: 5px;
}

.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.2);
}

.summary-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.summary-row strong {
    color: var(--primary);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 0, 0.3);
    margin: 15px 0;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
}

.checkout-form {
    margin-top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 0, 0.2);
}

.empty-cart h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* ============================================
   Product Details Page
   ============================================ */

.breadcrumb {
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
}

.product-details {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-image-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 0, 0.2);
    padding: 20px;
}

.product-image-main {
    width: 100%;
    border-radius: 5px;
}

.product-image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 0, 0.05);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.product-info-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 0, 0.2);
}

.product-header h1 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 10px;
}

.product-category {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.product-category a {
    color: var(--primary);
}

.product-description {
    margin: 30px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 0, 0.2);
}

.product-description h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.product-pricing {
    margin: 30px 0;
}

.price-main {
    font-size: 28px;
    color: var(--accent);
    font-weight: bold;
}

.price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 14px;
    margin-top: 5px;
}

.product-details-info {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 0, 0.2);
}

.detail-item {
    margin: 10px 0;
}

.detail-item strong {
    color: var(--primary);
}

.product-actions {
    margin-top: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--primary);
    border-radius: 5px;
    color: var(--text-primary);
}

.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 255, 0, 0.2);
}

.related-products h2 {
    color: var(--primary);
    margin-bottom: 30px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    border-top: 2px solid var(--primary);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: var(--primary);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #66ff66;
}

.alert-error {
    background: rgba(255, 0, 102, 0.1);
    border-color: #ff0066;
    color: #ff6699;
}

.alert-info {
    background: rgba(0, 200, 255, 0.1);
    border-color: #00c8ff;
    color: #66e6ff;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .featured-section h2 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .catalog-container {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        display: none;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 18px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 14px;
    }
    
    .banner-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
}
