/* Cart Styles - Cyberpunk Theme */
:root {
    --neon-blue: rgba(0, 243, 255, 0.7);
    --neon-pink: rgba(255, 0, 200, 0.6);
    --neon-green: rgba(0, 255, 159, 0.7);
    --neon-yellow: rgba(255, 255, 0, 0.6);
    --neon-red: rgba(255, 0, 0, 0.6);
    --dark-bg: #000000;
    --darker-bg: #050505;
    --light-bg: #141218;
    --terminal-green: rgba(0, 255, 0, 0.702);
    --text-color: rgba(220, 220, 220, 0.9);
    --window-bg: rgba(10, 10, 15, 0.7);
    --window-border: #0ff;
}

/* Cart Container */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cyber Header for all pages */
.cyber-header {
    text-align: center;
    margin-bottom: 40px;
}

.cyber-glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.cyber-glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.cyber-glitch::before,
.cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.cyber-glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.cyber-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cyber-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    margin: 0 auto;
}

/* Empty Cart Message */
.empty-cart-message {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.cyber-terminal {
    background-color: rgba(5, 5, 10, 0.9);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.terminal-header {
    background-color: rgba(0, 30, 60, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid var(--neon-blue);
}

.terminal-title {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.terminal-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-controls span:nth-child(1) {
    background-color: #ff3b30;
}

.terminal-controls span:nth-child(2) {
    background-color: #ffcc00;
}

.terminal-controls span:nth-child(3) {
    background-color: #28cd41;
}

.terminal-body {
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-body .line {
    margin-bottom: 8px;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: var(--neon-green);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.empty-cart-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Cart Items List */
.cart-items-container {
    background-color: rgba(10, 12, 20, 0.7);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.cart-header-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    padding: 15px;
    background-color: rgba(5, 10, 25, 0.95);
    border-bottom: 1px solid var(--neon-blue);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-transform: uppercase;
}

.cart-items-list {
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 1fr;
    padding: 20px 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(0, 243, 255, 0.05);
}

.cart-item:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name {
    font-weight: bold;
    color: white;
}

.product-category {
    font-size: 0.8rem;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
}

.cart-col-price,
.cart-col-total {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: var(--neon-yellow);
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-decrease,
.quantity-increase {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.quantity-decrease:hover,
.quantity-increase:hover {
    background-color: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 5px var(--neon-blue);
}

.quantity-input {
    width: 40px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    text-align: center;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.remove-item {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background-color: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 5px var(--neon-red);
}

.cart-summary {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-subtotal,
.cart-total {
    display: flex;
    justify-content: space-between;
    min-width: 250px;
}

.cart-subtotal {
    font-size: 0.9rem;
    color: var(--text-color);
}

.cart-total {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-green);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 5px;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

/* Cyber Buttons */
.cyber-button {
    position: relative;
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cyber-button span {
    position: relative;
    z-index: 1;
}

.button-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    z-index: 0;
    transition: left 0.5s ease;
}

.cyber-button:hover {
    box-shadow: 0 0 10px var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.cyber-button:hover .button-effect {
    left: 100%;
}

.cyber-button.primary {
    background-color: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    color: white;
}

.cyber-button.danger {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.cyber-button.danger:hover {
    box-shadow: 0 0 10px var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}

/* Confirmation Modal */
.cyber-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--light-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    animation: modal-appear 0.3s ease;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes modal-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    background-color: rgba(0, 30, 60, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--neon-blue);
}

.modal-header h3 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin: 0;
}

.modal-close {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--neon-red);
}

.modal-body {
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-header-row,
    .cart-item {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .cart-col-price {
        display: none;
    }
    
    .cart-summary {
        flex-direction: column;
        gap: 20px;
    }
    
    .cart-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .cart-actions .cyber-button {
        width: 100%;
    }
}
