/* Glory Games Cart Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(132, 255, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(132, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(132, 255, 0, 0.05) 0%, transparent 50%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed header */
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #84ff00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.8);
}

.cart-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #84ff00 0%, #ffffff 50%, #84ff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.cart-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Cart Content Layout */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.cart-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(132, 255, 0, 0.6), transparent);
    opacity: 0.7;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(132, 255, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #84ff00;
}

.item-count {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.clear-cart-btn {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-cart-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
}

/* Cart Items Container */
.cart-items-container {
    min-height: 200px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(132, 255, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item:hover {
    border-color: rgba(132, 255, 0, 0.2);
    box-shadow: 0 8px 24px rgba(132, 255, 0, 0.1);
}

.cart-item-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(132, 255, 0, 0.1), rgba(132, 255, 0, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #84ff00;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cart-item-category {
    font-size: 0.8rem;
    color: #84ff00;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-item-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #84ff00;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    background: rgba(132, 255, 0, 0.1);
    color: #84ff00;
    border: 1px solid rgba(132, 255, 0, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 600;
}

.quantity-btn:hover {
    background: rgba(132, 255, 0, 0.2);
    transform: scale(1.05);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item-btn {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.remove-item-btn:hover {
    background: rgba(255, 69, 58, 0.2);
    transform: scale(1.05);
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.empty-cart-description {
    color: #a0a0b0;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(132, 255, 0, 0.1);
    color: #84ff00;
    border: 1px solid rgba(132, 255, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
    background: rgba(132, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 255, 0, 0.1);
}

.continue-shopping-section {
    margin-top: 2rem;
    text-align: center;
}

/* Cart Summary Section */
.cart-summary-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-summary {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 255, 0, 0.1);
    position: sticky;
    top: 2rem;
    transition: all 0.3s ease;
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(132, 255, 0, 0.6), transparent);
    opacity: 0.7;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-title i {
    color: #84ff00;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.shipping-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.shipping-info i {
    color: #84ff00;
    font-size: 0.8rem;
    cursor: help;
}

.shipping-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.shipping-info:hover .shipping-tooltip {
    opacity: 1;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(132, 255, 0, 0.3), transparent);
    margin: 1rem 0;
}

.total-row {
    border-top: 2px solid rgba(132, 255, 0, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

.total-row .summary-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #84ff00;
}

/* Checkout Actions */
.checkout-actions {
    margin-bottom: 2rem;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #84ff00, #a3ff33);
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(132, 255, 0, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.payment-methods {
    text-align: center;
}

.payment-methods-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #84ff00;
}

/* Promo Section */
.promo-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.promo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-title i {
    color: #84ff00;
}

.promo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(132, 255, 0, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.9rem;
}

.promo-input:focus {
    outline: none;
    border-color: rgba(132, 255, 0, 0.4);
}

.promo-apply-btn {
    background: rgba(132, 255, 0, 0.1);
    border: 1px solid rgba(132, 255, 0, 0.3);
    color: #84ff00;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promo-apply-btn:hover {
    background: rgba(132, 255, 0, 0.2);
    border-color: rgba(132, 255, 0, 0.5);
}

.promo-message {
    font-size: 0.8rem;
    padding: 0.5rem;
    border-radius: 6px;
    display: none;
}

.promo-message.success {
    background: rgba(132, 255, 0, 0.1);
    color: #84ff00;
    border: 1px solid rgba(132, 255, 0, 0.2);
    display: block;
}

.promo-message.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    display: block;
}

/* Recommended Products */
.recommended-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.recommended-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommended-title i {
    color: #84ff00;
}

.recommended-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(132, 255, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommended-product:hover {
    border-color: rgba(132, 255, 0, 0.2);
    box-shadow: 0 4px 12px rgba(132, 255, 0, 0.1);
}

.recommended-product-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(132, 255, 0, 0.1), rgba(132, 255, 0, 0.05));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #84ff00;
    flex-shrink: 0;
}

.recommended-product-details {
    flex: 1;
}

.recommended-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.recommended-product-price {
    font-size: 0.8rem;
    color: #84ff00;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .cart-item-image {
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-quantity {
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .remove-item-btn {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: 1.5rem;
    }
    
    .summary-title {
        font-size: 1.3rem;
    }
    
    .checkout-btn {
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
    }
    
    .cart-title {
        font-size: 2.5rem;
    }
    
    .cart-items-section,
    .cart-summary,
    .promo-section,
    .recommended-section {
        padding: 1.5rem;
    }
    
    .cart-item-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item-controls {
        flex-direction: row;
        justify-content: center;
    }
    
    .cart-items-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
    
    .payment-icons {
        gap: 0.5rem;
    }
    
    .payment-icons i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-breadcrumb {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .breadcrumb-separator {
        transform: rotate(90deg);
    }
}
