/**
 * Custom WooCommerce Styles for MuuMuu WooCommerce Theme
 * Premium Patisserie Color Scheme - Brown Base
 */

:root {
	/* Premium Brown Color Palette */
	--patisserie-dark-chocolate: #6B4423;
	--patisserie-milk-chocolate: #8B6F47;
	--patisserie-vanilla-cream: #F5E6D3;
	--patisserie-gold: #D4AF37;
	--patisserie-ivory: #FFF8F0;
	--patisserie-bitter-chocolate: #3D2817;
	--patisserie-light-brown: #A0826D;
	--patisserie-cream-light: #FAF4ED;
}

/* Override theme colors with brown palette */
body {
	background-color: var(--patisserie-ivory) !important;
	color: var(--patisserie-bitter-chocolate) !important;
}

/* Override WordPress theme primary colors */
.has-primary-color,
.has-primary-background-color {
	color: var(--patisserie-dark-chocolate) !important;
	background-color: var(--patisserie-dark-chocolate) !important;
}

/* Update CSS custom properties for primary color */
:root {
	--wp--preset--color--primary: var(--patisserie-dark-chocolate) !important;
	--wp--preset--color--primary-hover: var(--patisserie-bitter-chocolate) !important;
}

/* Additional primary color overrides */
.wp-block-heading.has-primary-color,
.has-text-color.has-primary-color {
	color: var(--patisserie-dark-chocolate) !important;
}

.wp-block-button.has-primary-background-color .wp-block-button__link {
	background-color: var(--patisserie-dark-chocolate) !important;
}

/* Navigation and links */
.wp-block-navigation .wp-block-navigation-item__content {
	color: var(--patisserie-dark-chocolate) !important;
}

/* Primary button hover states - Force override */
.has-primary-background-color:hover,
.wp-block-button.has-primary-background-color .wp-block-button__link:hover,
.wp-block-button__link:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background-color: var(--patisserie-bitter-chocolate) !important;
	color: white !important;
}

.has-primary-color:hover {
	color: var(--patisserie-bitter-chocolate) !important;
}

/* Fix any remaining navy hover colors */
a:hover,
.wp-block-navigation .wp-block-navigation-item a:hover {
	color: var(--patisserie-gold) !important;
}

/* Override WordPress default button hover */
.wp-element-button:hover {
	background-color: var(--patisserie-bitter-chocolate) !important;
	color: white !important;
}

/* Override theme button hover styles */
.wp-block-button__link:not(.has-background):hover {
	background-color: var(--patisserie-bitter-chocolate) !important;
}

/* Search button colors */
.wp-block-search__button,
.wp-block-search .wp-block-search__button {
	background-color: var(--patisserie-dark-chocolate) !important;
	color: white !important;
}

.wp-block-search__button:hover,
.wp-block-search .wp-block-search__button:hover {
	background-color: var(--patisserie-bitter-chocolate) !important;
	color: white !important;
}

/* Headers and text colors */
h1, h2, h3, h4, h5, h6 {
	color: var(--patisserie-dark-chocolate) !important;
}

/* Links */
a {
	color: var(--patisserie-milk-chocolate);
}

a:hover {
	color: var(--patisserie-dark-chocolate);
}

/* Buttons - Premium style */
.wp-block-button__link,
.button,
.woocommerce button.button,
.woocommerce a.button {
	background-color: var(--patisserie-dark-chocolate) !important;
	color: var(--patisserie-ivory) !important;
	border: none !important;
	transition: all 0.3s ease !important;
	text-transform: none !important;
	letter-spacing: 0.5px !important;
}

.wp-block-button__link:hover,
.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	background-color: var(--patisserie-bitter-chocolate) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(107, 68, 35, 0.2) !important;
}

/* Secondary buttons */
.has-secondary-background-color {
	background-color: var(--patisserie-gold) !important;
}

/* Product cards - Elegant style */
.woocommerce ul.products li.product {
	background: var(--patisserie-cream-light) !important;
	border: 1px solid var(--patisserie-vanilla-cream) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	transition: all 0.4s ease !important;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 20px rgba(107, 68, 35, 0.15) !important;
	border-color: var(--patisserie-light-brown) !important;
}

/* Price display - Gold accent */
.woocommerce ul.products li.product .price,
.woocommerce div.product .summary .price {
	color: var(--patisserie-gold) !important;
	font-weight: 500 !important;
	letter-spacing: 0.5px !important;
}

/* Sale badge - Premium gold */
.woocommerce span.onsale {
	background-color: var(--patisserie-gold) !important;
	color: var(--patisserie-bitter-chocolate) !important;
	border: none !important;
	font-weight: 500 !important;
	letter-spacing: 0.5px !important;
}

/* Product Gallery */
.woocommerce .woocommerce-product-gallery {
	border-radius: 6px;
	overflow: hidden;
}

.woocommerce .woocommerce-product-gallery__trigger {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 6px;
	backdrop-filter: blur(10px);
}

.woocommerce .woocommerce-product-gallery__image {
	border-radius: 6px;
	overflow: hidden;
}

/* Product Summary */
.woocommerce .product .summary {
	padding-left: 0;
}

.woocommerce .product .summary .price {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--20);
}

.woocommerce .product .summary .woocommerce-product-rating {
	margin-bottom: var(--wp--preset--spacing--20);
}

.woocommerce .product .summary .woocommerce-product-details__short-description {
	margin-bottom: var(--wp--preset--spacing--30);
	line-height: 1.6;
}

/* Add to Cart Form */
.woocommerce form.cart {
	margin-bottom: var(--wp--preset--spacing--40);
}

.woocommerce form.cart .quantity {
	margin-right: var(--wp--preset--spacing--20);
}

.woocommerce form.cart .quantity .qty {
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--20);
	width: 80px;
	text-align: center;
}

.woocommerce form.cart .single_add_to_cart_button {
	background-color: var(--wp--preset--color--secondary);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: 6px;
	font-weight: 600;
	text-transform: none;
	transition: all 0.3s ease;
	font-size: var(--wp--preset--font-size--medium);
}

.woocommerce form.cart .single_add_to_cart_button:hover {
	background-color: var(--wp--preset--color--neutral-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Product Meta */
.woocommerce .product_meta {
	border-top: 1px solid var(--wp--preset--color--neutral-light);
	padding-top: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--30);
}

.woocommerce .product_meta > span {
	display: block;
	margin-bottom: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-light);
}

/* Product Tabs */
.woocommerce .woocommerce-tabs ul.tabs {
	border-bottom: 2px solid var(--wp--preset--color--neutral-light);
	margin-bottom: var(--wp--preset--spacing--40);
}

.woocommerce .woocommerce-tabs ul.tabs li {
	border: none;
	background: none;
	margin-right: var(--wp--preset--spacing--40);
}

.woocommerce .woocommerce-tabs ul.tabs li a {
	color: var(--wp--preset--color--text-light);
	padding: var(--wp--preset--spacing--20) 0;
	border: none;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s ease;
}

.woocommerce .woocommerce-tabs ul.tabs li.active a,
.woocommerce .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.woocommerce .woocommerce-tabs .panel {
	padding: var(--wp--preset--spacing--40) 0;
}

/* Shop Page */
.woocommerce .woocommerce-ordering select {
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
}

.woocommerce .woocommerce-result-count {
	color: var(--wp--preset--color--text-light);
	font-size: var(--wp--preset--font-size--small);
}

/* Product Loop */
.woocommerce ul.products li.product {
	transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product img {
	display: block;
	margin: 0;
	vertical-align: top;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px !important;
	font-weight: 500;
	margin-bottom: var(--wp--preset--spacing--10);
	line-height: 1.4;
}

.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--20);
}

.woocommerce ul.products li.product .button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: none;
	width: 100%;
	text-align: center;
}

.woocommerce ul.products li.product .button:hover {
	background-color: var(--wp--preset--color--neutral-dark);
}

/* Hide shop page description */
.woocommerce-products-header__title + p,
.page-description {
	display: none !important;
}

/* Out of stock button styling */
.woocommerce ul.products li.product a.button[href="#"] {
	font-size: 0;
	pointer-events: none;
	background-color: var(--wp--preset--color--neutral-light);
	color: var(--wp--preset--color--text-light);
	cursor: not-allowed;
}

.woocommerce ul.products li.product a.button[href="#"]::after {
	content: "在庫なし";
	font-size: var(--wp--preset--font-size--small);
}

/* Sale Badge */
.woocommerce span.onsale {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	top: var(--wp--preset--spacing--10);
	left: var(--wp--preset--spacing--10);
	min-height: auto;
	line-height: 1;
	white-space: nowrap;
	margin: 0;
	width: auto;
	height: auto;
	display: inline-block;
	text-align: center;
}

/* Star Rating */
.woocommerce .star-rating {
	color: var(--wp--preset--color--accent);
}

.woocommerce .star-rating::before {
	color: var(--wp--preset--color--neutral-light);
}

/* Custom Cart Layout */
.custom-cart-items {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.cart-item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	background: var(--wp--preset--color--base);
	min-height: 120px;
}

.cart-item-image {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
}

.cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.cart-item-details {
	flex: 1;
	min-width: 200px;
}

.cart-item-name {
	margin: 0 0 var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.3;
}

.cart-item-name a {
	color: var(--wp--preset--color--text-dark);
	text-decoration: none;
}

.cart-item-name a:hover {
	color: var(--wp--preset--color--primary);
}

.cart-item-price {
	color: var(--wp--preset--color--secondary);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.cart-item-quantity {
	flex: 0 0 100px;
}

.cart-item-quantity input {
	width: 100%;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	text-align: center;
	font-size: var(--wp--preset--font-size--medium);
}

.cart-item-total {
	flex: 0 0 120px;
	text-align: right;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

.cart-item-remove {
	flex: 0 0 40px;
}

.cart-item-remove button {
	width: 36px;
	height: 36px;
	border: none;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-item-remove button:hover {
	background: var(--wp--preset--color--neutral-dark);
}

/* Cart Totals */
.cart-totals {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.cart-totals > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: var(--wp--preset--spacing--10);
	border-bottom: 1px solid var(--wp--preset--color--neutral-light);
}

.cart-totals .cart-total {
	border-bottom: none;
	padding-top: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--large);
}

/* Cart Actions */
.cart-actions .wp-block-buttons {
	margin: 0;
}

/* Loading States */
.cart-loading {
	text-align: center;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text-light);
}

.cart-empty {
	text-align: center;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text-light);
	font-style: italic;
}

.cart-error {
	text-align: center;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--secondary);
}

/* Recommended Products in Cart */
.recommended-products-grid {
	width: 100% !important;
	max-width: none !important;
}

.recommended-products .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
}

/* Remove ::before pseudo element that creates empty space */
.recommended-products .woocommerce ul.products::before,
ul.products.columns-4::before {
	display: none !important;
}

.recommended-products .woocommerce ul.products li.product {
	margin: 0;
	text-align: center;
	width: 100%;
}

.recommended-products .woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
}

.recommended-products .woocommerce ul.products li.product img {
	width: 100%;
	height: auto;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: 6px;
}

.recommended-products .woocommerce ul.products li.product h2 {
	font-size: 14px !important;
	margin-bottom: var(--wp--preset--spacing--10);
	font-weight: 500;
}

.recommended-products .woocommerce ul.products li.product .price {
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Responsive Design for Custom Cart */
@media (max-width: 1024px) {
	.recommended-products .woocommerce ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.cart-item {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--10);
	}
	
	.cart-item-image {
		flex: 0 0 60px;
		width: 60px;
		height: 60px;
	}
	
	.cart-item-details {
		flex: 1 1 100%;
		order: 2;
	}
	
	.cart-item-quantity {
		flex: 0 0 60px;
		order: 3;
	}
	
	.cart-item-total {
		flex: 1 1 auto;
		text-align: left;
		order: 4;
	}
	
	.cart-item-remove {
		flex: 0 0 30px;
		order: 1;
		margin-left: auto;
	}
	
	.recommended-products .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--wp--preset--spacing--20);
	}
}

@media (max-width: 480px) {
	.recommended-products .woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

/* Remove margins from wp-block-group */
.wp-block-group {
	margin: 0 !important;
}

/* Sticky Header - Premium Brown */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--patisserie-ivory) !important;
	box-shadow: 0 2px 6px rgba(107, 68, 35, 0.1) !important;
	border-bottom: 1px solid var(--patisserie-vanilla-cream) !important;
}

/* Remove max-width restrictions */
.woocommerce-cart-form,
.woocommerce-checkout {
	max-width: none !important;
	width: 100% !important;
}

/* Checkout Layout */
.woocommerce-checkout form.woocommerce-checkout {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
	width: 100%;
	margin: 0;
}

/* Left side - forms in vertical layout */
.woocommerce-checkout .col2-set {
	flex: 0 0 60%;
	width: 60%;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	float: none;
	width: 100%;
	margin-right: 0;
}

.woocommerce-checkout #payment {
	margin-top: var(--wp--preset--spacing--30);
}

/* Right side - order review */
.woocommerce-checkout #order_review {
	flex: 0 0 40%;
	width: 40%;
	min-width: 350px;
}

.woocommerce-checkout #order_review_heading {
	display: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
	width: 100% !important;
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	overflow: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--neutral-light);
	padding: var(--wp--preset--spacing--20);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
	background-color: var(--wp--preset--color--neutral-light);
	font-weight: 600;
}

/* Payment Methods */
.woocommerce-checkout #payment {
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--30);
}

.woocommerce-checkout #payment ul.payment_methods {
	border: none;
	padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	margin-bottom: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20);
}

/* Square Credit Card Payment Method - 横並びレイアウト */
.woocommerce-checkout #payment .payment_method_square_credit_card .payment_box {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	flex-wrap: wrap;
	align-items: flex-start;
}

.woocommerce-checkout #payment .payment_method_square_credit_card .sq-form-field {
	flex: 1;
	min-width: 200px;
}

.woocommerce-checkout #payment .payment_method_square_credit_card .sq-form-field:first-child {
	flex: 2;
	min-width: 300px;
}

/* Square payment method label images horizontal layout */
label[for="payment_method_square_credit_card"] {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--5);
	flex-wrap: wrap;
}

label[for="payment_method_square_credit_card"] img {
	max-width: 40px;
	height: auto;
	display: inline-block;
	vertical-align: middle;
	margin: 0;
}

/* Hide Credit Card text */
label[for="payment_method_square_credit_card"] {
	font-size: 0;
}

label[for="payment_method_square_credit_card"] img {
	font-size: initial;
}

.woocommerce-checkout #payment #place_order {
	background-color: var(--wp--preset--color--secondary);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 6px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	width: 100%;
	text-transform: none;
}

/* Change Place order button text to Japanese */
.woocommerce-checkout #payment #place_order {
	font-size: 0;
}

.woocommerce-checkout #payment #place_order::after {
	content: "注文を確定する";
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.woocommerce-checkout #payment #place_order:hover {
	background-color: var(--wp--preset--color--neutral-dark);
}

/* Ship to different address styling */
.woocommerce-checkout .woocommerce-additional-fields h3 {
	font-size: 0;
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--base);
}

.woocommerce-checkout .woocommerce-additional-fields h3::after {
	content: "別の住所へ配送";
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--text-dark);
}

/* Remove styling from ship-to-different-address h3 */
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #ship-to-different-address h3,
.woocommerce-checkout h3.ship-to-different-address {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	font-size: inherit !important;
}

.woocommerce-checkout .woocommerce-shipping-fields h3::after,
.woocommerce-checkout #ship-to-different-address h3::after,
.woocommerce-checkout h3.ship-to-different-address::after {
	content: none !important;
}

/* Ship to different address checkbox styling */
.woocommerce-checkout #ship-to-different-address-checkbox,
.woocommerce-checkout input[name="ship_to_different_address"] {
	margin-right: var(--wp--preset--spacing--10);
}

.woocommerce-checkout #ship-to-different-address label,
.woocommerce-checkout label[for="ship-to-different-address-checkbox"],
.woocommerce-checkout .woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
	font-size: var(--wp--preset--font-size--medium) !important;
	border: 2px solid var(--wp--preset--color--neutral-light) !important;
	border-radius: 6px !important;
	padding: var(--wp--preset--spacing--20) !important;
	background: var(--wp--preset--color--base) !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: var(--wp--preset--spacing--10) !important;
	margin-bottom: var(--wp--preset--spacing--20) !important;
	cursor: pointer !important;
	transition: background-color 0.3s ease !important;
	width: fit-content !important;
}

.woocommerce-checkout #ship-to-different-address label:hover,
.woocommerce-checkout label[for="ship-to-different-address-checkbox"]:hover,
.woocommerce-checkout .woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox:hover {
	background-color: var(--wp--preset--color--neutral-light) !important;
}

/* Change text content */
.woocommerce-checkout #ship-to-different-address label span,
.woocommerce-checkout label[for="ship-to-different-address-checkbox"] span,
.woocommerce-checkout .woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span {
	font-size: 0 !important;
}

.woocommerce-checkout #ship-to-different-address label span::after,
.woocommerce-checkout label[for="ship-to-different-address-checkbox"] span::after,
.woocommerce-checkout .woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span::after {
	content: "別の住所へ配送" !important;
	font-size: var(--wp--preset--font-size--medium) !important;
}

/* Change Square payment description to Japanese */
.woocommerce-checkout .payment_method_square_credit_card .payment_box p {
	font-size: 0;
}

.woocommerce-checkout .payment_method_square_credit_card .payment_box p::after {
	content: "クレジットカードで安全にお支払いください。";
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-light);
}

/* Hide country fields */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-edit-address #billing_country_field,
.woocommerce-edit-address #shipping_country_field {
	display: none !important;
}

/* Hide br tags in form rows */
.woocommerce-form-row br {
	display: none !important;
}

/* Remove margin-bottom from labels in form rows */
.woocommerce-form-row label {
	margin-bottom: 0 !important;
}


/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
	border: 2px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin-bottom: var(--wp--preset--spacing--10);
	padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--text-dark);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Hide br tags in MyAccount navigation links */
li.woocommerce-MyAccount-navigation-link a br {
	display: none !important;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 6px;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	border-left: 4px solid;
}

.woocommerce-message {
	background-color: #d4edda;
	border-left-color: #28a745;
	color: #155724;
}

.woocommerce-info {
	background-color: #d1ecf1;
	border-left-color: #17a2b8;
	color: #0c5460;
}

.woocommerce-error {
	background-color: #f8d7da;
	border-left-color: #dc3545;
	color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
	.woocommerce .woocommerce-ordering {
		margin-bottom: var(--wp--preset--spacing--20);
	}
	
	.woocommerce-cart table.cart .product-thumbnail {
		display: none;
	}
	
	.woocommerce-cart table.cart th,
	.woocommerce-cart table.cart td {
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--10);
		font-size: var(--wp--preset--font-size--small);
	}
	
	.woocommerce form.cart .quantity {
		margin-right: var(--wp--preset--spacing--10);
		margin-bottom: var(--wp--preset--spacing--20);
	}
	
	.woocommerce form.cart .single_add_to_cart_button {
		width: 100%;
	}
	
	/* Checkout responsive adjustments */
	.woocommerce-checkout .woocommerce {
		flex-direction: column;
	}
	
	.woocommerce-checkout .woocommerce #order_review,
	.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order {
		flex: none;
		order: -1;
		min-width: auto;
	}
	
	.woocommerce-checkout .woocommerce .col2-set {
		min-width: auto;
	}
	
	/* Square Credit Card responsive */
	.woocommerce-checkout #payment .payment_method_square_credit_card .payment_box {
		flex-direction: column;
	}
	
	.woocommerce-checkout #payment .payment_method_square_credit_card .sq-form-field {
		min-width: auto;
	}
	
	.woocommerce-checkout #payment .payment_method_square_credit_card .sq-form-field:first-child {
		min-width: auto;
	}
	
	/* Checkout responsive adjustments */
	.woocommerce-checkout form.woocommerce-checkout {
		flex-direction: column !important;
	}
	
	.woocommerce-checkout .col2-set,
	.woocommerce-checkout #customer_details {
		order: 1 !important;
		flex: none !important;
		width: 100% !important;
	}
	
	.woocommerce-checkout #payment {
		order: 2 !important;
	}
	
	.woocommerce-checkout #order_review {
		order: 3 !important;
		flex: none !important;
		width: 100% !important;
		min-width: auto !important;
	}
}

/* Custom Checkout Layout */
.checkout-billing-section,
.checkout-shipping-section,
.checkout-payment-section {
	margin-bottom: var(--wp--preset--spacing--30);
}

.checkout-billing-fields,
.checkout-shipping-fields,
.checkout-payment-methods {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

/* Billing fields layout */
.checkout-billing-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--20);
}

/* Name fields (first and last) side by side */
.checkout-billing-fields .form-row-first,
.checkout-billing-fields .form-row-last {
	grid-column: auto;
}

/* Full width fields */
.checkout-billing-fields .form-row:not(.form-row-first):not(.form-row-last):not([id*="billing_state"]):not([id*="billing_city"]) {
	grid-column: 1 / -1;
}

/* Postcode full width */
.checkout-billing-fields .form-row[id*="billing_postcode"] {
	grid-column: 1 / -1;
}

/* State and city side by side */
.checkout-billing-fields .form-row[id*="billing_state"],
.checkout-billing-fields .form-row[id*="billing_city"] {
	grid-column: auto;
}

.checkout-billing-fields .form-row,
.checkout-shipping-fields .form-row {
	margin-bottom: var(--wp--preset--spacing--20);
}

.checkout-billing-fields input,
.checkout-billing-fields select,
.checkout-shipping-fields input,
.checkout-shipping-fields select {
	width: 100%;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	font-size: var(--wp--preset--font-size--medium);
}

.checkout-billing-fields label,
.checkout-shipping-fields label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--10);
	font-weight: 500;
	color: var(--wp--preset--color--text-dark);
}

/* Order Review Section */
.checkout-order-review {
	position: sticky;
	top: var(--wp--preset--spacing--40);
}

.checkout-order-items {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--30);
}

.checkout-order-item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--base);
	border-radius: 6px;
	border: 1px solid var(--wp--preset--color--neutral-light);
}

.checkout-order-item .item-image {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
}

.checkout-order-item .item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.checkout-order-item .item-details {
	flex: 1;
	min-width: 0;
}

.checkout-order-item .item-name {
	margin: 0 0 var(--wp--preset--spacing--10) 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.3;
}

.checkout-order-item .item-quantity {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-light);
}

.checkout-order-item .item-total {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--medium);
}

/* Order Totals */
.checkout-order-totals {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--15);
}

.checkout-order-totals .total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--wp--preset--spacing--10) 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.checkout-order-totals .total-row.grand-total {
	border-bottom: none;
	border-top: 2px solid var(--wp--preset--color--neutral-light);
	padding-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.checkout-order-totals .total-label {
	color: var(--wp--preset--color--text-dark);
}

.checkout-order-totals .total-value {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* Payment Methods */
.checkout-payment-methods .wc_payment_methods {
	list-style: none;
	padding: 0;
	margin: 0;
}

.checkout-payment-methods .wc_payment_method {
	margin-bottom: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
	padding: var(--wp--preset--spacing--20);
}

.checkout-payment-methods .wc_payment_method label {
	font-weight: 600;
	margin-left: var(--wp--preset--spacing--10);
	cursor: pointer;
}

.checkout-payment-methods .payment_box {
	margin-top: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--neutral-light);
	border-radius: 6px;
}

/* Loading States for Checkout */
.checkout-loading {
	text-align: center;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text-light);
	font-style: italic;
}

/* Place Order Button */
.place-order-btn {
	margin-top: var(--wp--preset--spacing--30);
}

.place-order-btn .wp-block-button__link {
	width: 100%;
	text-align: center;
	padding: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.place-order-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Security Info */
.checkout-security-info {
	background: var(--wp--preset--color--neutral-light);
}

.checkout-security-info h4 {
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--20);
}

.checkout-security-info p {
	margin-bottom: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* Responsive Design for Checkout */
@media (max-width: 768px) {
	.checkout-order-review {
		position: static;
	}
	
	.checkout-order-item {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--15);
	}
	
	.checkout-order-item .item-image {
		flex: 0 0 50px;
		width: 50px;
		height: 50px;
	}
	
	.checkout-order-item .item-details {
		flex: 1 1 100%;
		order: 2;
	}
	
	.checkout-order-item .item-total {
		flex: 1 1 auto;
		order: 3;
		text-align: left;
	}
}

/* ================================================
   PREMIUM PATISSERIE LUXURY ENHANCEMENTS
   ================================================ */

/* Luxury typography improvements */
.wp-block-site-title {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

/* Navigation menu enhancement */
.wp-block-navigation-item {
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
}

/* Form labels styling */
.woocommerce form .form-row label {
    color: var(--patisserie-dark-chocolate) !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

/* Enhanced form inputs with luxury feel */
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="tel"],
.woocommerce form select,
.woocommerce form textarea {
    border: 2px solid var(--patisserie-vanilla-cream) !important;
    background-color: var(--patisserie-ivory) !important;
    color: var(--patisserie-dark-chocolate) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.woocommerce form input:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
    border-color: var(--patisserie-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
    outline: none !important;
}

/* Enhanced cart and checkout tables */
.woocommerce table.shop_table {
    background-color: var(--patisserie-ivory) !important;
    border: 1px solid var(--patisserie-vanilla-cream) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.woocommerce table.shop_table th {
    background-color: var(--patisserie-vanilla-cream) !important;
    color: var(--patisserie-dark-chocolate) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    padding: 16px !important;
}

.woocommerce table.shop_table td {
    border-bottom: 1px solid var(--patisserie-vanilla-cream) !important;
    color: var(--patisserie-bitter-chocolate) !important;
    padding: 16px !important;
}

/* Premium messages styling */
.woocommerce-message,
.woocommerce-info {
    background-color: var(--patisserie-cream-light) !important;
    border-left: 4px solid var(--patisserie-gold) !important;
    color: var(--patisserie-dark-chocolate) !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 16px 20px !important;
}

/* Breadcrumbs styling */
.woocommerce-breadcrumb {
    color: var(--patisserie-milk-chocolate) !important;
    margin-bottom: var(--wp--preset--spacing--30) !important;
    font-size: 14px !important;
}

.woocommerce-breadcrumb a {
    color: var(--patisserie-milk-chocolate) !important;
    text-decoration: none !important;
}

.woocommerce-breadcrumb a:hover {
    color: var(--patisserie-gold) !important;
}

/* Login and coupon forms luxury styling */
.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-coupon {
    background-color: var(--patisserie-cream-light) !important;
    border: 1px solid var(--patisserie-vanilla-cream) !important;
    padding: 24px !important;
    border-radius: 8px !important;
    margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* Enhanced pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background-color: var(--patisserie-vanilla-cream) !important;
    color: var(--patisserie-dark-chocolate) !important;
    border: 1px solid var(--patisserie-vanilla-cream) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--patisserie-gold) !important;
    color: var(--patisserie-bitter-chocolate) !important;
    transform: translateY(-1px) !important;
}

/* Sidebar widget styling */
.woocommerce-widget-layered-nav ul li a,
.widget_product_categories ul li a {
    color: var(--patisserie-milk-chocolate) !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid var(--patisserie-vanilla-cream) !important;
    transition: color 0.3s ease !important;
}

.woocommerce-widget-layered-nav ul li a:hover,
.widget_product_categories ul li a:hover {
    color: var(--patisserie-gold) !important;
}

/* Premium shadows and elevations */
.woocommerce div.product,
.woocommerce .cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
    box-shadow: 0 2px 8px rgba(107, 68, 35, 0.08) !important;
}

/* Luxury accents */
.woocommerce .star-rating span::before {
    color: var(--patisserie-gold) !important;
}

.woocommerce .comment-form-rating .stars span a {
    color: var(--patisserie-vanilla-cream) !important;
}

.woocommerce .comment-form-rating .stars span a:hover,
.woocommerce .comment-form-rating .stars span a.active {
    color: var(--patisserie-gold) !important;
}

/* News/Blog post card styling - Archive page only */
.archive .wp-block-query .wp-block-post-template .wp-block-group {
    transition: all 0.3s ease !important;
}

.archive .wp-block-query .wp-block-post-template .wp-block-group:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(107, 68, 35, 0.15) !important;
    border-color: var(--patisserie-light-brown) !important;
}

/* Post excerpt styling */
.wp-block-post-excerpt {
    color: var(--patisserie-bitter-chocolate) !important;
}

/* Read more link styling */
.wp-block-read-more a {
    color: var(--patisserie-milk-chocolate) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.wp-block-read-more a:hover {
    color: var(--patisserie-gold) !important;
}

/* Front-page news list styling */
.front-page .wp-block-query .wp-block-post-title a {
    text-decoration: none !important;
}

body.front-page .wp-block-query.alignwide,
body.home .wp-block-query.alignwide {
    max-width: 800px !important;
    width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--wp--preset--spacing--40) !important;
    padding-right: var(--wp--preset--spacing--40) !important;
}

/* Mobile responsive for front-page news list */
@media (max-width: 768px) {
    .front-page .wp-block-query .wp-block-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--wp--preset--spacing--10) !important;
    }
    
    .front-page .wp-block-query .wp-block-post-date {
        order: -1 !important;
        font-size: 0.8rem !important;
    }
}

/* Header wp-block-group centering */
header .wp-block-group {
    margin: 0 auto !important;
}

/* Footer template part margin removal */
footer.wp-block-template-part {
    margin: 0 !important;
}

/* Main tag margins for all pages except front-page */
body:not(.home) main.wp-block-group,
body:not(.front-page) main.wp-block-group {
    margin-top: var(--wp--preset--spacing--50) !important;
    margin-bottom: var(--wp--preset--spacing--50) !important;
}

/* Front-page main margin removal */
body.home main.wp-block-group,
body.front-page main.wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix wp-block-group alignment - exclude header */
main .wp-block-group,
.wp-block-group:not(header .wp-block-group) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

main .wp-block-group.alignwide,
.wp-block-group.alignwide:not(header .wp-block-group) {
    width: 100% !important;
    max-width: var(--wp--style--global--wide-size, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

main .wp-block-group.alignfull,
.wp-block-group.alignfull:not(header .wp-block-group) {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}