/* ==========================================================================
   日本くすり Wa — woocommerce.css
   Replaces WooCommerce's default stylesheets (≈60 KB) with only what this shop uses.
   ========================================================================== */

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius);
	border: 1px solid var(--line); background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
}
.woocommerce-message { border-left: 4px solid var(--take); background: var(--take-light); }
.woocommerce-info { border-left: 4px solid var(--ai); background: var(--ai-light); }
.woocommerce-error { border-left: 4px solid var(--shu); background: #fdecea; display: block; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 36px; padding: .3em 1em; background: #fff; color: var(--ai); border-color: var(--ai); }

/* ---------- Generic buttons ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.single_add_to_cart_button, .checkout-button, #place_order {
	background: var(--ai); color: #fff; border: 0;
}
.woocommerce .button:hover { background: var(--ai-dark); color: #fff; }
.button.alt, .single_add_to_cart_button, .checkout-button, #place_order {
	background: var(--shu) !important; color: #fff !important; font-size: 17px; min-height: 52px;
}
.button.alt:hover, .single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--shu-dark) !important; }
.button:disabled, .button.disabled { opacity: .5; cursor: not-allowed; }
.button.loading { opacity: .6; pointer-events: none; }
.added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 6px; font-weight: 700; }

/* ---------- Forms ---------- */
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.woocommerce form .form-row .required { color: var(--shu); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--muted); font-size: 12px; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce-page select,
.woocommerce form .input-text, .qty, .woocommerce-ordering select {
	width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; background: #fff;
	border: 1px solid #b8b3a7; border-radius: var(--radius);
}
.woocommerce textarea { min-height: 100px; }
.woocommerce input:focus, .woocommerce select:focus, .woocommerce textarea:focus { border-color: var(--ai); outline: 3px solid rgba(31, 58, 96, .15); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--shu); }
.woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
.woocommerce-form__label-for-checkbox { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.woocommerce-form__input-checkbox { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ai); flex-shrink: 0; }
.select2-container .select2-selection--single { height: 46px !important; border: 1px solid #b8b3a7 !important; border-radius: var(--radius) !important; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px !important; padding-left: 12px !important; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 44px !important; }
.col2-set { display: grid; gap: 24px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Shop head / toolbar / chips ---------- */
.nk-shop__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; }
.nk-shop__toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.woocommerce-result-count { margin: 0; font-size: 13px; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 40px; padding: 6px 32px 6px 10px; font-size: 14px; width: auto; }
.nk-chips { margin: 0 0 16px; }
.nk-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nk-chips a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
	border: 1px solid var(--ai); border-radius: 999px; color: var(--ai); text-decoration: none; font-size: 14px; font-weight: 700; background: #fff;
}
.nk-chips a:hover { background: var(--ai); color: #fff; }
.nk-chips span { font-size: 11px; font-weight: 400; opacity: .8; }
.nk-term-body { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }

.nk-shopside .nk-widget--cats { border: 1px solid var(--line); border-radius: var(--radius); }
.nk-shopside .nk-widget--cats .nk-widget__title { margin: 0; }
.nk-shopside .nk-catmenu { padding: 0 12px 8px; }
.nk-shopside .nk-catmenu a { font-size: 14px; }
.nk-catmenu .sub-menu a { justify-content: flex-start; }

/* ---------- Product grid ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
ul.products::before, ul.products::after { content: none !important; }
ul.products li.product {
	position: relative; display: flex; flex-direction: column; width: auto !important; margin: 0 !important; float: none !important;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
ul.products li.product:hover { box-shadow: var(--shadow); border-color: #cfc8b8; }
ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--sumi); text-decoration: none; }
.nk-product__media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #f0ece3; }
.nk-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.nk-product__body { padding: 10px 12px 8px; display: flex; flex-direction: column; flex: 1; }
.nk-card-cat { font-size: 11px; color: var(--muted); line-height: 1.4; margin-bottom: 2px; }
ul.products .woocommerce-loop-product__title { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
ul.products li.product:hover .woocommerce-loop-product__title { color: var(--ai); }
ul.products .price { display: block; margin-top: auto; color: var(--shu); font-weight: 700; font-size: 18px; line-height: 1.3; }
ul.products .price del { color: var(--muted); font-size: 12px; font-weight: 400; margin-right: 4px; }
ul.products .price ins { text-decoration: none; }
.nk-from { font-size: .8em; margin-left: 1px; }
.nk-unit-price { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.nk-unit-price strong { color: var(--take); font-size: 13px; }
ul.products li.product .button { margin: 0 12px 12px; min-height: 42px; font-size: 13px; padding: .4em .6em; border-radius: var(--radius); background: var(--shu); }
ul.products li.product .button:hover { background: var(--shu-dark); }
ul.products li.product .button.product_type_variable { background: #fff; color: var(--shu); border: 2px solid var(--shu); }
ul.products li.product .button.product_type_variable:hover { background: var(--shu); color: #fff; }
ul.products li.product .added_to_cart { margin: -6px 12px 12px; }
ul.products .star-rating { margin: 0 0 4px; font-size: 12px; }

.onsale {
	position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--shu); color: #fff; font-size: 12px; font-weight: 700;
	padding: 2px 8px; border-radius: 4px; line-height: 1.6; min-height: 0; min-width: 0;
}
.nk-rank {
	position: absolute; top: 0; left: 0; z-index: 3; display: inline-flex; align-items: center; gap: 2px;
	min-width: 36px; height: 30px; padding: 0 8px; border-radius: 0 0 var(--radius) 0;
	background: #8a8f98; color: #fff; font-weight: 700; font-size: 15px; justify-content: center;
}
.nk-rank--1 { background: linear-gradient(135deg, #d4a93c, #a97d18); }
.nk-rank--2 { background: linear-gradient(135deg, #a7b0ba, #7b8591); }
.nk-rank--3 { background: linear-gradient(135deg, #c98a55, #9a5f2f); }

/* Stars without an icon font */
.star-rating { position: relative; display: inline-block; font-size: 14px; line-height: 1; width: 5.4em; height: 1.1em; overflow: hidden; }
.star-rating::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #d9d4c8; letter-spacing: .08em; }
.star-rating span { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating span::before { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #e0a526; font-size: 14px; letter-spacing: .08em; line-height: 1; }

/* Pagination */
.woocommerce-pagination { margin: 32px 0 0; }
.woocommerce-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-info.woocommerce-no-products-found { display: block; }

/* ---------- Single product ---------- */
.nk-single-product div.product { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.nk-single-product div.product > * { min-width: 0; }
/* Gallery + summary live in their own grid, so the sticky gallery can never slide over the sections below. */
.nk-sp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; position: relative; align-items: start; }
.nk-sp-top > .onsale { left: 8px; right: auto; }
.woocommerce-product-gallery { position: relative; min-width: 0; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--radius); }
.woocommerce-product-gallery__trigger { position: absolute; top: 10px; right: 10px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 0; text-decoration: none; display: grid; place-items: center; }
.woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 18px; color: var(--sumi); }
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flex-control-thumbs img { border: 1px solid var(--line); border-radius: 6px; cursor: pointer; opacity: .6; aspect-ratio: 1; object-fit: contain; background: #fff; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ai); }

.summary.entry-summary { min-width: 0; }
.product_title { font-size: 22px; line-height: 1.5; margin: 0 0 8px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.summary .price { font-size: 28px; color: var(--shu); font-weight: 700; margin: 8px 0 12px; line-height: 1.3; }
.summary .price del { font-size: 16px; color: var(--muted); font-weight: 400; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { font-size: 15px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }

form.cart { background: var(--kinari); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; }
form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { font-weight: 700; font-size: 14px; }
table.variations td { padding-bottom: 8px; }
table.variations select { width: 100%; min-height: 48px; font-size: 16px; border: 2px solid var(--ai); border-radius: var(--radius); padding: 8px 12px; background: #fff; }
.reset_variations { display: inline-block; font-size: 13px; margin-top: 6px; }
.woocommerce-variation-price .price { font-size: 26px; margin: 4px 0 8px; }
.woocommerce-variation-availability .stock { margin: 0 0 8px; }
.stock { font-size: 14px; font-weight: 700; }
.stock.in-stock { color: var(--take); }
.stock.out-of-stock { color: var(--shu); }

.quantity { display: flex; align-items: stretch; }
.woocommerce .quantity .qty, .quantity .qty { width: 64px; flex: 0 0 64px; text-align: center; border-radius: 0; min-height: 52px; -moz-appearance: textfield; appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nk-qty-btn { width: 44px; border: 1px solid #b8b3a7; background: #fff; font-size: 20px; cursor: pointer; color: var(--ai); }
.nk-qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.nk-qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.nk-qty-btn:hover { background: var(--ai-light); }
.quantity:not(:has(.nk-qty-btn)) .qty { border-radius: var(--radius); }
.single_add_to_cart_button { flex: 1; min-width: 180px; border-radius: var(--radius) !important; }

.product_meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; margin: 12px 0; }
.product_meta a { color: var(--muted); }

/* Price table (数量別価格表) */
.nk-price-table { grid-column: 1 / -1; background: #fff; border: 2px solid var(--ai); border-radius: var(--radius); padding: 16px; }
.nk-price-table h2 { font-size: 18px; margin: 0 0 12px; color: var(--ai); }
.nk-table-scroll { overflow-x: auto; }
.nk-price-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.nk-price-table th, .nk-price-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: right; white-space: nowrap; }
.nk-price-table thead th { background: var(--ai-light); font-size: 13px; color: var(--ai); text-align: right; }
.nk-price-table th:first-child { text-align: left; }
.nk-price-table tbody th { font-weight: 700; }
.nk-price-table td:nth-child(2) { color: var(--shu); font-weight: 700; }
.nk-price-table tbody tr:last-child { background: #fff8e6; }
.nk-price-table tr.is-out { opacity: .5; }
.nk-save { display: inline-block; background: var(--shu); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.nk-oos { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* Tabs */
.woocommerce-tabs { grid-column: 1 / -1; min-width: 0; }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; border-bottom: 2px solid var(--ai); overflow-x: auto; }
.woocommerce-tabs ul.tabs li { flex-shrink: 0; }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 10px 18px; background: var(--kinari); border-radius: var(--radius) var(--radius) 0 0; color: var(--sumi); text-decoration: none; font-weight: 700; font-size: 15px;
}
.woocommerce-tabs ul.tabs li.active a { background: var(--ai); color: #fff; }
.woocommerce-tabs .panel { padding: 20px 0; }
.woocommerce-tabs .panel > h2:first-child { font-size: 20px; }
.woocommerce-Tabs-panel h2 { font-size: 20px; margin: 1.6em 0 .7em; padding: 10px 14px; background: var(--kinari); border-left: 5px solid var(--ai); border-radius: 0 var(--radius) var(--radius) 0; }
.woocommerce-Tabs-panel h3 { font-size: 17px; margin: 1.5em 0 .6em; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; display: block; overflow-x: auto; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.woocommerce-Tabs-panel th { background: var(--kinari); }
.woocommerce-product-attributes { display: table !important; }

/* Reviews */
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#reviews .avatar { border-radius: 50%; width: 40px; height: 40px; }
#review_form .comment-form-rating .stars a { font-size: 22px; text-decoration: none; margin-right: 4px; }
p.stars a { color: #e0a526; }

/* Related / upsells */
.related.products, .upsells.products, .cross-sells { grid-column: 1 / -1; margin-top: 16px; }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { font-size: 19px; margin-bottom: 14px; padding-left: 12px; border-left: 5px solid var(--shu); }

/* ---------- Cart / checkout flow ---------- */
.nk-main--flow .nk-page-title { text-align: center; }
.nk-main--flow .nk-page-title::after { left: 50%; transform: translateX(-50%); }
.nk-flow-steps { list-style: none; margin: 0 auto 24px; padding: 0; display: flex; max-width: 520px; counter-reset: s; }
.nk-flow-steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; counter-increment: s; padding-top: 34px; }
.nk-flow-steps li::before {
	content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
	width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.nk-flow-steps li + li::after { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.nk-flow-steps li[aria-current="step"] { color: var(--ai); font-weight: 700; }
.nk-flow-steps li[aria-current="step"]::before { background: var(--ai); }

table.shop_table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; margin: 0 0 20px; }
table.shop_table th, table.shop_table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.shop_table thead th { background: var(--kinari); font-size: 13px; }
table.shop_table .product-thumbnail img { width: 72px; border: 1px solid var(--line); border-radius: 6px; }
table.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--shu); font-size: 22px; text-decoration: none; }
table.shop_table .product-remove a:hover { background: #fdecea; }
table.shop_table .product-name a { font-weight: 700; text-decoration: none; }
table.shop_table .product-subtotal, table.shop_table .order-total td { color: var(--shu); font-weight: 700; }
table.shop_table td.actions { background: var(--kinari); }
.coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.coupon label { display: none; }
.coupon .input-text { flex: 1; min-width: 160px; width: auto; }
td.actions > .button { width: 100%; }
.cart-collaterals { display: grid; gap: 24px; }
.cart_totals { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cart_totals h2 { font-size: 18px; }
.cart_totals table { font-size: 15px; }
.cart_totals .order-total td strong { font-size: 22px; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; }
#shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce-shipping-calculator { font-size: 14px; }
.nk-empty-cart-cats { max-width: 520px; margin: 24px auto; }
.cart-empty.woocommerce-info { justify-content: center; }
.return-to-shop { text-align: center; }

/* Responsive table (replaces woocommerce-smallscreen.css) */
@media (max-width: 767px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tbody tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0; }
	table.shop_table_responsive tbody tr:last-child { border: 0; }
	table.shop_table_responsive tbody th { display: none; }
	table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; border: 0; padding: 8px 12px; }
	table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; font-size: 13px; color: var(--muted); text-align: left; }
	table.shop_table_responsive tr td.product-remove, table.shop_table_responsive tr td.product-thumbnail { justify-content: flex-start; }
	table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before,
	table.shop_table_responsive tr td.actions::before { content: none; }
	table.shop_table_responsive tr td.actions { display: block; text-align: left; }
	.cart_totals table.shop_table_responsive tr { border: 0; margin: 0; }
}

/* Checkout */
.woocommerce-checkout .col2-set { margin-bottom: 24px; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3, #order_review_heading {
	font-size: 18px; padding: 10px 14px; background: var(--kinari); border-left: 5px solid var(--ai); border-radius: 0 var(--radius) var(--radius) 0;
}
#ship-to-different-address label { display: flex; gap: 8px; align-items: center; font-size: 15px; }
#order_review { background: #fff; border: 2px solid var(--ai); border-radius: var(--radius); padding: 16px; }
#payment { background: var(--kinari); border-radius: var(--radius); padding: 14px; margin-top: 16px; }
#payment ul.payment_methods { list-style: none; margin: 0 0 12px; padding: 0; }
#payment ul.payment_methods > li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
#payment ul.payment_methods li > input { margin-right: 6px; accent-color: var(--ai); width: 18px; height: 18px; vertical-align: middle; }
#payment ul.payment_methods li label { font-weight: 700; cursor: pointer; }
#payment .payment_box { font-size: 14px; color: #444; background: var(--ai-light); border-radius: 6px; padding: 10px 12px; margin-top: 10px; }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--muted); }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { display: block; }
form.checkout_coupon, form.woocommerce-form-login { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }

/* Thank-you / order details */
.woocommerce-order-overview { list-style: none; padding: 16px; margin: 0 0 24px; background: var(--take-light); border-radius: var(--radius); display: grid; gap: 8px; }
.woocommerce-order-overview li { font-size: 13px; }
.woocommerce-order-overview strong { display: block; font-size: 16px; }
.woocommerce-thankyou-order-received { font-size: 18px; font-weight: 700; color: var(--take); text-align: center; }
.woocommerce-customer-details address { font-style: normal; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }

/* My account */
.woocommerce-account .woocommerce { display: grid; gap: 24px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li:last-child { border: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; text-decoration: none; color: var(--sumi); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ai); color: #fff; font-weight: 700; }
.woocommerce-MyAccount-navigation a:hover { background: var(--kinari); }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-Addresses { display: grid; gap: 16px; }
.woocommerce-Address { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; }
.woocommerce-Address-title h2 { font-size: 17px; margin: 0; }
.u-columns.col2-set { display: grid; gap: 24px; }
.woocommerce-form-login, .woocommerce-form-register { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.woocommerce-form-login__submit, .woocommerce-form-register__submit { width: 100%; margin-top: 8px; }
.woocommerce-LostPassword { font-size: 14px; }
.woocommerce-orders-table .button { min-height: 36px; font-size: 13px; padding: .3em 1em; }
.woocommerce-account h2 { font-size: 20px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); float: left; }
	.woocommerce form .form-row-last { float: right; }
	.woocommerce form .form-row-wide, .woocommerce form .form-row.notes { clear: both; }
	.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after, .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
	.woocommerce-order-overview { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
	table.shop_table td.actions { text-align: right; }
	.coupon { float: left; margin: 0; }
	td.actions > .button { width: auto; }
	.u-columns.col2-set { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
	ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.nk-layout--shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nk-sp-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; }
	.nk-sp-top .woocommerce-product-gallery { position: sticky; top: calc(var(--header-h) + 60px); align-self: start; z-index: 1; }
	.product_title { font-size: 26px; }
	.cart-collaterals { grid-template-columns: 1fr 420px; }
	.cart-collaterals .cart_totals { grid-column: 2; }
	.cart-collaterals .cross-sells { grid-column: 1; grid-row: 1; }
	form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 32px; align-items: start; }
	form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	form.woocommerce-checkout .col2-set { grid-column: 1; grid-row: 1 / span 3; grid-template-columns: 1fr; }
	form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 2; }
	#order_review { position: sticky; top: calc(var(--header-h) + 60px); }
	.woocommerce-account .woocommerce { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
	.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-account:not(.logged-in) .woocommerce { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
	.nk-layout--shop ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Woo headings inside page content don't need the article dot marker */
.woocommerce h3::before, .woocommerce-checkout h3::before, .cart_totals h2::before { content: none; }
.nk-entry .cart_totals h2 { border: 0; background: none; padding: 0; margin-top: 0; }

/* ==========================================================================
   Single product — v1.1
   ========================================================================== */
.nk-sp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nk-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 2px 10px; border-radius: 999px; text-decoration: none; }
.nk-badge--cat { background: var(--ai-light); color: var(--ai); }
.nk-badge--cat:hover { background: var(--ai); color: #fff; }
.nk-badge--stock { background: var(--take-light); color: var(--take); }
.nk-badge--oos { background: #eee; color: var(--muted); }
.nk-badge--ship { background: #fdecea; color: var(--shu-dark); }

.summary .price { margin-bottom: 2px; }
.nk-sp-unit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.nk-sp-unit strong { color: var(--take); font-size: 16px; }
.nk-sp-unit a { font-size: 13px; }

/* 商品概要 */
.nk-specs { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.nk-specs caption { text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 6px; color: var(--ai); }
.nk-specs th, .nk-specs td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.nk-specs tr:first-child th, .nk-specs tr:first-child td { border-top: 1px solid var(--line); }
.nk-specs th { width: 34%; background: var(--kinari); font-weight: 700; white-space: nowrap; }

/* Pack cards (数量選択) */
.nk-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.nk-pack { position: relative; }
.nk-pack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nk-pack label {
	display: flex; flex-direction: column; gap: 1px; height: 100%; cursor: pointer; position: relative;
	padding: 12px 12px 10px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
	transition: border-color .12s, box-shadow .12s;
}
.nk-pack label:hover { border-color: #a9b6c9; }
.nk-pack input:checked + label { border-color: var(--shu); box-shadow: 0 0 0 3px rgba(200, 55, 45, .15); background: #fffaf8; }
.nk-pack input:checked + label::after {
	content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--shu); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.nk-pack input:focus-visible + label { outline: 3px solid #f0b429; outline-offset: 2px; }
.nk-pack__label { font-weight: 700; font-size: 16px; }
.nk-pack__price { color: var(--shu); font-weight: 700; font-size: 18px; line-height: 1.3; }
.nk-pack__per { font-size: 12px; color: var(--muted); }
.nk-pack__save { align-self: flex-start; margin-top: 4px; background: var(--shu); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; }
.nk-pack__best { position: absolute; top: -10px; left: 10px; background: var(--kin); color: #fff; font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 3px; line-height: 1.7; }
.nk-pack.is-best label { border-color: #e2c98c; }
.nk-pack.is-out label { opacity: .45; cursor: not-allowed; }
.nk-pack__oos { font-size: 11px; color: var(--muted); }
.variations_form .reset_variations { display: none !important; }

/* お届け・お支払い */
.nk-delivery { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; }
.nk-delivery dl { margin: 0; }
.nk-delivery dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.nk-delivery dl > div:last-child { border-bottom: 0; }
.nk-delivery dt { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ai); }
.nk-delivery dd { margin: 0; }
.nk-delivery dd strong { color: var(--take); }
.nk-delivery__links { list-style: none; margin: 0; padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; background: var(--kinari); font-size: 13px; }
.nk-delivery__links a::before { content: "› "; }

/* Sections (replacing tabs) */
.nk-sp-sections { grid-column: 1 / -1; min-width: 0; }
.nk-jump { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 2px solid var(--ai); margin: 0 0 8px; }
.admin-bar .nk-jump { top: calc(var(--header-h) + 46px); }
.nk-jump ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.nk-jump ul::-webkit-scrollbar { display: none; }
.nk-jump a { display: block; white-space: nowrap; padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--sumi); text-decoration: none; }
.nk-jump a:hover { color: var(--shu); box-shadow: inset 0 -3px 0 var(--shu); }
.nk-sp-section { padding: 24px 0 8px; }
.nk-sp-section__title { font-size: 21px; margin: 0 0 16px; padding-left: 12px; border-left: 5px solid var(--shu); }
.nk-sp-section--reviews .woocommerce-Reviews-title { display: none; }
.nk-sp-section--additional_information table { max-width: 720px; }
.nk-anchor { display: block; height: 0; }

.nk-sp-more { grid-column: 1 / -1; text-align: center; padding: 8px 0 16px; }
.nk-sp-more p { font-weight: 700; margin: 0 0 10px; }
.nk-sp-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Mobile buy bar */
.nk-buybar {
	position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); z-index: 85;
	display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff;
	border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); animation: nk-up .18s ease-out;
}
.nk-buybar[hidden] { display: none; }
@keyframes nk-up { from { transform: translateY(100%); } to { transform: none; } }
.nk-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.nk-buybar__name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-buybar__price { color: var(--shu); font-weight: 700; font-size: 17px; }
.nk-buybar__price del { display: none; }
.nk-buybar__price ins { text-decoration: none; }
.nk-buybar__btn { flex-shrink: 0; min-height: 46px; border-radius: var(--radius); padding: .5em 1.2em; }
body.nk-has-buybar .nk-totop { bottom: 140px; }

@media (min-width: 600px) {
	.nk-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 783px) {
	.admin-bar .nk-jump { top: calc(var(--header-h) + 32px + 41px); }
}
@media (min-width: 960px) {
	.nk-jump { top: calc(var(--header-h) + 41px); }
	.nk-buybar { display: none !important; }
	.nk-sp-section__title { font-size: 23px; }
}
.nk-sp-section > .nk-sp-section__title {
	font-size: 22px; margin: 0 0 18px; padding: 0 0 10px; background: none; border: 0; border-bottom: 2px solid var(--ai); border-radius: 0; position: relative;
}
.nk-sp-section > .nk-sp-section__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--shu); }
.woocommerce-product-attributes td p { margin: 0; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 10px 12px !important; }
@media (min-width: 960px) { .nk-sp-section > .nk-sp-section__title { font-size: 24px; } }
