/* Cart Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3131;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounce 0.5s ease;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #d32f2f;
}

.cart-item-price {
    color: #c62828;
    font-weight: bold;
}

.cart-item-remove {
    background: #ff3131;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cart-clear {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cart-clear:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.cart-checkout {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-checkout:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.add-to-cart-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.checkout-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.checkout-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.checkout-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.checkout-body {
    padding: 1.5rem;
}

.order-items {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
}

.order-total {
    text-align: center;
    font-size: 1.3rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
}

.checkout-instructions {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.checkout-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.checkout-instructions p {
    margin: 0.3rem 0;
    color: #555;
}

.checkout-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-screenshot, .btn-discord {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 150px;
}

.btn-screenshot {
    background: #28a745;
    color: white;
}

.btn-screenshot:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .checkout-actions {
        flex-direction: column;
    }
    
    .btn-screenshot, .btn-discord {
        width: 100%;
    }
}

/* Cart Page Styles */
.cart-page {
    min-height: 80vh;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cart-page h1 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.cart-summary h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-cart-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #f44336;
    background: transparent;
    color: #f44336;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-cart-btn:hover {
    background: #f44336;
    color: white;
    transform: translateY(-2px);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.cart-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.cart-empty h3 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.cart-empty p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.item-price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.3rem;
}

.quantity-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

.remove-item {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-page h1 {
        font-size: 2rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: 1rem;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}