/* Cart Page Styles */

/* Page Header Override */
.page-header {
    background: #0A4B3E;
    color: #fff;
    margin-bottom: 40px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Breadcrumb Override */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb nav a:hover {
    color: #96722E;
}

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

.breadcrumb nav span:last-child {
    color: #fff;
    font-weight: 500;
}

/* Header Content */
.header-content {
    padding: 40px 0;
    text-align: center;
}

.header-wrap h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
}

.cart-count {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Cart Layout */
.cart-main {
    padding: 40px 0;
    background: #f8f8f8;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* Cart Items Section */
.cart-items {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: relative;
}

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

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

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

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 40px;
}

.item-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.item-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-details h3 a:hover {
    color: #0A4B3E;
}

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

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.sale-price {
    color: #0A4B3E;
    font-weight: 600;
    font-size: 16px;
}

.regular-price {
    color: #0A4B3E;
    font-weight: 600;
    font-size: 16px;
}

.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #eee;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.qty-btn:hover {
    background: #0A4B3E;
    color: #fff;
}

.qty-btn.active {
    transform: scale(0.95);
    background: #0A4B3E;
    color: #fff;
}

.qty-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 75, 62, 0.2);
}

.qty-btn.decrease {
    padding-bottom: 2px;
}

.item-quantity input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: none;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    appearance: textfield;
    -moz-appearance: textfield;
}

.item-quantity input::-webkit-outer-spin-button,
.item-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.item-total {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.total-label {
    color: #666;
    font-size: 14px;
}

.total-amount {
    font-weight: 600;
    color: #0A4B3E;
    font-size: 16px;
}

.remove-item {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 24px;
    position: sticky;
    top: 20px;
}

.summary-header {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

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

.summary-row.total {
    color: #0A4B3E;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.free-shipping-msg {
    background: #f0f9f7;
    color: #0A4B3E;
    padding: 12px;
    border-radius: 6px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.free-shipping-msg i {
    font-size: 16px;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #0A4B3E;
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 24px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.checkout-btn:hover {
    background: #083830;
}

.checkout-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.checkout-btn:hover i {
    transform: translateX(4px);
}

/* Empty Cart */
.empty-cart {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 48px;
    color: #0A4B3E;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #96722E;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #805b2e;
}

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

@media (max-width: 768px) {
    .header-content {
        padding: 20px 0;
    }

    .header-wrap h1 {
        font-size: 28px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px;
    }

    .cart-summary {
        padding: 15px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-total {
        font-size: 14px;
    }
    
    .remove-item {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .cart-main {
        padding: 20px 0;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .item-details h3 {
        font-size: 16px;
    }
    
    .summary-header {
        font-size: 18px;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
}