.hayamise-products,
.hayamise-product-detail,
.hayamise-order-received,
#hayamise-cart-container,
.hayamise-my-page,
.hayamise-account-guest,
#hayamise-checkout-form {
	--hayamise-primary: #ea580c;
	--hayamise-primary-dark: #c2410c;
	--hayamise-ink: #1f2937;
	--hayamise-muted: #6b7280;
	--hayamise-border: #e5e7eb;
	--hayamise-bg-subtle: #f9fafb;
	--hayamise-danger: #b91c1c;
	--hayamise-success: #15803d;
	--hayamise-warning: #b45309;
	box-sizing: border-box;
	color: var(--hayamise-ink);
	font-size: 15px;
	line-height: 1.6;
}

.hayamise-products *,
.hayamise-product-detail *,
.hayamise-order-received *,
#hayamise-cart-container *,
.hayamise-my-page *,
.hayamise-account-guest *,
#hayamise-checkout-form * {
	box-sizing: border-box;
}

/* ---- Shop grid ---- */
.hayamise-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.hayamise-product-card {
	border: 1px solid var(--hayamise-border);
	border-radius: 10px;
	padding: 16px;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hayamise-product-card:hover {
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
	transform: translateY(-2px);
}

.hayamise-product-image,
.hayamise-gallery-main {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--hayamise-bg-subtle);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.hayamise-product-image img,
.hayamise-gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hayamise-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f4f6 25%, #e5e7eb 25%, #e5e7eb 50%, #f3f4f6 50%, #f3f4f6 75%, #e5e7eb 75%, #e5e7eb 100%);
	background-size: 24px 24px;
}

.hayamise-product-name {
	margin: 0 0 6px;
	font-size: 1.05em;
}

.hayamise-product-name a,
.hayamise-product-image {
	color: inherit;
	text-decoration: none;
}

.hayamise-product-name a:hover {
	color: var(--hayamise-primary);
}

.hayamise-product-excerpt {
	color: var(--hayamise-muted);
	font-size: 0.92em;
	margin: 0 0 10px;
}

.hayamise-price {
	font-weight: 700;
	font-size: 1.2em;
	margin: 8px 0;
}

.hayamise-price-original {
	color: var(--hayamise-muted);
	text-decoration: line-through;
	font-weight: 400;
	font-size: 0.75em;
	margin-right: 6px;
}

.hayamise-price-current {
	color: var(--hayamise-primary-dark);
}

.hayamise-backorder-notice {
	display: inline-block;
	color: var(--hayamise-warning);
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 0.85em;
	font-weight: 600;
	margin: 0 0 8px;
}

.hayamise-lowstock-notice {
	display: inline-block;
	color: var(--hayamise-danger);
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 0.85em;
	font-weight: 600;
	margin: 0 0 8px;
}

.hayamise-add-to-cart-message {
	display: block;
	font-size: 0.85em;
	color: var(--hayamise-success);
	margin-top: 8px;
	min-height: 1.4em;
}

.hayamise-empty {
	color: var(--hayamise-muted);
	padding: 32px 0;
}

/* ---- Buttons ---- */
.hayamise-products .button,
.hayamise-product-detail .button,
#hayamise-checkout-form .button,
.hayamise-my-page .button,
.hayamise-account-guest .button,
#hayamise-cart-container .button {
	display: inline-block;
	background: var(--hayamise-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.hayamise-products .button:hover,
.hayamise-product-detail .button:hover,
#hayamise-checkout-form .button:hover,
.hayamise-my-page .button:hover,
.hayamise-account-guest .button:hover,
#hayamise-cart-container .button:hover {
	background: var(--hayamise-primary-dark);
	color: #fff;
}

.hayamise-products .button:disabled,
.hayamise-product-detail .button:disabled {
	opacity: 0.6;
	cursor: default;
}

.button-link,
.button-link-delete {
	background: none;
	border: none;
	color: var(--hayamise-muted);
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: 0.9em;
}

.button-link-delete:hover {
	color: var(--hayamise-danger);
}

/* ---- Product detail page ---- */
.hayamise-breadcrumb {
	color: var(--hayamise-muted);
	font-size: 0.9em;
	margin-bottom: 16px;
}

.hayamise-breadcrumb a {
	color: var(--hayamise-muted);
}

.hayamise-breadcrumb span {
	margin: 0 6px;
}

.hayamise-product-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

@media (max-width: 720px) {
	.hayamise-product-detail-grid {
		grid-template-columns: 1fr;
	}
}

.hayamise-gallery-thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hayamise-gallery-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: var(--hayamise-bg-subtle);
}

.hayamise-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hayamise-gallery-thumb.is-active {
	border-color: var(--hayamise-primary);
}

.hayamise-product-categories {
	color: var(--hayamise-muted);
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 4px;
}

.hayamise-product-title {
	margin: 0 0 12px;
	font-size: 1.6em;
}

.hayamise-qty-input {
	width: 80px;
	padding: 8px;
	border: 1px solid var(--hayamise-border);
	border-radius: 6px;
}

.hayamise-detail-add-to-cart-form p {
	margin: 12px 0;
}

.hayamise-product-description {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--hayamise-border);
}

.hayamise-product-description h2 {
	font-size: 1.2em;
}

.hayamise-back-link {
	display: inline-block;
	margin-top: 32px;
	color: var(--hayamise-muted);
	text-decoration: none;
}

.hayamise-back-link:hover {
	color: var(--hayamise-primary);
}

/* ---- Cart page ---- */
.hayamise-cart-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.hayamise-cart-table th,
.hayamise-cart-table td {
	border-bottom: 1px solid var(--hayamise-border);
	padding: 12px 8px;
	text-align: left;
	vertical-align: middle;
}

.hayamise-cart-qty {
	width: 64px;
	padding: 6px;
	border: 1px solid var(--hayamise-border);
	border-radius: 6px;
}

.hayamise-cart-subtotal {
	font-size: 1.2em;
	font-weight: 700;
	text-align: right;
}

/* ---- Checkout ---- */
#hayamise-checkout-form h3 {
	margin: 28px 0 12px;
	font-size: 1.05em;
	border-bottom: 1px solid var(--hayamise-border);
	padding-bottom: 8px;
}

#hayamise-checkout-form label {
	display: block;
	font-size: 0.88em;
	color: var(--hayamise-muted);
	margin-bottom: 4px;
}

#hayamise-checkout-form input[type="text"],
#hayamise-checkout-form input[type="email"],
#hayamise-checkout-form input[type="tel"],
#hayamise-checkout-form select,
#hayamise-checkout-form textarea {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid var(--hayamise-border);
	border-radius: 6px;
	font-size: 1em;
}

#hayamise-checkout-form p {
	margin: 14px 0;
}

.hayamise-field-pair {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hayamise-field-pair label {
	flex: 1;
	min-width: 160px;
}

.hayamise-field-pair input {
	max-width: none !important;
}

#hayamise-shipping-methods label {
	color: var(--hayamise-ink);
	font-size: 1em;
	margin-bottom: 6px;
}

.hayamise-error {
	color: var(--hayamise-danger);
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 10px 14px;
}

/* ---- Order received / order history ---- */
.hayamise-order-items {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.hayamise-order-items th,
.hayamise-order-items td {
	border-bottom: 1px solid var(--hayamise-border);
	padding: 10px 8px;
	text-align: left;
}

.hayamise-order-items tfoot td {
	border-bottom: none;
	padding: 6px 8px;
	color: var(--hayamise-muted);
}

.hayamise-order-items tfoot .hayamise-order-total-row td {
	color: var(--hayamise-ink);
	font-size: 1.2em;
	font-weight: 700;
	padding-top: 10px;
}

.hayamise-align-right {
	text-align: right;
}

.hayamise-order-received,
.hayamise-guest-account-prompt {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.hayamise-order-success {
	text-align: center;
	margin: 24px 0 32px;
}

.hayamise-order-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ecfdf5;
	color: var(--hayamise-success);
	font-size: 1.6em;
	margin-bottom: 16px;
}

.hayamise-order-success h1 {
	margin: 0 0 8px;
	font-size: 1.5em;
}

.hayamise-order-success-sub {
	color: var(--hayamise-muted);
	margin: 0;
}

.hayamise-order-summary-card {
	border: 1px solid var(--hayamise-border);
	border-radius: 10px;
	padding: 24px;
	background: #fff;
}

.hayamise-order-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--hayamise-border);
}

.hayamise-order-summary-label {
	display: block;
	font-size: 0.8em;
	color: var(--hayamise-muted);
	margin-bottom: 2px;
}

.hayamise-order-number {
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hayamise-order-address {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--hayamise-border);
}

.hayamise-order-address h2 {
	font-size: 0.95em;
	margin: 0 0 8px;
	color: var(--hayamise-muted);
}

.hayamise-order-address p {
	margin: 0;
}

.hayamise-guest-account-prompt {
	border: 1px solid var(--hayamise-border);
	border-radius: 8px;
	background: var(--hayamise-bg-subtle);
	padding: 16px;
	margin-top: 24px;
}

.hayamise-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
}

.hayamise-badge-success {
	background: #ecfdf5;
	color: var(--hayamise-success);
}

/* ---- My account ---- */
.hayamise-my-page h2,
.hayamise-account-guest h2 {
	font-size: 1.15em;
	margin-top: 32px;
	border-bottom: 1px solid var(--hayamise-border);
	padding-bottom: 8px;
}

.hayamise-my-page h2:first-of-type {
	margin-top: 16px;
}

.hayamise-my-page input[type="text"],
.hayamise-my-page input[type="tel"],
.hayamise-my-page select,
.hayamise-account-guest input[type="text"],
.hayamise-account-guest input[type="email"],
.hayamise-account-guest input[type="password"] {
	width: 100%;
	max-width: 320px;
	padding: 8px 10px;
	border: 1px solid var(--hayamise-border);
	border-radius: 6px;
}

.hayamise-welcome-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--hayamise-bg-subtle);
	border-radius: 8px;
	padding: 12px 16px;
}

.hayamise-inline-form {
	display: inline;
}

.hayamise-address-card {
	border: 1px solid var(--hayamise-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 10px;
}

.hayamise-default-badge {
	display: inline-block;
	color: var(--hayamise-primary-dark);
	background: #fff7ed;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 0.8em;
}

.hayamise-my-page details,
.hayamise-account-guest details {
	margin: 16px 0;
}

.hayamise-my-page summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--hayamise-primary-dark);
}

.hayamise-account-guest {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.hayamise-account-guest-col {
	flex: 1;
	min-width: 280px;
}
