:root {
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --primary-glow: rgba(46, 125, 50, 0.25);
    --primary-soft: #f0fdf4;
    --primary-border: #bbf7d0;
}

/* ==========================================================================
   💰 CURRENCY & MONEY STYLING (Same as General Settings / Dashboard)
   উইন্ডোজের Segoe UI বাদ দিয়ে Nirmala UI ও সিস্টেমে ২য় ছবির মতো আসল বাংলা টাকা সাইন
   ========================================================================== */
.taka-sign,
.currency-symbol {
    font-family: "Nirmala UI", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif !important;
    font-style: normal;
    display: inline-block;
    margin-right: 2px;
    font-weight: inherit;
    vertical-align: baseline;
    line-height: 1;
}

.cart-page-wrapper {
    width: 100%;
    padding: 2.5rem 1.5rem;
    background-color: #f8fafc;
    /* Segoe UI বাদ দিয়ে ড্যাশবোর্ড / জেনারেল সেটিংসের মতো ক্লিন ফন্ট স্ট্যাক */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Nirmala UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cart-container {
    max-width: 1140px;
    margin: 0 auto;
}

.cart-page-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
}

.cart-page-title i {
    color: var(--primary-color);
}

.cart-count-pill {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.cart-item-img-box {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.fallback-icon {
    font-size: 1.5rem;
    color: #94a3b8;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
}

.cart-item-type-tag {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
}

.cart-item-qty-box {
    flex-shrink: 0;
}

.unique-qty-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 500;
}

.premium-qty-counter {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    height: 32px;
    overflow: hidden;
    user-select: none;
}

.premium-qty-counter.phone-qty-locked {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.qty-btn-minus, 
.qty-btn-plus {
    width: 30px;
    height: 100%;
    border: none;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.qty-btn-minus:hover, 
.qty-btn-plus:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.qty-val-display {
    padding: 0 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
}

.qty-type-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-right: 6px;
}

.qty-btn-locked {
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.7rem;
    cursor: not-allowed;
}

.qty-input-manual {
    width: 38px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    padding: 0;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input-manual::-webkit-outer-spin-button,
.qty-input-manual::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-price-box {
    text-align: right;
    min-width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: baseline;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.cart-item-old-price {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
    display: inline-flex;
    align-items: baseline;
    margin-top: 2px;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.free-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #059669;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.cart-item-remove-btn {
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.cart-item-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.cart-summary-section {
    position: sticky;
    top: 1rem;
}

.cart-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.summary-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8438rem;
    color: #475569;
    margin-bottom: 0.6rem;
}

.summary-row span:last-child {
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.summary-row .free-tag {
    font-size: 0.75rem;
    color: #64748b;
    font-family: inherit !important;
}

.coupon-discount-row {
    color: #059669 !important;
    font-weight: 600;
}

.cart-applied-coupon-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0 1rem 0;
}

.applied-coupon-info-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.applied-coupon-info-text strong {
    color: #065f46;
    font-size: 0.8125rem;
    font-weight: 600;
    display: block;
}

.applied-savings {
    font-size: 0.7188rem;
    color: #047857;
    display: block;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.btn-remove-coupon {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.total-row {
    font-size: 1.0625rem !important;
    font-weight: 600;
    color: #0f172a !important;
    margin-bottom: 1.25rem;
}

#summary_grand_total {
    color: var(--primary-color);
    font-size: 1.375rem;
    font-weight: 600;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.btn-proceed-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-proceed-checkout:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-clear-cart:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.summary-special-gift-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 1rem;
    box-sizing: border-box;
}

.gift-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.gift-card-icon {
    color: #16a34a;
    font-size: 0.875rem;
}

.gift-card-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #15803d;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gift-card-unlocked-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #15803d;
}

.gift-card-subtext {
    font-size: 0.7188rem;
    color: #475569;
    font-weight: 400;
    margin: 4px 0 0 0;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.gift-card-progress-status {
    font-size: 0.7813rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 6px;
    font-family: "Nirmala UI", system-ui, sans-serif;
}

.gift-card-progress-track {
    width: 100%;
    height: 6px;
    background-color: #dcfce7;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid #bbf7d0;
}

.gift-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #15803d 100%);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.cart-empty-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.cart-empty-box .empty-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.cart-empty-box h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.cart-empty-box p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-shop-now:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

/* Coupon Modal Pricing Fonts */
.coupon-card-discount,
.coupon-card-minspend {
    font-family: "Nirmala UI", system-ui, sans-serif;
}