/* Royal Power: WooCommerce (WooCommerce's own CSS is switched off). */

/* ---------- Shop bar --------------------------------------------------- */
.woo-main { padding-block: clamp(40px, 5vw, 72px) var(--sec); }
.shopbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px 32px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.catchips { min-width: 0; }
.catchips ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.catchips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: var(--fs-sm); font-weight: 560; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.catchips a .mono { font-size: 11px; color: var(--muted); }
.catchips a:hover { border-color: var(--fg); }
.catchips a[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.catchips a[aria-current] .mono { color: inherit; opacity: .7; }
.shopsearch { display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid var(--line-2); }
.shopsearch:focus-within { border-color: var(--fg); }
.shopsearch input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; }
.shopsearch input:focus { outline: none; }
.shopsearch .i { width: 20px; height: 20px; color: var(--muted); }
.shoptools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 26px; }
.woocommerce-result-count { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.woocommerce-ordering select { min-height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5E5E' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; -webkit-appearance: none; appearance: none; font-size: var(--fs-sm); cursor: pointer; }

/* ---------- Product cards ---------------------------------------------- */
ul.products { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0; }
ul.products::before, ul.products::after { content: none; display: none; }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); transition: border-color .25s; }
.pcard:hover { border-color: var(--line-2); }
.pcard__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.onsale { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 9px; background: #0A0A0A; color: #fff; font: 600 11px/1.2 var(--mono); font-stretch: 87.5%; letter-spacing: .02em; text-transform: uppercase; border-radius: var(--r); }
.pcard__body { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.pcard__cat { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.pcard__t { font-size: 1rem; font-weight: 650; font-stretch: 104%; letter-spacing: -.005em; line-height: 1.3; }
.pcard__t a { text-decoration: none; }
.pcard__t a::after { content: ""; position: absolute; inset: 0; }
.pcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-family: var(--mono); font-stretch: 87.5%; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price del { color: var(--muted); font-size: .8em; margin-right: 6px; }
.price ins { text-decoration: none; }
.pcard__add, .pcard .added_to_cart { position: relative; z-index: 1; }
.pcard .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--fg); border-radius: var(--r); background: var(--fg); color: var(--bg); font-size: .85rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.pcard .button:hover { background: transparent; color: var(--fg); }
.pcard .button.loading { opacity: .6; pointer-events: none; }
.pcard .button.added::after { content: "\2713"; margin-left: 6px; }
.pcard .added_to_cart { font-size: var(--fs-xs); font-weight: 600; flex-basis: 100%; }
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; }
.woocommerce-pagination ul.page-numbers { border: 0; min-width: 0; height: auto; }
.woocommerce-pagination li .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; }
.woocommerce-pagination li .page-numbers.current, .woocommerce-pagination li a.page-numbers:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Notices ---------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 16px 18px; border: 1.5px solid var(--fg); background: var(--card); font-weight: 550; }
.woocommerce-error { background: var(--fg); color: var(--bg); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 650; text-decoration: underline; }

/* ---------- Single product --------------------------------------------- */
.single-product .woo-main { padding-top: clamp(28px, 4vw, 56px); }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.single-product div.product > .onsale { display: none; }
.woocommerce-product-gallery { position: relative; border: 1px solid var(--line); background: #fff; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; padding: 6%; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; background: var(--card); border: 1px solid var(--line); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--fg); border-radius: 50%; }
.flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
.flex-control-thumbs img { cursor: pointer; opacity: .55; transition: opacity .2s; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.summary { display: grid; gap: 18px; position: sticky; top: calc(var(--hdr) + 24px); }
.pcat { margin: 0; font-size: var(--fs-xs); color: var(--muted); font-family: var(--mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .05em; }
.product_title { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.6rem); }
.summary .price { font-size: 1.6rem; }
.woocommerce-product-details__short-description { color: var(--muted); }
.stock { font-size: var(--fs-sm); font-weight: 600; margin: 0; }
form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.quantity { display: flex; }
.quantity .qty { width: 84px; min-height: 52px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); text-align: center; font-family: var(--mono); }
.single_add_to_cart_button { flex: 1; min-width: 200px; min-height: 52px; padding: 0 1.4em; border: 1.5px solid var(--fg); border-radius: var(--r); background: var(--fg); color: var(--bg); font-weight: 650; font-stretch: 108%; transition: background-color .2s; }
.single_add_to_cart_button:hover { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); }
.single_add_to_cart_button.is-busy { opacity: .7; pointer-events: none; }
.variations { width: 100%; border-collapse: collapse; }
.variations th, .variations td { display: block; text-align: left; padding: 4px 0; }
.variations select { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line-2); background: var(--card); }
.reset_variations { font-size: var(--fs-xs); }
.ptrust { list-style: none; display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ptrust li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.ptrust .i { width: 20px; height: 20px; flex: none; }
.btn--wa { justify-self: start; }
.psku { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.woocommerce-tabs .tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; }
.woocommerce-tabs .tabs::before, .woocommerce-tabs .tabs::after { content: none; }
.woocommerce-tabs .tabs a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; text-decoration: none; font-weight: 600; border-top: 3px solid transparent; margin-top: -2px; }
.woocommerce-tabs .tabs .active a { border-top-color: var(--fg); }
.woocommerce-Tabs-panel { max-width: 760px; }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.related, .upsells { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 80px); }
.related > h2, .upsells > h2 { font-size: var(--fs-h2); margin-bottom: 28px; }

/* ---------- Cart drawer ------------------------------------------------ */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto 1fr; background: var(--bg); color: var(--fg); transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.3rem; }
.drawer__head .cart-n { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.widget_shopping_cart_content { display: grid; grid-template-rows: 1fr auto; min-height: 0; overflow: hidden; }
.mcart { list-style: none; overflow-y: auto; padding: 8px 24px; }
.mcart__item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 32px 16px 0; border-bottom: 1px solid var(--line); }
.mcart__img { display: block; aspect-ratio: 1; border: 1px solid var(--line); background: #fff; }
.mcart__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mcart__info { display: grid; gap: 8px; align-content: start; }
.mcart__name { font-weight: 600; font-size: var(--fs-sm); text-decoration: none; line-height: 1.35; }
.mcart__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcart__sub { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-sm); }
.mcart__rm { position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); }
.mcart__rm:hover { color: var(--fg); }
.mcart__rm .i { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); }
.stepper button { display: grid; place-items: center; width: 36px; height: 36px; }
.stepper .i { width: 15px; height: 15px; }
.stepper input { width: 38px; height: 36px; border: 0; background: transparent; text-align: center; font-family: var(--mono); font-size: var(--fs-sm); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mcart__foot { display: grid; gap: 14px; padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.mcart__total { display: flex; justify-content: space-between; margin: 0; font-weight: 650; }
.mcart__total .amount { font-family: var(--mono); font-stretch: 87.5%; }
.mcart__note { display: flex; gap: 10px; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.mcart__note .i { width: 18px; height: 18px; flex: none; }
.mcart__buttons { display: grid; gap: 10px; margin: 0; }
.mcart__empty { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 48px 28px; text-align: center; }
.mcart__empty p { color: var(--muted); }
.mcart__empty .mcart__empty-t { color: var(--fg); font-weight: 650; font-size: 1.15rem; }
.mcart__ring { width: 48px; height: 48px; stroke-width: 1.6; }
.blockUI.blockOverlay { background: color-mix(in srgb, var(--bg) 70%, transparent) !important; }

/* ---------- Cart & checkout (classic) ---------------------------------- */
.sec--flow { padding-top: clamp(32px, 4vw, 56px); }
.woo-flow { display: grid; gap: 28px; }
.woocommerce-cart-form { overflow-x: auto; }
.shop_table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.shop_table th { text-align: left; padding: 12px 10px; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.shop_table td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop_table .product-thumbnail img { width: 72px; border: 1px solid var(--line); background: #fff; }
.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; text-decoration: none; font-size: 1.4rem; color: var(--muted); }
.shop_table .product-name a { font-weight: 600; text-decoration: none; }
.shop_table .amount { font-family: var(--mono); font-stretch: 87.5%; }
.shop_table .qty { width: 72px; min-height: 44px; border: 1px solid var(--line-2); text-align: center; background: var(--card); font-family: var(--mono); }
.actions { text-align: right; }
.actions .coupon { display: inline-flex; gap: 8px; float: left; }
.actions .input-text { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--card); }
.woo-flow .button, .woo-flow button[type="submit"], .woocommerce-account .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--fg); border-radius: var(--r); background: var(--fg); color: var(--bg); font-weight: 650; text-decoration: none; cursor: pointer; }
.woo-flow .button:disabled, .woo-flow .button[disabled] { opacity: .45; cursor: not-allowed; }
.cart-collaterals { display: grid; justify-content: end; }
.cart_totals { width: min(100%, 440px); padding: 24px; border: 1px solid var(--line); background: var(--card); }
.cart_totals h2 { font-size: 1.4rem; margin-bottom: 12px; }
.cart_totals th { width: 40%; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; margin-top: 16px; }
.woocommerce-shipping-methods { list-style: none; display: grid; gap: 6px; }
.checkout-help { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.checkout-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 650; }
.checkout-help .i { width: 18px; height: 18px; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 clamp(28px, 5vw, 64px); align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
#customer_details { grid-column: 1; grid-row: 1 / span 3; }
#order_review_heading, #order_review { grid-column: 2; }
#order_review_heading { font-size: 1.4rem; margin-bottom: 14px; }
#order_review { padding: 24px; border: 1px solid var(--line); background: var(--card); position: sticky; top: calc(var(--hdr) + 24px); }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 1.3rem; margin: 0 0 16px; }
.form-row { display: grid; gap: 6px; margin: 0 0 16px; }
.form-row label { font-size: var(--fs-sm); font-weight: 600; }
.form-row .required { color: var(--muted); text-decoration: none; }
.form-row .input-text, .form-row select, .form-row textarea, .select2-container .select2-selection--single { width: 100%; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--fg); }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; color: var(--fg); padding-left: 0; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 8px; }
.form-row .input-text:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--fg); }
.form-row.woocommerce-invalid .input-text { border-color: var(--fg); border-width: 2px; }
.form-row-first, .form-row-last { width: calc(50% - 8px); display: inline-grid; }
.form-row-first { margin-right: 12px; }
.wc_payment_methods { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.wc_payment_method { padding: 14px; border: 1px solid var(--line); }
.wc_payment_method .payment_box { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
#place_order { width: 100%; min-height: 56px; margin-top: 12px; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-sm); }
.woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 0; }
.woocommerce-order-overview li { padding: 14px; border: 1px solid var(--line); font-size: var(--fs-sm); }

/* ---------- My account ------------------------------------------------- */
.woocommerce-account .woo-flow > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; border-top: 3px solid var(--fg); }
.woocommerce-MyAccount-navigation a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { text-decoration: underline; text-underline-offset: .3em; }
.woocommerce-form-login, .woocommerce-form-register { display: grid; gap: 4px; max-width: 460px; }

@media (max-width: 1024px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	.summary { position: static; }
	form.checkout { grid-template-columns: minmax(0, 1fr); }
	#customer_details, #order_review_heading, #order_review { grid-column: 1; grid-row: auto; }
	#order_review { position: static; }
	.woocommerce-account .woo-flow > .woocommerce { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.shopbar { grid-template-columns: minmax(0, 1fr); }
	.catchips ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
	.catchips ul::-webkit-scrollbar { display: none; }
	.catchips li { flex: none; }
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcard__body { padding: 12px; }
	.pcard__t { font-size: .92rem; }
	.pcard .button { width: 100%; }
	.form-row-first, .form-row-last { width: 100%; margin-right: 0; }
	.shop_table thead { display: none; }
	.shop_table.cart tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.shop_table.cart td { border: 0; padding: 0; }
	.shop_table.cart .product-remove { grid-column: 3; grid-row: 1; }
	.shop_table.cart .product-thumbnail { grid-row: 1 / span 3; }
	.shop_table.cart .product-price::before, .shop_table.cart .product-subtotal::before { content: attr(data-title) ": "; color: var(--muted); font-size: var(--fs-xs); }
	.shop_table.cart td.actions { grid-column: 1 / -1; text-align: left; }
	.actions .coupon { float: none; display: flex; margin-bottom: 10px; }
	.cart_totals { width: 100%; }
}
@media (max-width: 380px) {
	ul.products { grid-template-columns: minmax(0, 1fr); }
}
