/* Main Webshop Styles */
:root {
    --primary-color: #6a5acd;
    --secondary-color: #4b0082;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #666;
    --background-color: #f8f9fa;
    --card-background: #fff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-right: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

.crypto-badge {
    background-color: rgba(106, 90, 205, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(106, 90, 205, 0.8), rgba(75, 0, 130, 0.8)), url('https://picsum.photos/seed/qualitystore/1600/600.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

/* Crypto Payment Info Section */
.crypto-payment-info {
    background-color: var(--card-background);
    padding: 80px 0;
}

.crypto-payment-info h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
}

.crypto-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit {
    text-align: center;
    padding: 30px;
}

.benefit i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.benefit p {
    color: var(--light-text);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-section h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
}

.product-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
}

.filter-group button {
    padding: 10px 15px;
}

/* Product Detail Section */
.product-detail-section {
    padding: 80px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-detail-image {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.product-detail-info .category {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: 20px;
}

.product-detail-info .price {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-detail-info .description {
    margin-bottom: 30px;
}

.product-detail-info .stock {
    margin-bottom: 30px;
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

.low-stock {
    color: var(--warning-color);
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-selector button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.quantity-selector input {
    border: none;
    width: 50px;
    text-align: center;
    padding: 10px 0;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

/* Cart Section */
.cart-section {
    padding: 80px 0;
}

.cart-section h1 {
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.cart-items {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-image {
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    margin-bottom: 10px;
}

.cart-item-info .price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-summary {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.crypto-info {
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(106, 90, 205, 0.05);
    border-radius: 4px;
}

.crypto-info p {
    margin-bottom: 15px;
    font-size: 14px;
}

.crypto-icons {
    display: flex;
    gap: 15px;
}

.crypto-icons i,
.crypto-icons .crypto-other {
    font-size: 24px;
    color: var(--primary-color);
}

/* Checkout Section */
.checkout-section {
    padding: 80px 0;
}

.checkout-section h1 {
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--secondary-color);
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.checkout-steps {
    display: flex;
    margin-bottom: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background-color: var(--border-color);
}

.step.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step-title {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 500;
}

.form-section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(106, 90, 205, 0.05);
}

.payment-method i,
.payment-method .crypto-other {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.crypto-wallet-info {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(106, 90, 205, 0.05);
    border-radius: 4px;
}

.crypto-wallet-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.order-summary {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.order-summary h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.summary-items {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
}

.summary-item-info h4 {
    margin-bottom: 5px;
}

.summary-item-info .price {
    color: var(--primary-color);
    font-weight: 600;
}

.summary-item-quantity {
    display: flex;
    align-items: center;
    color: var(--light-text);
}

/* Account Section */
.account-section {
    padding: 80px 0;
}

.account-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}

.account-sidebar {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(106, 90, 205, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 32px;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info p {
    color: var(--light-text);
}

.account-nav ul {
    list-style: none;
}

.account-nav li {
    margin-bottom: 5px;
}

.account-nav a {
    display: block;
    padding: 12px 15px;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.account-nav a:hover,
.account-nav a.active {
    background-color: rgba(106, 90, 205, 0.05);
    color: var(--primary-color);
}

.account-content {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.account-tab {
    display: none;
}

.account-tab.active {
    display: block;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(106, 90, 205, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--light-text);
    font-size: 14px;
}

.recent-orders h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.order-id {
    font-weight: 600;
}

.order-date {
    color: var(--light-text);
    font-size: 14px;
}

.order-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.order-total {
    font-weight: 600;
    color: var(--primary-color);
}

.order-items {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    gap: 10px;
}

.order-item-image {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-item-name {
    font-size: 14px;
    margin-bottom: 2px;
}

.order-item-quantity {
    font-size: 12px;
    color: var(--light-text);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background-color: rgba(106, 90, 205, 0.05);
    font-weight: 600;
    color: var(--secondary-color);
}

/* Auth Section */
.auth-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--secondary-color);
}

.error-message {
    color: var(--danger-color);
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.crypto-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.crypto-icons i,
.crypto-icons .crypto-other {
    font-size: 24px;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-container,
    .checkout-container,
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .crypto-benefits {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .order-items {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 5px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}