/* ==========================================================================
   CART PAGE - Amazon Style
   ========================================================================== */
.aaima-cart-page {
    padding: 0;
    background: #eaeded;
    min-height: 60vh;
}

.aaima-cart-page .aaima-container {
    max-width: var(--aaima-container-max, 1500px);
}

/* Free Shipping Banner */
.aaima-cart-banner {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.aaima-cart-banner.success {
    background: #f0fff4;
    border-color: #067d62;
    color: #067d62;
}

.cart-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #0f1111;
}

.cart-banner-content svg {
    color: #067d62;
    flex-shrink: 0;
}

.cart-banner-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.progress-bar-track {
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #067d62, #00a650);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #067d62;
    min-width: 35px;
}

/* Cart Layout */
.aaima-cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* Cart Items Section */
.aaima-cart-items-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.cart-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 5px;
}

.cart-title {
    font-size: 28px;
    font-weight: 400;
    color: #0f1111;
    margin: 0;
    flex: 1;
}

.deselect-all {
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.deselect-all:hover {
    color: #c45500;
    text-decoration: underline;
}

.price-header {
    font-size: 14px;
    color: #565959;
    text-align: right;
    min-width: 80px;
}

.cart-divider {
    height: 1px;
    background: #ddd;
    margin: 15px 0;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 30px 180px 1fr 100px;
    gap: 15px;
    padding: 15px 0;
    align-items: start;
}

.cart-item-checkbox {
    padding-top: 5px;
}

.cart-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9900;
}

.cart-item-image {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.cart-item-title a {
    color: #007185;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: #c45500;
    text-decoration: underline;
}

.cart-item-stock .in-stock {
    color: #067d62;
    font-size: 12px;
    font-weight: 500;
}

.cart-item-stock .out-of-stock {
    color: #b12704;
    font-size: 12px;
    font-weight: 500;
}

.cart-item-shipping {
    font-size: 12px;
    color: #067d62;
}

.eligible-shipping {
    display: flex;
    align-items: center;
    gap: 5px;
}

.eligible-shipping svg {
    color: #067d62;
}

.cart-item-gift {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #0f1111;
    cursor: pointer;
}

.cart-item-gift input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #ff9900;
}

.cart-item-gift a {
    color: #007185;
    margin-left: 5px;
}

/* Cart Item Actions */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-quantity label {
    font-size: 12px;
    color: #0f1111;
}

.cart-item-quantity .quantity {
    display: flex;
    align-items: center;
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-quantity .quantity input {
    width: 35px;
    height: 30px;
    text-align: center;
    border: none;
    background: #fff;
    font-size: 13px;
}

.cart-item-quantity .quantity button {
    width: 30px;
    height: 30px;
    background: #f0f2f2;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #0f1111;
}

.cart-item-quantity .quantity button:hover {
    background: #e7e9ec;
}

.action-separator {
    color: #ddd;
    font-size: 12px;
}

.cart-item-delete,
.cart-item-save,
.cart-item-compare {
    font-size: 12px;
    color: #007185;
    text-decoration: none;
    white-space: nowrap;
}

.cart-item-delete:hover,
.cart-item-save:hover,
.cart-item-compare:hover {
    color: #c45500;
    text-decoration: underline;
}

/* Cart Item Price */
.cart-item-price {
    text-align: right;
    min-width: 100px;
}

.cart-item-price > .amount,
.cart-item-price > .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #0f1111;
    display: block;
}

/* Regular price when on sale - small, light, strikethrough */
.cart-item-price .was-price {
    display: block;
    font-size: 13px;
    color: #565959;
    text-decoration: line-through;
    margin-top: 3px;
    font-weight: 400;
}

.cart-item-price .was-price .woocommerce-Price-amount,
.cart-item-price .was-price .amount {
    font-size: 13px;
    font-weight: 400;
    color: #565959;
}

/* Cart Items Subtotal */
.cart-items-subtotal {
    text-align: right;
    font-size: 18px;
    color: #0f1111;
    padding: 15px 0;
}

.cart-items-subtotal .amount {
    font-weight: 700;
}

/* Cart Sidebar */
.aaima-cart-sidebar {
    position: sticky;
    top: 20px;
}

.cart-sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.sidebar-free-shipping {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #067d62;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.sidebar-free-shipping svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-subtotal {
    font-size: 18px;
    color: #0f1111;
    margin-bottom: 15px;
}

.subtotal-amount {
    font-weight: 700;
}

/* Shipping Section */
.sidebar-shipping {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.sidebar-shipping .woocommerce-shipping-totals {
    margin: 0;
}

.sidebar-shipping .woocommerce-shipping-totals th,
.sidebar-shipping .woocommerce-shipping-totals td {
    padding: 8px 0;
    border: none;
    font-size: 14px;
    color: #0f1111;
    vertical-align: top;
}

.sidebar-shipping .woocommerce-shipping-totals th {
    font-weight: 600;
    padding-right: 10px;
}

.sidebar-shipping .shipping-calculator-form {
    margin-top: 10px;
    padding: 15px;
    background: #f7f8f8;
    border-radius: 6px;
}

.sidebar-shipping .shipping-calculator-form p {
    margin-bottom: 10px;
}

.sidebar-shipping .shipping-calculator-form .input-text,
.sidebar-shipping .shipping-calculator-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    font-size: 13px;
}

.sidebar-shipping .shipping-calculator-form .button {
    width: 100%;
    margin-top: 10px;
    padding: 8px 15px;
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.sidebar-shipping .shipping-calculator-form .button:hover {
    background: #e7e9ec;
}

/* Shipping methods list */
.sidebar-shipping ul#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-shipping ul#shipping_method li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.sidebar-shipping ul#shipping_method li label {
    flex: 1;
    cursor: pointer;
    line-height: 1.4;
}

.sidebar-shipping ul#shipping_method li input[type="radio"] {
    margin-top: 3px;
    accent-color: #ff9900;
}

/* 3rd party shipping plugin styles (Packlink Pro, etc.) */
.sidebar-shipping .packlink-shipping,
.sidebar-shipping .shipping-destination,
.sidebar-shipping .woocommerce-shipping-destination {
    font-size: 12px;
    color: #565959;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.sidebar-shipping img {
    max-width: 40px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* Fee Section */
.sidebar-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #0f1111;
    padding: 8px 0;
}

.sidebar-fee .fee-name {
    color: #565959;
}

.sidebar-fee .fee-amount {
    font-weight: 500;
}

/* Tax Section */
.sidebar-tax {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #0f1111;
    padding: 8px 0;
}

.sidebar-tax .tax-name {
    color: #565959;
}

.sidebar-tax .tax-amount {
    font-weight: 500;
}

/* Order Total */
.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #0f1111;
    padding: 15px 0;
    margin-bottom: 15px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.sidebar-total .total-label {
    font-weight: 600;
}

.sidebar-total .total-amount {
    font-weight: 700;
    font-size: 20px;
    color: #B12704;
}

.sidebar-total .total-amount .woocommerce-Price-amount {
    color: #B12704;
}

/* Small tax note under total */
.sidebar-total .includes_tax {
    display: block;
    font-size: 11px;
    color: #565959;
    font-weight: 400;
    margin-top: 3px;
}

.sidebar-gift-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f1111;
    cursor: pointer;
    margin-bottom: 15px;
}

.sidebar-gift-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff9900;
}

.sidebar-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    border-radius: 8px;
    color: #0f1111;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.sidebar-checkout .checkout-button:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

/* Coupon Section */
.cart-coupon-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
}

.coupon-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #0f1111;
    cursor: pointer;
}

.coupon-form-wrapper {
    margin-top: 12px;
}

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

.coupon-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.coupon-input-group button {
    padding: 8px 15px;
    background: #f0f2f2;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.coupon-input-group button:hover {
    background: #e7e9ec;
}

/* Cart Collaterals / Cross-sells */
.cart-collaterals {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.cart-collaterals h2 {
    font-size: 21px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 15px 0;
}

.cart-collaterals .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Hide default WooCommerce cart totals (we use our own sidebar) */
.aaima-cart-page .cart_totals,
.aaima-cart-page > .cart-collaterals > .cart_totals,
.woocommerce-cart .cart_totals:not(.aaima-cart-sidebar .cart_totals) {
    display: none !important;
}

/* Only show cross-sells in collaterals */
.cart-collaterals .cross-sells {
    display: block;
}

/* ==========================================================================
   CART LAYOUT - DEFAULT STYLE (Amazon Classic)
   ========================================================================== */
.aaima-cart-page.layout-default {
    background: #eaeded;
    padding: 20px 0;
}

.layout-default .aaima-cart-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.layout-default .aaima-cart-items-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.layout-default .cart-section-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.layout-default .cart-title {
    font-size: 28px;
    font-weight: 400;
    color: #0f1111;
}

.layout-default .cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

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

.layout-default .aaima-cart-sidebar {
    position: sticky;
    top: 20px;
}

.layout-default .cart-sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
}

/* ==========================================================================
   CART LAYOUT - MODERN STYLE (Card Based)
   ========================================================================== */
.aaima-cart-page.layout-modern {
    /* Background is now on body element */
    background: transparent;
    padding: 30px 15px 40px;
    min-height: calc(100vh - 200px);
    position: relative;
}

/* Subtle glow effect */
.aaima-cart-page.layout-modern::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.aaima-cart-page.layout-modern > * {
    position: relative;
    z-index: 1;
}

.layout-modern .aaima-cart-layout {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.layout-modern .aaima-cart-banner {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.layout-modern .aaima-cart-banner.success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border: none;
}

.layout-modern .aaima-cart-items-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.layout-modern .cart-section-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    margin: 0;
    padding: 22px 28px;
    border-radius: 0;
}

.layout-modern .cart-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.layout-modern .deselect-all {
    color: rgba(255,255,255,0.8);
}

.layout-modern .deselect-all:hover {
    color: #fff;
}

.layout-modern .price-header {
    color: rgba(255,255,255,0.8);
}

.layout-modern .cart-divider {
    display: none;
}

.layout-modern .cart-item {
    background: #f8fafc;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.layout-modern .cart-item:first-child {
    margin-top: 20px;
}

.layout-modern .cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.layout-modern .cart-item-image {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.layout-modern .cart-item-title a {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.layout-modern .cart-item-title a:hover {
    color: #3b82f6;
}

.layout-modern .cart-item-stock .in-stock {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.layout-modern .cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #b12704;
}

.layout-modern .cart-item-price .was-price {
    font-size: 14px;
    color: #94a3b8;
}

.layout-modern .cart-item-quantity .quantity {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.layout-modern .cart-item-quantity .quantity button {
    background: transparent;
    color: #475569;
    font-weight: 600;
    transition: all 0.15s ease;
}

.layout-modern .cart-item-quantity .quantity button:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.layout-modern .cart-item-actions a {
    color: #3b82f6;
    font-weight: 500;
}

.layout-modern .cart-item-actions a:hover {
    color: #1d4ed8;
}

.layout-modern .cart-items-subtotal {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 18px 28px;
    border-radius: 0 0 16px 16px;
    font-size: 17px;
    margin-top: 0;
}

.layout-modern .cart-items-subtotal .amount {
    color: #fbbf24;
    font-weight: 700;
}

.layout-modern .aaima-cart-sidebar {
    position: relative;
    top: auto;
    margin-top: 0;
}

.layout-modern .cart-sidebar-box {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.layout-modern .sidebar-free-shipping {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border: none;
}

.layout-modern .sidebar-free-shipping svg {
    display: none;
}

.layout-modern .sidebar-subtotal {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    margin-bottom: 20px;
}

.layout-modern .sidebar-subtotal .subtotal-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #b12704;
    margin-top: 8px;
}

.layout-modern .sidebar-gift-option {
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.layout-modern .sidebar-checkout .checkout-button {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #f7ca00 0%, #f0b800 100%);
    color: #0f1111;
    border: 1px solid #c89411;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layout-modern .sidebar-checkout .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #f5d78e 0%, #eeb933 100%);
}

.layout-modern .cart-coupon-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
}

.layout-modern .coupon-toggle {
    padding: 16px 18px;
    font-weight: 600;
    color: #475569;
}

.layout-modern .coupon-input-group input {
    border-radius: 8px 0 0 8px;
    border: 1px solid #e2e8f0;
    border-right: none;
    padding: 10px 14px;
}

.layout-modern .coupon-input-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.layout-modern .coupon-input-group button {
    border-radius: 0 8px 8px 0;
    background: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
    padding: 10px 18px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.layout-modern .coupon-input-group button:hover {
    background: #2563eb;
}

.layout-modern .cart-collaterals {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 28px;
    margin-top: 25px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hide empty cart-collaterals */
.layout-modern .cart-collaterals:empty {
    display: none;
}

.layout-modern .cart-collaterals h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1e293b;
    text-align: center;
    font-weight: 600;
}

/* ==========================================================================
   EMPTY CART PAGE
   ========================================================================== */
.aaima-empty-cart {
    padding: 40px 0;
    background: #eaeded;
    min-height: 60vh;
}

.empty-cart-content {
    background: #fff;
    border-radius: 8px;
    padding: 50px 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
}

.empty-cart-icon {
    margin-bottom: 20px;
}

.empty-cart-icon svg {
    width: 80px;
    height: 80px;
    color: #ddd;
}

.empty-cart-title {
    font-size: 28px;
    font-weight: 400;
    color: #0f1111;
    margin: 0 0 15px 0;
}

.empty-cart-message {
    font-size: 14px;
    color: #565959;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.empty-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-cart-actions .button {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 8px;
}

.empty-cart-actions .sign-in-btn {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    color: #0f1111;
}

.empty-cart-actions .sign-in-btn:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
}

.empty-cart-actions .register-btn {
    background: #fff;
    border: 1px solid #d5d9d9;
    color: #0f1111;
}

.empty-cart-actions .register-btn:hover {
    background: #f7f8f8;
}

.continue-shopping {
    margin-top: 20px;
}

.continue-shopping .button {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    color: #0f1111;
    padding: 12px 30px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
}

.continue-shopping .button:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
    color: #0f1111;
}

/* Empty Cart Sections */
.empty-cart-recently-viewed,
.empty-cart-wishlist,
.empty-cart-featured {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.empty-cart-recently-viewed .section-title,
.empty-cart-wishlist .section-title,
.empty-cart-featured .section-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f1111;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.empty-cart-recently-viewed .products,
.empty-cart-wishlist .products,
.empty-cart-featured .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.view-all-wishlist {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.view-wishlist-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007185;
    font-size: 14px;
    text-decoration: none;
}

.view-wishlist-link:hover {
    color: #c45500;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .empty-cart-content {
        padding: 30px 20px;
    }
    
    .empty-cart-title {
        font-size: 22px;
    }
    
    .empty-cart-actions {
        flex-direction: column;
    }
    
    .empty-cart-actions .button {
        width: 100%;
    }
    
    .empty-cart-recently-viewed .products,
    .empty-cart-wishlist .products,
    .empty-cart-featured .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==========================================================================
   CART RESPONSIVE - All Layouts
   ========================================================================== */

/* Desktop: Modern layout two-column grid */
@media (min-width: 993px) {
    .layout-modern .aaima-cart-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 30px;
        align-items: start;
        max-width: var(--aaima-container-max, 1500px);
    }
}

@media (max-width: 992px) {
    /* Force single column with flexbox - override layout-specific selectors */
    .aaima-cart-layout,
    .layout-default .aaima-cart-layout,
    .layout-modern .aaima-cart-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
    }
    
    .aaima-cart-sidebar {
        position: static;
        width: 100%;
    }
    
    .aaima-cart-items-section {
        width: 100%;
    }
    
    .cart-sidebar-box {
        margin-bottom: 20px;
    }
    
    /* Default layout tablet - sidebar stays at bottom */
    .layout-default .aaima-cart-sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .layout-default .aaima-cart-items-section {
        order: 1;
        margin-bottom: 0;
    }
    
    .layout-default .cart-sidebar-box {
        margin-bottom: 0;
    }
    
    /* Cart item adjustments for tablet */
    .layout-default .cart-item {
        grid-template-columns: 25px 150px 1fr auto;
        gap: 12px;
    }
    
    .layout-default .cart-item-image {
        width: 150px;
        height: 150px;
    }
    
    /* Modern layout tablet - sidebar goes to top */
    .layout-modern .aaima-cart-sidebar {
        order: 1;
    }
    
    .layout-modern .cart-sidebar-box {
        margin-top: 0;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .aaima-cart-page {
        padding: 10px 0 30px;
    }
    
    .aaima-cart-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .cart-banner-progress {
        width: 100%;
        justify-content: center;
    }
    
    .cart-section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-title {
        font-size: 22px;
    }
    
    .cart-item {
        grid-template-columns: 25px 120px 1fr;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
    }
    
    .cart-item-price {
        grid-column: 2 / -1;
        text-align: left;
        margin-top: 10px;
    }
    
    .cart-item-title {
        font-size: 14px;
    }
    
    .cart-item-actions {
        flex-wrap: wrap;
    }
    
    .cart-sidebar-box {
        padding: 15px;
    }
    
    /* Modern layout mobile */
    .layout-modern .cart-section-header {
        padding: 18px 20px;
    }
    
    .layout-modern .cart-title {
        font-size: 20px;
    }
    
    .layout-modern .cart-item {
        margin: 12px 15px;
        padding: 15px;
    }
    
    .layout-modern .cart-items-subtotal {
        padding: 15px 20px;
    }
    
    .layout-modern .cart-sidebar-box {
        padding: 20px;
    }
    
    .layout-modern .sidebar-subtotal .subtotal-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .aaima-cart-page {
        padding: 8px 0 25px;
    }
    
    .aaima-cart-page .aaima-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .aaima-cart-items-section {
        padding: 15px;
        border-radius: 6px;
    }
    
    .cart-title {
        font-size: 20px;
    }
    
    .cart-item {
        grid-template-columns: 20px 90px 1fr;
        gap: 10px;
        padding: 12px 0;
    }
    
    .cart-item-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .cart-item-image {
        width: 90px;
        height: 90px;
    }
    
    .cart-item-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .cart-item-stock .in-stock,
    .cart-item-stock .out-of-stock {
        font-size: 11px;
    }
    
    .cart-item-actions {
        gap: 5px;
        margin-top: 6px;
    }
    
    .cart-item-quantity .quantity input {
        width: 30px;
        height: 28px;
        font-size: 12px;
    }
    
    .cart-item-quantity .quantity button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .cart-item-delete,
    .cart-item-save,
    .cart-item-compare {
        font-size: 11px;
    }
    
    .cart-item-price .amount,
    .cart-item-price .woocommerce-Price-amount {
        font-size: 16px;
    }
    
    .cart-items-subtotal {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .cart-sidebar-box {
        padding: 12px;
        border-radius: 6px;
    }
    
    .sidebar-subtotal {
        font-size: 16px;
    }
    
    .sidebar-checkout .checkout-button {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    /* Modern layout small mobile */
    .layout-modern .aaima-cart-banner {
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .layout-modern .aaima-cart-items-section {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .layout-modern .cart-section-header {
        padding: 14px 15px;
    }
    
    .layout-modern .cart-title {
        font-size: 18px;
    }
    
    .layout-modern .cart-item {
        margin: 10px 12px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .layout-modern .cart-item-price {
        font-size: 16px;
    }
    
    .layout-modern .cart-items-subtotal {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .layout-modern .cart-sidebar-box {
        padding: 18px;
        border-radius: 10px;
    }
    
    .layout-modern .sidebar-subtotal .subtotal-amount {
        font-size: 24px;
    }
    
    .layout-modern .sidebar-checkout .checkout-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .layout-modern .coupon-toggle {
        padding: 14px 15px;
        font-size: 13px;
    }
}