/* ═══════════════════════════════════════════
   TAD Cart Page
   ═══════════════════════════════════════════ */

/* ---------- Elementor / Hello Elementor Reset ---------- */
.tad-cart-page button,
.tad-cart-page button:hover,
.tad-cart-page button:focus,
.tad-cart-page button:active,
.tad-cart-page button:visited,
.tad-cart-page button:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transform: none !important;
	letter-spacing: normal !important;
	-webkit-appearance: none !important;
}
.tad-cart-page a,
.tad-cart-page a:hover,
.tad-cart-page a:focus,
.tad-cart-page a:active,
.tad-cart-page a:visited {
	text-decoration: none !important;
	outline: none !important;
	box-shadow: none !important;
}
.tad-cart-page input,
.tad-cart-page input:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* ---------- Kill wpautop artifacts ---------- */
.tad-cart-page p:empty,
.tad-cart-page br + br {
	display: none;
}
.tad-cart-layout p,
.tad-cart-items p,
.tad-cart-item p,
.tad-cart-item-body p,
.tad-cart-item-meta p,
.tad-order-summary p {
	display: contents;
	margin: 0;
	padding: 0;
}

/* ---------- Variables ---------- */
.tad-cart-page {
	--tad-dark: #1B3A4B;
	--tad-teal: #00BFB3;
	--tad-teal-light: #E6FAF8;
	--tad-bg: #F2FAFA;
	--tad-white: #FFFFFF;
	--tad-gray: #7A8D9C;
	--tad-border: #DDE4E8;
	--tad-red: #E74C4C;
	--tad-font-title: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--tad-font-body: 'Rethink Sans', 'Georgia', serif;
}

/* ---------- Page Wrapper ---------- */
.tad-cart-page {
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: var(--tad-font-body);
	color: var(--tad-dark);
}

/* ---------- Header ---------- */
.tad-cart-header {
	margin-bottom: 32px;
	font-family: var(--tad-font-title);
	color: var(--tad-dark);
}
.tad-cart-header h1 {
	font-weight: 500;
	font-size: 36px;
	color: var(--tad-dark);
	margin: 0 0 6px;
}
.tad-cart-header p {
	font-size: 18px;
	margin: 0;
}

/* ---------- Layout ---------- */
.tad-cart-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}
.tad-cart-items {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.tad-cart-summary {
	flex: 0 0 320px;
	max-width: 320px;
}

/* ---------- Cart Item ---------- */
.tad-cart-item {
	display: flex;
	gap: 18px;
	background: white;
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(27, 58, 75, 0.07);
	border: 1px solid #ECF1FC;
	padding: 20px;
	position: relative;
}
.tad-cart-item-thumb {
	width: 180px;
	min-width: 180px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tad-bg);
	flex-shrink: 0;
	align-self: stretch;
}
.tad-cart-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tad-cart-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Delete button */
.tad-cart-item-remove,
.tad-cart-item-remove:visited {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px !important;
	height: 34px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #FFF0F0 !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	color: var(--tad-red) !important;
	transition: background 0.2s, color 0.2s !important;
	padding: 0 !important;
}
.tad-cart-item-remove:hover,
.tad-cart-item-remove:focus {
	background: var(--tad-red) !important;
	color: var(--tad-white) !important;
}
.tad-cart-item-remove svg {
	width: 16px;
	height: 16px;
}

/* Category tag */
.tad-cart-item-category {
	font-size: 14px;
	font-weight: 500;
	color: var(--tad-teal);
	margin-bottom: 4px;
}

/* Title */
.tad-cart-item-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--tad-dark);
	margin: 0 0 20px;
	line-height: 1.35;
	padding-right: 40px;
	max-width: 500px
}

/* Type label */
.tad-cart-item-type {
	font-size: 18px;
	font-weight: 500;
	color: var(--tad-gray);
	margin-bottom: auto;
}

/* Meta row (date, time, price) */
.tad-cart-item-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 50px;
	flex-wrap: wrap;
}
.tad-cart-item-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	color: #233454;
}
.tad-cart-item-meta-item svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: var(--tad-teal);
}
.tad-cart-item-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--tad-dark);
	margin-left: auto;
}

/* ---------- Order Summary ---------- */
.tad-order-summary {
	background: var(--tad-white);
	border-radius: 14px;
	box-shadow: 0 2px 16px rgba(27, 58, 75, 0.07);
	padding: 28px 24px;
	position: sticky;
	top: 24px;
}
.tad-order-summary h2 {
	font-size: 20px;
	font-weight: 700;
	color: var(--tad-dark);
	margin: 0 0 20px;
}

/* Coupon */
.tad-coupon-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}
.tad-coupon-input-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1px solid rgba(35, 52, 84, 0.08) !important;
	border-radius: 100px !important;
	padding: 0 14px !important;
	height: 36px;
	transition: border-color 0.2s !important;
	box-shadow: none !important;
	background: var(--tad-white) !important;
}
.tad-coupon-input-wrap:focus-within {
	border-color: var(--tad-teal) !important;
	box-shadow: none !important;
}
.tad-coupon-input-wrap .tad-coupon-icon {
	display: flex;
	align-items: center;
	color: var(--tad-gray);
	margin-right: 8px;
	flex-shrink: 0;
}
.tad-coupon-input-wrap .tad-coupon-icon svg {
	width: 14px;
	height: 14px;
}
.tad-coupon-input-wrap input {
	flex: 1 !important;
	border: none !important;
	outline: none !important;
	font-size: 12px !important;
	color: var(--tad-dark) !important;
	background: transparent !important;
	height: 100% !important;
	min-width: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	transition: none !important;
	border-radius: 0 !important;
	width: auto !important;
	margin: 0 !important;
}
.tad-coupon-input-wrap input:focus {
	border: none !important;
	box-shadow: none !important;
}
.tad-coupon-input-wrap input::placeholder {
	color: var(--tad-gray);
}
/* Coupon feedback */
.tad-coupon-message {
	font-size: 13px;
	margin: -12px 0 12px;
	display: none;
}
.tad-coupon-message.is-success {
	color: var(--tad-teal);
	display: block;
}
.tad-coupon-message.is-error {
	color: var(--tad-red);
	display: block;
}

/* Line items */
.tad-summary-lines {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1.5px solid var(--tad-border);
	margin-bottom: 16px;
}
.tad-summary-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
}
.tad-summary-line-label {
	color: var(--tad-dark);
}
.tad-summary-line-value {
	font-weight: 600;
	color: var(--tad-dark);
}
.tad-summary-line-value.tad-discount {
	color: var(--tad-red);
}

/* Total */
.tad-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}
.tad-summary-total-label {
	font-size: 18px;
	font-weight: 700;
	color: var(--tad-dark);
}
.tad-summary-total-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--tad-dark);
}

/* Checkout button */
.tad-checkout-btn,
.tad-checkout-btn:visited {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 14px 24px !important;
	border-radius: 50px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	border: 2px solid var(--tad-teal) !important;
	background: var(--tad-teal) !important;
	color: var(--tad-white) !important;
	transition: background 0.2s, border-color 0.2s !important;
	text-decoration: none !important;
	font-family: inherit !important;
	letter-spacing: normal !important;
	line-height: 1.4 !important;
}
.tad-checkout-btn:hover,
.tad-checkout-btn:focus {
	background: #00a89e !important;
	border-color: #00a89e !important;
	color: var(--tad-white) !important;
}

/* Empty cart */
.tad-cart-empty {
	text-align: center;
	padding: 60px 20px;
}
.tad-cart-empty p {
	font-size: 16px;
	color: var(--tad-gray);
	margin: 0 0 20px;
	display: block;
}
.tad-cart-empty a,
.tad-cart-empty a:visited {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 28px !important;
	border-radius: 50px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	background: var(--tad-teal) !important;
	color: var(--tad-white) !important;
	text-decoration: none !important;
	transition: background 0.2s, border-color 0.2s !important;
	border: 2px solid var(--tad-teal) !important;
}
.tad-cart-empty a:hover,
.tad-cart-empty a:focus {
	background: #00a89e !important;
	border-color: #00a89e !important;
	color: var(--tad-white) !important;
}

/* Loading state */
.tad-cart-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.tad-cart-layout {
		flex-direction: column;
	}
	.tad-cart-summary {
		flex: none;
		max-width: 100%;
		width: 100%;
	}
	.tad-order-summary {
		position: static;
	}
	.tad-cart-item {
		flex-direction: column;
		padding: 16px;
	}
	.tad-cart-item-thumb {
		width: 100%;
		min-width: 0;
		height: 160px;
		align-self: auto;
	}
	.tad-cart-item-price {
		margin-left: 0;
		margin-top: 8px;
	}
	.tad-cart-header h1 {
		font-size: 26px;
	}
	.tad-cart-header p {
		font-size: 14px;
	}
	.tad-cart-item-title {
		font-size: 16px;
	}
	.tad-cart-item-meta {
		gap: 10px;
	}
	.tad-cart-item-meta-item {
		font-size: 13px;
	}
}
@media (max-width: 480px) {
	.tad-cart-page {
		padding: 24px 14px 40px;
	}
	.tad-cart-header h1 {
		font-size: 22px;
	}
	.tad-cart-item {
		padding: 12px;
	}
	.tad-cart-item-title {
		font-size: 14px;
		padding-right: 36px;
	}
	.tad-cart-item-price {
		font-size: 16px;
	}
	.tad-order-summary {
		padding: 22px 18px;
	}
	.tad-checkout-btn {
		font-size: 14px !important;
		padding: 12px 20px !important;
	}
}
