/* css/cart.css - Majida Ameer Textiles Shopping Bag & Cart Stylesheet */
@import url('root.css');

/* ==========================================================================
   PAGE STRUCTURE & BREADCRUMBS
   ========================================================================== */
.cart-page-wrapper {
    width: 100%;
    min-height: 70vh;
    padding: 27px 0 70px 0;
    font-family: var(--font1);
    color: var(--text-primary-color);
}

.breadcrumbs-bar {
    width: 100%;
    padding: 16px 0 0 0;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    margin-top: 5px;
}

.breadcrumbs-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
}

/* Steps Progress Badge */
.checkout-steps-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
}

.step-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.step-item.completed {
    color: #059669;
}

.step-item.active {
    color: var(--sigcolor);
    font-weight: 700;
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary-color);
}

.breadcrumbs-nav li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs-nav a:hover {
    color: var(--sigcolor);
}

.breadcrumb-sep {
    color: #cccccc;
    font-size: 11px;
    user-select: none;
}

.breadcrumb-active {
    color: var(--sigcolor);
    font-weight: 600;
}

/* ==========================================================================
   CART TWO-COLUMN MAIN LAYOUT
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 36px;
    align-items: flex-start;
    margin-top: 10px;
}

/* ==========================================================================
   CART ITEMS COLUMN
   ========================================================================== */
.cart-items-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-items-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #e9edf0;
}

.cart-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cart-page-title {
    font-family: var(--font2);
    font-size: 21px;
    font-weight: 600;
    color: var(--sigcolor);
    letter-spacing: -0.3px;
    margin: 0;
}

.cart-item-count-badge {
    font-size: 12px;
    color: var(--text-secondary-color);
    font-weight: 500;
}

.btn-clear-cart {
    background: none;
    border: none;
    font-family: var(--font1);
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
    padding: 4px 6px;
}

.btn-clear-cart:hover {
    color: #ef4444;
}

/* Items List Container */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Cart Item Card (Responsive CSS Grid Architecture) */
.cart-item-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(1, 70, 97, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "thumb info"
        "thumb footer";
    column-gap: 20px;
    row-gap: 12px;
    align-items: start;
}

.cart-item-card:hover {
    border-color: #d6e2ec;
    box-shadow: 0 6px 18px rgba(1, 70, 97, 0.06);
    transform: translateY(-1px);
}

/* 1. Cover Image Frame */
.cart-item-thumb-frame {
    grid-area: thumb;
    width: 110px;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #edf2f7;
    align-self: start;
}

.cart-item-thumb-frame a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    -webkit-filter: saturate(120%) contrast(110%);
    filter: saturate(120%) contrast(110%);
}

.cart-item-card:hover .cart-item-thumb-frame img {
    transform: scale(1.05);
}

/* 2. Details Section (Title, Remove, Specs, Inclusions) */
.cart-item-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Header: Title & Action (Remove) */
.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-title {
    font-family: var(--font2);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary-color);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.2px;
    word-break: break-word;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cart-item-title a:hover {
    color: var(--sigcolor);
}

/* Remove Button */
.cart-item-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    padding: 0;
}

.cart-item-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
    transform: scale(1.06);
}

.cart-item-remove-btn svg {
    width: 17px;
    height: 17px;
}

/* Specs Row: Size, Color, Stock */
.cart-item-specs-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Direct Size Selector Dropdown Pill */
.cart-size-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 10px;
    transition: all 0.2s ease;
    max-width: 100%;
}

.cart-size-pill:hover,
.cart-size-pill:focus-within {
    border-color: var(--sigcolor);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(1, 70, 97, 0.08);
}

.cart-size-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.cart-size-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 35px);
}

.cart-item-size-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    font-family: var(--font1);
    font-size: 11px;
    font-weight: 600;
    color: var(--sigcolor);
    padding-right: 18px;
    cursor: pointer;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.cart-size-chevron {
    position: absolute;
    right: 0;
    width: 12px;
    height: 12px;
    color: var(--sigcolor);
    pointer-events: none;
}

/* Color Pill */
.cart-color-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    flex-shrink: 0;
}

.cart-color-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-block;
    flex-shrink: 0;
}

.cart-color-name {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

/* Stock Status Pill */
.cart-item-stock-tag {
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-stock-tag.in-stock {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.cart-item-stock-tag.in-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.cart-item-stock-tag.low-stock {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.cart-item-stock-tag.low-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

.cart-item-stock-tag.out-stock {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

/* Inclusions Breakdown (Chips) */
.cart-item-inclusions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    margin-top: 8px;
}

.cart-inclusions-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 2px;
}

.cart-inclusions-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-inclusion-chip {
    font-size: 11.5px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px 9px;
    border-radius: 6px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
}

.cart-element-color-circle {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 3. Footer: Stepper on Left, Price Hierarchy on Right */
.cart-item-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-top: 2px;
}

/* Stepper Control */
.cart-item-stepper-wrap {
    display: flex;
    align-items: center;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    height: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.cart-qty-btn {
    width: 30px;
    height: 100%;
    background: #f8fafc;
    border: none;
    color: #475569;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.cart-qty-btn:hover:not(:disabled) {
    background: #eef2f6;
    color: var(--sigcolor);
}

.cart-qty-btn:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

.cart-qty-input {
    width: 38px;
    height: 100%;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    appearance: textfield;
    -moz-appearance: textfield;
}

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

.cart-qty-input:focus {
    outline: none;
    background: #f8fafc;
}

/* Pricing Section */
.cart-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.cart-item-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cart-line-total-val {
    font-family: var(--font2);
    font-size: 15px;
    font-weight: 600;
    color: var(--sigcolor);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.cart-item-price-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.cart-unit-each {
    color: #64748b;
    font-weight: 500;
}

.cart-unit-original {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.cart-unit-discount {
    font-size: 10px;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
    padding: 1px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   ORDER SUMMARY COLUMN (CLEAN STICKY CARD)
   ========================================================================== */
.cart-summary-column {
    position: sticky;
    top: 90px;
}

.cart-summary-card {
    background: #ffffff;
    border: 1px solid #e5edf2;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(1, 70, 97, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card-title {
    font-family: var(--font2);
    font-size: 19px;
    font-weight: 600;
    color: var(--sigcolor);
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

/* Coupon Section */
.cart-coupon-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-input-group {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.coupon-input-wrap {
    flex: 1;
    position: relative;
}

.coupon-input-field {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary-color);
    transition: all 0.2s ease;
}

.coupon-input-field::placeholder {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
    color: #9ca3af;
}

.coupon-input-field:focus {
    outline: none;
    border-color: var(--sigcolor);
    box-shadow: 0 0 0 3px rgba(1, 70, 97, 0.1);
}

.btn-apply-coupon {
    padding: 0 18px;
    height: 42px;
    background: var(--sigcolor);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.btn-apply-coupon:hover:not(:disabled) {
    background: #02364b;
}

.btn-apply-coupon:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-apply-coupon.is-loading {
    color: transparent;
    position: relative;
}

.btn-apply-coupon.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinnerRotate 0.6s linear infinite;
}

@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Active Coupon Display */
.active-coupon-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
}

.active-coupon-card.is-visible {
    display: flex;
}

.active-coupon-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-coupon-tag-icon {
    color: #16a34a;
}

.active-coupon-name {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

.active-coupon-desc {
    font-size: 11.5px;
    color: #15803d;
}

.btn-remove-coupon {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-coupon:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Summary Math Breakdown */
.summary-math-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.summary-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-row-val {
    font-weight: 600;
    color: var(--text-primary-color);
}

.summary-row.discount-row {
    color: #15803d;
}

.summary-row.discount-row .summary-row-val {
    color: #15803d;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: #edf2f7;
    margin: 4px 0;
}

.summary-row.grand-total-row {
    font-size: 15px;
    font-weight: 700;
    color: var(--sigcolor);
    padding-top: 4px;
}

.summary-row.grand-total-row .summary-row-val {
    font-family: var(--font2);
    font-size: 18px;
    font-weight: 600;
    color: var(--sigcolor);
}

.tax-inclusive-tag {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    text-align: right;
    margin-top: -6px;
}

/* Action Buttons */
.cart-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn-proceed-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background: var(--sigcolor);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(1, 70, 97, 0.2);
    transition: all 0.22s ease;
}

.btn-proceed-checkout:hover {
    background: #02364b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 70, 97, 0.28);
}

.btn-proceed-checkout svg {
    width: 17px;
    height: 17px;
}

.btn-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: auto;
    padding-top: 7px;
    background: transparent;
    color: var(--sigcolor);
    border: none;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-continue-shopping svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.btn-continue-shopping:hover svg {
    transform: translateX(-3px);
}

/* ==========================================================================
   EMPTY CART STATE VIEW
   ========================================================================== */
.cart-empty-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    margin-bottom: 40px;
}

.cart-empty-view.is-visible {
    display: flex;
}

.empty-bag-illustration {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f6fa;
    color: var(--sigcolor);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.empty-bag-illustration svg {
    width: 48px;
    height: 48px;
}

.empty-cart-title {
    font-family: var(--font2);
    font-size: 24px;
    font-weight: 600;
    color: var(--sigcolor);
    margin: 0 0 10px 0;
}

.empty-cart-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 440px;
    line-height: 1.5;
    margin: 0 0 26px 0;
}

.btn-empty-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--sigcolor);
    color: #ffffff;
    border-radius: 8px;
    font-family: var(--font1);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(1, 70, 97, 0.2);
    transition: all 0.2s ease;
}

.btn-empty-shop-now:hover {
    background: #02364b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 70, 97, 0.28);
}

/* ==========================================================================
   RECOMMENDATIONS SECTION
   ========================================================================== */
.cart-recommendations-section {
    margin-top: 50px;
    padding-top: 37px;
    border-top: 1px solid #edf2f7;
}

.recommendations-header {
    margin-bottom: 27px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-bottom: 18px;
}

.recommendations-title {
    color: var(--sigcolor);
    font-size: 27px;
    font-family: var(--font1);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.15rem;
    margin-bottom: 18px;
}

.recommendations-subtitle {
    font-family: var(--font1);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary-color);
    width: 90%;
    max-width: 450px;
    text-align: center;
}

.cart-recommendations-section .product-name a {
    text-decoration: none;
    color: var(--sigcolor);
}

/* ==========================================================================
   ALERT TOASTS
   ========================================================================== */
.custom-alert-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-alert-toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--sigcolor);
    min-width: 280px;
    max-width: 380px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.custom-alert-toast.is-error {
    border-left-color: #ef4444;
}

.custom-alert-toast.is-success {
    border-left-color: #16a34a;
}

.custom-alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(1, 70, 97, 0.1);
    color: var(--sigcolor);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-alert-toast.is-error .custom-alert-icon {
    background: #fee2e2;
    color: #ef4444;
}

.custom-alert-toast.is-success .custom-alert-icon {
    background: #dcfce7;
    color: #16a34a;
}

.custom-alert-icon svg {
    width: 14px;
    height: 14px;
}

.custom-alert-content {
    flex: 1;
}

.custom-alert-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary-color);
}

.custom-alert-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.custom-alert-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.custom-alert-action-btn {
    background: var(--sigcolor);
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font1);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.custom-alert-action-btn:hover {
    background: #02364b;
}

.custom-alert-enter {
    animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-alert-exit {
    animation: toastSlideOut 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-summary-column {
        position: static;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Tablet & Mobile Breakpoint (<=768px) */
@media (max-width: 768px) {
    .cart-page-wrapper {
        padding-top: 15px;
        padding-bottom: 50px;
    }

    .cart-items-header-bar {
        margin-bottom: 14px;
    }

    .cart-page-title {
        font-size: 22px;
    }
}

/* Mobile Devices (<=640px) - Footer spans full width below thumbnail & info */
@media (max-width: 640px) {
    .cart-item-card {
        grid-template-columns: 82px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb info"
            "footer footer";
        column-gap: 14px;
        row-gap: 14px;
        padding: 16px;
        border-radius: 12px;
    }

    .cart-item-thumb-frame {
        width: 82px;
        height: 82px;
        border-radius: 8px;
    }

    .cart-item-title {
        font-size: 14.5px;
        line-height: 1.35;
    }

    .cart-item-remove-btn {
        width: 28px;
        height: 28px;
    }

    .cart-item-remove-btn svg {
        width: 15px;
        height: 15px;
    }

    .cart-item-specs-row {
        gap: 6px;
    }

    .cart-size-pill,
    .cart-color-pill,
    .cart-item-stock-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .cart-item-size-select {
        font-size: 11.5px;
        max-width: 180px;
    }

    /* Footer: 100% width row with Stepper on Left, Price on Right */
    .cart-item-footer {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid #f1f5f9;
        margin-top: 0;
    }

    .cart-qty-control {
        height: 32px;
    }

    .cart-qty-btn {
        width: 30px;
        font-size: 14px;
    }

    .cart-qty-input {
        width: 34px;
        font-size: 12.5px;
    }

    .cart-line-total-val {
        font-size: 16px;
    }

    .cart-item-price-sub {
        font-size: 11.5px;
    }

    .cart-page-title {
        font-size: 20px;
    }
}

/* Small Mobile Screens (<=420px) */
@media (max-width: 420px) {
    .cart-item-card {
        grid-template-columns: 72px 1fr;
        column-gap: 10px;
        row-gap: 12px;
        padding: 12px 14px;
    }

    .cart-item-thumb-frame {
        width: 72px;
        height: 72px;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-specs-row {
        gap: 5px;
    }

    .cart-size-pill,
    .cart-color-pill,
    .cart-item-stock-tag {
        font-size: 10.5px;
        padding: 2.5px 7px;
    }

    .cart-item-size-select {
        font-size: 11px;
        max-width: 140px;
    }

    .cart-qty-control {
        height: 30px;
    }

    .cart-qty-btn {
        width: 28px;
    }

    .cart-qty-input {
        width: 32px;
        font-size: 12px;
    }

    .cart-line-total-val {
        font-size: 15px;
    }

    .cart-item-price-sub {
        font-size: 11px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}