/* Custom WooCommerce Cart Page Stylesheet */
.cwc-master-wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #111111;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

/* Loader Overlay */
.cwc-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}
.cwc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eaeaea;
    border-top: 3px solid #0870D3;
    border-radius: 50%;
    animation: cwc-spin 0.8s linear infinite;
}
@keyframes cwc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#cwc-cart-node.is-loading {
    pointer-events: none;
}

/* Toast Notifications */
.cwc-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #111111;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #0870D3;
}
.cwc-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.cwc-toast.error {
    border-left: 4px solid #e53935;
}

/* Breadcrumbs (Screenshot Style) */
.cwc-breadcrumbs {
    font-family: "3ds", sans-serif !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #777777;
    margin-bottom: 40px;
    flex-wrap: wrap;
    text-transform: uppercase;
}
.cwc-breadcrumb-link {
    color: #777777 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.cwc-breadcrumb-link:hover {
    color: #0870D3 !important;
}
.cwc-breadcrumb-separator {
    color: #eaeaea;
}
.cwc-breadcrumb-item {
    color: #777777;
}
.cwc-breadcrumb-item.active {
    color: #0870D3;
}

/* Cart Grid */
.cwc-cart-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column - Shopping Bag List */
.cwc-cart-items-column {
    min-width: 0;
}
.cwc-column-heading {
    font-family: "3ds", sans-serif !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 0 30px 0 !important;
    color: #111111;
}
.cwc-cart-items-list {
    border-top: 1px solid #eaeaea;
}
.cwc-cart-item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    gap: 20px;
}

/* Thumbnail */
.cwc-item-thumbnail {
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cwc-item-thumbnail img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain;
    display: block;
    width: auto !important;
    height: auto !important;
}

/* Item details */
.cwc-item-info {
    flex-grow: 1;
    min-width: 0;
}
.cwc-item-title {
    font-family: "3ds", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
}
.cwc-item-title a {
    color: #111111 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.cwc-item-title a:hover {
    color: #0870D3 !important;
}
.cwc-item-meta {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
}
.cwc-item-meta p {
    margin: 0 !important;
}
.cwc-item-meta dl.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 !important;
}
.cwc-item-meta dl.variation dt {
    font-weight: 600;
    margin: 0;
}
.cwc-item-meta dl.variation dd {
    margin: 0;
}
.cwc-unit-price {
    display: block;
    margin-top: 4px;
    color: #777777;
}

/* Quantity input and buttons */
.cwc-item-quantity {
    flex-shrink: 0;
}
.cwc-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    height: 36px;
}
.cwc-qty-btn {
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: 32px !important;
    height: 100% !important;
    cursor: pointer;
    color: #777777 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    padding: 0 !important;
    transition: all 0.2s ease;
}
.cwc-qty-btn:hover {
    color: #0870D3 !important;
    background-color: #f9f9f9 !important;
}
.cwc-qty-input {
    border: none !important;
    border-left: 1px solid #eaeaea !important;
    border-right: 1px solid #eaeaea !important;
    width: 36px !important;
    height: 100% !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}
.cwc-qty-input::-webkit-outer-spin-button,
.cwc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal text */
.cwc-item-subtotal {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

/* Remove button on cart item */
.cwc-item-remove {
    flex-shrink: 0;
}
.cwc-remove-btn {
    border: none !important;
    background: transparent !important;
    color: #cccccc !important;
    cursor: pointer;
    padding: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    outline: none !important;
}
.cwc-remove-btn:hover {
    color: #0870D3 !important;
}

/* Right Column - Summary sidebar */
.cwc-cart-summary-column {
    position: sticky;
    top: 40px;
}
.cwc-summary-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
}
.cwc-summary-heading {
    font-family: "3ds", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 0 25px 0 !important;
    color: #111111;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}
.cwc-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}
.cwc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.cwc-summary-label {
    color: #777777;
}
.cwc-summary-value {
    font-weight: 600;
    color: #111111;
}

/* Coupons styles */
.cwc-coupon-row {
    background: #fdfdfd;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px dashed #0870D3;
}
.cwc-coupon-row .cwc-summary-label {
    color: #111111;
}
.cwc-coupon-remove-btn {
    border: none !important;
    background: transparent !important;
    color: #e53935 !important;
    font-size: 11px !important;
    cursor: pointer;
    margin-left: 6px !important;
    padding: 0 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cwc-coupon-remove-btn:hover {
    text-decoration: underline !important;
}
.cwc-discount-val {
    color: #0870D3 !important;
}

/* Grand Total styling */
.cwc-total-row {
    border-top: 1px solid #eaeaea;
    padding-top: 18px;
    margin-top: 6px;
}
.cwc-total-row .cwc-summary-label {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}
.cwc-total-row .cwc-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
}

/* Coupon Button (Screenshot: "ADD GIFT CODE") */
.cwc-coupon-container {
    margin-bottom: 25px;
}
.cwc-add-coupon-btn {
    width: 100% !important;
    border: 1.5px solid #0870D3 !important;
    background: transparent !important;
    color: #0870D3 !important;
    padding: 12px 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}
.cwc-add-coupon-btn:hover {
    background: #0870D3 !important;
    color: #ffffff !important;
}

/* Coupon Inline Form Drawer */
.cwc-coupon-form-wrapper {
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 16px;
    margin-top: 10px;
}
.cwc-coupon-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.cwc-coupon-input {
    flex-grow: 1;
    border: 1px solid #eaeaea !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-family: 'Roboto', sans-serif !important;
    color: #111111 !important;
    outline: none !important;
    text-transform: uppercase;
}
.cwc-coupon-input:focus {
    border-color: #0870D3 !important;
}
.cwc-coupon-apply-btn {
    background: #0870D3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}
.cwc-coupon-apply-btn:hover {
    background: #0659a9 !important;
}
.cwc-coupon-cancel-btn {
    border: none !important;
    background: transparent !important;
    color: #777777 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: block;
    margin: 0 auto;
}
.cwc-coupon-cancel-btn:hover {
    color: #111111 !important;
}

/* Proceed to Checkout CTA */
.cwc-checkout-btn {
    font-family: "3ds", sans-serif !important;
    display: block !important;
    width: 100% !important;
    background: #0870D3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box;
}
.cwc-checkout-btn:hover {
    background: #0659a9 !important;
    box-shadow: 0 4px 15px rgba(8, 112, 211, 0.3) !important;
}

/* Empty Cart State Styling */
.cwc-empty-cart {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}
.cwc-empty-icon {
    margin-bottom: 20px;
}
.cwc-empty-title {
    font-family: "3ds", sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    color: #111111;
}
.cwc-empty-subtitle {
    font-size: 14px;
    color: #777777;
    margin: 0 0 30px 0 !important;
}
.cwc-empty-btn {
    display: inline-block !important;
    border: 1.5px solid #0870D3 !important;
    background: transparent !important;
    color: #0870D3 !important;
    padding: 12px 30px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}
.cwc-empty-btn:hover {
    background: #0870D3 !important;
    color: #ffffff !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Smaller Desktops & Laptops */
@media (max-width: 991px) {
    .cwc-cart-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cwc-cart-summary-column {
        position: static;
    }
}

/* Tablets and Mobile Phones */
@media (max-width: 600px) {
    .cwc-breadcrumbs {
        margin-bottom: 25px;
        gap: 6px;
    }
    .cwc-column-heading {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
    .cwc-cart-item {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 16px;
    }
    .cwc-item-info {
        width: calc(100% - 90px); /* Fill space next to thumbnail */
    }
    .cwc-item-quantity {
        order: 3;
        margin-left: 90px;
    }
    .cwc-item-subtotal {
        order: 4;
        flex-grow: 1;
        text-align: right;
    }
    .cwc-item-remove {
        order: 2;
        position: absolute;
        top: 20px;
        right: 0;
    }
    .cwc-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        font-size: 13px;
        padding: 12px 18px;
    }
}