/* Rafia Regalia — WooCommerce pages (shop, categories, product, cart, checkout, account). */

.rr-wc { margin-top: 0 !important; }
.rr-wrap { padding-left: var(--rr-edge); padding-right: var(--rr-edge); box-sizing: border-box; }
.rr-wc .woocommerce-notices-wrapper:empty { display: none; }

/* Shared buttons */
.rr-btn,
.rr-wc .button,
.rr-wc button.button,
.rr-wc a.button,
.rr-wc .wc-block-components-button:not(.is-link),
.rr-wc .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy) !important;
	border: 1px solid var(--wp--preset--color--gold); border-radius: 0 !important;
	padding: 14px 28px; font-family: var(--wp--preset--font-family--work-sans); font-size: 13px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase; text-decoration: none; line-height: 1.2; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.rr-btn:hover,
.rr-wc .button:hover,
.rr-wc .wc-block-components-button:not(.is-link):hover,
.rr-wc .wp-block-button__link:hover { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white) !important; }
.rr-btn-outline { background: transparent; color: var(--wp--preset--color--navy) !important; border-color: var(--wp--preset--color--navy); }

/* Page banner */
.rr-page-banner { background: var(--wp--preset--color--ivory); border-bottom: 1px solid var(--wp--preset--color--stone); text-align: center; padding: clamp(36px, 5vw, 64px) var(--rr-edge) !important; margin: 0 !important; }
.rr-page-banner > * { margin-left: auto !important; margin-right: auto !important; }
.rr-page-banner h1, .rr-page-title { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 0; }
.rr-page-desc { max-width: 760px; margin: 14px auto 0 !important; color: var(--wp--preset--color--ink); }
.rr-page-desc p { margin: 0; }
.rr-wc .woocommerce-breadcrumb { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--gold-dark); margin: 0; }
.rr-wc .woocommerce-breadcrumb a { color: var(--wp--preset--color--ink); text-decoration: none; }
.rr-wc .woocommerce-breadcrumb a:hover { color: var(--wp--preset--color--navy); text-decoration: underline; }

/* ---------------- Archive ---------------- */
.rr-shop { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 56px); padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 96px); }
.rr-shop-sidebar { align-self: start; position: sticky; top: 150px; display: grid; gap: 24px; }
.rr-side-block { border: 1px solid var(--wp--preset--color--stone); padding: 22px 22px 18px; background: var(--wp--preset--color--white); }
.rr-side-title { font-size: 15px; letter-spacing: .12em; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-side-cats { list-style: none; margin: 0; padding: 0; }
.rr-side-cats a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 -10px; font-size: 15px; color: var(--wp--preset--color--ink); text-decoration: none; }
.rr-side-cats a:hover { color: var(--wp--preset--color--navy); background: var(--wp--preset--color--ivory); }
.rr-side-cats .is-active a { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.rr-count { font-size: 12px; color: var(--wp--preset--color--gold-dark); align-self: center; }
.rr-side-cats .is-active .rr-count { color: var(--wp--preset--color--gold-light); }
.rr-side-contact { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--ivory); text-align: center; }
.rr-side-contact .rr-eyebrow { color: var(--wp--preset--color--gold-light); margin: 0 0 6px !important; }
.rr-side-contact p { margin: 0 0 8px; font-size: 15px; }
.rr-side-contact a:not(.rr-btn) { color: var(--wp--preset--color--white); }
.rr-side-contact-title { font-family: var(--wp--preset--font-family--cinzel); font-size: 18px !important; color: var(--wp--preset--color--white); }
.rr-side-contact-addr { font-size: 13px !important; opacity: .85; }
.rr-side-contact .rr-btn { margin-top: 10px; width: 100%; }
.rr-side-contact .rr-btn:hover { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--navy) !important; }

.rr-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-shop-toolbar::before, .rr-shop-toolbar::after { display: none !important; }
.rr-wc .woocommerce-result-count { margin: 0 !important; float: none !important; font-size: 14px; color: var(--wp--preset--color--ink); }
.rr-wc .woocommerce-ordering { margin: 0 !important; float: none !important; }
.rr-wc .woocommerce-ordering select { appearance: none; border: 1px solid var(--wp--preset--color--stone); border-radius: 0; background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B1B30' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 11px 40px 11px 14px; font: inherit; font-size: 14px; color: var(--wp--preset--color--navy); min-width: 220px; }

/* Product grid & cards (shop, related, cart suggestions) */
.rr-wc ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin: 0 !important; padding: 0 !important; list-style: none; }
.rr-wc ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rr-wc ul.products::before, .rr-wc ul.products::after { display: none !important; }
.rr-wc ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; text-align: center; }
.rr-wc ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.rr-wc ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 16px !important; display: block; border: 1px solid var(--wp--preset--color--stone); transition: opacity .25s; }
.rr-wc ul.products li.product:hover img { opacity: .88; }
.rr-card-cat { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--gold-dark); margin-bottom: 6px; }
.rr-wc ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--work-sans) !important; font-size: 16px !important; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.4; color: var(--wp--preset--color--navy); padding: 0 !important; margin: 0 0 14px !important; }
.rr-wc ul.products li.product:hover .woocommerce-loop-product__title { color: var(--wp--preset--color--gold-dark); }
.rr-wc ul.products li.product .price:empty { display: none; }
.rr-wc ul.products li.product .button { margin: auto auto 0 !important; background: transparent; color: var(--wp--preset--color--navy) !important; border-color: var(--wp--preset--color--navy); padding: 11px 22px; font-size: 12px; }
.rr-wc ul.products li.product .button:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white) !important; }

/* Pagination */
.rr-wc .woocommerce-pagination { margin-top: 48px; text-align: center; }
.rr-wc .woocommerce-pagination ul { display: inline-flex !important; gap: 8px; border: 0 !important; margin: 0; padding: 0; list-style: none; }
.rr-wc .woocommerce-pagination ul li { border: 0 !important; float: none; }
.rr-wc .woocommerce-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--wp--preset--color--stone); color: var(--wp--preset--color--navy); text-decoration: none; font-size: 14px; }
.rr-wc .woocommerce-pagination a.page-numbers:hover { border-color: var(--wp--preset--color--navy); background: transparent; }
.rr-wc .woocommerce-pagination .page-numbers.current { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }

/* ---------------- Single product ---------------- */
.rr-crumbs { background: var(--wp--preset--color--ivory); border-bottom: 1px solid var(--wp--preset--color--stone); padding: 16px 0; }
.rr-single { padding-top: clamp(36px, 4vw, 60px); padding-bottom: clamp(56px, 6vw, 96px); }
.rr-single div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.rr-single div.product > * { grid-column: 1 / -1; }
.rr-single div.product > .woocommerce-product-gallery { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; }
.rr-single div.product > .summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; position: static; }
.rr-single .woocommerce-product-gallery__wrapper img { border: 1px solid var(--wp--preset--color--stone); }
.rr-single .woocommerce-product-gallery__trigger { border-radius: 0 !important; background: var(--wp--preset--color--white) !important; }
.rr-single .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px !important; }
.rr-single .flex-control-thumbs li { width: auto !important; }
.rr-single .flex-control-thumbs img { border: 1px solid var(--wp--preset--color--stone); opacity: .7; }
.rr-single .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--wp--preset--color--gold); }

.rr-single-cat { display: inline-block; text-decoration: none; margin-bottom: 10px !important; }
.rr-single .product_title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 18px; }
.rr-single .summary .price:empty { display: none; }
.rr-single .woocommerce-product-details__short-description { color: var(--wp--preset--color--ink); font-size: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-enquire { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-enquire .rr-btn { flex: 1 1 200px; }
.rr-enquire-note { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--wp--preset--color--gold-dark); text-align: center; }
.rr-single .product_meta { padding-top: 20px; font-size: 13px; color: var(--wp--preset--color--ink); display: grid; gap: 6px; }
.rr-single .product_meta > span { display: block; }
.rr-single .product_meta a { color: var(--wp--preset--color--navy); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--gold-light); }

/* Tabs */
.rr-single .woocommerce-tabs { margin-top: clamp(48px, 6vw, 80px); }
.rr-single .woocommerce-tabs ul.tabs { display: flex; justify-content: center; gap: 8px; padding: 0 !important; margin: 0 0 32px !important; border-bottom: 1px solid var(--wp--preset--color--stone); list-style: none; }
.rr-single .woocommerce-tabs ul.tabs::before, .rr-single .woocommerce-tabs ul.tabs::after { display: none !important; }
.rr-single .woocommerce-tabs ul.tabs li { margin: 0 !important; border: 0 !important; background: none !important; padding: 0 !important; }
.rr-single .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 22px !important; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--ink) !important; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rr-single .woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--navy) !important; border-bottom-color: var(--wp--preset--color--gold); }
.rr-single .woocommerce-Tabs-panel { max-width: 900px; margin: 0 auto !important; }
.rr-single .woocommerce-Tabs-panel > h2:first-child { display: none; }

/* Related */
.rr-single .related.products { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--wp--preset--color--stone); }
.rr-single .related.products > h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); margin: 0 0 36px; }

/* Reviews form */
.rr-wc #review_form input, .rr-wc #review_form textarea { border-radius: 0; }

/* ---------------- Forms (account, checkout, reviews) ---------------- */
.rr-wc input[type="text"], .rr-wc input[type="email"], .rr-wc input[type="password"], .rr-wc input[type="tel"], .rr-wc input[type="number"], .rr-wc textarea, .rr-wc select,
.rr-wc .wc-block-components-text-input input, .rr-wc .wc-blocks-components-select__select, .rr-wc .wc-block-components-textarea {
	border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 0 !important; background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); font-family: inherit;
}
.rr-wc input:focus, .rr-wc textarea:focus, .rr-wc select:focus { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 0; border-color: var(--wp--preset--color--gold) !important; }

/* ---------------- Generic pages (cart, checkout, account) ---------------- */
.rr-page-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); }
.rr-page-body .wp-block-post-content > * { max-width: none; }

/* My account */
.rr-wc .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--wp--preset--color--stone); }
.rr-wc .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 18px; color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-wc .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.rr-wc .woocommerce-MyAccount-navigation li.is-active a { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.rr-wc .woocommerce form.login, .rr-wc .woocommerce form.register, .rr-wc form.woocommerce-form-login { max-width: 520px; margin: 0 auto !important; border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 0 !important; padding: clamp(24px, 4vw, 40px) !important; background: var(--wp--preset--color--white); }
.rr-wc .woocommerce > h2, .rr-wc #customer_login h2 { text-align: center; font-size: 24px; }
.rr-wc .woocommerce-form-login__submit { width: 100%; margin: 12px 0 !important; float: none !important; }
.rr-wc .woocommerce-form-login__rememberme { display: block; margin: 8px 0 0; }
.rr-wc .lost_password { text-align: center; margin: 12px 0 0; }
.rr-wc .lost_password a { color: var(--wp--preset--color--gold-dark); }
.rr-wc .woocommerce-form-row label, .rr-wc .form-row label { font-size: 13px; letter-spacing: .06em; color: var(--wp--preset--color--navy); }
.rr-wc .woocommerce-form-row input.input-text { padding: 12px 14px; }

/* Cart & checkout blocks */
.rr-wc .wp-block-woocommerce-empty-cart-block { text-align: center; }
.rr-wc .wc-block-cart__empty-cart__title { font-size: clamp(20px, 2.4vw, 26px) !important; }
.rr-wc .wc-block-cart__empty-cart__title::before { background-color: var(--wp--preset--color--gold) !important; }
.rr-wc .wp-block-woocommerce-empty-cart-block .wp-block-separator { border: 0; border-top: 1px solid var(--wp--preset--color--stone); width: 120px; margin: 32px auto; background: none; }
.rr-wc .wp-block-woocommerce-empty-cart-block .wp-block-separator::before { display: none; }
.rr-wc .wc-block-grid__products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0 !important; }
.rr-wc .wc-block-grid__product { width: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important; text-align: center; }
.rr-wc .wc-block-grid__product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; border: 1px solid var(--wp--preset--color--stone); }
.rr-wc .wc-block-grid__product-link { text-decoration: none; }
.rr-wc .wc-block-grid__product-title { font-size: 15px !important; font-weight: 500; color: var(--wp--preset--color--navy); margin: 12px 0; }
.rr-wc .wc-block-grid__product-add-to-cart .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy) !important; border: 1px solid var(--wp--preset--color--navy); padding: 10px 20px; font-size: 12px; }
.rr-wc .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white) !important; }
.rr-wc .wc-block-components-sidebar-layout .wc-block-components-main, .rr-wc .wc-block-components-sidebar { border-radius: 0; }
.rr-wc .wp-block-woocommerce-cart-order-summary-block, .rr-wc .wp-block-woocommerce-checkout-order-summary-block { border: 1px solid var(--wp--preset--color--stone); border-radius: 0; padding: 8px 20px; background: var(--wp--preset--color--ivory); }
.rr-wc .wc-block-components-title, .rr-wc .wc-block-components-checkout-step__title { font-family: var(--wp--preset--font-family--cinzel) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--navy); }
.rr-wc .wc-block-components-product-name { color: var(--wp--preset--color--navy); font-weight: 500; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
	.rr-shop { grid-template-columns: 240px minmax(0, 1fr); }
	.rr-wc ul.products, .rr-wc ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rr-wc .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.rr-shop { grid-template-columns: 1fr; }
	.rr-shop-sidebar { position: static; order: 2; }
	.rr-single div.product { grid-template-columns: 1fr; }
	.rr-single div.product > .woocommerce-product-gallery, .rr-single div.product > .summary { grid-column: 1; position: static; }
	.rr-single div.product > .summary { margin-top: 28px !important; }
}
@media (max-width: 560px) {
	.rr-shop-toolbar { flex-direction: column; align-items: stretch; }
	.rr-wc .woocommerce-ordering select { width: 100%; }
	.rr-wc ul.products, .rr-wc ul.products.columns-4 { gap: 28px 14px; }
	.rr-wc ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
	.rr-wc ul.products li.product .button { padding: 10px 12px; letter-spacing: .08em; }
	.rr-single .woocommerce-tabs ul.tabs li a { padding: 12px 12px !important; }
}

/* Fixes */
.rr-btn { box-sizing: border-box; }
.rr-single .woocommerce-tabs ul.tabs li::before, .rr-single .woocommerce-tabs ul.tabs li::after { display: none !important; }
.rr-page-body .woocommerce:has(> form.woocommerce-form-login), .rr-wc #customer_login { max-width: 520px; margin-left: auto; margin-right: auto; }
.rr-wc #customer_login .u-column1, .rr-wc #customer_login .u-column2 { width: 100%; float: none; }
.rr-wc .woocommerce > h2 { margin-bottom: 20px; }
@media (max-width: 860px) {
	.rr-single div.product { grid-template-columns: minmax(0, 1fr); }
	.rr-single div.product > * { min-width: 0; max-width: 100%; }
	.rr-single .woocommerce-product-gallery { overflow: hidden; }
	.rr-single .summary table { width: 100%; table-layout: fixed; word-wrap: break-word; }
}
.rr-wc img { max-width: 100%; height: auto; }
/* Shop grid: 4 per row on desktop */
.rr-wc ul.products, .rr-wc ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .rr-wc ul.products, .rr-wc ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .rr-wc ul.products, .rr-wc ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Product photos: show the whole photo in a square frame, whatever its shape. */
.rr-single .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 1; background: var(--wp--preset--color--ivory); border: 1px solid var(--wp--preset--color--stone); }
.rr-single .woocommerce-product-gallery__wrapper img.wp-post-image,
.rr-single .woocommerce-product-gallery__image img { width: 100% !important; height: 100% !important; object-fit: contain; border: 0 !important; }
.rr-single .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; }
/* Specifications table (product attributes) */
.rr-specs { padding: 22px 0 4px; }
.rr-specs-title { font-size: 15px; letter-spacing: .12em; margin: 0 0 12px; }
.rr-specs .woocommerce-product-attributes { width: 100%; border-collapse: collapse; border: 1px solid var(--wp--preset--color--stone); margin: 0; font-size: 14px; }
.rr-specs .woocommerce-product-attributes th, .rr-specs .woocommerce-product-attributes td { padding: 10px 14px; border-bottom: 1px solid var(--wp--preset--color--stone); text-align: left; vertical-align: top; }
.rr-specs .woocommerce-product-attributes th { width: 38%; background: var(--wp--preset--color--ivory); color: var(--wp--preset--color--navy); font-weight: 600; }
.rr-specs .woocommerce-product-attributes td p { margin: 0; }
.rr-specs .woocommerce-product-attributes tr:last-child th, .rr-specs .woocommerce-product-attributes tr:last-child td { border-bottom: 0; }

/* Related products: 5 cards per row */
.rr-wc ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
@media (max-width: 1280px) { .rr-wc ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .rr-wc ul.products.columns-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rr-specs .woocommerce-product-attributes td, .rr-specs .woocommerce-product-attributes td p { font-style: normal; color: var(--wp--preset--color--ink); }

/* ---- Product summary, reference layout ---- */
.rr-single .woocommerce-product-details__short-description { border-bottom: 1px solid var(--wp--preset--color--stone); padding-bottom: 22px; margin-bottom: 0; }
.rr-product-info { padding-top: 20px; }
.rr-product-id { font-size: 15px; color: var(--wp--preset--color--navy); margin: 0 0 18px; }
.rr-field { margin: 0 0 16px; }
.rr-field-label { display: block; font-size: 15px; color: var(--wp--preset--color--navy); margin-bottom: 8px; }
.rr-field-value { border: 1px solid var(--wp--preset--color--stone); padding: 13px 18px; font-size: 15px; color: var(--wp--preset--color--ink); background: var(--wp--preset--color--white); min-height: 50px; box-sizing: border-box; display: flex; align-items: center; }
.rr-enquire { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 12px 0 0; border-bottom: 0; }
.rr-enquire .rr-btn { width: 100%; padding-top: 17px; padding-bottom: 17px; font-size: 14px; }
.rr-features { list-style: none; margin: 20px 0 0; padding: 22px 12px; border: 1px solid var(--wp--preset--color--stone); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.rr-features li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--wp--preset--color--navy); }
.rr-features svg { color: var(--wp--preset--color--gold-dark); }
.rr-features span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rr-single .product_meta { border-top: 0; }
@media (max-width: 480px) { .rr-features span { font-size: 12px; } }
/* Enquiry buttons side by side */
.rr-enquire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .rr-enquire { grid-template-columns: 1fr; } }

/* Request Quote (Quotes for WooCommerce) */
.rr-single form.cart { display: flex; gap: 12px; align-items: stretch; margin: 22px 0 0 !important; padding: 0; }
.rr-single form.cart::before, .rr-single form.cart::after { display: none !important; }
.rr-single form.cart .quantity { margin: 0 !important; float: none !important; }
.rr-single form.cart .quantity .qty { width: 80px; height: 100%; min-height: 52px; text-align: center; border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 0; font-size: 15px; }
.rr-single form.cart .single_add_to_cart_button { flex: 1; float: none !important; padding-top: 17px; padding-bottom: 17px; font-size: 14px; }
.rr-enquire.rr-enquire-secondary .rr-btn { background: transparent; color: var(--wp--preset--color--navy) !important; border-color: var(--wp--preset--color--navy); }
.rr-enquire.rr-enquire-secondary .rr-btn:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white) !important; }
/* Tabs and description use the full content width, like the gallery + summary above */
.rr-single .woocommerce-Tabs-panel { max-width: none; margin: 0 !important; }
.rr-single .woocommerce-tabs ul.tabs { justify-content: flex-start; }
.rr-single .woocommerce-tabs ul.tabs li:first-child a { padding-left: 0 !important; }
/* Gallery stays in view while the product details scroll (desktop only). */
@media (min-width: 861px) {
	.rr-single div.product > .woocommerce-product-gallery { position: sticky !important; top: 150px; align-self: start; }
	.admin-bar .rr-single div.product > .woocommerce-product-gallery { top: 182px; }
}
/* Product top area: gallery + summary grid (sticky gallery is bounded by this box) */
.rr-single div.product { display: block; }
.rr-single .rr-product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.rr-single .rr-product-top > .woocommerce-product-gallery { grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; }
.rr-single .rr-product-top > .summary { grid-column: 2; width: auto !important; float: none !important; margin: 0 !important; }
@media (min-width: 861px) {
	.rr-single .rr-product-top > .woocommerce-product-gallery { position: sticky !important; top: 150px; align-self: start; }
	.admin-bar .rr-single .rr-product-top > .woocommerce-product-gallery { top: 182px; }
}
@media (max-width: 860px) {
	.rr-single .rr-product-top { grid-template-columns: minmax(0, 1fr); }
	.rr-single .rr-product-top > .woocommerce-product-gallery, .rr-single .rr-product-top > .summary { grid-column: 1; position: relative !important; }
	.rr-single .rr-product-top > .summary { margin-top: 28px !important; }
	.rr-single .rr-product-top > * { min-width: 0; max-width: 100%; }
}
/* Main product photo fills its square frame (cropped to cover, no empty bands). */
.rr-single .woocommerce-product-gallery__image > a { background: none; }
.rr-single .woocommerce-product-gallery__wrapper img.wp-post-image,
.rr-single .woocommerce-product-gallery__image img { object-fit: cover !important; }

/* ---- Store notices (added to cart, errors, info) ---- */
.rr-wc .woocommerce-notices-wrapper:not(:empty) { margin: 0 0 28px; }
.rr-single:has(> .woocommerce-notices-wrapper:not(:empty)),
.rr-single:has(.woocommerce-notices-wrapper:not(:empty)) { padding-top: 28px; }
.rr-wc .wc-block-components-notice-banner,
.rr-wc .woocommerce-message, .rr-wc .woocommerce-info, .rr-wc .woocommerce-error {
	display: flex; align-items: center; gap: 14px; margin: 0 0 12px !important;
	padding: 16px 20px !important; border: 1px solid var(--wp--preset--color--stone) !important; border-left: 4px solid var(--wp--preset--color--gold) !important;
	border-radius: 0 !important; background: var(--wp--preset--color--ivory) !important; color: var(--wp--preset--color--navy) !important;
	font-size: 15px; line-height: 1.5; box-shadow: none !important;
}
.rr-wc .wc-block-components-notice-banner > svg { background: var(--wp--preset--color--gold) !important; fill: var(--wp--preset--color--white) !important; border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: 0 0 22px; }
.rr-wc .wc-block-components-notice-banner.is-error { border-left-color: #A23B3B !important; }
.rr-wc .wc-block-components-notice-banner.is-error > svg { background: #A23B3B !important; }
.rr-wc .wc-block-components-notice-banner.is-info > svg { background: var(--wp--preset--color--navy) !important; }
.rr-wc .wc-block-components-notice-banner__content { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 1; flex-wrap: wrap; color: var(--wp--preset--color--navy); }
.rr-wc .wc-block-components-notice-banner__content a,
.rr-wc .wc-block-components-notice-banner .wc-forward,
.rr-wc .woocommerce-message .button {
	order: 2; margin-left: auto; float: none !important; display: inline-flex; align-items: center;
	background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--white) !important; border: 0 !important;
	padding: 10px 18px !important; font-size: 12px !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none !important; opacity: 1 !important;
}
.rr-wc .wc-block-components-notice-banner__content a:hover,
.rr-wc .wc-block-components-notice-banner .wc-forward:hover { background: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--navy) !important; }
@media (max-width: 560px) {
	.rr-wc .wc-block-components-notice-banner__content a, .rr-wc .wc-block-components-notice-banner .wc-forward { margin-left: 0; }
}

/* Request Quote (Quotes for WooCommerce) */
.rr-single form.cart { display: flex; gap: 12px; align-items: stretch; margin: 22px 0 0 !important; padding: 0; }
.rr-single form.cart::before, .rr-single form.cart::after { display: none !important; }
.rr-single form.cart .quantity { margin: 0 !important; float: none !important; }
.rr-single form.cart .quantity .qty { width: 80px; height: 100%; min-height: 52px; text-align: center; border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 0; font-size: 15px; }
.rr-single form.cart .single_add_to_cart_button { flex: 1; float: none !important; padding-top: 17px; padding-bottom: 17px; font-size: 14px; }
.rr-enquire.rr-enquire-secondary .rr-btn { background: transparent; color: var(--wp--preset--color--navy) !important; border-color: var(--wp--preset--color--navy); }
.rr-enquire.rr-enquire-secondary .rr-btn:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--white) !important; }
.rr-single .summary .price:not(:empty) { display: none; }

/* ---------------- Cart (block) ---------------- */
.rr-wc .wc-block-cart.wc-block-components-sidebar-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; margin: 0 !important; }
.rr-wc .wc-block-cart > :first-child:empty { display: none; }
.rr-wc .wc-block-cart .wc-block-components-main,
.rr-wc .wc-block-cart .wc-block-components-sidebar { width: auto !important; padding: 0 !important; margin: 0 !important; }

/* Items card */
.rr-wc .wc-block-cart__main { border: 1px solid var(--wp--preset--color--stone); background: var(--wp--preset--color--white); }
.rr-wc .wc-block-cart-items { margin: 0 !important; border: 0 !important; width: 100%; }
.rr-wc .wc-block-cart-items__header { background: var(--wp--preset--color--ivory); }
.rr-wc .wc-block-cart-items__header th { padding: 14px 20px !important; font-size: 12px !important; letter-spacing: .14em; font-weight: 500; color: var(--wp--preset--color--navy); border-bottom: 1px solid var(--wp--preset--color--stone) !important; }
.rr-wc .wc-block-cart-items__row { border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-wc .wc-block-cart-items__row:last-child { border-bottom: 0; }
.rr-wc .wc-block-cart-items__row td { padding: 22px 20px !important; border: 0 !important; vertical-align: top; }
.rr-wc .wc-block-cart-item__image { width: 150px; padding-right: 0 !important; }
.rr-wc .wc-block-cart-item__image img { width: 120px !important; height: 120px; object-fit: cover; border: 1px solid var(--wp--preset--color--stone); }
.rr-wc .wc-block-cart-item__product .wc-block-components-product-name { font-size: 18px !important; font-weight: 500; color: var(--wp--preset--color--navy) !important; text-decoration: none !important; }
.rr-wc .wc-block-cart-item__product .wc-block-components-product-name:hover { color: var(--wp--preset--color--gold-dark) !important; }
.rr-wc .wc-block-components-product-metadata { font-size: 14px; color: var(--wp--preset--color--ink); margin: 8px 0 14px !important; max-width: 560px; }
.rr-wc .wc-block-cart-item__quantity { display: flex; align-items: center; gap: 16px; }
.rr-wc .wc-block-components-quantity-selector { border: 1px solid var(--wp--preset--color--stone) !important; border-radius: 0 !important; height: 44px; width: 128px; margin: 0 !important; }
.rr-wc .wc-block-components-quantity-selector::after { display: none !important; }
.rr-wc .wc-block-components-quantity-selector input { font-size: 15px !important; color: var(--wp--preset--color--navy); border: 0 !important; }
.rr-wc .wc-block-components-quantity-selector__button { color: var(--wp--preset--color--navy) !important; opacity: 1 !important; min-width: 40px; }
.rr-wc .wc-block-components-quantity-selector__button:hover { background: var(--wp--preset--color--ivory) !important; }
.rr-wc .wc-block-cart-item__remove-link { color: var(--wp--preset--color--ink) !important; }
.rr-wc .wc-block-cart-item__remove-link:hover { color: #A23B3B !important; }
.rr-wc .wc-block-cart-item__total:empty, .rr-wc .wc-block-cart-items__header-total:empty { padding: 0 !important; }

/* Summary card */
.rr-wc .wc-block-cart__sidebar { border: 1px solid var(--wp--preset--color--stone); background: var(--wp--preset--color--ivory); padding: 28px !important; position: sticky; top: 150px; }
.rr-cart-summary-title { font-size: 20px; letter-spacing: .08em; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--wp--preset--color--stone); }
.rr-wc .wc-block-cart__submit { margin: 0 !important; }
.rr-wc .wc-block-cart__submit-container { padding: 0 !important; position: static !important; background: none !important; box-shadow: none !important; }
.rr-wc .wc-block-cart__submit-button { width: 100%; min-height: 54px; }
.rr-cart-continue { display: block; margin-top: 16px; text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--navy); text-decoration: none; }
.rr-cart-continue:hover { color: var(--wp--preset--color--gold-dark); }

@media (max-width: 900px) {
	.rr-wc .wc-block-cart.wc-block-components-sidebar-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.rr-wc .wc-block-cart__sidebar { position: static; }
	.rr-wc .wc-block-cart-item__image { width: 96px; }
	.rr-wc .wc-block-cart-item__image img { width: 80px !important; height: 80px; }
	.rr-wc .wc-block-cart-items__row td { padding: 16px 14px !important; }
}
.rr-wc .wc-block-cart.wc-block-components-sidebar-layout { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.rr-wc .wc-block-cart > .wc-block-cart__main { grid-column: 1; grid-row: 1; justify-self: stretch; }
.rr-wc .wc-block-cart > .wc-block-cart__sidebar { grid-column: 2; grid-row: 1; justify-self: stretch; left: auto !important; right: auto !important; transform: none !important; }
@media (max-width: 900px) {
	.rr-wc .wc-block-cart > .wc-block-cart__sidebar { grid-column: 1; grid-row: 2; }
}
.rr-wc .wc-block-cart > .wc-block-cart__sidebar { padding: 28px !important; box-sizing: border-box; }
.rr-page-body .wc-block-store-notices, .rr-page-body .woocommerce-notices-wrapper, .rr-page-body .wc-block-components-notices { max-width: none !important; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.rr-page-body:has(.wc-block-components-notice-banner) { padding-top: 32px; }
.rr-page-body .wc-block-components-notices:not(:empty) { margin-bottom: 24px !important; }

/* ---- Selectable option capsules ---- */
.rr-single fieldset.rr-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rr-single .rr-field-label { float: none; width: 100%; padding: 0; margin-bottom: 10px; }
.rr-capsules { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-capsule { position: relative; cursor: pointer; margin: 0; }
.rr-capsule input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rr-capsule span {
	display: inline-flex; align-items: center; min-height: 42px; padding: 9px 20px; box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--stone); border-radius: 999px; background: var(--wp--preset--color--white);
	font-size: 14px; line-height: 1.3; color: var(--wp--preset--color--navy); user-select: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
.rr-capsule:hover span { border-color: var(--wp--preset--color--gold); }
.rr-capsule input:checked + span { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: var(--wp--preset--color--white); }
.rr-capsule input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--gold-light); margin-right: 9px; }
.rr-capsule input:focus-visible + span { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }

/* Specifications moved from short descriptions, shown at the top of the Description tab */
.rr-desc-specs { border: 1px solid var(--wp--preset--color--stone); background: var(--wp--preset--color--ivory); padding: 24px 28px; margin: 0 0 28px; }
.rr-desc-specs h4 { font-size: 15px; letter-spacing: .1em; margin: 0 0 12px; color: var(--wp--preset--color--navy); }
.rr-desc-specs h4:not(:first-child) { margin-top: 20px; }
.rr-desc-specs ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.rr-desc-specs li { position: relative; padding-left: 18px; font-size: 15px; color: var(--wp--preset--color--ink); }
.rr-desc-specs li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--wp--preset--color--gold); }
.rr-desc-specs table { width: 100%; border-collapse: collapse; }
.rr-desc-specs td, .rr-desc-specs th { border-bottom: 1px solid var(--wp--preset--color--stone); padding: 8px 10px; text-align: left; }
@media (max-width: 700px) { .rr-desc-specs ul { grid-template-columns: minmax(0, 1fr); } }
.rr-single .woocommerce-product-details__short-description p { margin: 0 0 12px; }
.rr-single .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Label and capsules on one line */
.rr-single fieldset.rr-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.rr-single fieldset.rr-field > .rr-field-label { display: contents; }
.rr-single .rr-field-label { width: auto; margin: 0; min-width: 90px; font-weight: 500; }
.rr-single fieldset.rr-field .rr-capsules { flex: 1 1 auto; }

/* Short description uses the normal body text size */
.rr-single .woocommerce-product-details__short-description,
.rr-single .woocommerce-product-details__short-description p { font-size: var(--wp--preset--font-size--medium, 17px); font-size: 17px; line-height: 1.7; }
.rr-single .rr-product-info .rr-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; border: 0; padding: 0; }
.rr-single .rr-product-info .rr-field > .rr-field-label { display: block; flex: 0 0 auto; min-width: 90px; margin: 0; font-weight: 500; }
.rr-single .rr-product-info .rr-field > .rr-capsules { flex: 1 1 0; min-width: 0; }

/* ---- Option rows: fixed label column so every row of capsules starts at the same point ---- */
.rr-single .rr-product-info .rr-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.rr-single .rr-product-info .rr-field > .rr-field-label { min-width: 0; font-size: 15px; color: var(--wp--preset--color--navy); }
@media (max-width: 480px) { .rr-single .rr-product-info .rr-field { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ---- Capsule design: light outline; selected = gold border, ivory fill, check mark ---- */
.rr-capsule span { min-height: 40px; padding: 8px 18px; border: 1px solid var(--wp--preset--color--stone); background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); font-size: 14px; }
.rr-capsule:hover span { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); }
.rr-capsule input:checked + span { background: var(--wp--preset--color--ivory); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--navy); box-shadow: inset 0 0 0 1px var(--wp--preset--color--gold); font-weight: 500; }
.rr-capsule input:checked + span::before {
	content: ""; width: 14px; height: 14px; margin-right: 8px; border-radius: 0; background: var(--wp--preset--color--gold-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rr-desc-specs .rr-desc-attrs strong { font-weight: 600; color: var(--wp--preset--color--navy); }
/* Both columns sticky: whichever is shorter (usually the details) stays in view until the other column ends. */
@media (min-width: 861px) {
	.rr-single .rr-product-top > .summary { position: sticky !important; top: 150px; align-self: start; }
	.admin-bar .rr-single .rr-product-top > .summary { top: 182px; }
}
@media (max-width: 781px) {
	/* Product page: quantity above a full-width Request Quote button */
	.rr-single form.cart { flex-direction: column; align-items: stretch; }
	.rr-single form.cart .quantity { align-self: center; }
	.rr-single form.cart .single_add_to_cart_button { width: 100%; }
}
/* Shop/category: the single-column layout must not stretch past the screen on phones. */
@media (max-width: 860px) {
	.rr-shop { grid-template-columns: minmax(0, 1fr) !important; }
	.rr-shop > * { min-width: 0; max-width: 100%; }
	.rr-wc .woocommerce-ordering select { max-width: 100%; }
}
/* Pagination wraps instead of running off the screen on phones. */
.rr-wc .woocommerce-pagination ul { flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
	.rr-wc .woocommerce-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 8px; font-size: 13px; }
	.rr-wc .woocommerce-pagination ul { gap: 6px; }
}
