/*
Theme Name: PluginAndPlugin
Theme URI: https://pluginandplugin.com/
Author: PluginAndPlugin
Description: Full Site Editing WordPress and WooCommerce theme for a music software store.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pluginandplugin
Tags: full-site-editing, block-patterns, e-commerce
*/

:root {
  --pap-ink: #20232b;
  --pap-ink-soft: #2b2f3a;
  --pap-line: #e7e8ec;
  --pap-muted: #818696;
  --pap-accent: #7565f2;
  --pap-accent-strong: #5f50df;
  --pap-bg: #ffffff;
  --pap-panel: #f6f7f9;
  --pap-radius: 8px;
  --pap-shadow: 0 16px 35px rgba(22, 25, 34, 0.12);
  --pap-max: 1500px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pap-bg);
  color: var(--pap-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--pap-accent);
}

img {
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pap-container {
  width: min(calc(100% - 32px), var(--pap-max));
  margin-inline: auto;
}

.pap-site-header {
  padding: 22px 10px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.pap-fse-header {
  padding: 22px 10px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-bar .pap-fse-header {
  top: 32px;
}

.pap-fse-header-inner {
  min-height: 120px;
  padding: 0 7vw;
  background: var(--pap-ink);
  color: #fff;
  border-radius: 0 0 var(--pap-radius) var(--pap-radius);
  gap: 28px;
}

.pap-fse-brand {
  min-width: 170px;
}

.pap-fse-site-title {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}

.pap-fse-site-title a {
  color: #fff;
}

.pap-fse-nav {
  color: #fff;
}

.pap-fse-nav a,
.pap-fse-actions a {
  color: #fff;
  font-weight: 800;
}

.pap-fse-nav .wp-block-navigation__container {
  gap: 28px;
}

.pap-fse-actions {
  gap: 20px;
}

.pap-fse-search {
  min-width: 360px;
}

.pap-fse-search .wp-block-search__inside-wrapper {
  border: 1px solid #4a4e5a;
  padding: 0;
}

.pap-fse-search input[type="search"] {
  min-height: 42px;
  border: 0;
  background: #242833;
  color: #fff;
  padding: 0 15px;
}

.pap-fse-search .wp-block-search__button {
  min-height: 42px;
  margin: 0;
  border-radius: 0;
  background: #050608;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.pap-fse-login {
  margin: 0;
  white-space: nowrap;
}

.wc-block-mini-cart__button {
  color: #fff;
}

.admin-bar .pap-site-header {
  top: 32px;
}

.pap-header-inner {
  min-height: 120px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 7vw;
  background: var(--pap-ink);
  color: #fff;
  border-radius: 0 0 var(--pap-radius) var(--pap-radius);
}

.pap-header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.pap-logo {
  width: 176px;
  min-width: 148px;
  display: flex;
  align-items: center;
}

.pap-logo .custom-logo {
  max-height: 76px;
  width: auto;
}

.pap-logo-text {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.pap-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pap-menu-toggle span,
.pap-menu-toggle span::before,
.pap-menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pap-menu-toggle span::before {
  transform: translateY(-7px);
}

.pap-menu-toggle span::after {
  transform: translateY(5px);
}

.menu-open .pap-menu-toggle span {
  transform: rotate(45deg);
}

.menu-open .pap-menu-toggle span::before {
  opacity: 0;
}

.menu-open .pap-menu-toggle span::after {
  transform: translateY(-2px) rotate(90deg);
}

.pap-main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pap-main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  position: relative;
}

.pap-main-nav .current-menu-item > a::after,
.pap-main-nav .current_page_item > a::after,
.pap-main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #fff;
}

.pap-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pap-product-search {
  display: flex;
  align-items: stretch;
  width: clamp(250px, 22vw, 340px);
  height: 42px;
}

.pap-product-search input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #4a4e5a;
  border-right: 0;
  background: #242833;
  color: #fff;
  padding: 0 15px;
  outline: 0;
}

.pap-product-search input[type="search"]::placeholder {
  color: #a2a6b2;
}

.pap-product-search button {
  border: 1px solid #4a4e5a;
  background: #050608;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  min-width: 102px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.pap-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.pap-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pap-count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #5b587b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pap-main {
  min-height: 52vh;
}

.pap-home-hero {
  margin-top: 28px;
}

.pap-hero-slider.is-slider-ready .pap-hero-slide {
  display: none;
}

.pap-hero-slider.is-slider-ready .pap-hero-slide.is-active {
  display: grid;
}

.pap-hero-frame {
  min-height: clamp(320px, 31vw, 470px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 20px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--pap-radius);
  overflow: hidden;
  background: linear-gradient(105deg, #e9eef2, #f5f7f9);
  color: #141821;
}

.pap-hero-visual {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pap-basket {
  width: min(520px, 100%);
  aspect-ratio: 1.55;
  border: 5px solid #515965;
  border-top: 13px solid #353b45;
  transform: perspective(800px) rotateX(56deg);
  box-shadow: var(--pap-shadow);
  position: relative;
}

.pap-basket::before,
.pap-basket::after {
  content: "";
  position: absolute;
  inset: 17% 8%;
  border-top: 5px solid #69717d;
  border-bottom: 5px solid #69717d;
}

.pap-basket::after {
  inset: 34% 3%;
  border-top: 4px solid #7b8491;
  border-bottom: 0;
}

.pap-plugin-pack {
  position: absolute;
  width: 94px;
  height: 142px;
  border-radius: 7px;
  background: var(--pack-color, #1e2530);
  border: 3px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 13px 25px rgba(16, 20, 28, 0.22);
  transform: rotate(var(--pack-rotate, -8deg));
  left: var(--pack-left, 30%);
  top: var(--pack-top, 18%);
}

.pap-plugin-pack::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 34px;
  border-radius: 999px;
  border: 8px solid rgba(255, 255, 255, 0.72);
}

.pap-hero-copy {
  text-align: center;
}

.pap-hero-kicker {
  margin: 0 0 2px;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
}

.pap-hero-title {
  margin: 0;
  color: #121722;
  font-size: clamp(76px, 11vw, 174px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.pap-hero-text {
  margin: 22px 0 18px;
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 800;
}

.pap-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 6px;
  border: 0;
  background: var(--pap-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pap-button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--pap-accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.pap-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 18px;
}

.pap-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b6b8bf;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pap-dot.is-active {
  background: #222631;
}

.pap-section {
  margin-top: 42px;
}

.pap-section-title,
.woocommerce-products-header__title,
.entry-title {
  margin: 0 0 26px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
  color: #232631;
}

.pap-home-strip ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.pap-brand-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 170px;
  padding: 36px 0 66px;
  color: #111;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
}

.pap-brand-strip span {
  opacity: 0.92;
}

.pap-brand-strip p {
  margin: 0;
}

.pap-shop-categories {
  padding-top: 62px;
  text-align: center;
}

.pap-category-scroller {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 0 0 18px;
  scrollbar-width: thin;
}

.pap-category-card {
  flex: 0 0 96px;
  text-align: center;
}

.pap-category-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 2px;
  background: #dfe3e8;
  box-shadow: 0 1px 3px rgba(12, 16, 24, 0.14);
}

.pap-category-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 50%, transparent 22%, #3c4550 23%, #3c4550 28%, transparent 29%),
    repeating-linear-gradient(45deg, #cfd5dc, #cfd5dc 8px, #aeb7c2 8px, #aeb7c2 14px);
  margin: 0 auto;
}

.pap-category-name {
  margin: 8px 0 0;
  font-weight: 800;
  font-size: 14px;
}

.pap-category-count {
  margin: 22px 0 0;
  color: #a1a5af;
  font-size: 12px;
}

.pap-shop-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 22px;
}

.pap-sidebar {
  position: sticky;
  top: 168px;
}

.pap-widget,
.widget {
  margin-bottom: 22px;
}

.pap-sidebar .pap-product-search {
  width: 100%;
}

.pap-widget-title,
.widget-title,
.wp-block-heading {
  margin: 0 0 12px;
  color: #232631;
  font-size: 17px;
  font-weight: 900;
}

.widget input[type="search"],
.widget input[type="text"],
.widget select,
.pap-filter-search {
  width: 100%;
  height: 36px;
  border: 0;
  background: var(--pap-ink);
  color: #fff;
  padding: 0 12px;
}

.widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  color: #30333d;
  font-weight: 700;
  border-bottom: 1px solid rgba(231, 232, 236, 0.7);
}

.widget li .count {
  color: #989da9;
  font-size: 12px;
}

.pap-archive-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.woocommerce .woocommerce-ordering {
  margin: 0;
}

.woocommerce .woocommerce-ordering select {
  min-width: 220px;
  height: 42px;
  border: 0;
  background: var(--pap-ink);
  color: #fff;
  padding: 0 13px;
}

.woocommerce-result-count {
  color: #a2a6b0;
  text-align: center;
}

.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--pap-ink);
  color: #fff;
  border-radius: var(--pap-radius);
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 4px 13px rgba(20, 24, 33, 0.08);
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  margin: 0;
  background: #eceff3;
}

.pap-card-body {
  padding: 18px 20px 20px;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.pap-product-category {
  color: #9297a5;
  font-size: 13px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #fff;
  padding: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.26;
  font-weight: 800;
}

.pap-product-brand {
  color: #b9bdc8;
  font-size: 13px;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .price {
  color: #fff;
  margin-top: auto;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce ul.products li.product .price del {
  color: #d7d9df;
  opacity: 0.86;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  min-height: 0;
  min-width: 0;
  top: 16px;
  left: 16px;
  right: auto;
  margin: 0;
  padding: 5px 9px;
  border-radius: 2px;
  background: #f04747;
  color: #fff;
  line-height: 1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pap-load-more {
  display: flex;
  justify-content: center;
  margin: 34px 0 80px;
}

.pap-pagination,
.woocommerce nav.woocommerce-pagination {
  margin: 34px 0 74px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  margin: 0 3px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 38px;
  border-radius: 6px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--pap-accent);
  color: #fff;
}

.pap-content {
  padding: 48px 0 86px;
}

.pap-entry {
  max-width: 980px;
  margin-inline: auto;
}

.pap-entry-content {
  font-size: 18px;
}

.pap-entry-content a {
  color: var(--pap-accent);
  font-weight: 700;
}

.single-product div.product {
  padding: 54px 0 80px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  margin-bottom: 44px;
}

.woocommerce div.product .product_title {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pap-ink);
  font-size: 28px;
  font-weight: 900;
}

.woocommerce div.product form.cart .button {
  min-height: 52px;
}

.pap-site-footer {
  background: var(--pap-ink);
  color: #fff;
  padding: 66px 0 76px;
}

.pap-fse-footer {
  margin-top: 72px;
  background: var(--pap-ink);
  color: #fff;
  padding: 66px 0 76px;
}

.pap-fse-footer a {
  color: #d4d7df;
}

.pap-fse-footer-grid {
  gap: clamp(34px, 6vw, 84px);
}

.pap-fse-footer-logo img {
  max-height: 126px;
  width: auto;
}

.pap-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.15fr 1fr 1fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.pap-footer-logo {
  display: block;
  max-width: 330px;
  margin-bottom: 40px;
}

.pap-footer-logo .custom-logo {
  max-height: 126px;
  width: auto;
}

.pap-footer-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 900;
}

.pap-footer-text {
  color: #d5d8df;
  margin: 0 0 20px;
}

.pap-footer-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.pap-footer-menu li {
  margin-bottom: 11px;
}

.pap-footer-menu a,
.pap-social a {
  color: #d4d7df;
}

.pap-social {
  display: grid;
  gap: 11px;
}

.pap-copyright {
  color: #d4d7df;
  font-size: 13px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--pap-accent);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--pap-accent);
}

@media (max-width: 1280px) {
  .pap-fse-header-inner {
    padding-inline: 34px;
  }

  .pap-fse-search {
    min-width: 280px;
  }

  .pap-header-inner {
    padding-inline: 34px;
  }

  .pap-main-nav ul {
    gap: 18px;
  }

  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .pap-fse-header-inner {
    min-height: 86px;
  }

  .pap-fse-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .pap-fse-search {
    flex: 1 1 320px;
    min-width: min(100%, 320px);
  }

  .pap-header-inner {
    grid-template-columns: auto auto;
    min-height: 86px;
  }

  .pap-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .pap-header-panel {
    position: fixed;
    inset: 108px 16px auto;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    display: none;
    background: var(--pap-ink);
    border-radius: var(--pap-radius);
    padding: 24px;
    box-shadow: var(--pap-shadow);
  }

  .menu-open .pap-header-panel {
    display: block;
  }

  .pap-main-nav ul,
  .pap-header-actions {
    display: grid;
    gap: 14px;
  }

  .pap-product-search {
    width: 100%;
  }

  .pap-home-strip ul.products,
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pap-shop-layout {
    grid-template-columns: 1fr;
  }

  .pap-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 782px) {
  .admin-bar .pap-fse-header {
    top: 46px;
  }

  .pap-fse-header-inner {
    padding-inline: 18px;
  }

  .pap-fse-site-title {
    font-size: 22px;
  }

  .admin-bar .pap-site-header {
    top: 46px;
  }

  .pap-header-inner {
    padding-inline: 18px;
  }

  .pap-logo {
    width: auto;
  }

  .pap-logo-text {
    font-size: 18px;
  }

  .pap-hero-frame {
    grid-template-columns: 1fr;
  }

  .pap-hero-visual {
    min-height: 220px;
  }

  .pap-plugin-pack {
    width: 72px;
    height: 112px;
  }

  .pap-home-strip ul.products,
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .pap-sidebar {
    grid-template-columns: 1fr;
  }

  .pap-footer-grid {
    grid-template-columns: 1fr;
  }

  .pap-footer-logo {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .pap-fse-header {
    padding-inline: 0;
  }

  .pap-fse-header-inner {
    border-radius: 0;
  }

  .pap-fse-search {
    min-width: 100%;
  }

  .pap-site-header {
    padding-inline: 0;
  }

  .pap-container {
    width: min(calc(100% - 24px), var(--pap-max));
  }

  .pap-header-inner {
    border-radius: 0;
  }

  .pap-header-panel {
    inset-inline: 12px;
  }

  .pap-product-search {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .pap-product-search input[type="search"],
  .pap-product-search button {
    height: 42px;
    border: 1px solid #4a4e5a;
  }

  .pap-home-strip ul.products,
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: 1fr;
  }

  .pap-card-body {
    min-height: 128px;
  }

  .pap-archive-toolbar {
    justify-content: stretch;
  }

  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-ordering select {
    width: 100%;
  }
}
