﻿/* Cart Page Styles */

/* Force header to be visible (non-transparent) on cart page */
body .main-nav {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Light theme override */
html[data-theme="light"] body .main-nav {
    background: rgba(255, 255, 255, .98) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Dark theme override */
html[data-theme="dark"] body .main-nav {
    background: rgba(13, 17, 23, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 2px 15px rgba(255, 255, 255, 0.05) !important;
}

/* Ensure logo and nav items have proper colors */
body .main-nav .logo,
body .main-nav .logo-text {
    color: var(--secondary-color) !important;
}

body .main-nav .nav-links > li > a {
    color: var(--secondary-color) !important;
}

body .main-nav .search-icon,
body .main-nav .search-icon i,
body .main-nav .cart-icon,
body .main-nav .cart-icon i,
body .main-nav .consultation-icon,
body .main-nav .consultation-icon i,
body .main-nav .theme-toggle,
body .main-nav .theme-toggle i,
body .main-nav .mobile-toggle,
body .main-nav .mobile-toggle i {
    color: var(--secondary-color) !important;
}

/* Light theme text colors */
html[data-theme="light"] body .main-nav .logo,
html[data-theme="light"] body .main-nav .logo-text,
html[data-theme="light"] body .main-nav .nav-links > li > a,
html[data-theme="light"] body .main-nav .search-icon,
html[data-theme="light"] body .main-nav .search-icon i,
html[data-theme="light"] body .main-nav .cart-icon,
html[data-theme="light"] body .main-nav .cart-icon i,
html[data-theme="light"] body .main-nav .consultation-icon,
html[data-theme="light"] body .main-nav .consultation-icon i,
html[data-theme="light"] body .main-nav .theme-toggle,
html[data-theme="light"] body .main-nav .theme-toggle i,
html[data-theme="light"] body .main-nav .mobile-toggle,
html[data-theme="light"] body .main-nav .mobile-toggle i {
    color: #1a1a2e !important;
}

/* Dark theme text colors */
html[data-theme="dark"] body .main-nav .logo,
html[data-theme="dark"] body .main-nav .logo-text,
html[data-theme="dark"] body .main-nav .nav-links > li > a,
html[data-theme="dark"] body .main-nav .search-icon,
html[data-theme="dark"] body .main-nav .search-icon i,
html[data-theme="dark"] body .main-nav .cart-icon,
html[data-theme="dark"] body .main-nav .cart-icon i,
html[data-theme="dark"] body .main-nav .consultation-icon,
html[data-theme="dark"] body .main-nav .consultation-icon i,
html[data-theme="dark"] body .main-nav .theme-toggle,
html[data-theme="dark"] body .main-nav .theme-toggle i,
html[data-theme="dark"] body .main-nav .mobile-toggle,
html[data-theme="dark"] body .main-nav .mobile-toggle i {
    color: #ffffff !important;
}

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 100%), 
                url('../Designs/5. Interior Design/Office interiors/Office interiors.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 100px;
    text-align: center;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    position: relative;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    position: relative;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.breadcrumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.breadcrumb a {
    color: #ffa500;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Cart Page Section */
.cart-page-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 100px);
}

/* Simple Page Title */
.cart-page-title {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.cart-page-title h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 700;
}

.cart-page-title p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-state i {
    font-size: 3rem;
    color: #ffa500;
    margin-bottom: 20px;
}

.loading-state p {
    font-size: 1.1rem;
    color: #666;
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart-icon {
    font-size: 6rem;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-cart-state h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.empty-cart-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

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

.btn-browse {
    padding: 15px 35px;
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.4);
}

.btn-browse-secondary {
    padding: 15px 35px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-browse-secondary:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f1729 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 26, 46, 0.4);
}

/* Light mode - ensure secondary button text is white */
html[data-theme="light"] .btn-browse-secondary {
    color: #ffffff !important;
}

/* Dark mode - ensure secondary button text is white */
html[data-theme="dark"] .btn-browse-secondary {
    color: #ffffff !important;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Items */
.cart-items-column {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.cart-items-header h2 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin: 0;
}

.cart-items-header span {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.cart-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-list-item-image {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-list-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-list-item-title {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 0;
}

.cart-list-item-category {
    color: #ffa500;
    font-size: 0.95rem;
    font-weight: 500;
}

.cart-list-item-remove {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-list-item-remove:hover {
    background: #e74c3c;
    color: #fff;
}

/* Right Column: Order Summary */
.cart-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cart-summary-card h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.summary-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.btn-checkout-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-checkout-primary:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-checkout-secondary {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-checkout-secondary:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #aaa;
}

.summary-note {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.summary-note i {
    color: #1a1a2e;
    margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 576px) {
    .cart-list-item {
        flex-direction: column;
    }
    
    .cart-list-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-list-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-list-item-remove {
        width: 100%;
    }
}

