/**
 * Cart Page Styles
 * Part of: local_edwiserstore
 */

/* Cart Page Styles */
.local-edwiserstore-cart-page {
    padding: 24px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-page-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 24px;
    background-color: var(--edw-white);
}

.cart-items-section {
    flex: 1;
    min-width: 0;
}

.cart-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--edw-text-heading);
    margin: 0;
}

.cart-item-count {
    font-size: 16px;
    color: var(--edw-text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.cart-delete-all {
    background-color: var(--edw-primary);
    color: var(--edw-white);
    border: 1px solid var(--edw-primary);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

.cart-delete-all:hover,
.cart-delete-all:focus {
    background-color: var(--edw-primary-hover);
    border-color: var(--edw-primary-hover);
    color: var(--edw-white);
    text-decoration: none;
    box-shadow: none;
}

.cart-delete-all:active {
    background-color: var(--edw-primary-active);
    border-color: var(--edw-primary-active);
    box-shadow: none;
}

.cart-delete-all i {
    color: var(--edw-white);
    font-size: 14px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    display: flex;
    gap: 20px;
    background: var(--edw-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--edw-border);
}

.cart-item-image-wrapper {
    flex-shrink: 0;
    width: 240px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    background: var(--edw-bg-light);
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
}

.cart-item-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--edw-bg-input);
    color: var(--edw-text-body);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--edw-text-heading);
    margin: 0;
    line-height: 1.4;
}

.cart-item-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cart-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--edw-text-muted);
}

.cart-meta-item i {
    color: var(--edw-star);
}

.cart-meta-item i.fa-users {
    color: var(--edw-text-muted);
}

.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cart-price-original {
    font-size: 16px;
    color: var(--edw-text-light);
    text-decoration: line-through;
}

.cart-price-actual {
    font-size: 20px;
    font-weight: 700;
    color: var(--edw-primary);
}

.cart-sale-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--edw-star);
    color: var(--edw-text-heading);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.cart-item-delete {
    background-color: var(--edw-primary);
    color: var(--edw-white);
    border-color: var(--edw-primary);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item-delete:hover,
.cart-item-delete:focus {
    background-color: var(--edw-primary-hover);
    border-color: var(--edw-primary-hover);
    color: var(--edw-white);
}

.cart-item-delete i {
    color: var(--edw-white);
}

.cart-order-summary-section {
    flex-shrink: 0;
    width: 380px;
}

.order-summary-card {
    background: var(--edw-white);
    padding: 24px;
    padding-bottom: 0;
    top: 20px;
}

.order-summary-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--edw-text-heading);
    margin: 0 0 24px 0;
}

.order-summary-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 16px;
    color: var(--edw-text-body);
    font-weight: 500;
}

.summary-value {
    font-size: 16px;
    color: var(--edw-text-heading);
    font-weight: 600;
}

.summary-row.total-row {
    padding-top: 16px;
    border-top: 2px solid var(--edw-border);
    margin-top: 8px;
}

.summary-row.total-row .summary-label,
.summary-row.total-row .summary-value {
    font-size: 20px;
    font-weight: 700;
}

.total-value {
    color: var(--edw-text-heading);
}

.coupon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.coupon-input-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
}

.coupon-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--edw-border-light);
    border-radius: 4px;
    font-size: 14px;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--edw-primary);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.coupon-apply-btn {
    padding: 8px 16px;
    background: var(--edw-primary);
    color: var(--edw-white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.coupon-apply-btn:hover {
    background: var(--edw-primary-hover);
}

.order-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proceed-checkout-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--edw-primary);
    color: var(--edw-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
}

.proceed-checkout-btn:hover {
    background: var(--edw-primary-hover);
    color: var(--edw-white);
    text-decoration: none;
}

.continue-shopping-btn,
.continue-shopping-btn-empty {
    width: 100%;
    padding: 10px 24px;
    background: transparent;
    color: var(--edw-primary);
    border: none;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    display: block;
}

.continue-shopping-btn:hover,
.continue-shopping-btn-empty:hover {
    color: var(--edw-primary-hover);
    text-decoration: underline;
}

/* Empty Cart State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.cart-empty-illustration {
    margin-bottom: 32px;
}

.empty-cart-image {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.cart-empty-content {
    max-width: 500px;
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--edw-text-heading);
    margin: 0 0 16px 0;
}

.cart-empty-message {
    font-size: 16px;
    color: var(--edw-text-muted);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Delete Confirmation Modal */
.cart-delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cart-delete-modal-content {
    background: var(--edw-white);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cart-delete-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--edw-border);
}

.cart-delete-modal-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--edw-text-heading);
    margin: 0;
}

.cart-delete-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--edw-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-delete-modal-close:hover {
    color: var(--edw-text-heading);
}

.cart-delete-modal-body {
    padding: 24px;
}

.cart-delete-modal-body p {
    font-size: 16px;
    color: var(--edw-text-body);
    margin: 0;
    line-height: 1.6;
}

.cart-delete-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--edw-border);
}

.cart-delete-modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    min-width: 80px;
}

.cart-delete-cancel {
    background: var(--edw-white);
    color: var(--edw-primary);
    border: 1px solid var(--edw-primary);
}

.cart-delete-cancel:hover {
    background: var(--edw-bg-page);
}

.cart-delete-confirm {
    background: var(--edw-primary);
    color: var(--edw-white);
}

.cart-delete-confirm:hover {
    background: var(--edw-primary-hover);
}

/* Responsive Cart Page */
