/* Shopping Cart - White Theme Launch Template */

:root {
    --primary-color: #E30613;
    --primary-dark: #B8040F;
    --primary-light: #fef1f2;
    --bg-dark: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #e9ecef;
    --white: #ffffff;
    --text-light: #212529;
    --text-gray: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.16);
    
    --gradient-dark: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --darker-bg: #f1f3f4;
}
.launch-nav.scrolled {
    background: #262A2E !important;
    box-shadow: var(--shadow-medium);
}
/* Base Styles */
a {
    color: #fff;
}
/* Page Layout */
.cart-page {
    background: var(--bg-light);
    min-height: 100vh;
}

/* Hero Section */
.cart-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.cart-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,0,0,0.02)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.cart-hero .container {
    position: relative;
    z-index: 2;
}

.cart-hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.cart-hero .subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cart-hero .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-hero .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-hero .breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 5px 10px;
    border-radius: 5px;
}

.cart-hero .breadcrumb a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.cart-hero .breadcrumb .separator {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.cart-hero .breadcrumb .active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Main */
.cart-main {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Trust Indicators */
.trust-indicators {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.trust-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.trust-text {
    flex: 1;
}

.trust-text strong {
    color: var(--text-light);
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.trust-text span {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cart Items Styling */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-items {
    background: var(--bg-dark);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-items-title {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cart-items-count {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.cart-clear {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cart-clear:hover {
    background: var(--danger-color);
    color: white;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-lighter);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-name {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-name a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cart-item-name a:hover {
    color: var(--primary-color);
}

.cart-item-details {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-sku,
.cart-item-category {
    margin-right: 15px;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-discount {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-lighter);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--text-light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    background: none;
    border: none;
    color: var(--text-light);
    text-align: center;
    width: 40px;
    font-weight: 600;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    background: var(--primary-light);
    border-radius: 4px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.remove-btn:hover {
    background: var(--danger-color);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.summary-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    padding-top: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.summary-label {
    color: var(--text-gray);
}

.summary-value {
    color: var(--text-light);
    font-weight: 600;
}

.summary-row.total .summary-label,
.summary-row.total .summary-value {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Free Shipping Progress */
.free-shipping-banner {
    background: var(--success-color);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.shipping-progress {
    margin-bottom: 15px;
}

.shipping-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.shipping-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.shipping-progress-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Discount Code */
.discount-code {
    margin: 20px 0;
}

.discount-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-lighter);
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.discount-input::placeholder {
    color: var(--text-muted);
}

.discount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.discount-btn {
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.discount-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Checkout Section */
.checkout-section {
    margin-top: 30px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.line-contact-btn {
    width: 100%;
    padding: 15px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.line-contact-btn:hover {
    background: #05B548;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.line-contact-btn i {
    font-size: 1.2rem;
}

.continue-shopping {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.continue-shopping:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-cart-title {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-cart-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.empty-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-title {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-lighter);
}

.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);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    color: var(--text-muted);
    font-size: 2rem;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-gray);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.product-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-current {
    color: var(--primary-color);
}

/* Utility Classes */
.text-light-uifab {
    color: var(--text-light) !important;
}

.text-success-uifab {
    color: var(--success-color) !important;
}

.text-info-uifab {
    color: var(--info-color) !important;
}

.text-center-uifab {
    text-align: center !important;
}

.mb-3-uifab {
    margin-bottom: 1rem !important;
}

.mb-4-uifab {
    margin-bottom: 1.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.btn-primary-uifab {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary-uifab:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-lg-uifab {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-outline-uifab {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline-uifab:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm-uifab {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .cart-hero h1 {
        font-size: 2.5rem;
    }
    
    .cart-hero .breadcrumb {
        flex-direction: column;
        gap: 10px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    /* Cart items responsive */
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-items-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-clear {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .cart-hero {
        padding: 60px 0;
    }
    
    .cart-hero h1 {
        font-size: 2rem;
    }
    
    .cart-main {
        padding: 40px 0;
    }
    
    .trust-indicators {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    .cart-hero,
    .trust-indicators,
    .related-products {
        display: none;
    }
    
    .cart-page {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-gray: #495057;
        --text-muted: #6c757d;
        --border-color: #adb5bd;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}