/* Compact editorial cards, shared by the homepage and native catalog archives. */
.rk-catalog-cards .wc-block-product > :not(:last-child) { margin-block:0; }
.rk-catalog-cards .wc-block-product { text-align:start; }
.rk-catalog-cards .rk-card-media { position:relative; }
.rk-catalog-cards .wc-block-product>.rk-card-media { margin-block-end:12px; }
.rk-catalog-cards .wc-block-product>.rk-card-heading { margin-block-end:4px; }
.rk-catalog-cards .rk-card-photo { position:relative;aspect-ratio:7/6;background:#d3cec6;overflow:hidden; }
.rk-shop-main .rk-catalog-cards .rk-card-photo { aspect-ratio:7/4; }
.rk-catalog-cards .rk-card-image { height:100%;width:100%;margin:0;background:transparent; }
.rk-catalog-cards .rk-card-image>a { display:block;width:100%;height:100%; }
.rk-catalog-cards .rk-card-image img { display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover; }
.rk-catalog-cards .product_cat-guitars .rk-card-image img { object-position:50% 88%; }
.rk-catalog-cards .product_cat-pedals .rk-card-image { position:relative;z-index:1; }
.rk-catalog-cards .product_cat-pedals .rk-card-image img { object-fit:contain !important;width:auto;height:100%;max-width:100%;margin-inline:auto;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent); }
.rk-catalog-cards .product_cat-pedals .rk-card-photo::before,.rk-catalog-cards .product_cat-pedals .rk-card-photo::after { content:"";position:absolute;inset-block:0;width:50%;background-image:var(--rk-photo-source);background-size:1000% 100%; }
.rk-catalog-cards .product_cat-pedals .rk-card-photo::before { inset-inline-start:0;background-position:left center; }
.rk-catalog-cards .product_cat-pedals .rk-card-photo::after { inset-inline-end:0;background-position:right center; }
.rk-catalog-cards .product_cat-pedals .rk-card-photo { background:#c3bab0; }
.rk-catalog-cards .rk-product-category { margin:0 0 3px;font-size:14px;font-weight:400;line-height:1.3;letter-spacing:.08em; }
.rk-catalog-cards .rk-card-heading { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 12px;margin:0 0 4px; }
.rk-catalog-cards .rk-product-title { min-width:0;font-size:18px;line-height:1.2;margin:0;letter-spacing:-.015em; }
.rk-catalog-cards .rk-card-price { margin:0;font-family:var(--rk-font-text-choice,var(--wp--preset--font-family--body));font-size:16px;font-weight:600;line-height:1.3;text-align:end;white-space:nowrap; }
.rk-catalog-cards .rk-card-price del { font-size:16px;opacity:.6; }
.rk-catalog-cards .rk-card-price ins { text-decoration:none; }
.rk-catalog-cards .rk-card-specs { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:1.5em;margin:0;font-family:var(--rk-font-text-choice,var(--wp--preset--font-family--body));font-size:16px;line-height:1.55;font-weight:400;letter-spacing:.04em;color:var(--wp--preset--color--muted); }
.rk-catalog-cards .rk-card-footer { display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:22px;margin-top:7px; }
.rk-card-footer .rk-card-compare { margin-inline-start:auto; }
.rk-card-swatches { display:flex;align-items:center;gap:8px; }
.rk-card-swatch { display:block;width:13px;height:13px;border:1px solid color-mix(in srgb,var(--wp--preset--color--ink) 25.098%,transparent);border-radius:50%;background:var(--rk-swatch); }
.rk-card-swatch:hover { outline:1px solid var(--wp--preset--color--ink);outline-offset:3px; }
/* A revealed View cart wrapper must not introduce a flex gap after adding. */
.rk-catalog-cards .rk-card-media>.rk-product-action { display:block;position:absolute;inset-inline-end:10px;inset-block-end:10px;width:44px;height:40px;margin:0;z-index:5;opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity .16s,transform .16s; }
.rk-catalog-cards .rk-product-action .wp-block-button__link { display:grid;place-content:center;width:44px;min-width:0;height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:var(--wp--preset--color--acid);color:var(--wp--preset--color--ink);font-size:0 !important;line-height:0; }
.rk-catalog-cards .rk-product-action .wp-block-button__link>span { font-size:0 !important;line-height:0; }
.rk-catalog-cards .rk-product-action .wp-block-button__link::before { content:'';display:block;width:18px;height:18px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M5 8h14l1 13H4L5 8Z'/%3E%3Cpath d='M9 9V6a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E"); }
.rk-catalog-cards .rk-card-media:hover>.rk-product-action,.rk-catalog-cards .rk-card-media:focus-within>.rk-product-action { opacity:1;transform:none;pointer-events:auto; }
.rk-card-badge { position:absolute;inset-block-start:10px;inset-inline-start:10px;background:var(--wp--preset--color--acid);color:var(--wp--preset--color--ink);padding:5px 8px;font-size:14px;line-height:1.2;font-weight:700;letter-spacing:.03em;text-transform:uppercase;z-index:2; }
.rk-catalog-cards .wc-block-components-product-sale-badge { inset-inline-start:10px;inset-inline-end:auto;inset-block-start:10px;border:0;border-radius:0;background:var(--wp--preset--color--acid);color:var(--wp--preset--color--ink);padding:5px 8px;font-size:14px; }
.rk-home-products .rk-product-category { display:none; }
.rk-home-products .rk-product-title { font-family:var(--rk-font-heading-choice,var(--wp--preset--font-family--body));font-size:16px;font-weight:700;line-height:1.3;text-transform:none;letter-spacing:-.025em; }
.rk-home-products .rk-card-specs { text-transform:uppercase;font-size:16px;letter-spacing:.06em; }
.rk-home-products .rk-card-price { font-size:16px; }
.rk-catalog-cards .wp-block-woocommerce-product-template { row-gap:28px; }
@media(max-width:1000px) { .rk-catalog-cards .rk-card-heading{column-gap:7px;} .rk-catalog-cards .rk-product-title{font-size:16px;} .rk-home-products .rk-product-title{font-size:16px;} .rk-catalog-cards .rk-card-price{font-size:16px;} }
@media(hover:none) { .rk-catalog-cards .rk-card-media>.rk-product-action{opacity:1;transform:none;pointer-events:auto;height:44px;} .rk-catalog-cards .rk-product-action .wp-block-button__link{height:44px;min-height:44px;} }
@media(max-width:520px) { .rk-catalog-cards .rk-card-heading{gap:4px;grid-template-columns:minmax(0,1fr) auto;} .rk-catalog-cards .rk-product-title{font-size:16px;} .rk-home-products .rk-product-title{font-size:16px;} .rk-catalog-cards .rk-card-price{font-size:16px;} .rk-catalog-cards .rk-card-specs{font-size:16px;letter-spacing:0;} .rk-catalog-cards .rk-card-media{margin-bottom:9px;} .rk-catalog-cards .rk-card-media>.rk-product-action{inset-inline-end:6px;inset-block-end:6px;} .rk-catalog-cards .rk-card-footer{margin-top:5px;gap:5px;} }
@media(prefers-reduced-motion:reduce) { .rk-catalog-cards .rk-card-media>.rk-product-action{transition:none;} }

/* Keep the native filter overlay inside the desktop sidebar. */
@media(min-width:782px){.rk-shop-sidebar .wp-block-woocommerce-product-filters{width:100%;min-width:0;}.rk-shop-sidebar .wc-block-product-filters__overlay{width:100%;max-width:100%;min-width:0;}.rk-shop-sidebar .wc-block-product-filters__overlay-content{min-width:0;width:100%;}.rk-shop-sidebar input[type="text"]{min-width:0;}}

@media(min-width:782px){
 .rk-shop-sidebar .wc-block-product-filter-price-slider__content{grid-template-columns:minmax(0,1fr) 0 minmax(0,1fr);min-width:0;max-width:100%;}
 .rk-shop-sidebar .wc-block-product-filter-price-slider__range,.rk-shop-sidebar .wc-block-product-filter-price-slider__left,.rk-shop-sidebar .wc-block-product-filter-price-slider__right{min-width:0;max-width:100%;}
 .rk-shop-sidebar .wp-block-woocommerce-product-filter-price-slider input{min-width:0;max-width:100%;}
}
@media(max-width:520px){
 .rk-catalog-cards .wp-block-woocommerce-product-template{grid-template-columns:repeat(2,minmax(0,1fr));}
 .rk-catalog-cards .rk-card-photo,.rk-shop-main .rk-catalog-cards .rk-card-photo{aspect-ratio:1;}
 .rk-catalog-cards .rk-card-media>.rk-product-action{opacity:1;transform:none;pointer-events:auto;height:44px;}
 .rk-catalog-cards .rk-product-action .wp-block-button__link{height:44px;min-height:44px;}
}
/* Keep names and prices legible without squeezing either into a narrow column. */
.rk-catalog-cards .rk-product-title{font-size:20px;line-height:1.3}
.rk-catalog-cards .rk-card-specs{font-size:14px;line-height:1.65;letter-spacing:0}
.rk-catalog-cards .rk-card-price{font-size:16px;line-height:1.5}
@media(max-width:700px){.rk-catalog-cards .rk-card-heading{grid-template-columns:minmax(0,1fr);gap:5px}.rk-catalog-cards .rk-card-price{text-align:start}.rk-catalog-cards .rk-product-title{font-size:18px}.rk-catalog-cards .rk-card-specs{-webkit-line-clamp:3}}
@media(max-width:360px){.rk-catalog-cards .wp-block-woocommerce-product-template{grid-template-columns:minmax(0,1fr)!important}}

/* Successful additions use the native drawer instead of an extra card link. */
.rk-catalog-cards .added_to_cart, ul.products li.product .added_to_cart { display:none!important; }

/* Preserve distinct targets when category and title links stack on narrow cards. */
.rk-catalog-cards :is(.rk-product-category,.rk-product-title) a { display:inline-block; min-height:24px; }

.rk-tools-dialog.is-quick-view .rk-quick-eyebrow { background:var(--qv-paper); box-shadow:0 0 0 5px var(--qv-paper); }
