/* ═══════════════════════════════════════════
   Solid Addons — Woo Cart Widget
   ═══════════════════════════════════════════ */

.solidae-wc-cart {
	--solidae-ct-primary: #1a1a1a;
	--solidae-ct-primary-hover: #333333;
	--solidae-ct-text: #333333;
	--solidae-ct-text-muted: #737373;
	--solidae-ct-heading: #1a1a1a;
	--solidae-ct-border: #e5e5e5;
	--solidae-ct-bg: #ffffff;
	--solidae-ct-card-radius: 16px;
	--solidae-ct-remove-color: #e74c3c;
	--solidae-ct-discount-color: #e74c3c;
	--solidae-ct-btn-bg: #1a1a1a;
	--solidae-ct-btn-color: #ffffff;
	--solidae-ct-btn-radius: 50px;
	--solidae-ct-coupon-btn-bg: #1a1a1a;
	--solidae-ct-coupon-btn-color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--solidae-ct-text);
	line-height: 1.5;
	box-sizing: border-box;
}

.solidae-wc-cart *,
.solidae-wc-cart *::before,
.solidae-wc-cart *::after {
	box-sizing: border-box;
}

/* ─── Layout: two columns ─── */

.solidae-wc-cart__layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.solidae-wc-cart__items {
	flex: 1;
	min-width: 0;
	background: var(--solidae-ct-bg);
	border: 1px solid var(--solidae-ct-border);
	border-radius: var(--solidae-ct-card-radius);
	padding: 4px 0;
}

.solidae-wc-cart__summary {
	flex: 0 0 35%;
	background: var(--solidae-ct-bg);
	border: 1px solid var(--solidae-ct-border);
	border-radius: var(--solidae-ct-card-radius);
	padding: 24px;
	position: sticky;
	top: 20px;
}

/* ═══════════════════════════════════════════
   PRODUCT ROWS
   ═══════════════════════════════════════════ */

.solidae-wc-cart__product {
	display: flex;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--solidae-ct-border);
	align-items: flex-start;
}

.solidae-wc-cart__product:last-child {
	border-bottom: 0;
}

/* Thumbnail */
.solidae-wc-cart__product-thumb {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid var(--solidae-ct-border);
}

.solidae-wc-cart__product-thumb img {
	width: 100px !important;
	height: 100px !important;
	max-width: 100px !important;
	object-fit: cover;
	display: block;
}

/* Info column */
.solidae-wc-cart__product-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Header: name + trash icon */
.solidae-wc-cart__product-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.solidae-wc-cart__product-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--solidae-ct-heading);
	line-height: 1.3;
	word-break: break-word;
}

.solidae-wc-cart__product-remove {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--solidae-ct-remove-color);
	padding: 0;
	opacity: 0.7;
	transition: opacity 150ms ease;
}

.solidae-wc-cart__product-remove:hover {
	opacity: 1;
}

/* Variation meta — each attribute on its own line under the title */
.solidae-wc-cart__product-meta {
	margin-top: 4px;
}

.solidae-wc-cart__product-meta dl,
.solidae-wc-cart__product-meta .variation {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 6px;
	row-gap: 2px;
	margin: 0;
	padding: 0;
}

.solidae-wc-cart__product-meta dt {
	font-size: 13px;
	font-weight: 500;
	color: var(--solidae-ct-text);
	margin: 0;
	padding: 0;
	grid-column: 1;
	white-space: nowrap;
}

.solidae-wc-cart__product-meta dt::after {
	content: ":";
}

.solidae-wc-cart__product-meta dd {
	font-size: 13px;
	font-weight: 400;
	color: var(--solidae-ct-text-muted);
	margin: 0;
	padding: 0;
	grid-column: 2;
}

.solidae-wc-cart__product-meta dd p {
	margin: 0;
	display: inline;
}

/* Footer: price + qty */
.solidae-wc-cart__product-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 8px;
}

.solidae-wc-cart__product-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--solidae-ct-heading);
}

/* ═══════════════════════════════════════════
   QTY CONTROLS [ - 1 + ]
   ═══════════════════════════════════════════ */

.solidae-wc-cart__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--solidae-ct-border);
	border-radius: 50px;
	overflow: hidden;
}

.solidae-wc-cart__qty-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 18px;
	font-weight: 500;
	color: var(--solidae-ct-text);
	transition: background-color 150ms ease, color 150ms ease;
	padding: 0;
	line-height: 1;
	user-select: none;
}

.solidae-wc-cart__qty-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.solidae-wc-cart__qty-value {
	width: 32px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--solidae-ct-heading);
	line-height: 36px;
}

/* ═══════════════════════════════════════════
   ORDER SUMMARY
   ═══════════════════════════════════════════ */

.solidae-wc-cart__summary-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--solidae-ct-heading);
	margin: 0 0 20px 0;
	padding: 0;
	line-height: 1.3;
}

.solidae-wc-cart__summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 15px;
}

.solidae-wc-cart__summary-label {
	color: var(--solidae-ct-text-muted);
	font-weight: 400;
}

.solidae-wc-cart__summary-value {
	font-weight: 600;
	color: var(--solidae-ct-heading);
}

/* Discount row */
.solidae-wc-cart__summary-row--discount .solidae-wc-cart__summary-value {
	color: var(--solidae-ct-discount-color);
}

/* Total row */
.solidae-wc-cart__summary-row--total {
	padding-top: 16px;
	margin-top: 8px;
	border-top: 1px solid var(--solidae-ct-border);
	font-size: 18px;
}

.solidae-wc-cart__summary-row--total .solidae-wc-cart__summary-label {
	font-weight: 600;
	color: var(--solidae-ct-heading);
}

.solidae-wc-cart__summary-row--total .solidae-wc-cart__summary-value {
	font-size: 22px;
	font-weight: 700;
}

/* ═══════════════════════════════════════════
   COUPON
   ═══════════════════════════════════════════ */

.solidae-wc-cart__coupon {
	margin-top: 20px;
	padding-top: 16px;
}

.solidae-wc-cart__coupon-form {
	display: flex;
	gap: 8px;
}

.solidae-wc-cart__coupon-input-wrap {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
}

.solidae-wc-cart__coupon-icon {
	position: absolute;
	left: 14px;
	color: var(--solidae-ct-text-muted);
	pointer-events: none;
	flex-shrink: 0;
}

.solidae-wc-cart__coupon-input {
	width: 100%;
	border: 1px solid var(--solidae-ct-border);
	border-radius: 50px;
	padding: 12px 14px 12px 38px;
	font-size: 14px;
	color: var(--solidae-ct-text);
	background: #f5f5f5;
	outline: none;
	transition: border-color 200ms ease;
	height: 46px;
}

.solidae-wc-cart__coupon-input:focus {
	border-color: var(--solidae-ct-primary);
}

.solidae-wc-cart__coupon-btn {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--solidae-ct-coupon-btn-color);
	background: var(--solidae-ct-coupon-btn-bg);
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 200ms ease;
	white-space: nowrap;
	height: 46px;
}

.solidae-wc-cart__coupon-btn:hover {
	background-color: var(--solidae-ct-primary-hover);
}

.solidae-wc-cart__coupon-msg {
	font-size: 13px;
	margin-top: 6px;
}

.solidae-wc-cart__coupon-msg:empty {
	display: none;
}

.solidae-wc-cart__coupon-msg--error {
	color: var(--solidae-ct-remove-color);
}

.solidae-wc-cart__coupon-msg--success {
	color: #22c55e;
}

/* ═══════════════════════════════════════════
   CHECKOUT BUTTON
   ═══════════════════════════════════════════ */

.solidae-wc-cart__checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 18px 28px;
	margin-top: 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--solidae-ct-btn-color);
	background-color: var(--solidae-ct-btn-bg);
	border: 0;
	border-radius: var(--solidae-ct-btn-radius);
	cursor: pointer;
	transition: background-color 200ms ease;
	text-decoration: none;
	text-align: center;
}

.solidae-wc-cart__checkout-btn:hover {
	background-color: var(--solidae-ct-primary-hover);
	color: var(--solidae-ct-btn-color);
}

.solidae-wc-cart__checkout-btn svg {
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   EMPTY CART
   ═══════════════════════════════════════════ */

.solidae-wc-cart__empty {
	text-align: center;
	padding: 60px 20px;
}

.solidae-wc-cart__empty-msg {
	font-size: 18px;
	font-weight: 600;
	color: var(--solidae-ct-text-muted);
	margin: 0 0 20px 0;
}

.solidae-wc-cart__empty .solidae-wc-cart__checkout-btn {
	display: inline-flex;
	width: auto;
}

/* ═══════════════════════════════════════════
   EDITOR PREVIEW
   ═══════════════════════════════════════════ */

.solidae-wc-cart__preview-thumb {
	width: 100%;
	height: 100%;
	background: #e0e0e0;
	border-radius: 8px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Layout direction (side-by-side vs stacked) is controlled per device via
   the "Columns Layout" control. Stacked mode drops sticky positioning. */
@media (max-width: 767px) {
	.solidae-wc-cart__summary {
		position: static;
	}

	.solidae-wc-cart__product {
		gap: 12px;
		padding: 16px;
	}

	.solidae-wc-cart__product-thumb {
		width: 80px;
		height: 80px;
	}

	.solidae-wc-cart__product-thumb img {
		width: 80px !important;
		height: 80px !important;
		max-width: 80px !important;
	}

	.solidae-wc-cart__product-name {
		font-size: 14px;
	}

	.solidae-wc-cart__product-price {
		font-size: 16px;
	}

	.solidae-wc-cart__product-footer {
		flex-wrap: wrap;
		gap: 8px;
	}

	.solidae-wc-cart__summary {
		padding: 20px 16px;
	}

	.solidae-wc-cart__items {
		border-radius: 12px;
	}

	.solidae-wc-cart__summary {
		border-radius: 12px;
	}
}
