/* =========================================================
   OMIDBUY CUSTOM CART - REFINED LAYOUT
   ========================================================= */
.obc-cart-page {
	--obc-bg: #f5f1e8;
	--obc-card: #fffdfa;
	--obc-soft: #f1ebe1;
	--obc-beige: #d8c8af;
	--obc-beige-light: #eee5d7;
	--obc-brown: #76513c;
	--obc-brown-hover: #63412f;
	--obc-dark: #2f2017;
	--obc-text: #34251d;
	--obc-muted: #8e7f72;
	--obc-border: #e3d8ca;
	--obc-green: #159765;
	--obc-red: #b47568;
	width: 100%;
	background: var(--obc-bg);
	color: var(--obc-text);
	font-family: 'DanaFaNum', sans-serif;
	padding: 28px 18px 64px;
	box-sizing: border-box;
}

.obc-cart-page *,
.obc-cart-page *::before,
.obc-cart-page *::after { box-sizing: border-box; }
.obc-cart-page a { text-decoration: none; }
.obc-cart-container { width: 100%; max-width: 1320px; margin: 0 auto; }

/* =========================================================
   PROGRESS
   ========================================================= */
.obc-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--obc-card);
	border: 1px solid var(--obc-border);
	border-radius: 20px;
	overflow: hidden;
	margin: 0 0 22px;
}

.obc-progress-line { display: none; }

.obc-step {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 20px;
	color: var(--obc-muted);
	background: transparent;
	min-height: 86px;
	position: relative;
}

.obc-step:not(:last-child) {
	border-left: 1px solid var(--obc-border);
}

.obc-step-number {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid #cfc1ae;
	background: #fff;
	color: #877769;
	font-size: 14px;
	font-weight: 800;
	flex: 0 0 auto;
}

.obc-step--active .obc-step-number {
	border-color: var(--obc-brown);
	color: var(--obc-brown);
	background: #fffaf4;
}

.obc-step-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: center;
}

.obc-step-text strong {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--obc-dark);
}

.obc-step--active .obc-step-text strong {
	color: var(--obc-brown);
}

.obc-step-text span {
	font-size: 12px;
	color: var(--obc-muted);
	display: none;
}

/* =========================================================
   CONTENT GRID
   ========================================================= */
.obc-page-heading { display: none; }

.obc-cart-grid {
	display: grid;
	grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
	grid-template-areas: 'summary items';
	gap: 18px;
	direction: ltr;
	align-items: start;
}

.obc-cart-items-column {
	grid-area: items;
	direction: rtl;
	background: var(--obc-card);
	border: 1px solid var(--obc-border);
	border-radius: 20px;
	padding: 20px;
}

.obc-summary-column {
	grid-area: summary;
	direction: rtl;
}

/* =========================================================
   HEADER INSIDE ITEMS CARD
   ========================================================= */
.obc-items-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--obc-border);
}

.obc-items-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--obc-dark);
	position: relative;
	padding-right: 28px;
}

.obc-items-header h2::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border: 1.8px solid var(--obc-brown);
	border-radius: 3px 3px 6px 6px;
	opacity: .7;
}

.obc-items-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 15px;
	border: 1px solid var(--obc-border);
	border-radius: 12px;
	background: #fff;
	color: #7c6b5c;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* =========================================================
   ITEMS LIST
   ========================================================= */
.obc-cart-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.obc-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 110px;
	gap: 18px;
	align-items: center;
	border: 1px solid var(--obc-border);
	border-radius: 18px;
	padding: 18px;
	background: #fff;
	transition: opacity .25s ease, transform .25s ease;
}

.obc-cart-item:hover { transform: translateY(-1px); }
.obc-cart-item.is-removing { opacity: .45; pointer-events: none; }

.obc-remove-item {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #efd7d3;
	border-radius: 11px;
	background: #fff7f6;
	color: var(--obc-red);
	cursor: pointer;
	padding: 0;
	transition: .2s ease;
}

.obc-remove-item svg { width: 18px; height: 18px; }
.obc-remove-item:hover { background: #fff1ef; }
.obc-remove-item:disabled { cursor: wait; }

.obc-product-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	min-width: 0;
}

.obc-product-image {
	width: 110px;
	height: 110px;
	border-radius: 14px;
	overflow: hidden;
	background: #f2f2f2;
	justify-self: end;
}

.obc-product-image a,
.obc-product-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.obc-product-image img { object-fit: cover; }

.obc-product-title {
	display: block;
	color: var(--obc-dark);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.8;
}

a.obc-product-title:hover { color: var(--obc-brown); }

.obc-variation {
	font-size: 11px;
	color: var(--obc-muted);
}

.obc-variation dl { margin: 0; }
.obc-variation dt,
.obc-variation dd,
.obc-variation p { display: inline; float: none; margin: 0; }

.obc-product-meta { margin-top: 2px; }

.obc-quantity {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	color: var(--obc-muted);
}

.obc-quantity strong { color: var(--obc-dark); font-weight: 700; }

.obc-product-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.obc-discount-line {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.obc-regular-price {
	color: #a59689;
	font-size: 12px;
}

.obc-discount-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 9px;
	border-radius: 8px;
	background: #f2ece4;
	color: var(--obc-brown);
	font-size: 11px;
	font-weight: 800;
}

.obc-current-price {
	color: var(--obc-dark);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.6;
}

.obc-saving {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--obc-muted);
}

.obc-saving strong { color: var(--obc-brown); font-weight: 800; }

/* =========================================================
   SUMMARY CARD
   ========================================================= */
.obc-summary-card {
	position: sticky;
	top: 20px;
	background: var(--obc-card);
	border: 1px solid var(--obc-border);
	border-radius: 20px;
	padding: 20px;
}

.obc-summary-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--obc-border);
}

.obc-summary-heading h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: var(--obc-dark);
}

.obc-summary-label { display: none; }

.obc-summary-icon {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--obc-brown);
}

.obc-summary-icon svg { width: 20px; height: 20px; }

.obc-summary-lines {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--obc-border);
}

.obc-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	color: #5f5146;
}

.obc-summary-row strong { color: var(--obc-dark); font-weight: 700; }
.obc-summary-row--saving strong { color: var(--obc-brown); }
.obc-total-saving { display: none; }

.obc-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

.obc-summary-total span {
	font-size: 16px;
	font-weight: 800;
	color: var(--obc-dark);
}

.obc-summary-total strong {
	font-size: 15px;
	font-weight: 800;
	color: var(--obc-dark);
}

.obc-checkout-button {
	width: 100%;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 18px;
	background: var(--obc-brown);
	color: #fff;
	border-radius: 13px;
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 16px;
	transition: background .2s ease, transform .2s ease;
}

.obc-checkout-button svg { width: 19px; height: 19px; }
.obc-checkout-button:hover { background: var(--obc-brown-hover); color: #fff; transform: translateY(-1px); }

.obc-coupon-section {
	padding-top: 2px;
	margin-top: 4px;
}

.obc-coupon-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--obc-dark);
	margin-bottom: 10px;
	position: relative;
	padding-right: 24px;
}

.obc-coupon-title::before {
	content: '';
	position: absolute;
	right: 0;
	top: 4px;
	width: 15px;
	height: 15px;
	border: 1.6px solid #bb9f6e;
	transform: rotate(45deg);
	border-radius: 2px;
}

.obc-coupon-field {
	display: flex;
	align-items: center;
	gap: 8px;
}

.obc-coupon-field input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--obc-border);
	border-radius: 11px;
	outline: none;
	background: #fff;
	color: var(--obc-dark);
	font-family: 'DanaFaNum', sans-serif;
	font-size: 13px;
}

.obc-coupon-field input:focus {
	border-color: var(--obc-brown);
	box-shadow: 0 0 0 3px rgba(117,81,60,.08);
}

.obc-coupon-field input::placeholder { color: #a79a8d; }

.obc-coupon-submit {
	height: 46px;
	padding: 0 18px;
	border: 1px solid #d1c2b4;
	border-radius: 11px;
	background: #fff;
	color: var(--obc-brown);
	font-family: 'DanaFaNum', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: .2s ease;
}

.obc-coupon-submit:hover { background: #faf7f2; }

.obc-applied-coupons {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.obc-applied-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px dashed #d8c8b7;
	border-radius: 10px;
	background: #fffdfa;
}

.obc-applied-coupon span { font-size: 11px; color: var(--obc-muted); }
.obc-applied-coupon strong { font-size: 13px; color: var(--obc-dark); }
.obc-remove-coupon {
	border: 0;
	background: transparent;
	color: #9e6357;
	font-family: 'DanaFaNum', sans-serif;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.obc-security-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--obc-border);
	font-size: 12px;
	color: #6f6054;
}

.obc-security-note svg { width: 16px; height: 16px; }

/* =========================================================
   NOTICES
   ========================================================= */
.obc-notices:empty { display: none; }
.obc-notices { margin-bottom: 15px; }
.obc-notices ul,
.obc-notices .woocommerce-error,
.obc-notices .woocommerce-message,
.obc-notices .woocommerce-info,
.obc-custom-notice {
	margin: 0 !important;
	list-style: none;
	padding: 13px 16px !important;
	border: 1px solid var(--obc-border) !important;
	border-radius: 12px !important;
	font-size: 13px;
	line-height: 1.8;
}
.obc-notices .woocommerce-message { background: #edf6f1; color: #31765b; }
.obc-notices .woocommerce-error,
.obc-custom-notice--error { background: #fbf2f0; color: #994f45; }
.obc-notices .woocommerce-info { background: #f7f3ec; color: #69564a; }
.obc-notices .woocommerce-message::before,
.obc-notices .woocommerce-error::before,
.obc-notices .woocommerce-info::before { display: none !important; }

/* =========================================================
   EMPTY CART
   ========================================================= */
.obc-empty-cart {
	min-height: 360px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--obc-card);
	border: 1px solid var(--obc-border);
	border-radius: 20px;
	padding: 40px 20px;
}
.obc-empty-icon {
	width: 82px;
	height: 82px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--obc-soft);
	border-radius: 50%;
	color: var(--obc-brown);
	margin-bottom: 18px;
}
.obc-empty-icon svg { width: 34px; height: 34px; }
.obc-empty-small { font-size: 10px; letter-spacing: 4px; color: #a29285; direction: ltr; }
.obc-empty-cart h2 { margin: 10px 0 5px; font-size: 24px; color: var(--obc-dark); font-weight: 800; }
.obc-empty-cart p { margin: 0 0 22px; font-size: 13px; color: var(--obc-muted); }
.obc-empty-shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 20px;
	height: 48px;
	border-radius: 12px;
	background: var(--obc-brown);
	color: #fff !important;
	font-size: 13px;
	font-weight: 800;
}
.obc-empty-shop svg { width: 18px; height: 18px; }

.obc-cart-page button.is-loading { position: relative; pointer-events: none; opacity: .65; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.obc-cart-grid {
		grid-template-columns: 1fr;
		grid-template-areas: 'items' 'summary';
	}
	.obc-summary-card { position: relative; top: auto; }
}

@media (max-width: 767px) {
	.obc-cart-page { padding: 18px 10px 46px; }

	.obc-progress {
		grid-template-columns: 1fr;
	}

	.obc-step { min-height: 68px; }
	.obc-step:not(:last-child) { border-left: 0; border-bottom: 1px solid var(--obc-border); }
	.obc-step-text strong { font-size: 15px; }

	.obc-cart-items-column,
	.obc-summary-card { padding: 14px; }

	.obc-items-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.obc-cart-item {
		grid-template-columns: 42px 1fr 84px;
		gap: 12px;
		padding: 14px;
	}

	.obc-product-image { width: 84px; height: 84px; }
	.obc-product-title { font-size: 14px; line-height: 1.7; }
	.obc-current-price { font-size: 15px; }
	.obc-quantity { font-size: 13px; }
	.obc-summary-heading h2 { font-size: 18px; }
	.obc-summary-total span { font-size: 15px; }
	.obc-coupon-field { flex-direction: column; }
	.obc-coupon-submit,
	.obc-coupon-field input { width: 100%; }
}

@media (max-width: 480px) {
	.obc-cart-item {
		grid-template-columns: 1fr 72px;
		grid-template-areas:
			'main image'
			'remove remove';
	}
	.obc-product-main { grid-area: main; }
	.obc-product-image { grid-area: image; width: 72px; height: 72px; }
	.obc-remove-item { grid-area: remove; }
}
