/* ===== Base Styles & Variables ===== */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header & Navigation ===== */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
}

.logo i {
    color: var(--secondary);
    font-size: 32px;
}

.trust-badge {
    background-color: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

nav a:hover, nav a.active {
    color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.1);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ===== Main Layout ===== */
.container {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
    flex: 1;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 250px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    height: fit-content;
}

.sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--light);
    color: var(--secondary);
    transform: translateX(5px);
}

.support-box {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.support-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-box p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.support-btn {
    background-color: white;
    color: var(--secondary);
    border: none;
    padding: 12px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
}

.page-header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

.licence-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    width: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

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

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary);
}

.original-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.trending-badge {
    background-color: var(--warning);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--secondary);
}

/* ===== 24/7 Support Section ===== */
.support-section {
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
    text-align: center;
}

.support-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.support-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.live-chat-btn {
    background-color: white;
    color: var(--secondary);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.live-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Checkout Page Styles ===== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.checkout-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.checkout-summary {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.crypto-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.crypto-option {
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.crypto-option:hover {
    border-color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.05);
}

.crypto-option.selected {
    border-color: var(--secondary);
    background-color: rgba(52, 152, 219, 0.1);
}

.crypto-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.crypto-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.crypto-network {
    font-size: 12px;
    color: #666;
}

.payment-address {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.payment-address h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.address-box {
    background-color: white;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.qr-code i {
    font-size: 50px;
    color: #666;
}

.payment-note {
    background-color: #fff8e1;
    border-left: 4px solid var(--warning);
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.confirm-payment-btn {
    background-color: var(--success);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.confirm-payment-btn:hover {
    background-color: #219653;
    transform: translateY(-3px);
}

/* ===== Support Page Styles ===== */
.support-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.support-card {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.support-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.support-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.support-card p {
    color: #666;
    margin-bottom: 20px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 5% 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .page-header {
        text-align: center;
    }
    
    .crypto-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .support-section {
        padding: 30px 20px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Dropdown Filter Styles ===== */
.dropdown-filter {
    display: none;
}

@media (max-width: 768px) {
    .dropdown-filter {
        display: block;
    }
    
    .sidebar {
        display: none;
    }
    
    .container {
        flex-direction: column;
    }
}

/* ===== Animation for Filtering ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== Active Filter Styles ===== */
.sidebar a.active {
    background-color: var(--secondary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.sidebar a.active i {
    color: white;
}

/* ===== Mobile Sidebar Toggle ===== */
.mobile-menu-toggle {
    display: none;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1100;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1099;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}