/* ===================================================================
   Luke Music — Store (WooCommerce) styles
   =================================================================== */

.wc-main { display: block; }

/* ===== Store hero ===== */
.store-hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.store-hero-glow {
  position: absolute; top: -10%; right: -15%; width: 60%; height: 90%;
  background: radial-gradient(closest-side, oklch(0.55 0.10 75 / 0.18), transparent 70%);
  pointer-events: none;
}

/* ===== Featured bundle ===== */
.featured-bundle {
  background: linear-gradient(180deg, oklch(0.30 0.06 70) 0%, var(--surface) 100%);
  border: 1px solid var(--gold); border-radius: var(--rad-xl);
  padding: clamp(24px, 3vw, 36px);
}
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.fb-save {
  padding: 4px 12px; border-radius: 999px;
  background: var(--gold); color: #14110D;
  font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
.fb-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 36px; align-items: center; }
.fb-cover {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--rad-lg);
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
}
.fb-body { display: flex; flex-direction: column; gap: 14px; }
.fb-price { display: flex; align-items: baseline; gap: 12px; }
.fb-now { font-family: var(--font-serif); font-size: 44px; line-height: 1; color: var(--gold); }
.fb-was { font-size: 15px; color: var(--fg-dim); text-decoration: line-through; }
.fb-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ===== Store head / search ===== */
.store-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.store-search { position: relative; min-width: 260px; }
.store-search input { padding-left: 42px; }
.store-search .search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--fg-dim); display: flex;
}

/* ===== Filters ===== */
.store-filters {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; font-size: 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--fg-muted);
  transition: all .15s;
}
.chip:hover { border-color: var(--fg-muted); color: var(--fg); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #14110D; font-weight: 600; }
.store-sort { display: flex; align-items: center; gap: 12px; }
.store-sort select,
.woocommerce-ordering select {
  width: auto; padding: 8px 36px 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--fg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C8BFAE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.woocommerce-ordering { margin: 0; }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
ul.products { list-style: none; padding: 0; margin: 0; display: contents; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .35s ease, opacity .35s ease;
}
/* Product cards carry WooCommerce's `div.product` class; on single-product
   pages WooCommerce styles `div.product` as a grid, which would break the
   related-products cards. This override keeps every card as a flex column. */
.woocommerce div.product.product-card,
.woocommerce-page div.product.product-card {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pc-cover {
  position: relative; display: block;
  width: 100%; flex-shrink: 0;
  aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--surface-2);
}
.pc-cover .media-img,
.pc-cover img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .pc-cover .media-img { transform: scale(1.04); }

/* AJAX loading state */
.product-grid { transition: opacity .2s ease; }
.product-grid.is-loading { opacity: 0.45; pointer-events: none; }
.pc-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14,13,11,0.6); border: 1px solid var(--line-strong);
  font-size: 10px; font-family: var(--font-mono); color: var(--fg);
  letter-spacing: 0.05em;
}
.pc-sale {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold); color: #14110D;
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
}
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pc-title { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; font-weight: 400; }
.pc-title a { color: inherit; }
.pc-title a:hover { color: var(--gold-2); }
.pc-sub { font-size: 12.5px; margin: 0; }
.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
}
.pc-price { font-family: var(--font-serif); font-size: 22px; color: var(--fg); }
.pc-price del { color: var(--fg-dim); font-size: 13px; }
.pc-price ins { text-decoration: none; color: var(--gold); }
.pc-add {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--fg); color: #14110D;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.pc-add:hover { background: var(--gold); }
.pc-add.loading { opacity: 0.6; pointer-events: none; }
.pc-add.added { background: var(--gold); }

/* WooCommerce "Newest Products" block grid — pixel-matched to .product-card.
   The block's DOM differs from content-product.php, so the card is rebuilt:
   a full-width product link (cover + title) on top, then a footer row that
   wraps below with the price on the left and the add-to-cart on the right. */
.wc-block-grid .wc-block-grid__products {
  list-style: none; margin: 0; padding: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
/* Card shell — mirrors .product-card */
.wc-block-grid .wc-block-grid__product {
  display: flex; flex-wrap: wrap;
  align-items: center; align-content: space-between;
  width: auto !important; max-width: none !important;
  margin: 0 !important; padding: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .35s ease;
}
/* Drop WooCommerce's fixed 25% column width — the grid handles sizing. */
.wc-block-grid.has-4-columns .wc-block-grid__product,
.theme-twentytwenty .wc-block-grid.has-4-columns .wc-block-grid__product {
  width: auto !important; max-width: none !important;
}
.wc-block-grid .wc-block-grid__product:hover {
  border-color: var(--line-strong); transform: translateY(-2px);
}
/* Cover + title share the link, which spans the full card width */
.wc-block-grid .wc-block-grid__product-link {
  flex: 1 1 100%;
  display: block; color: inherit; text-decoration: none;
}
.wc-block-grid .wc-block-grid__product-image {
  position: relative; margin: 0; padding: 0;
  width: 100%; aspect-ratio: 16 / 11;
  background: var(--surface-2); overflow: hidden;
}
.wc-block-grid .wc-block-grid__product-image img {
  position: absolute; inset: 14px;
  width: calc(100% - 28px); height: calc(100% - 28px);
  margin: 0; object-fit: contain;
  transition: transform .4s ease;
}
.wc-block-grid .wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.04);
}
.wc-block-grid .wc-block-grid__product-title {
  font-family: var(--font-serif); font-size: 20px;
  line-height: 1.2; font-weight: 400; color: var(--fg);
  margin: 0; padding: 20px 20px 0;
  text-align: center; text-decoration: none !important;
  transition: color .15s ease;
}
.wc-block-grid .wc-block-grid__product-link:hover .wc-block-grid__product-title {
  color: var(--gold-2);
}
/* Footer row — price left, add-to-cart right, pinned to the card bottom */
.wc-block-grid .wc-block-grid__product-price {
  flex: 1 1 auto;
  font-family: var(--font-serif); font-size: 22px; color: var(--fg);
  margin: 0; padding: 18px 0 20px 20px;
}
.wc-block-grid .wc-block-grid__product-price del { color: var(--fg-dim); font-size: 13px; }
.wc-block-grid .wc-block-grid__product-price ins { text-decoration: none; color: var(--gold); }
.wc-block-grid .wc-block-grid__product-add-to-cart {
  flex: 0 0 auto;
  margin: 0; padding: 18px 20px 20px 0;
}
.wc-block-grid .wc-block-grid__product-rating { display: none; }
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 38px; height: 38px; min-height: 0; min-width: 0; padding: 0;
  margin: 0; border: 0; border-radius: 999px;
  background: var(--fg) !important; color: #14110D !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0; text-decoration: none !important;
  transition: background .15s ease;
}
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link::before {
  content: "+";
  font-size: 22px; font-weight: 400; line-height: 1;
}
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link.loading,
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link.added {
  background: var(--gold) !important;
}

/* Cart line-item thumbnails — show the whole image, not a crop. */
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
  object-fit: contain;
}

/* Order summary thumbnails — show the whole image, not a crop. */
.wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
  object-fit: contain;
}

/* Breathing room around the checkout order-summary blocks. */
.wp-block-woocommerce-checkout-order-summary-totals-block,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.wc-block-components-totals-wrapper {
  padding: 20px 24px;
}

.store-empty {
  padding: 64px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--rad-lg);
}
.store-trust {
  margin-top: 64px; padding: clamp(24px, 3vw, 36px);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--rad-xl);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

/* WooCommerce loop niceties */
.woocommerce-result-count { color: var(--fg-dim); font-size: 13px; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ===================================================================
   Single product
   =================================================================== */
.single-product div.product {
  max-width: 1480px; margin: 0 auto; padding: 48px var(--pad) 0;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 72px; align-items: start;
}
.single-product .product .summary.entry-summary { margin: 0; }
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  width: 100%;
  float: none;
  margin: 0;
}
/* Breadcrumb */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce-page .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px var(--pad) 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}
.woocommerce-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--fg-dim);
  transition: color .15s ease;
}
.woocommerce-breadcrumb a:hover {
  color: var(--gold);
}
.woocommerce-breadcrumb .breadcrumb-sep {
  color: var(--fg-dim);
  opacity: 0.45;
  padding: 0 7px;
}

.single-product .woocommerce-product-gallery {
  position: sticky; top: 100px; margin: 0; float: none; width: 100% !important;
}
.single-product .woocommerce-product-gallery__image {
  border-radius: var(--rad-xl); overflow: hidden; border: 1px solid var(--line);
}
.single-product .flex-control-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px !important;
}
.woocommerce img,
.woocommerce-page img {
  height: 100%;
}
.single-product .product_title.entry-title {
  font-family: var(--font-serif); font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 400;
}
.single-product .woocommerce-product-details__short-description {
  color: var(--fg-muted); font-size: 16px; margin-top: 18px;
}
.single-product p.price,
.single-product .woocommerce-Price-amount {
  font-family: var(--font-serif);
}
.single-product p.price {
  font-size: clamp(32px, 4vw, 44px); color: var(--fg); margin: 24px 0;
}
.single-product p.price del { color: var(--fg-dim); font-size: 0.5em; }
.single-product p.price ins { text-decoration: none; color: var(--gold); }
.single-product .quantity input.qty {
  width: 64px; text-align: center; height: 52px;
}
.single-product form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin: 24px 0; }
.single-product .single_add_to_cart_button {
  flex: 1 1 220px;
  max-width: 250px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--gold); color: #14110D;
  font-weight: 600; font-size: 14.5px; border: none; cursor: pointer;
  transition: background .2s;
}
.single-product .single_add_to_cart_button:hover { background: var(--gold-2); }
.single-product .product_meta { font-size: 13px; color: var(--fg-dim); margin-top: 20px; }
.single-product .product_meta a { color: var(--fg-muted); }

/* Product tabs */
.woocommerce-tabs {
  grid-column: 1 / -1; max-width: 1480px;
  margin: 64px auto 0; padding: 0;
}

/* Styled donation button (replaces the raw PayPal image) */
.donate-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 12px 22px; font-family: var(--font-sans);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.donate-btn svg { color: var(--gold); transition: transform .2s ease; }
.donate-btn:hover {
  background: rgba(242,236,223,0.05);
  border-color: var(--gold);
}
.donate-btn:hover svg { transform: scale(1.12); }
.single-product form[action*="paypal"] { margin: 8px 0 20px; }
.woocommerce-tabs ul.tabs {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a {
  display: block; padding: 14px 20px; font-size: 14px;
  color: var(--fg-muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-weight: 400;
}
.woocommerce-tabs ul.tabs li a::before { display: none !important; }
.woocommerce-tabs ul.tabs li.active { background: transparent !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--fg) !important; border-bottom-color: var(--gold); font-weight: 600; }
.woocommerce-tabs ul.tabs::before { border-color: var(--line) !important; }
.woocommerce-tabs .panel { color: var(--fg-muted); max-width: 72ch; }
.woocommerce-tabs .panel h2 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 12px; }
.woocommerce-tabs iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--rad-lg); border: 1px solid var(--line); }

/* Related products — identical card grid to the shop archive */
.related-products {
  grid-column: 1 / -1;
  max-width: 1480px;
  margin: 88px auto 56px;
  padding: 56px var(--pad) 0;
  border-top: 1px solid var(--line);
}
.related-products > h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.related-products > h2 em { color: var(--gold-2); font-style: italic; }
.related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===================================================================
   Cart & Checkout & Account
   =================================================================== */
.woocommerce-cart .wc-main,
.woocommerce-checkout .wc-main,
.woocommerce-account .wc-main {
  max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 120px;
}
.woocommerce-cart h1, .woocommerce-checkout h1, .woocommerce-account h1,
.wc-page-title {
  font-family: var(--font-serif); font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; letter-spacing: -0.02em; margin-bottom: 32px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--line); border-radius: var(--rad-lg);
  border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--surface); width: 100%;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 16px 18px; border-top: 1px solid var(--line);
  color: var(--fg-muted); font-size: 14px;
}
.woocommerce table.shop_table thead th { color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border-top: none; }
.woocommerce table.shop_table .product-name a { color: var(--fg); }
.woocommerce a.remove {
  color: var(--fg-dim) !important; border: 1px solid var(--line);
}
.woocommerce a.remove:hover { background: var(--gold) !important; color: #14110D !important; }

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rad-xl); padding: clamp(20px, 2.5vw, 28px);
}
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: var(--font-serif); font-size: 26px; font-weight: 400; margin-bottom: 16px;
}
.woocommerce-checkout #payment {
  background: var(--bg-2); border-radius: var(--rad-lg); border: 1px solid var(--line);
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.woocommerce #payment .place-order { padding: 16px; }

.woocommerce form .form-row label { font-size: 12px; color: var(--fg-dim); }
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce-MyAccount-downloads .woocommerce-MyAccount-downloads-file,
.woocommerce-MyAccount-downloads td .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #14110D;
  border-radius: 999px; padding: 13px 22px;
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button { margin-top: 15px !important; }
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce-MyAccount-downloads .woocommerce-MyAccount-downloads-file:hover,
.woocommerce-MyAccount-downloads td .button:hover { background: var(--gold-2); }
.woocommerce table.my_account_orders .button { text-decoration: none !important; }
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  background: var(--gold) !important;
  color: #14110D !important;
  text-align: center !important;
}
.woocommerce #place_order,
.woocommerce button.button.alt {
  background: var(--gold); color: #14110D; width: 100%;
}
.woocommerce .button.wc-backward,
.woocommerce a.button.wc-forward.button--outline {
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg);
}

.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce-notice {
  background: var(--surface) !important;
  border-left: 3px solid var(--gold) !important;
  color: var(--fg-muted) !important;
  border-radius: var(--rad);
  padding: 14px 18px !important;
}
.woocommerce-message a, .woocommerce-info a { color: var(--gold) !important; }

/* Account navigation */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a {
  display: block; padding: 12px 16px; border-radius: var(--rad);
  color: var(--fg-muted);
}
.woocommerce-MyAccount-navigation li.is-active a { background: var(--surface); color: var(--fg); }

/* ===================================================================
   WooCommerce Blocks — Cart & Checkout
   =================================================================== */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-components-sidebar-layout {
  color: var(--fg-muted);
}
.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title {
  font-family: var(--font-serif) !important;
  color: var(--fg) !important;
  font-weight: 400 !important;
}
.wp-block-woocommerce-cart-order-summary-heading-block .wc-block-cart__totals-title { margin-top: 0 !important; }
.wc-block-components-checkout-step__heading-content { color: var(--fg-dim); }

/* Text inputs / selects */
.wc-block-components-text-input input,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-address-form input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox input,
.wc-block-components-quantity-selector input {
  background: var(--bg) !important;
  border: 1px solid var(--line) !important;
  color: var(--fg) !important;
  border-radius: 10px !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input label {
  color: var(--fg-dim) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-address-form input:focus {
  border-color: var(--gold) !important;
  box-shadow: none !important;
  outline: none !important;
}
.wc-block-components-text-input.is-active input {
  background: var(--bg) !important;
}

/* Panels */
.wc-block-components-sidebar,
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-totals-item {
  color: var(--fg-muted);
}
.wc-block-components-panel,
.wc-block-checkout__sidebar > .wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--rad-lg) !important;
}
.wc-block-components-order-summary,
.wc-block-components-totals-item__label,
.wc-block-components-product-name { color: var(--fg-muted) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--fg) !important; font-family: var(--font-serif);
}
.wc-block-components-product-price,
.wc-block-formatted-money-amount { color: var(--fg); }

/* Buttons */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--gold) !important;
  color: #14110D !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: none !important;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--gold-2) !important; }
.wc-block-components-button.is-link { color: var(--gold) !important; background: transparent !important; }

/* Cart: prominent "Proceed to Checkout" button */
.wc-block-cart__submit-container { margin-top: 8px; }
.wc-block-cart__submit-button,
a.wc-block-cart__submit-button {
  display: flex !important;
  align-items: center; justify-content: center;
  width: 100% !important;
  min-height: 56px;
  padding: 16px 28px !important;
  font-size: 15px !important;
  letter-spacing: -0.005em;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  transition: background .2s ease, transform .15s ease;
}
.wc-block-cart__submit-button:active { transform: translateY(1px); }

/* Cart: coupon field breathing room */
.wc-block-components-totals-coupon {
  padding: 8px 4px 4px !important;
}
.wc-block-components-totals-coupon__form,
.wc-block-components-totals-coupon .wc-block-components-text-input {
  margin-top: 6px !important;
}
.wc-block-components-totals-coupon .wc-block-components-text-input input {
  padding: 14px 16px !important;
}
.wc-block-components-totals-coupon__button {
  padding: 12px 22px !important;
  margin-left: 8px !important;
}
.wc-block-components-panel__button {
  padding: 14px 4px !important;
  color: var(--fg) !important;
}

/* Checkout: roomier steps and fields */
.wc-block-components-checkout-step,
.wc-block-checkout__form .wc-block-components-checkout-step {
  border-color: var(--line) !important;
  padding: 28px 0 !important;
}
.wc-block-components-checkout-step__container { padding-top: 8px; }
.wc-block-components-address-form .wc-block-components-text-input,
.wc-block-checkout__form .wc-block-components-text-input,
.wc-block-components-address-form > * { margin-top: 16px !important; }
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-panel { padding: 24px !important; }
.wc-block-checkout__sidebar { gap: 16px; }
.wc-block-components-order-summary-item { padding: 14px 0 !important; }
.wc-block-checkout__actions { padding: 24px 0 8px !important; }
.wc-block-checkout__actions_row { margin-top: 25px; }
.wc-block-components-totals-item { border-color: var(--line) !important; padding: 10px 0 !important; }
.wc-block-checkout__actions,
.wc-block-components-checkout-return-to-cart-button { color: var(--fg-muted) !important; }

/* ===================================================================
   My Tabs — members' library + AlphaTab player
   =================================================================== */
.tabs-intro { margin: 0 0 28px; max-width: 60ch; }
.tabs-empty {
  padding: 56px 32px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--rad-lg);
}
.tabs-empty h3 {
  font-family: var(--font-serif); font-size: 28px; font-weight: 400;
  margin-bottom: 10px;
}
.tabs-empty .btn { margin-top: 20px; }

/* The account screens need the full content width, not the 70ch prose cap. */
.woocommerce-account .entry-content,
.woocommerce-account .page-shell .container { max-width: var(--max); }
.woocommerce-account .page-shell { padding-top: clamp(40px, 6vw, 80px); }

/* Library — a grid of product cards */
.tabs-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.tab-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rad-lg); padding: 22px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.tab-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tab-item-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tab-thumb {
  width: 72px; height: 56px; flex-shrink: 0;
  border-radius: var(--rad-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.tab-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.tab-item-meta h3 {
  font-family: var(--font-serif); font-size: 20px; font-weight: 400;
  line-height: 1.2; margin-bottom: 5px;
}
.tab-files { display: grid; gap: 10px; }
.tab-file {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--rad);
}
.tab-file-name {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--fg);
}
.tab-file-name svg { color: var(--gold); flex-shrink: 0; }
.tab-file-kind {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.07em; color: var(--fg-dim);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 3px 7px; margin-left: 2px;
}
.tab-file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-file-actions .btn { flex: 0 0 auto; }
.tab-file-none { margin: 0; font-size: 14px; }

/* ===================================================================
   Full-screen AlphaTab player
   =================================================================== */
.player-screen { background: var(--bg-2); min-height: 70vh; }
.player-bar {
  position: sticky; top: 72px; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 14px var(--pad);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.player-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--fg-muted);
  transition: color .15s ease;
}
.player-back:hover { color: var(--gold); }
.player-titles { display: flex; flex-direction: column; line-height: 1.25; }
.player-name { font-family: var(--font-serif); font-size: 19px; color: var(--fg); }
.player-sub { font-size: 12px; color: var(--fg-dim); }
.player-controls {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.gp-ctl {
  width: 42px; height: 42px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #14110D;
  transition: background .15s ease, opacity .15s ease;
}
.gp-ctl:hover:not(:disabled) { background: var(--gold-2); }
.gp-ctl.gp-stop { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line-strong); }
.gp-ctl:disabled { opacity: 0.4; cursor: default; }
.player-status {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--fg-dim);
  min-width: 86px;
}
.player-stage {
  position: relative; z-index: 0;
  min-height: calc(100vh - 200px);
  padding: 28px var(--pad) 64px;
  background: #f4f1e8;
}
.player-stage .at-surface { margin: 0 auto; }
.player-loading {
  text-align: center; padding: 80px 16px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; color: #8a8270;
}
.player-message {
  max-width: 540px; margin: 0 auto; padding: 96px var(--pad);
  text-align: center;
}
.player-message .btn { margin-top: 22px; }

/* Player transport — toggles, divider, speed */
.player-divider {
  width: 1px; height: 26px;
  background: var(--line-strong);
  margin: 0 2px;
}
.gp-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--fg-muted);
  border: 1px solid var(--line-strong);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gp-toggle:hover:not(:disabled) { color: var(--fg); border-color: var(--fg-muted); }
.gp-toggle.is-active {
  background: var(--gold); color: #14110D; border-color: var(--gold);
}
.gp-toggle:disabled { opacity: 0.4; cursor: default; }
.player-speed { display: inline-flex; align-items: center; gap: 8px; }
.player-speed-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim);
}
.player-speed select {
  width: auto; padding: 9px 30px 9px 13px;
  font-size: 13px; border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23C8BFAE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.player-speed select:disabled { opacity: 0.4; }

/* AlphaTab playback cursor + highlighting */
.player-stage .at-cursor-bar { background: rgba(201, 160, 80, 0.17); }
.player-stage .at-cursor-beat { background: #b9802a; width: 3px; }
.player-stage .at-selection div { background: rgba(201, 160, 80, 0.12); }
.player-stage .at-highlight * { fill: #b06f1e; stroke: #b06f1e; }

/* Account screens render inside .entry-content prose — keep buttons clean */
.woocommerce-account .entry-content a.btn { text-decoration: none; }
.woocommerce-account .entry-content a.btn-gold { color: #14110D; }
.woocommerce-account .entry-content a.btn-ghost { color: var(--fg); }
.woocommerce-account .entry-content a.btn-ghost:hover { color: var(--fg); }

/* Sign-in chip in the header */
.account-link {
  display: inline-flex; align-items: center; gap: 7px;
}
.account-link svg { flex-shrink: 0; }

/* ===================================================================
   Guitar Pro / in-browser player advertising
   =================================================================== */
.gp-promo {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(180deg, oklch(0.27 0.045 70) 0%, var(--surface) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--rad-xl);
}
.gp-promo-text {
  display: flex; align-items: center; gap: 24px;
  flex: 1 1 0; min-width: 0;
}
.gp-promo-shot {
  flex: 0 0 44%; max-width: 44%;
  border-radius: var(--rad-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  line-height: 0;
}
.gp-promo-shot img { width: 100%; height: auto; display: block; }
.gp-promo-icon {
  width: 62px; height: 62px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #14110D;
}
.gp-promo-body .eyebrow { margin-bottom: 8px; }
.gp-promo-body h3 { margin-bottom: 8px; }
.gp-promo-body p { margin: 0; max-width: 74ch; font-size: 14.5px; }
.gp-promo-try { margin-top: 18px; }

/* GP chip on shop archive cards */
.pc-gp {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--gold); color: #14110D;
  font-family: var(--font-mono); font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.pc-gp svg { color: #14110D; }

/* Single product callout */
.gp-callout {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--rad-lg);
}
.gp-callout-head { display: flex; gap: 14px; align-items: flex-start; }
.gp-callout-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(242, 236, 223, 0.06); color: var(--gold);
}
.gp-callout-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 400;
  line-height: 1.2; margin-top: 3px;
}
.gp-callout-text { color: var(--fg-muted); font-size: 14px; line-height: 1.6; margin: 13px 0 14px; }
.gp-callout .btn { text-decoration: none; }
.gp-callout-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--fg-dim);
}
.gp-callout-tag svg { color: var(--gold); }

@media (max-width: 860px) {
  .gp-promo { flex-direction: column; align-items: stretch; gap: 22px; }
  .gp-promo-shot { flex: 1 1 auto; max-width: 100%; }
}
@media (max-width: 560px) {
  .gp-promo-text { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===================================================================
   Store responsive
   =================================================================== */
@media (max-width: 960px) {
  .fb-grid { grid-template-columns: 1fr; gap: 24px; }
  .single-product div.product { grid-template-columns: 1fr; gap: 32px; }
  .single-product .woocommerce-product-gallery { position: static; }
  .summary.entry-summary { margin-top: 60px !important; }
  .type-product { padding-top: 0 !important; }
}
@media (max-width: 540px) {
  .store-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
  .related-products,
  .woocommerce-tabs { width: 85% !important; }
}

/* ===================================================================
   Video courses — coming-soon page + My Courses account area
   =================================================================== */
.courses-soon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.courses-soon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: clamp(22px, 3vw, 30px);
}
.courses-soon-icon {
  width: 52px; height: 52px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #14110D;
  margin-bottom: 18px;
}
.courses-soon-card h2 { margin-bottom: 10px; }
.courses-soon-note {
  margin-top: 28px;
  padding: 24px 26px;
  background: linear-gradient(180deg, oklch(0.27 0.045 70) 0%, var(--surface) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--rad-lg);
}

/* My Courses library */
.courses-library {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 22px;
}
.course-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: clamp(20px, 3vw, 30px);
}
.course-item-head {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
}
.course-item-head h3 {
  font-family: var(--font-serif); font-size: 24px;
  font-weight: 400; line-height: 1.2; margin: 0;
}
.course-count {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gold);
}
.course-summary { margin: 12px 0 0; font-size: 14.5px; }
.course-lessons {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 26px;
}
.course-lesson { border-top: 1px solid var(--line); padding-top: 22px; }
.course-lesson:first-child { border-top: 0; padding-top: 0; }
.course-lesson-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.course-lesson-no {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--gold);
}
.course-lesson-title {
  font-family: var(--font-serif); font-size: 19px;
  line-height: 1.25;
}
.course-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.course-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.course-lesson-notes { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; }
