/*
Theme Name: Saree Child
Template: twentytwentyfive
Version: 1.0
Text Domain: saree-child
*/

/* Elegant WooCommerce Cart */
.saree-cart-form {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: inherit;
}

.saree-cart-inner {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.06);
	padding: 32px;
}

.saree-cart-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #6b0f1a;
	margin: 0 0 6px;
}

.saree-cart-count {
	color: #8e142c;
	margin: 0 0 24px;
	font-size: 0.95rem;
}

.saree-cart-empty {
	text-align: center;
	padding: 60px 20px;
}

.saree-empty-icon {
	color: #d4af37;
	margin-bottom: 16px;
}

.saree-continue-shopping {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 28px;
	background: #6b0f1a;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: background 0.2s;
}

.saree-continue-shopping:hover {
	background: #8e142c;
}

.saree-cart-items {
	display: table;
	width: 100%;
	border-collapse: collapse;
}

.saree-cart-item {
	display: table-row;
	border-bottom: 1px solid #f0e6d3;
}

.saree-cart-item > div {
	display: table-cell;
	vertical-align: middle;
	padding: 18px 12px;
}

.saree-cart-thumb img {
	width: 90px;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
}

.saree-product-name {
	font-size: 1.05rem;
	font-weight: 600;
	color: #6b0f1a;
	margin: 0 0 4px;
}

.saree-product-name a {
	color: inherit;
	text-decoration: none;
}

.saree-product-sku,
.saree-backorder {
	font-size: 0.8rem;
	color: #8e142c;
	margin: 0 0 8px;
}

.saree-remove-item {
	display: inline-block;
	font-size: 0.8rem;
	color: #b71c1c;
	text-decoration: none;
	margin-top: 8px;
	cursor: pointer;
}

.saree-remove-item:hover {
	text-decoration: underline;
}

.saree-cart-price,
.saree-cart-subtotal {
	font-weight: 600;
	color: #2c2c2c;
}

.saree-product-price-mobile {
	display: none;
}

.saree-cart-qty input.qty {
	width: 60px;
	padding: 8px;
	border: 1px solid #e0d4c0;
	border-radius: 6px;
	text-align: center;
}

.saree-cart-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 24px;
	flex-wrap: wrap;
}

.saree-coupon {
	display: flex;
	gap: 8px;
	flex: 1;
}

.saree-coupon input {
	padding: 10px 14px;
	border: 1px solid #e0d4c0;
	border-radius: 6px;
	max-width: 220px;
}

.saree-coupon-btn,
.saree-update-cart {
	padding: 10px 22px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.saree-coupon-btn {
	background: #d4af37;
	color: #fff;
}

.saree-coupon-btn:hover {
	background: #bfa02f;
}

.saree-update-cart {
	background: #6b0f1a;
	color: #fff;
}

.saree-update-cart:hover {
	background: #8e142c;
}

.saree-cart-collaterals .cart_totals {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.06);
	padding: 28px;
	margin-top: 24px;
	max-width: 420px;
	margin-left: auto;
}

.saree-cart-collaterals .cart_totals h2 {
	color: #6b0f1a;
	font-size: 1.25rem;
	margin: 0 0 18px;
}

.saree-cart-collaterals .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px;
	background: #d4af37;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 700;
	margin-top: 14px;
}

.saree-cart-collaterals .checkout-button:hover {
	background: #bfa02f;
}

@media (max-width: 768px) {
	.saree-cart-item,
	.saree-cart-item > div {
		display: block;
		width: 100%;
	}

	.saree-cart-item {
		margin-bottom: 24px;
		padding-bottom: 24px;
	}

	.saree-cart-item > div {
		padding: 6px 0;
	}

	.saree-product-price-mobile {
		display: block;
		font-weight: 600;
		margin: 8px 0;
	}

	.saree-cart-price {
		display: none;
	}

	.saree-cart-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.saree-coupon,
	.saree-coupon input {
		max-width: 100%;
		width: 100%;
	}

	.saree-cart-collaterals .cart_totals {
		max-width: 100%;
		margin-left: 0;
	}
}

/* Elegant WooCommerce Checkout */
.saree-checkout-wrap {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

.saree-checkout-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #6b0f1a;
	margin-bottom: 28px;
	text-align: center;
}

.saree-checkout-form {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.06);
	padding: 32px;
}

.saree-checkout-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 32px;
	margin-bottom: 32px;
}

.saree-checkout-billing,
.saree-checkout-shipping,
.saree-order-review {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #f0e6d3;
}

.saree-order-review {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.saree-checkout-form h3,
.saree-checkout-billing h3,
.saree-checkout-shipping h3,
.saree-order-review-heading {
	font-size: 1.15rem;
	font-weight: 700;
	color: #6b0f1a;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0e6d3;
}

.saree-checkout-form input[type="text"],
.saree-checkout-form input[type="email"],
.saree-checkout-form input[type="tel"],
.saree-checkout-form input[type="password"],
.saree-checkout-form select,
.saree-checkout-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e0d4c0;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	color: #2c2c2c;
}

.saree-checkout-form input:focus,
.saree-checkout-form select:focus,
.saree-checkout-form textarea:focus {
	outline: none;
	border-color: #d4af37;
	box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

.saree-checkout-form label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2c2c2c;
	margin-bottom: 6px;
	display: inline-block;
}

.saree-checkout-form .form-row {
	margin-bottom: 16px;
}

.saree-checkout-form .required {
	color: #b71c1c;
}

.saree-checkout-form .woocommerce-billing-fields h3,
.saree-checkout-form .woocommerce-additional-fields h3,
.saree-checkout-form .woocommerce-shipping-fields h3,
.saree-checkout-form #order_review_heading {
	color: #6b0f1a;
	border-bottom: 1px solid #f0e6d3;
	padding-bottom: 10px;
}

.saree-review-order table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.saree-review-order table.shop_table th,
.saree-review-order table.shop_table td {
	padding: 12px 8px;
	border-bottom: 1px solid #f0e6d3;
}

.saree-review-order table.shop_table th {
	color: #6b0f1a;
	font-weight: 600;
}

.saree-review-order table.shop_table .order-total td,
.saree-review-order table.shop_table .order-total th {
	font-size: 1.1rem;
	font-weight: 700;
	color: #6b0f1a;
}

.saree-review-order #place_order,
.saree-checkout-form #place_order {
	display: block;
	width: 100%;
	padding: 16px;
	background: #d4af37;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.saree-review-order #place_order:hover,
.saree-checkout-form #place_order:hover {
	background: #bfa02f;
}

.saree-checkout-form input[type="checkbox"] + label {
	font-weight: 400;
	margin-left: 4px;
}

@media (max-width: 900px) {
	.saree-checkout-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.saree-order-review {
		max-width: 100%;
	}
}

/* Hide the original "Ship to a different address?" checkbox; our billing_save_default controls it */
#ship-to-different-address,
.woocommerce-shipping-fields > .shipping_address > h3 {
	display: none !important;
}

.saree-checkout-shipping .woocommerce-shipping-fields__field-wrapper {
	display: block;
}

/* Simpler checkout layout: shipping first, billing in <details> */
.saree-checkout-form .saree-checkout-grid {
	grid-template-columns: 1fr;
	gap: 20px;
}

.saree-checkout-shipping {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #f0e6d3;
}

.saree-checkout-shipping > h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #6b0f1a;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0e6d3;
}

.saree-same-as-shipping {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #6b0f1a;
	cursor: pointer;
	background: #fff;
	padding: 14px 18px;
	border-radius: 8px;
	border: 1px solid #f0e6d3;
}

.saree-same-as-shipping input {
	width: 18px;
	height: 18px;
	accent-color: #6b0f1a;
}

.saree-billing-email-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #f0e6d3;
}

.saree-billing-details {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #f0e6d3;
	overflow: hidden;
}

.saree-billing-details > summary {
	font-weight: 700;
	color: #6b0f1a;
	padding: 16px 24px;
	cursor: pointer;
	list-style: none;
	background: #fffbf3;
}

.saree-billing-details > summary::-webkit-details-marker {
	display: none;
}

.saree-billing-details > summary::after {
	content: ' ▼';
	font-size: 0.8rem;
}

.saree-billing-details[open] > summary::after {
	content: ' ▲';
}

.saree-billing-details > .saree-checkout-billing {
	border: none;
	border-radius: 0;
}

/* Two-column checkout layout */
.saree-checkout-row {
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	gap: 32px;
	align-items: start;
}

.saree-checkout-row .saree-order-review {
	position: sticky;
	top: 24px;
	margin: 0;
	max-width: none;
}

@media (max-width: 900px) {
	.saree-checkout-row {
		grid-template-columns: 1fr;
	}

	.saree-checkout-row .saree-order-review {
		position: static;
	}
}

/* Luxurious checkout redesign */
.saree-checkout-wrap {
	background: #f9f4ed;
}

.saree-checkout-wrap {
	max-width: 100%;
	padding: 40px 24px;
}

.saree-checkout-wrap .saree-checkout-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.4rem;
	font-weight: 400;
	color: #6b0f1a;
	text-align: center;
	margin-bottom: 40px;
	letter-spacing: 1px;
}

.saree-checkout-wrap .saree-checkout-form {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

.saree-checkout-wrap .saree-checkout-row {
	grid-template-columns: 1.2fr 0.8fr;
	gap: 32px;
	align-items: start;
}

.saree-checkout-wrap .saree-checkout-grid {
	gap: 28px;
}

.saree-checkout-wrap .saree-checkout-shipping,
.saree-checkout-wrap .saree-billing-email-wrapper,
.saree-checkout-wrap .saree-billing-details,
.saree-checkout-wrap .saree-order-review {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(107,15,26,0.08);
	padding: 28px;
	border: 1px solid #e8dcc8;
}

.saree-checkout-wrap .saree-checkout-shipping > h3,
.saree-checkout-wrap .saree-billing-details > summary,
.saree-checkout-wrap .saree-order-review h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	color: #6b0f1a;
	border-bottom: 2px solid #d4af37;
	padding-bottom: 12px;
	margin: 0 0 20px;
}

.saree-checkout-wrap .saree-billing-details > summary {
	background: linear-gradient(135deg, #6b0f1a, #8e142c);
	color: #fff;
	padding: 16px 28px;
	border-radius: 16px 16px 0 0;
	border-bottom: none;
	margin: -28px -28px 20px;
	list-style: none;
	cursor: pointer;
}

.saree-checkout-wrap .saree-billing-details > summary::after {
	color: #d4af37;
	font-size: 0.85rem;
}

.saree-checkout-wrap .saree-same-as-shipping {
	background: #fff;
	border: 1px solid #e8dcc8;
	border-left: 4px solid #d4af37;
	padding: 18px 24px;
	font-size: 1rem;
	color: #6b0f1a;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(107,15,26,0.06);
}

.saree-checkout-wrap .saree-same-as-shipping input {
	width: 20px;
	height: 20px;
	accent-color: #6b0f1a;
}

.saree-checkout-wrap .saree-checkout-form input[type="text"],
.saree-checkout-wrap .saree-checkout-form input[type="email"],
.saree-checkout-wrap .saree-checkout-form input[type="tel"],
.saree-checkout-wrap .saree-checkout-form input[type="password"],
.saree-checkout-wrap .saree-checkout-form select,
.saree-checkout-wrap .saree-checkout-form textarea {
	background: #fff;
	border: 1px solid #d8c8b0;
	border-radius: 8px;
	padding: 14px;
	font-size: 0.95rem;
	color: #2c2c2c;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.saree-checkout-wrap .saree-checkout-form input:focus,
.saree-checkout-wrap .saree-checkout-form select:focus,
.saree-checkout-wrap .saree-checkout-form textarea:focus {
	border-color: #d4af37;
	box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}

.saree-checkout-wrap .saree-checkout-form label {
	font-weight: 600;
	color: #4a4a4a;
	font-size: 0.9rem;
}

.saree-checkout-wrap .saree-checkout-form .required {
	color: #b71c1c;
}

.saree-checkout-wrap .saree-review-order table.shop_table th,
.saree-checkout-wrap .saree-review-order table.shop_table td {
	padding: 14px 10px;
	border-bottom: 1px solid #f0e6d3;
}

.saree-checkout-wrap .saree-review-order table.shop_table .order-total td,
.saree-checkout-wrap .saree-review-order table.shop_table .order-total th {
	font-size: 1.15rem;
	color: #6b0f1a;
}

.saree-checkout-wrap #place_order {
	background: linear-gradient(135deg, #d4af37, #bfa02f);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 18px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.saree-checkout-wrap #place_order:hover {
	background: linear-gradient(135deg, #bfa02f, #a68a28);
}

@media (max-width: 900px) {
	.saree-checkout-wrap .saree-checkout-row {
		grid-template-columns: 1fr;
	}
}

/* Two-column first / last name, etc. in address forms */
.saree-checkout-wrap .woocommerce-billing-fields__field-wrapper,
.saree-checkout-wrap .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.saree-checkout-wrap .woocommerce-billing-fields__field-wrapper .form-row,
.saree-checkout-wrap .woocommerce-shipping-fields__field-wrapper .form-row {
	margin-bottom: 0;
	width: 100%;
}

.saree-checkout-wrap .woocommerce-billing-fields__field-wrapper .form-row-wide,
.saree-checkout-wrap .woocommerce-shipping-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}
