/*
 * GameWill WooCommerce Custom Styles
 * This file adds theme-specific overrides for WooCommerce pages.
 *
 * @package GameWill
 */

/* === Cart Page === */
.gw-cart-page {
	padding: 100px 0 80px;
}

.gw-page-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	color: var(--text-black);
	margin-bottom: 60px;
	letter-spacing: -0.02em;
}

.woocommerce-cart-form {
	margin-bottom: 60px;
}

.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.shop_table th {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-gray);
	padding: 16px 12px;
	border-bottom: 2px solid var(--bg-gray);
	text-align: left;
}

.shop_table td {
	padding: 28px 16px;
	border-bottom: 1px solid var(--bg-gray);
	vertical-align: middle;
}

.shop_table .product-name a {
	font-weight: 700;
	color: var(--text-black);
	text-decoration: none;
}

.shop_table .product-name a:hover {
	color: var(--gw-orange);
}

.shop_table .product-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: var(--radius-md);
}

.shop_table .product-remove .remove {
	font-size: 24px;
	color: var(--text-muted);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	transition: all var(--transition-fast);
}

.shop_table .product-remove .remove:hover {
	background: #fee;
	color: #e74c3c;
}

.shop_table .quantity input {
	width: 60px;
	height: 40px;
	text-align: center;
	border: 1px solid var(--border-dark);
	border-radius: var(--radius-sm);
	font-weight: 700;
}

.shop_table .actions {
	padding: 20px 0;
}

.shop_table .actions .button {
	background: var(--gradient-primary);
	color: var(--text-white);
	border: none;
	padding: 12px 24px;
	border-radius: var(--radius-full);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all var(--transition-base);
}

.shop_table .actions .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(255, 122, 0, 0.35);
}

.shop_table .actions .coupon {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.shop_table .actions .coupon .input-text {
	padding: 10px 16px;
	border: 1px solid var(--border-dark);
	border-radius: var(--radius-sm);
	font-size: 14px;
}

/* === Cart Totals === */
.cart_totals {
	background: var(--bg-gray);
	border-radius: var(--radius-lg);
	padding: 48px;
	max-width: 500px;
	margin-left: auto;
}

.cart_totals h2 {
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 900;
	margin-bottom: 24px;
	color: var(--text-black);
}

.cart_totals .shop_table th {
	border-bottom: 1px solid var(--border-dark);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
	font-size: 18px;
	font-weight: 900;
	color: var(--text-black);
}

.cart_totals .order-total .amount {
	color: var(--gw-orange);
	font-size: 24px;
}

.wc-proceed-to-checkout {
	margin-top: 24px;
}

.wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	padding: 16px;
	background: var(--gradient-primary);
	color: var(--text-white);
	border: none;
	border-radius: var(--radius-full);
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: all var(--transition-base);
	box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
}

.wc-proceed-to-checkout .checkout-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(255, 122, 0, 0.45);
	filter: brightness(1.05);
}

/* === Checkout Page === */
.gw-checkout-page {
	padding: 100px 0 80px;
}

.woocommerce-checkout h3 {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 900;
	margin-bottom: 32px;
	color: var(--text-black);
}

#customer_details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
	margin-bottom: 48px;
}

.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border-dark);
	border-radius: var(--radius-sm);
	font-size: 15px;
	transition: border-color var(--transition-fast);
}

.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus {
	border-color: var(--gw-orange);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

.woocommerce-checkout .form-row label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--text-black);
}

.woocommerce-checkout .form-row .required {
	color: var(--gw-orange);
}

#order_review {
	background: var(--bg-gray);
	border-radius: var(--radius-lg);
	padding: 48px;
}

#payment {
	background: transparent;
	border-radius: 0;
}

#payment ul.payment_methods {
	border-bottom: 1px solid var(--border-dark);
	padding-bottom: 16px;
	margin-bottom: 16px;
}

#payment ul.payment_methods li {
	padding: 12px 0;
}

#payment div.place-order {
	margin-top: 24px;
}

#payment div.place-order .button {
	display: block;
	width: 100%;
	padding: 16px;
	background: var(--gradient-primary);
	color: var(--text-white);
	border: none;
	border-radius: var(--radius-full);
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: all var(--transition-base);
	box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
}

#payment div.place-order .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(255, 122, 0, 0.45);
	filter: brightness(1.05);
}

/* === WooCommerce Notices === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 16px 24px;
	border-radius: var(--radius-md);
	margin-bottom: 24px;
	font-weight: 600;
}

.woocommerce-message {
	background: #ecfdf5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.woocommerce-info {
	background: #eff6ff;
	color: #1e40af;
	border-left: 4px solid #3b82f6;
}

.woocommerce-error {
	background: #fef2f2;
	color: #991b1b;
	border-left: 4px solid #ef4444;
}

/* === Responsive === */
@media (max-width: 768px) {
	#customer_details {
		grid-template-columns: 1fr;
	}

	.shop_table .product-thumbnail {
		display: none;
	}

	.cart_totals {
		max-width: 100%;
	}
}
