/* Custom CSS Variables */
:root {
    --primary: #ee2b5b;
    --background-light: #fcf8f9;
    --background-dark: #221015;
    --text-light-primary: #1b0d11;
    --text-light-secondary: #9a4c5f;
    --text-dark-primary: #fcf8f9;
    --text-dark-secondary: #f3e7ea;
    --border-light: #f3e7ea;
    --border-dark: #44202b;
    --surface-light: #ffffff;
    --surface-dark: #2a141a;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-light);
    color: var(--text-light-primary);
    line-height: 1.6;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    background-color: rgba(252, 248, 249, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand .logo svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.navbar-brand .logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}


.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-light-primary);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(238, 43, 91, 0.1);
    color: var(--text-light-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: rgba(238, 43, 91, 0.2);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuCd5GcAa2YpruW3spnd3Dr_ox58TxM9_NsG5LyTzX5owlwDapZcRvkcAfTWCpuH7FTTjz54pA32Ua37ir3co530rLD-ueX3Ak69jVuD90JYKVhXrvrJpdK0_xgi4oGzU4rccJuA4ZliQPFVBzNr15pyaznPAUjBt3rCg_M3YLe4j6BNoSmQ9ieIODffSIrYyezeBe3XL1U_s9ZCgjGSW9dB1xKeCQjxR48hYf-zXw5fiab5381wteWaIFfwAaj3eWLXFRhMAw7KctV9');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-light-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

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

.breadcrumb-item.active {
    color: var(--text-light-primary);
}

/* Page Header */
.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-light-secondary);
    margin-bottom: 0;
}

.continue-shopping {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Cart Table Layout */
.cart-table-container {
    background: transparent;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.cart-table th {
    background-color: #f8f9fa;
    /* Light grey header */
    color: var(--text-light-secondary);
    font-weight: 600;
    padding: 1.5rem 1rem;
    border: none;
    font-size: 0.9rem;
}

.cart-table td {
    padding: 2rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

/* Product Column */
.product-wrapper {
    display: flex;
    gap: 1.25rem;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-brand {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light-primary);
    font-size: 0.9rem;
}

.product-name a {
    color: var(--text-light-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    display: block;
}

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

.product-variant {
    color: var(--text-light-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.product-actions-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.action-link:hover {
    color: var(--primary);
}

.action-link .material-symbols-outlined {
    font-size: 18px;
}

/* Price & Total Columns */
.price-col,
.total-col {
    vertical-align: top;
    padding-top: 2rem;
}

.current-price,
.total-price {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light-primary);
}

.original-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Quantity Column */
.quantity-col {
    vertical-align: top;
    padding-top: 2rem;
}

.quantity-box {
    display: flex;
    justify-content: center;
}

.quantity-box input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-light-primary);
    /* Bring back arrows for this design */
    -moz-appearance: textfield;
}

/* Webkit specific to show arrows if desired, or keep hidden and use custom controls. 
   User image shows arrows inside the box. */
.quantity-box input[type="number"]::-webkit-inner-spin-button,
.quantity-box input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    background: transparent;
}

/* Order Summary */
.order-summary {
    background-color: var(--surface-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-row span:first-child {
    color: var(--text-light-secondary);
}

.summary-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.btn-checkout:hover {
    opacity: 0.8;
}

.coupon-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-section .material-symbols-outlined {
    font-size: 18px;
    color: var(--text-light-secondary);
}

.coupon-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.coupon-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--surface-light);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand .logo svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.footer-brand .logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.footer-description {
    color: var(--text-light-secondary);
    font-size: 0.875rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-light-secondary);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .order-summary {
        position: static;
        margin-top: 2rem;
    }
}


