/**
 * Liftaya — overrides Kadence / WooCommerce defaults (load last).
 */

/* Buttons */
.wp-block-button__link,
.button,
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.wc-block-components-checkout-place-order-button {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  border-radius: var(--brand-radius-pill) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem !important;
  padding: 0.85em 1.6em !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.liftaya-hero-banner__cta:hover,
.liftaya-product-spotlight__cta:hover {
  background-color: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--brand-secondary) !important;
  border: 2px solid var(--brand-border) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--brand-bg-alt) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

/* Links */
a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

/* Homepage: mockup whisper pink — not white */
body.home,
body.home .content-bg,
body.home .site,
body.home #wrapper {
  background: #fff5f8 !important;
}

body.home .entry-hero.page-hero-section,
body.home .entry-header.page-title {
  display: none !important;
}

body.home .entry-content-wrap,
body.home .entry.single-entry,
body.home .content-wrap,
body.home .entry.content-bg {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border: none !important;
}

body.content-style-unboxed.home .content-bg,
body.content-style-unboxed.home .site {
  background: #fff5f8 !important;
}

body.content-width-fullwidth.home .content-container.site-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Homepage column width — match PDP (--max 1440). */
body.home {
  --global-content-width: 1440px;
}

body.home .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home .entry-content,
body.home .wp-site-blocks {
  max-width: none;
  padding: 0;
}

body.home .alignfull {
  width: 100%;
  max-width: 100%;
}

/* Hybrid home — mockup sections carry their own spacing */
body.home .entry-content > .liftaya-block,
body.home .wp-block-post-content > .liftaya-block {
  margin-block: 0 !important;
  padding-inline: 0 !important;
}

body.home .wp-block-group {
  margin-block: 0;
}

/* WooCommerce price color */
.woocommerce-Price-amount,
.liftaya-product-card__price,
.liftaya-bundle-card__price {
  color: var(--brand-secondary);
  font-weight: 700;
}

/* Placeholder product images */
.woocommerce-placeholder,
.liftaya-product-card__media img,
.liftaya-bundle-card__media img {
  background: linear-gradient(160deg, var(--brand-bg-alt), #fff) !important;
  object-fit: cover;
}

/* Top announce — full width above masthead (mockup .announce) */
body.liftaya-brand-header .liftaya-top-announce.announce {
  display: block;
  width: 100%;
  margin: 0;
  background: var(--brand-secondary, #1b1214);
  color: #fff;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  line-height: 1.4;
}

body.liftaya-brand-header .liftaya-top-announce.announce strong {
  color: var(--brand-accent, #ff7eb0);
}

/* Header — mockup site-header (pink glass, sticky below announce) */
body.liftaya-brand-header #masthead {
  position: sticky;
  top: 0;
  z-index: 50;
}

body.liftaya-brand-header #masthead,
body.liftaya-brand-header #masthead .site-header-wrap,
body.liftaya-brand-header #masthead .site-header-inner-wrap,
body.liftaya-brand-header #masthead .site-header-row-container-inner,
body.liftaya-brand-header #masthead .site-main-header-wrap {
  background: rgba(255, 245, 248, 0.86) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffd6e6 !important;
  box-shadow: none !important;
}

body.liftaya-brand-header #masthead .site-main-header-inner-wrap.site-header-row {
  position: relative;
  min-height: 3.25rem;
}

body.liftaya-brand-header #masthead .site-header-main-section-left {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

body.liftaya-brand-header #masthead .site-header-main-section-center {
  display: none !important;
}

body.liftaya-brand-header #masthead .site-header-main-section-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  position: static;
}

@media (min-width: 920px) {
  /* Center nav on full header row — not on the right column only */
  body.liftaya-brand-header #masthead .site-main-header-inner-wrap .main-navigation {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: max-content;
    max-width: min(72vw, 40rem);
    margin: 0 !important;
    pointer-events: auto;
  }

  body.liftaya-brand-header #masthead .site-main-header-inner-wrap .main-navigation .primary-menu-container > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
  }

  /* The logo section (z-index 3) sits above the absolutely-centered nav (z-index 2),
     so its empty area would swallow clicks on the left-hand menu items (Wkładki,
     Zestawy). Let the empty space pass clicks through to the nav; keep the logo
     link itself clickable. */
  body.liftaya-brand-header #masthead .site-header-main-section-left {
    pointer-events: none;
  }
  body.liftaya-brand-header #masthead .site-header-main-section-left .site-branding,
  body.liftaya-brand-header #masthead .site-header-main-section-left .site-branding a,
  body.liftaya-brand-header #masthead .site-header-main-section-left a {
    pointer-events: auto;
  }
}

body.liftaya-brand-header #masthead .liftaya-header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

@media (min-width: 920px) {
  body.liftaya-brand-header #masthead .liftaya-header-actions {
    display: flex;
  }
}

body.liftaya-brand-header #masthead .liftaya-header-actions .lang {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ffd6e6;
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .lang__opt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: #7a656c;
  line-height: 1;
  text-decoration: none;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .lang__opt.is-active {
  background: linear-gradient(145deg, #ff2d78, #d90048);
  color: #fff;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .lang__opt:not(.is-active):hover {
  color: #ff2d78;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ffd6e6;
  color: #1b1214;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .icon-btn .ui-icon {
  width: 1.15rem;
  height: 1.15rem;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .btn--primary.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, #ff2d78, #d90048);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(255, 45, 120, 0.28);
  text-decoration: none;
  white-space: nowrap;
}

body.liftaya-brand-header #masthead .liftaya-header-actions .btn--primary.btn--sm:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

body.liftaya-brand-header #masthead .site-branding .site-title a {
  font-family: var(--brand-font-display);
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--brand-secondary) !important;
}

body.liftaya-brand-header #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--brand-secondary);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
}

body.liftaya-brand-header #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
  background: #fff;
  color: var(--brand-primary);
}

/* Hide default Woo demo menu clutter on home until custom menu is assigned */
body.liftaya-brand-header #masthead .menu-item a[href*="sample-page"],
body.liftaya-brand-header #masthead .menu-item a[href*="my-account"],
body.liftaya-brand-header #masthead .menu-item a[href*="checkout"],
body.liftaya-brand-header #masthead .menu-item a[href*="cart"] {
  display: none;
}

/* Footer */
.site-footer,
.site-bottom-footer-wrap .site-footer-row-container-inner {
  background: var(--brand-secondary) !important;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--brand-accent);
}

/* Unified footer (.footer-main) — rendered on every Liftaya page incl. home.
   These styles ship here (site-wide) so the footer is dark/styled even on pages
   that don't load pdp.css. Mirrors pdp.css .footer-main. */
.footer-main {
  background: var(--brand-secondary);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}
.footer-main a { color: inherit; text-decoration: none; }
.footer-main a:hover { color: var(--brand-accent); }
.footer-main .footer-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max, 1440px);
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 700px) {
  .footer-main .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-main h4 {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin: 0.35rem 0; }
.footer-main .footer-bottom {
  max-width: var(--max, 1440px);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-main .footer-watermark {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--brand-font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 22vw, 16rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* Brand header (home + PDP) — solid white full-width bar, inner row aligned to
   content width (--max). --max resolves per page (pdp.css on PDP, home css on home). */
body.liftaya-brand-header #masthead,
body.liftaya-brand-header #masthead .site-header-wrap,
body.liftaya-brand-header #masthead .site-header-inner-wrap,
body.liftaya-brand-header #masthead .site-header-row-container-inner,
body.liftaya-brand-header #masthead .site-main-header-wrap {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  max-width: 100% !important;
}
body.liftaya-brand-header #masthead .site-main-header-inner-wrap.site-header-row {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
