/* * Vegeclass Custom Cart Styles 
 */

/* Typography & Globals */
.vegeclass-cart-wrapper { display: flex; flex-wrap: wrap; gap: 30px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin-bottom: 40px; position:relative;}
.vegeclass-cart-items-section { flex: 1 1 60%; }
.vegeclass-cart-summary-section { flex: 1 1 30%; min-width: 300px; }
.vegeclass-section-title { font-size: 22px; font-weight: 700; color: #1e293b; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 25px; margin-top: 0; }

/* Empty Cart */
.vegeclass-empty-cart { text-align: center; padding: 50px 20px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; }
.vegeclass-empty-cart h3 { color: #334155; margin-bottom: 10px; }

/* Items Styling */
.vegeclass-cart-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px; margin-bottom: 15px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); gap: 15px; transition: 0.3s;}
.vegeclass-cart-item:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color:#cbd5e1; }
.vegeclass-item-img img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #f1f5f9; }
.vegeclass-item-details { flex: 2; }
.vegeclass-item-title { font-size: 16px; font-weight: 600; color: #0f172a; margin: 0 0 5px 0; }

/* Fixed UI Display styles */
.vegeclass-item-rate { display: flex; align-items: center; gap: 6px; margin: 3px 0 5px 0; }
.vegeclass-item-total-price { font-size: 16px; font-weight: 700; color: #10b981; line-height: 1.2; }
.vegeclass-item-bracket-qty { font-size: 13px; font-weight: 600; color: #64748b; line-height: 1.2; }

.vegeclass-item-stock { font-size: 12px; font-weight: bold; margin-top: 5px; display: inline-block; padding: 2px 8px; border-radius: 12px;}
.vegeclass-stock-high { background: #dcfce7; color: #166534; }
.vegeclass-stock-low { background: #fee2e2; color: #b91c1c; }

/* Custom Input Styling */
.vegeclass-item-action { flex: 1.5; display: flex; justify-content: center; }
.vegeclass-input-wrap { display: flex; align-items: stretch; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; width: 100%; max-width: 200px; }
.vegeclass-qty-input { flex: 1; min-width: 0; width: 100%; border: none !important; background: transparent !important; text-align: center; font-size: 14px; font-weight: 600; color: #334155; padding: 8px; box-shadow: none !important; outline: none !important; }
.vegeclass-update-btn { background: #1e3a8a; color: #fff; border: none; padding: 8px 12px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.vegeclass-update-btn:hover { background: #1e40af; }
.vegeclass-item-subtotal { flex: 1; text-align: right; }

.vegeclass-item-remove { margin-left: 10px; }
.vegeclass-remove-btn { background: #fee2e2; color: #ef4444; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: 0.2s; }
.vegeclass-remove-btn:hover { background: #ef4444; color: #fff; }

/* Summary Styling */
.vegeclass-summary-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; }
.vegeclass-summary-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e2e8f0; font-size: 15px; color: #334155; }
.vegeclass-summary-row:last-of-type { border-bottom: none; }
.vegeclass-total-row { font-size: 20px; font-weight: 800; color: #0f172a; border-top: 2px solid #cbd5e1; padding-top: 15px; margin-top: 10px; border-bottom: none;}

/* General Buttons */
.vegeclass-btn { display: inline-block; background: #10b981; color: #fff !important; text-decoration: none; padding: 14px 25px; border-radius: 8px; font-size: 16px; font-weight: bold; text-align: center; width: 100%; transition: 0.3s; box-sizing: border-box; border:none; cursor: pointer;}
.vegeclass-btn:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

/* Loader Overlay */
.vegeclass-loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); z-index: 99999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(2px); }
.vegeclass-spinner { width: 50px; height: 50px; border: 5px solid #e2e8f0; border-top: 5px solid #10b981; border-radius: 50%; animation: vegespin 1s linear infinite; }
@keyframes vegespin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* Loop Cart Buttons */
.dms-loop-cart-container { margin-top: 10px; width: 100%; }
.dms-loop-req-input { width: 90%; padding: 8px 10px; margin-bottom: 10px; border: 1px solid #cbd5e1; border-radius: 4px; text-align: center; font-size: 12px; box-sizing: border-box; outline: none; transition: 0.3s; }
.dms-loop-req-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.dms-loop-btn-group { display: flex; gap: 0px; }
.dms-custom-btn-add-cart {
	flex: 1;
	text-align: center;
	padding: 12px 0 !important;
	background: #8bc34a !important;
	color: #fff !important;
	border: 1px solid #8bc34a !important;
	font-weight: 500 !important;
	border-radius: 0px !important;
	cursor: pointer;
	transition: all 0.3s ease !important;
	margin-bottom: 0px !important;
}
.dms-custom-btn-add-cart:hover { background: #ffac0d !important; color: #1e3a8a !important; }
.dms-custom-btn-buy-now {
	flex: 1;
	text-align: center;
	padding: 8px 0 !important;
	background-color: #ffac0d !important;
	color: #fff !important;
	border: 1px solid #ffac0d !important;
	font-weight: 500 !important;
	border-radius: 0px !important;
	cursor: pointer;
	transition: all 0.3s ease !important;
	margin-bottom: 0px !important;
}
.dms-custom-btn-buy-now:hover { background: #8bc34a !important; border-color: #2563eb !important; }
.dms-btn-success { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }
.dms-custom-btn-sold-out { background: #ef4444 !important; color: #fff !important; width: 100%; text-align: center; border-radius: 4px; padding: 10px !important; display: block; text-decoration: none; font-weight: bold; }
.dms-custom-btn-sold-out:hover { background: #dc2626 !important; color: #fff !important; }

/* Modal Styles */
.dms-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 999999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.dms-modal-box { background: #fff; width: 90%; max-width: 380px; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); overflow: hidden; text-align: center; animation: dmsPopIn 0.3s ease-out forwards; }
.dms-modal-header { background: #ef4444; color: #fff; padding: 15px; font-size: 18px; font-weight: bold; letter-spacing: 0.5px;}
.dms-modal-body { padding: 30px 20px; font-size: 16px; color: #334155; line-height: 1.5; font-weight: 500;}
.dms-modal-footer { padding: 15px 20px; background: #f8fafc; border-top: 1px solid #e2e8f0;}
.dms-modal-btn { background: #1e293b; color: #fff; border: none; padding: 12px 20px; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.2s;}
.dms-modal-btn:hover { background: #0f172a; }
@keyframes dmsPopIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/**************** Mobile Adjustments **********************/
@media (max-width: 767px) {
    .vegeclass-cart-item { flex-direction: column; text-align: center; position: relative; padding-top: 30px;}
    .vegeclass-item-remove { position: absolute; top: 10px; right: 10px; margin: 0; }
    .vegeclass-item-details, .vegeclass-item-action, .vegeclass-item-subtotal { width: 100%; justify-content: center; text-align: center; align-items: center; }
    .vegeclass-item-subtotal { text-align: center; align-items: center !important;}
    .vegeclass-item-subtotal > div { align-items: center !important; }
    .vegeclass-input-wrap { margin: 10px auto; max-width: 250px; }
    .vegeclass-item-subtotal { margin-top: 5px; }
    .vegeclass-item-rate { justify-content: center; }
}
