/*
Theme Name: Hello Elementor Child
Author: 
Description: Your description goes here
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/


/* ============================================
   WooCommerce Cart Custom Styles
   3-Column Product Layout
   ============================================ */

/* ============================================
   WooCommerce Notices (Errors, Success, Info)
   ============================================ */

.woocommerce-notices-wrapper {
	margin-bottom: 30px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	padding: 15px 20px;
	margin-bottom: 15px;
	border-radius: 4px;
	border-left: 4px solid;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

/* Success/Info Messages */
.woocommerce-message {
	background-color: #d4edda;
	border-color: #28a745;
	color: #155724;
}

.woocommerce-message::before {
	content: "✓";
	font-size: 18px;
	font-weight: bold;
}

/* Error Messages */
.woocommerce-error {
	background-color: #f8d7da;
	border-color: #dc3545;
	color: #721c24;
}

.woocommerce-error::before {
	content: "✕";
	font-size: 18px;
	font-weight: bold;
}

/* Info Messages */
.woocommerce-info {
	background-color: #d1ecf1;
	border-color: #0c5460;
	color: #0c5460;
}

.woocommerce-info::before {
	content: "ℹ";
	font-size: 18px;
	font-weight: bold;
}

/* Notice Links */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-message a {
	color: #155724;
}

.woocommerce-error a {
	color: #721c24;
}

.woocommerce-info a {
	color: #0c5460;
}

/* Close button for notices */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
	margin-left: auto;
	background-color: transparent;
	border: 1px solid currentColor;
	padding: 6px 12px;
	font-size: 12px;
}

/* ============================================
   Cart Header Section */
.cart-header-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
}

.cart-header-left {
	flex: 1;
}

.cart-items-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0;
	color: #333;
}

.cart-header-right {
	flex-shrink: 0;
}

.edit-cart-btn {
	background-color: #c41e3a;
	color: #fff;
	border: 1px solid #c41e3a;
	padding: 8px 24px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}

.edit-cart-btn:hover {
	background-color: #a01830;
	border-color: #a01830;
}

/* Cart Items Container */
.woocommerce-cart-form__contents {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

/* Individual Cart Item Row */
.cart-item-row {
	display: grid;
	grid-template-columns: 150px 1fr 180px;
	gap: 30px;
	padding: 20px;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	background-color: #fff;
	transition: box-shadow 0.3s ease;
}

.cart-item-row:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Left Column - Product Image */
.cart-item-left {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.cart-item-left .product-thumbnail {
	width: 100%;
	max-width: 150px;
}

.cart-item-left .product-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.cart-item-left .product-thumbnail a {
	display: block;
	width: 100%;
}

/* Middle Column - Product Info */
.cart-item-middle {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.product-info-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Product Name Section */
.product-name-section {
	margin: 0;
}

.product-name-section a,
.product-name-section > * {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.4;
}

.product-name-section a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-name-section a:hover {
	color: #c41e3a;
}

/* Product Description Section */
.product-description-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.product-short-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

.product-meta-data {
	font-size: 12px;
	color: #999;
}

.product-meta-data dl {
	margin: 0;
	padding: 0;
}

.product-meta-data dt,
.product-meta-data dd {
	display: inline;
	margin: 0;
	padding: 0;
}

.product-meta-data dt:after {
	content: ": ";
}

.product-meta-data dd:after {
	content: ", ";
}

.product-meta-data dd:last-child:after {
	content: "";
}

/* Product Action Links */
.product-action-links {
	margin-top: 5px;
}

.product-action-links a,
.view-details-link {
	font-size: 13px;
	color: #c41e3a;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.product-action-links a:hover,
.view-details-link:hover {
	color: #a01830;
	text-decoration: underline;
}

/* Right Column - Price, Quantity & Remove */
.cart-item-right {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	text-align: right;
}

/* Product Price */
.product-price-section {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

.product-price-section .woocommerce-Price-amount {
	color: #333;
}

.product-price-section .woocommerce-Price-currencySymbol {
	font-size: 16px;
}

/* Product Quantity */
.product-quantity-section {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 15px;
	gap: 8px;
}

.product-quantity-section .quantity {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.product-quantity-section .quantity input {
	width: 50px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
}

.product-quantity-section .quantity button {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
	color: #333;
	font-size: 16px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.product-quantity-section .quantity button:hover {
	background-color: #f0f0f0;
	border-color: #ccc;
}

.product-quantity-section .quantity button:active {
	background-color: #e8e8e8;
}

/* Product Remove */
.product-remove-section {
	margin-top: auto;
}

.remove-product-link {
	font-size: 13px;
	color: #c41e3a;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.remove-product-link:hover {
	color: #a01830;
	text-decoration: underline;
}

/* ============================================
   Cart Update Button Section
   ============================================ */

.cart-update-section {
	display: flex;
	justify-content: flex-end;
	margin: 30px 0;
	padding: 20px 0;
	border-bottom: 1px solid #f0f0f0;
}

.button-update-cart {
	background-color: #c41e3a;
	color: #fff;
	border: 1px solid #c41e3a;
	padding: 12px 40px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.button-update-cart:hover {
	background-color: #a01830;
	border-color: #a01830;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-update-cart:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Cart Actions Section (Coupon)
   ============================================ */

.cart-actions-section {
	margin: 30px 0;
	padding: 20px;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	background-color: #fafafa;
}

.cart-actions-wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Coupon Section */
.coupon-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.coupon-label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.coupon-input-wrapper {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.coupon-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.coupon-input:focus {
	outline: none;
	border-color: #c41e3a;
	box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.1);
}

.apply-coupon-btn {
	background-color: #c41e3a;
	color: #fff;
	border: 1px solid #c41e3a;
	padding: 10px 24px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.apply-coupon-btn:hover {
	background-color: #a01830;
	border-color: #a01830;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet Screens */
@media (max-width: 768px) {
	.cart-item-row {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 15px;
	}

	.cart-item-left {
		justify-content: flex-start;
	}

	.cart-item-left .product-thumbnail {
		max-width: 120px;
	}

	.cart-item-right {
		align-items: flex-start;
		text-align: left;
	}

	.product-price-section {
		font-size: 16px;
	}

	.product-quantity-section {
		justify-content: flex-start;
	}

	.coupon-input-wrapper {
		flex-direction: column;
	}

	.apply-coupon-btn {
		width: 100%;
	}
}

/* Mobile Screens */
@media (max-width: 480px) {
	.cart-header-section {
		flex-direction: row;
		gap: 15px;
		
	}

	/* .cart-header-right {
		width: 100%;
	} */

	.edit-cart-btn {
		width: 100%;
		text-align: center;
	}

	.cart-items-title {
		font-size: 20px;
	}

	.cart-update-section {
		justify-content: stretch;
	}

	.button-update-cart {
		width: 100%;
		text-align: center;
	}

	.cart-item-row {
		padding: 12px;
		gap: 15px;
	}

	.cart-item-left .product-thumbnail {
		max-width: 100px;
	}

	.product-name-section a,
	.product-name-section > * {
		font-size: 14px;
	}

	.product-short-desc {
		font-size: 12px;
	}

	.product-price-section {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.product-quantity-section {
		gap: 6px;
	}

	.product-quantity-section .quantity input {
		width: 40px;
		padding: 4px 6px;
		font-size: 12px;
	}

	.product-quantity-section .quantity button {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.coupon-input-wrapper {
		flex-direction: column;
		gap: 8px;
	}

	.apply-coupon-btn {
		width: 100%;
	}
}

/* ============================================
   WooCommerce Default Elements Override
   ============================================ */

/* Override default quantity input styles */
.quantity input[type="number"] {
	-moz-appearance: textfield;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Backorder notification */
.backorder_notification {
	font-size: 12px;
	color: #dc3545;
	background-color: #f8d7da;
	padding: 8px 12px;
	border-radius: 4px;
	margin: 8px 0 0 0;
	border-left: 3px solid #dc3545;
}
