/* KC Music Studio – shared responsive layout. Colors and fonts come from the skin-*.css variables. */

body.kcms {
	background: var(--kc-bg);
	color: var(--kc-text);
	font-family: var(--kc-body-font);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
body.kcms .page-wrap,
body.kcms .main-container,
body.kcms .page-area { background: transparent; }

body.kcms h1, body.kcms h2, body.kcms h3, body.kcms h4,
body.kcms .wp-block-heading {
	font-family: var(--kc-head-font);
	font-weight: var(--kc-head-weight, 700);
	color: var(--kc-heading);
	letter-spacing: var(--kc-head-tracking, -0.01em);
	line-height: 1.15;
}
body.kcms a { color: var(--kc-link); }
body.kcms a:hover { color: var(--kc-link-hover); }
body.kcms :focus-visible { outline: 3px solid var(--kc-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
body.kcms .site-header {
	background: var(--kc-header-bg);
	border-bottom: 1px solid var(--kc-border);
	padding: 14px 0;
}
body.kcms .site-header .heading-row { display: flex; align-items: center; flex-wrap: wrap; }
body.kcms .site-header .heading-row::before, body.kcms .site-header .heading-row::after { display: none; }
/* The header search form is hidden in Additional CSS, so drop its empty column too. */
body.kcms .search-heading { display: none; }
@media (min-width: 768px) {
	body.kcms .site-heading { flex: 1 1 auto; width: auto; float: none; }
	body.kcms .header-right { flex: 0 0 auto; width: auto; float: none; display: flex; align-items: center; gap: 18px; margin-left: auto; }
	body.kcms .header-right .header-cart, body.kcms .header-right .header-my-account { float: none; margin: 0; }
}
body.kcms .site-branding-logo { padding: 0; }
body.kcms .custom-logo { max-height: 46px; width: auto; }
body.kcms .site-branding-text { display: none; }
body.kcms .header-cart .count { background: var(--kc-accent); color: var(--kc-accent-ink); }
body.kcms .amount-cart { background: var(--kc-surface-2); color: var(--kc-text); border-radius: 6px; }
body.kcms .header-cart a, body.kcms .header-login a, body.kcms .header-cart i, body.kcms .header-login i { color: var(--kc-text); }

/* The theme floats the cart and account icons at the right edge after scrolling. */
body.kcms .header-right .float-cart .cart-contents,
body.kcms .header-right .float-login .header-login a {
	background: var(--kc-surface);
	border: 1px solid var(--kc-border);
	border-radius: 14px;
	box-shadow: 0 8px 22px var(--kc-shadow);
	color: var(--kc-text);
}

body.kcms .main-menu,
body.kcms .main-menu .navbar,
body.kcms #site-navigation {
	background: var(--kc-nav-bg);
	border: 0;
	border-bottom: 1px solid var(--kc-border);
	margin: 0;
}
body.kcms .navbar-nav > li > a,
body.kcms .navbar-default .navbar-nav > li > a {
	color: var(--kc-nav-text);
	font-family: var(--kc-body-font);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: var(--kc-nav-tracking, 0.06em);
	text-transform: var(--kc-nav-case, uppercase);
	padding-top: 16px;
	padding-bottom: 16px;
}
body.kcms .navbar-default .navbar-nav > li > a:hover,
body.kcms .navbar-default .navbar-nav > .active > a,
body.kcms .navbar-default .navbar-nav > .current-menu-item > a {
	color: var(--kc-accent);
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--kc-accent);
}
body.kcms .navbar-default .navbar-toggle { border-color: transparent; }
body.kcms .navbar-default .navbar-toggle .icon-bar { background: var(--kc-text); }
body.kcms .navbar-brand.brand-absolute { color: var(--kc-muted); }
body.kcms .dropdown-menu { background: var(--kc-surface); border-color: var(--kc-border); }
body.kcms .dropdown-menu > li > a { color: var(--kc-text); }

@media (max-width: 767px) {
	/* Compact, sticky header: logo row shrinks and the menu row sticks to the top. */
	body.kcms .site-header { padding: 10px 0; border-bottom: 0; }
	body.kcms .site-heading { text-align: left; }
	body.kcms .custom-logo { max-height: 34px; }
	body.kcms .search-heading { display: none; }
	body.kcms .main-menu { position: sticky; top: 0; z-index: 999; box-shadow: 0 6px 18px var(--kc-shadow); }
	body.kcms .navbar-header { min-height: 56px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-right: 4px; }
	body.kcms .navbar-header .navbar-brand.brand-absolute { display: none !important; }
	body.kcms .navbar-header .mobile-cart { order: 1; }
	body.kcms .navbar-header .mobile-account { order: 2; }
	body.kcms .navbar-header .open-panel { order: 3; position: static; margin: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; cursor: pointer; }
	body.kcms .navbar-header .open-panel span { position: static; display: block; width: 24px; height: 2px; margin: 0; background: var(--kc-nav-text); transform: none; }
	body.kcms .navbar-header .mobile-cart .header-cart-block,
	body.kcms .navbar-header .mobile-cart .header-cart-inner,
	body.kcms .navbar-header .mobile-account .header-login { position: static; }
	body.kcms .navbar-collapse { background: var(--kc-nav-bg); border-top: 1px solid var(--kc-border); }
	body.kcms .navbar-nav > li > a { padding: 14px 18px; font-size: 16px; }
}

/* ---------- Buttons ---------- */
body.kcms .wp-block-button__link,
body.kcms .button,
body.kcms button.button,
body.kcms input[type="submit"],
body.kcms a.button,
body.kcms .woocommerce a.button,
body.kcms .woocommerce button.button,
body.kcms a.checkout-button.button.alt.wc-forward,
body.kcms button#place_order.button.alt,
body.kcms button.single_add_to_cart_button.button.alt,
body.kcms a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
	background: var(--kc-accent);
	color: var(--kc-accent-ink) !important;
	border: 2px solid var(--kc-accent);
	border-radius: var(--kc-btn-radius);
	font-family: var(--kc-body-font);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.01em;
	min-height: 48px;
	padding: 12px 22px;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
body.kcms .wp-block-button__link:hover,
body.kcms .button:hover,
body.kcms a.button:hover,
body.kcms input[type="submit"]:hover {
	background: var(--kc-accent-hover);
	border-color: var(--kc-accent-hover);
	color: var(--kc-accent-ink) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px var(--kc-shadow);
}
body.kcms .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--kc-outline-text) !important;
	border-color: var(--kc-outline-border);
}
body.kcms .is-style-outline .wp-block-button__link:hover {
	background: var(--kc-surface-2);
	color: var(--kc-outline-text) !important;
	border-color: var(--kc-outline-border);
}

/* ---------- Product grids (homepage blocks + shop pages) ---------- */
body.kcms .wc-block-grid__products,
body.kcms ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 32px !important;
	padding: 0;
}
body.kcms ul.products::before, body.kcms ul.products::after { display: none; }
@media (min-width: 768px) {
	body.kcms .wc-block-grid__products, body.kcms ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) {
	body.kcms .wc-block-grid__products, body.kcms ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.kcms .has-3-columns .wc-block-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.kcms .wc-block-grid__product,
body.kcms ul.products li.product {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	margin: 0 !important;
	padding: 0 0 16px !important;
	float: none !important;
	background: var(--kc-surface);
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-card-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
	font-size: 1em;
	transition: transform .18s ease, box-shadow .18s ease;
}
body.kcms .wc-block-grid__product:hover,
body.kcms ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px var(--kc-shadow); }
body.kcms .wc-block-grid__product-image,
body.kcms ul.products li.product a img { margin: 0 0 12px !important; }
body.kcms .wc-block-grid__product-image img,
body.kcms ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top center;
	background: #fff;
	border-bottom: 1px solid var(--kc-border);
	display: block;
}
body.kcms .wc-block-grid__product-title,
body.kcms h2.woocommerce-loop-product__title {
	color: var(--kc-heading) !important;
	font-family: var(--kc-body-font);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	padding: 0 14px !important;
	margin: 0 0 6px !important;
	letter-spacing: 0;
}
body.kcms .wc-block-grid__product-price,
body.kcms ul.products li.product .price {
	color: var(--kc-text);
	font-weight: 600;
	font-size: 15px;
	padding: 0 14px;
	margin: 0 0 12px !important;
}
body.kcms .woocommerce-Price-amount { color: inherit; }
body.kcms del, body.kcms del .woocommerce-Price-amount { color: var(--kc-muted); opacity: 1; }
body.kcms ins { text-decoration: none; }
body.kcms .wc-block-grid__product-add-to-cart,
body.kcms ul.products li.product .button { margin: auto 14px 0 !important; }
body.kcms .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.kcms ul.products li.product .button { width: calc(100% - 0px); font-size: 14px; min-height: 42px; padding: 10px 12px; }
body.kcms .wc-block-grid__product-onsale,
body.kcms span.onsale {
	background: var(--kc-accent);
	color: var(--kc-accent-ink);
	border: 0;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 10px;
	top: 10px; right: 10px; left: auto;
	min-height: 0; min-width: 0; line-height: 1.4;
}
@media (max-width: 480px) {
	body.kcms .wc-block-grid__product-title, body.kcms h2.woocommerce-loop-product__title { font-size: 14px; padding: 0 10px !important; }
	body.kcms .wc-block-grid__product-price, body.kcms ul.products li.product .price { padding: 0 10px; font-size: 14px; }
	body.kcms .wc-block-grid__product-add-to-cart, body.kcms ul.products li.product .button { margin: auto 10px 0 !important; }
}

/* ---------- Homepage sections ---------- */
body.kcms.home .entry-header, body.kcms.home .page-header { display: none; }
/* Let the hero sit flush under the menu instead of below the theme's top padding. */
body.kcms.home .page-area { padding-top: 0; }
body.kcms.home .single-entry-summary { margin-top: 0; }
body.kcms .kcms-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: -1px;
	padding: clamp(48px, 9vw, 112px) 20px clamp(44px, 7vw, 88px);
	background: var(--kc-hero-bg);
	color: var(--kc-hero-text);
	text-align: var(--kc-hero-align, center);
	position: relative;
	overflow: hidden;
}
body.kcms .kcms-hero > * { max-width: 760px; margin-left: var(--kc-hero-margin, auto) !important; margin-right: auto !important; position: relative; }
body.kcms .kcms-hero h1 {
	color: var(--kc-hero-heading);
	font-size: clamp(34px, 6vw, 60px);
	margin: 0 0 18px;
}
body.kcms .kcms-hero p { color: var(--kc-hero-muted); font-size: clamp(17px, 2vw, 20px); margin-bottom: 28px; }
body.kcms .kcms-hero .kcms-eyebrow {
	display: inline-block;
	color: var(--kc-eyebrow);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	margin-bottom: 18px;
}
body.kcms .kcms-hero .wp-block-buttons { justify-content: var(--kc-hero-justify, center); gap: 12px; }
@media (max-width: 480px) {
	body.kcms .kcms-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	body.kcms .kcms-hero .wp-block-button__link { width: 100%; }
}

body.kcms .kcms-trust {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin: 0 auto !important;
	padding: 18px 16px !important;
	border-bottom: 1px solid var(--kc-border);
	color: var(--kc-muted);
	font-weight: 600;
	font-size: 15px;
}
body.kcms .kcms-trust li { display: flex; align-items: center; gap: 8px; margin: 0; }
body.kcms .kcms-trust li::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	border-radius: 50%;
	background: var(--kc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.2 4.8 10l-1.1 1.1L8 15.4l8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 480px) {
	body.kcms .kcms-trust { display: grid; grid-template-columns: 1fr 1fr; font-size: 14px; gap: 10px 12px; }
}

body.kcms .kcms-section-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); margin: 56px 0 8px; }
body.kcms .kcms-section-intro { text-align: center; color: var(--kc-muted); max-width: 620px; margin: 0 auto 28px; }

body.kcms .kcms-tiles {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0 !important;
	margin: 0 0 16px !important;
}
@media (min-width: 768px) { body.kcms .kcms-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
body.kcms .kcms-tiles li { margin: 0; }
body.kcms .kcms-tiles a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 18px 18px 20px;
	background: var(--kc-surface);
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-card-radius);
	color: var(--kc-muted);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	position: relative;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
body.kcms .kcms-tiles a::after { content: "→"; position: absolute; right: 16px; top: 16px; color: var(--kc-accent); font-weight: 700; }
body.kcms .kcms-tiles a:hover { border-color: var(--kc-accent); transform: translateY(-2px); box-shadow: 0 10px 24px var(--kc-shadow); color: var(--kc-muted); }
body.kcms .kcms-tiles strong { color: var(--kc-heading); font-size: 17px; font-family: var(--kc-tile-font, var(--kc-body-font)); padding-right: 20px; }
@media (max-width: 480px) {
	body.kcms .kcms-tiles { grid-template-columns: 1fr; gap: 10px; }
	body.kcms .kcms-tiles a { padding: 14px 44px 14px 16px; }
	body.kcms .kcms-tiles a::after { top: 50%; transform: translateY(-50%); }
}

body.kcms .kcms-steps { gap: 18px; margin: 8px 0 0 !important; counter-reset: kcstep; }
body.kcms .kcms-steps > .wp-block-column {
	background: var(--kc-surface);
	border: 1px solid var(--kc-border);
	border-radius: var(--kc-card-radius);
	padding: 22px;
	counter-increment: kcstep;
}
body.kcms .kcms-steps > .wp-block-column::before {
	content: counter(kcstep);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--kc-accent); color: var(--kc-accent-ink);
	font-weight: 800; margin-bottom: 10px;
}
body.kcms .kcms-steps h3 { font-size: 20px; margin: 0 0 6px; }
body.kcms .kcms-steps p { color: var(--kc-muted); margin: 0; font-size: 15px; }

body.kcms .kcms-cta {
	margin: 56px 0 !important;
	padding: clamp(28px, 5vw, 48px) !important;
	border-radius: var(--kc-card-radius);
	background: var(--kc-cta-bg);
	color: var(--kc-cta-text);
	text-align: center;
}
body.kcms .kcms-cta h2 { color: var(--kc-cta-text); font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
body.kcms .kcms-cta p { color: var(--kc-cta-muted); max-width: 560px; margin: 0 auto 22px; }
body.kcms .kcms-cta .wp-block-buttons { justify-content: center; }

/* ---------- Content, forms, footer ---------- */
body.kcms .entry-content, body.kcms .woocommerce { color: var(--kc-text); }
body.kcms input[type="text"], body.kcms input[type="email"], body.kcms input[type="tel"],
body.kcms input[type="password"], body.kcms input[type="number"], body.kcms input[type="search"],
body.kcms select, body.kcms textarea {
	background: var(--kc-input-bg);
	color: var(--kc-text);
	border: 1px solid var(--kc-border-strong);
	border-radius: 8px;
	min-height: 44px;
	font-size: 16px;
}
body.kcms .woocommerce-product-details__short-description, body.kcms .product_meta { color: var(--kc-text); font-size: 1.02em; }
/* Sheet-music images are transparent PNGs: always show them on paper white. */
body.kcms .woocommerce-product-gallery img,
body.kcms .woocommerce-product-gallery__image,
body.kcms ul.products li.product-category a img { background: #fff; }
body.kcms .woocommerce-product-gallery { border-radius: var(--kc-card-radius); overflow: hidden; border: 1px solid var(--kc-border); }
/* Category cards on the catalog page. */
body.kcms ul.products li.product-category a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
body.kcms h2.woocommerce-loop-category__title {
	background: var(--kc-surface) !important;
	color: var(--kc-heading) !important;
	font-family: var(--kc-body-font);
	font-size: 15px;
	font-weight: 700;
	margin: 0 !important;
	padding: 12px 14px !important;
	position: static !important;
	text-align: left;
	opacity: 1 !important;
}
body.kcms h2.woocommerce-loop-category__title .count { background: transparent; color: var(--kc-muted); font-weight: 600; }
body.kcms .woocommerce div.product .product_title { font-size: clamp(26px, 4vw, 38px); }
body.kcms .woocommerce div.product p.price { color: var(--kc-heading); font-weight: 700; }
body.kcms table.shop_table, body.kcms .cart_totals, body.kcms .woocommerce-checkout-review-order { background: var(--kc-surface); color: var(--kc-text); border-color: var(--kc-border); }

body.kcms #content-footer-section { background: var(--kc-footer-bg); color: var(--kc-footer-text); }
body.kcms .footer-credits,
body.kcms footer#colophon {
	background: var(--kc-footer-bg);
	color: var(--kc-footer-text);
	border-top: 1px solid var(--kc-border);
	padding: 26px 0 90px; /* room for the staging preview bar */
	font-size: 14px;
}
body.kcms .footer-credits-text { color: var(--kc-footer-text); }
body.kcms .wp-block-separator { border-color: var(--kc-border); opacity: 1; }
