/*
Theme Name: YRS Modern
Theme URI: https://store2.yrsmidi.com/
Author: YRS MIDI
Description: Modern WooCommerce theme for high-conversion music retail.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: yrs-modern
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5b6778;
  --primary: #0f62fe;
  --primary-strong: #0043ce;
  --accent: #11a37f;
  --ring: rgba(15, 98, 254, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  --container: min(1200px, 92vw);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e8f0ff 0%, #f6f8fb 46%, #f3f6fb 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.yrs-container { width: var(--container); margin: 0 auto; }
.yrs-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 251, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(17,24,39,.08); transition: box-shadow .2s ease; }
.yrs-header.is-scrolled { box-shadow: 0 8px 24px rgba(17,24,39,.08); }
.yrs-header-top { background: #111827; color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; }
.yrs-header-main { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 20px; padding: 16px 0; }
.yrs-logo { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; }
.yrs-nav-list { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; font-weight: 600; color: var(--muted); }
.yrs-nav-list a:hover { color: var(--text); }
.yrs-header-tools { display: flex; align-items: center; gap: 12px; }
.yrs-search form { display: flex; align-items: center; background: var(--surface); border: 1px solid rgba(17,24,39,.12); border-radius: 999px; overflow: hidden; }
.yrs-search input[type="search"] { border: 0; background: transparent; padding: 10px 12px; width: 200px; outline: 0; }
.yrs-search button { border: 0; background: var(--primary); color: #fff; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.yrs-cart { background: #111827; color: #fff; padding: 10px 14px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.yrs-cart span { background: #fff; color: #111827; min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; }
.yrs-main { min-height: 60vh; }
.yrs-hero { padding: 52px 0 24px; }
.yrs-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: stretch; }
.yrs-kicker { color: var(--primary-strong); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.yrs-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 8px 0 16px; }
.yrs-hero p { color: var(--muted); max-width: 62ch; }
.yrs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.yrs-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; }
.yrs-btn-primary { background: var(--primary); color: #fff; }
.yrs-btn-primary:hover { background: var(--primary-strong); }
.yrs-btn-ghost { background: transparent; border-color: rgba(17,24,39,.2); }
.yrs-hero-panel { background: linear-gradient(140deg, #111827, #1f2f49); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.yrs-hero-panel h2 { font-family: 'Sora', sans-serif; margin-top: 0; font-size: 1.3rem; }
.yrs-hero-panel ul { margin: 0; padding-left: 18px; }
.yrs-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px auto 36px; }
.yrs-strip-grid article { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; border: 1px solid rgba(17,24,39,.08); }
.yrs-strip-grid h3 { margin: 0 0 8px; font-family: 'Sora', sans-serif; }
.yrs-strip-grid p { margin: 0; color: var(--muted); }
.yrs-section { margin: 36px auto; }
.yrs-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.yrs-section-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.yrs-section-head a { color: var(--primary-strong); font-weight: 700; }
.woocommerce ul.products { margin: 0 !important; display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--surface); border: 1px solid rgba(17,24,39,.08); border-radius: var(--radius-sm); padding: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { border-radius: 10px; margin-bottom: 12px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; line-height: 1.35; min-height: 2.7em; }
.woocommerce ul.products li.product .price { color: #111827 !important; font-weight: 800 !important; }
.woocommerce ul.products li.product a.button { width: 100%; text-align: center; background: var(--primary) !important; color: #fff !important; border-radius: 10px !important; font-weight: 800 !important; }
.woocommerce .quantity .qty, .woocommerce input[type="number"], .woocommerce input[type="text"], .woocommerce input[type="email"], .woocommerce input[type="password"], .woocommerce textarea, .woocommerce select { border-radius: 10px; border: 1px solid rgba(17,24,39,.2); padding: 10px 12px; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { border-radius: 10px !important; font-weight: 800 !important; }
.single-product div.product { background: var(--surface); border: 1px solid rgba(17,24,39,.08); border-radius: var(--radius); padding: 20px; }
.yrs-content { background: var(--surface); margin: 28px auto; border-radius: var(--radius); padding: 24px; border: 1px solid rgba(17,24,39,.08); }
.yrs-newsletter { margin: 42px 0 18px; background: linear-gradient(125deg, #0f62fe, #11a37f); color: #fff; padding: 42px 0; }
.yrs-newsletter h2 { margin: 0 0 8px; font-family: 'Sora', sans-serif; font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.yrs-newsletter p { margin-top: 0; max-width: 56ch; }
.yrs-footer { margin-top: 30px; background: #0f172a; color: #d7deea; }
.yrs-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 34px 0; }
.yrs-footer h3 { color: #fff; margin: 0 0 8px; font-family: 'Sora', sans-serif; }
.yrs-footer ul { list-style: none; padding: 0; margin: 0; }
.yrs-footer li { margin: 6px 0; }
.yrs-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: 13px; padding: 14px 12px; }
@media (max-width: 1100px) {
  .yrs-header-main { grid-template-columns: 1fr; gap: 12px; }
  .yrs-nav-list { flex-wrap: wrap; }
  .yrs-search input[type="search"] { width: 100%; }
  .yrs-hero-grid, .yrs-footer-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .yrs-strip-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .yrs-hero { padding-top: 26px; }
}

.yrs-urgency { background: linear-gradient(90deg, #0f62fe, #0043ce); color: #fff; }
.yrs-urgency .yrs-container { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 10px 0; }
.yrs-urgency p { margin: 0; font-size: 14px; }
.yrs-urgency a { color: #fff; font-weight: 800; text-decoration: underline; }
.yrs-social-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px auto 20px; }
.yrs-social-proof article { background: #fff; border: 1px solid rgba(17,24,39,.08); border-radius: 12px; padding: 18px; text-align: center; }
.yrs-social-proof h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 1.75rem; }
.yrs-social-proof p { margin: 6px 0 0; color: var(--muted); }
.yrs-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.yrs-newsletter-form input[type="email"] { min-width: 270px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.17); color: #fff; border-radius: 10px; padding: 11px 12px; }
.yrs-newsletter-form input::placeholder { color: rgba(255,255,255,.85); }
.yrs-newsletter-msg { margin-top: 10px; font-weight: 700; }
.yrs-page-hero { padding: 30px 0 12px; }
.yrs-page-hero h1 { margin: 4px 0 6px; font-family: 'Sora', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.yrs-flow-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin: 6px auto 28px; }
.yrs-flow-main { background: #fff; border: 1px solid rgba(17,24,39,.08); border-radius: 16px; padding: 20px; }
.yrs-flow-aside { background: linear-gradient(140deg, #111827, #1f2f49); color: #fff; border-radius: 16px; padding: 20px; }
.yrs-flow-aside h3 { margin-top: 0; font-family: 'Sora', sans-serif; }
.yrs-flow-aside ul { margin: 0; padding-left: 18px; }
.yrs-product-shell { margin: 8px auto 26px; }
.yrs-product-shell .product { background: #fff; border: 1px solid rgba(17,24,39,.08); border-radius: 16px; padding: 22px; }
.yrs-product-shell div.product .images img { border-radius: 12px; }
.yrs-product-shell div.product .summary .price { font-size: 1.25rem; font-weight: 800; color: #111827; }
.yrs-single-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.yrs-single-highlights span { background: rgba(17,24,39,.06); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: #243042; }
.woocommerce-cart table.shop_table,
.woocommerce-checkout .woocommerce table.shop_table,
.woocommerce-checkout form.checkout,
.woocommerce-cart .cart_totals,
.woocommerce-checkout #payment {
  border: 1px solid rgba(17,24,39,.1) !important;
  border-radius: 14px !important;
  background: #fff;
}
.woocommerce-cart .cart_totals,
.woocommerce-checkout #payment { padding: 16px !important; }
.woocommerce .checkout-button,
.woocommerce #payment #place_order { background: var(--primary) !important; color: #fff !important; font-weight: 800 !important; border-radius: 10px !important; }
.yrs-utility-banner { margin: 0 0 14px; }
.yrs-utility-banner .yrs-container { background: #e9f2ff; color: #0c3d93; border: 1px solid #c9dcff; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
@media (max-width: 920px) {
  .yrs-social-proof, .yrs-flow-grid { grid-template-columns: 1fr; }
  .yrs-urgency .yrs-container { flex-direction: column; align-items: flex-start; }
}


.yrs-logo .custom-logo { width: auto; height: 52px; max-width: 260px; }
.yrs-nav-core { align-items: center; }
.yrs-mega-toggle {
  border: 0;
  background: #111827;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}
.yrs-mega-toggle:hover { background: #1f2937; }

.yrs-mega-panel {
  border-top: 1px solid rgba(17,24,39,.08);
  border-bottom: 1px solid rgba(17,24,39,.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.yrs-mega-panel .yrs-container { padding: 16px 0 20px; }
.yrs-mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.yrs-mega-head h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
}
.yrs-mega-head a { color: var(--primary-strong); font-weight: 700; }
.yrs-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.yrs-mega-card {
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 12px;
  padding: 12px;
}
.yrs-mega-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-family: 'Sora', sans-serif;
}
.yrs-mega-card h3 a { color: #111827; }
.yrs-mega-card ul { list-style: none; margin: 0; padding: 0; }
.yrs-mega-card li { margin: 6px 0; }
.yrs-mega-card li a { color: #4b5563; font-size: 14px; }
.yrs-mega-card li a:hover { color: var(--primary-strong); }

.yrs-brand-strip-wrap {
  border-top: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.9);
}
.yrs-brand-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.yrs-brand-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}
.yrs-brand-links {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.yrs-brand-links a {
  white-space: nowrap;
  border: 1px solid rgba(17,24,39,.14);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}
.yrs-brand-links a:hover { border-color: var(--primary); color: var(--primary-strong); }

@media (max-width: 1100px) {
  .yrs-logo .custom-logo { height: 42px; }
  .yrs-nav-core { flex-wrap: wrap; }
  .yrs-mega-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .yrs-header-tools { flex-direction: column; align-items: stretch; }
  .yrs-search input[type="search"] { width: 100%; }
  .yrs-mega-grid { grid-template-columns: 1fr; }
  .yrs-brand-strip { flex-direction: column; align-items: flex-start; }
}

/* HEADER POLISH V4 */
.yrs-header-top {
  font-size: 12px;
  padding: 7px 10px;
}
.yrs-header-main {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px 0;
}
.yrs-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}
.yrs-logo-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.yrs-logo-mark .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.yrs-logo-mark .custom-logo {
  height: clamp(46px, 5vw, 64px);
  width: auto;
  max-width: none;
  border-radius: 10px;
}
.yrs-logo-fallback {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}
.yrs-nav {
  min-width: 0;
}
.yrs-nav-core {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
}
.yrs-mega-toggle {
  padding: 9px 14px;
}
.yrs-nav-core > a {
  font-size: 14px;
  color: #334155;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
}
.yrs-nav-core > a:hover {
  color: #0f62fe;
  background: #eaf1ff;
}
.yrs-header-tools {
  justify-self: end;
  gap: 8px;
}
.yrs-search form {
  border-radius: 999px;
}
.yrs-search input[type="search"] {
  width: 165px;
  padding: 9px 11px;
}
.yrs-search button {
  padding: 9px 12px;
}
.yrs-cart {
  padding: 9px 13px;
}
@media (max-width: 1100px) {
  .yrs-header-main {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .yrs-logo-mark .custom-logo {
    height: clamp(42px, 10vw, 56px);
  }
  .yrs-header-tools {
    justify-self: stretch;
  }
  .yrs-search input[type="search"] {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .yrs-nav-core {
    gap: 8px;
  }
  .yrs-nav-core > a {
    font-size: 13px;
    padding: 6px 9px;
  }
}


/* HEADER CONTRAST V5 */
.yrs-header-main {
  background: linear-gradient(90deg, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.92) 240px, rgba(255,255,255,0) 360px);
  border-radius: 14px;
  padding-left: 10px;
  padding-right: 10px;
}
.yrs-logo {
  padding: 6px 8px;
  border-radius: 12px;
}
.yrs-logo-mark .custom-logo-link {
  background: linear-gradient(145deg, #0b1220, #1e293b);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(15,23,42,.35);
}
.yrs-logo-mark .custom-logo {
  border-radius: 8px;
}
.yrs-nav-core > a {
  color: #1f2937;
}
.yrs-mega-toggle {
  box-shadow: 0 3px 10px rgba(17,24,39,.18);
}
@media (max-width: 1100px) {
  .yrs-header-main {
    background: linear-gradient(180deg, rgba(15,23,42,0.98) 0%, rgba(15,23,42,0.9) 76px, rgba(255,255,255,0) 160px);
  }
}
