/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra with custom WooCommerce featured products shortcode.
Author: Printercare
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

.pc-shortcode-scope {
  --pc-primary: #1e5eff;
  --pc-text: #181c22;
  --pc-muted: #6c727f;
  --pc-border: #e6e9f0;
  --pc-bg: #f7f8fb;
}

.pc-featured-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  padding: 22px 22px 16px;
  border-radius: 0;
  border: 0;
  font-family: "Inter", "Poppins", sans-serif;
  max-width: 1320px;
  margin: 0 auto;
}

.pc-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pc-featured-kicker {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--pc-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pc-featured-title {
  margin: 0;
  color: var(--pc-text);
  font-family: "Poppins", sans-serif;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
}

.pc-featured-link {
  color: var(--pc-primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.pc-featured-link:hover {
  text-decoration: underline;
}

.pc-featured-slider {
  position: relative;
}

.pc-featured-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 1px 14px;
}

.pc-featured-track::-webkit-scrollbar {
  display: none;
}

.pc-product-card {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 220px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: 6px;
  padding: 14px 14px 12px;
  text-align: center;
  min-height: 0;
}

.pc-product-card img {
  width: 100%;
  height: 138px;
  object-fit: contain;
  margin-bottom: 10px;
}

.pc-brand {
  color: var(--pc-muted);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.pc-product-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 500;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-product-title a {
  color: #1d232f;
  text-decoration: none;
}

.pc-product-title a:hover {
  color: var(--pc-primary);
}

.pc-product-desc {
  margin: 0 0 8px;
  color: #6f7789;
  font-size: 13px;
  line-height: 1.45;
  min-height: 57px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
}

.pc-star {
  color: #d5dae4;
  font-size: 12px;
  line-height: 1;
}

.pc-star.is-filled {
  color: #ffb200;
}

.pc-review-count {
  color: #8a91a0;
  font-size: 12px;
  font-weight: 500;
}

.pc-price {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #11161f;
}

.pc-buy-btn {
  display: inline-block;
  margin-top: 4px;
  min-width: 132px;
  border: 1px solid #9fbeff;
  color: var(--pc-primary);
  border-radius: 4px;
  padding: 7px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  background: #fff;
}

.pc-buy-btn:hover {
  background: #edf3ff;
  border-color: #8db2ff;
}

.pc-nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e1e4ea;
  background: #fff;
  color: #505766;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pc-nav.prev { left: -17px; }
.pc-nav.next { right: -17px; }

.pc-nav:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pc-brand-strip {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 54px;
  color: #8f8f8f;
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.05;
  opacity: 0.72;
  text-transform: lowercase;
}

@media (max-width: 1200px) {
  .pc-featured-title { font-size: 43px; }
  .pc-product-title { font-size: 16px; min-height: 42px; }
  .pc-price { font-size: 21px; }
  .pc-product-card { flex-basis: calc((100% - 28px) / 3); }
  .pc-brand-strip { font-size: 34px; gap: 36px; }
}

@media (max-width: 992px) {
  .pc-featured-wrap { padding: 18px 14px 14px; }
  .pc-featured-title { font-size: 35px; }
  .pc-featured-link { font-size: 14px; }
  .pc-product-card { flex-basis: calc((100% - 14px) / 2); min-width: 205px; }
  .pc-product-title { font-size: 15px; min-height: 40px; }
  .pc-price { font-size: 20px; }
  .pc-brand-strip { font-size: 29px; gap: 22px; }
}

@media (max-width: 768px) {
  .pc-nav { display: none; }
  .pc-featured-head { align-items: flex-start; }
  .pc-product-card { flex-basis: 86%; min-width: 190px; }
}

@media (max-width: 560px) {
  .pc-featured-head { flex-direction: column; gap: 7px; }
  .pc-featured-title { font-size: 30px; }
  .pc-product-card { flex-basis: 90%; min-width: 90%; }
  .pc-product-title { font-size: 15px; min-height: 38px; }
  .pc-price { font-size: 19px; }
  .pc-brand-strip { font-size: 22px; gap: 16px; }
}

/* Driver Search Section */
.pc-driver-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4ff 0%, #dce8fb 100%);
  font-family: "Inter", "Poppins", sans-serif;
}

.pc-driver-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #165dff;
}

.pc-driver-title {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.1;
  color: #0f1b2f;
  font-family: "Poppins", sans-serif;
}

.pc-driver-sub {
  margin: 0 0 16px;
  color: #4e607e;
  font-size: 15px;
}

.pc-driver-form {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.pc-driver-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pc-driver-field {
  position: relative;
}

.pc-driver-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2d436f;
  text-transform: uppercase;
}

.pc-driver-form input {
  width: 100%;
  border: 1px solid #c4d6fb;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.3;
  background: #fff;
  color: #1a2438;
  outline: none;
}

.pc-driver-form input:focus {
  border-color: #2f74ff;
  box-shadow: 0 0 0 3px rgba(47, 116, 255, 0.12);
}

.pc-driver-form button[type="submit"] {
  border: 0;
  background: #1f6dff;
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  padding: 12px 24px;
  justify-self: start;
  cursor: pointer;
}

.pc-driver-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  background: #fff;
  border: 1px solid #d9e4ff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 60, 140, 0.12);
  padding: 8px;
}

.pc-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #1f2a44;
}

.pc-suggest-item:hover {
  background: #f1f6ff;
}

.pc-driver-result {
  margin-top: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #f6f9ff;
  padding: 14px;
  max-width: 760px;
}

.pc-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pc-result-head h4 {
  margin: 0;
  font-size: 15px;
  color: #1a2946;
  font-weight: 700;
}

.pc-result-head span {
  font-size: 13px;
  font-weight: 700;
  color: #174fc9;
}

.pc-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dde8ff;
  overflow: hidden;
}

.pc-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2371ff 0%, #4d8eff 100%);
  transition: width 0.2s ease;
}

.pc-result-status {
  margin: 10px 0 0;
  font-size: 14px;
  color: #243a61;
}

.pc-result-error {
  margin-top: 12px;
  border-top: 1px solid #d7e5ff;
  padding-top: 12px;
}

.pc-result-error p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #8e1028;
}

.pc-get-support {
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0f63ff;
  cursor: pointer;
}

.pc-driver-popular {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pc-driver-popular > span {
  color: #203560;
  font-weight: 600;
  font-size: 12px;
}

.pc-driver-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-driver-tag {
  border: 1px solid #9bbdff;
  background: #eaf2ff;
  color: #1a4fc9;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}

.pc-driver-right {
  display: flex;
  justify-content: center;
}

.pc-driver-art {
  width: 100%;
  min-height: 190px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 30%, #c5dcff 0 32%, transparent 33%),
    radial-gradient(circle at 62% 62%, #8db7ff 0 16%, transparent 17%),
    linear-gradient(160deg, #f7fbff 0%, #d9e7ff 100%);
  border: 1px solid #c3d8ff;
}

.pc-lead-modal[hidden] { display: none; }

.pc-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
}

.pc-lead-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(30, 94, 255, 0.22) 0%, rgba(30, 94, 255, 0) 45%),
    rgba(8, 18, 40, 0.56);
  backdrop-filter: blur(3px);
}

.pc-lead-box {
  position: relative;
  width: min(92vw, 520px);
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #d8e5ff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 26px 60px rgba(7, 25, 64, 0.34);
  animation: pcLeadPopIn 0.24s ease-out;
}

.pc-lead-box .pc-lead-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #c9dafc;
  border-radius: 10px;
  background: #f5f8ff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #264987;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}

.pc-lead-box .pc-lead-close:hover,
.pc-lead-box .pc-lead-close:focus {
  background: #1f6dff;
  color: #fff;
  border-color: #1f6dff;
  box-shadow: 0 8px 18px rgba(31, 109, 255, 0.26);
}

.pc-lead-box h3 {
  margin: 0 0 8px;
  color: #121c30;
  font-family: "Poppins", sans-serif;
  font-size: clamp(31px, 2.1vw, 36px);
  line-height: 1.1;
}

.pc-lead-box p {
  margin: 0 0 14px;
  color: #5b6982;
  font-size: 17px;
  line-height: 1.45;
}

.pc-lead-box form {
  display: grid;
  gap: 9px;
}

.pc-lead-box input,
.pc-lead-box textarea {
  width: 100%;
  border: 1px solid #c8d7f6;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  color: #1b2d4d;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pc-lead-box input:focus,
.pc-lead-box textarea:focus {
  border-color: #2f74ff;
  box-shadow: 0 0 0 3px rgba(47, 116, 255, 0.12);
}

.pc-lead-box textarea {
  min-height: 88px;
  resize: vertical;
}

.pc-lead-box button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, #1f6dff 0%, #2a77ff 100%);
  color: #fff;
  border-radius: 8px;
  padding: 11px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-lead-box button[type="submit"]:hover,
.pc-lead-box button[type="submit"]:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 109, 255, 0.28);
}

.pc-lead-box button[type="submit"]:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pc-lead-status {
  min-height: 20px;
  font-weight: 600;
  color: #1e5eff;
  font-size: 14px;
}

.pc-lead-success {
  margin-top: 8px;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  padding: 20px 14px;
  text-align: center;
}

.pc-lead-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #1f6dff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(31, 109, 255, 0.26);
}

.pc-lead-success h4 {
  margin: 0 0 6px;
  color: #13274a;
  font-family: "Poppins", sans-serif;
  font-size: 22px;
}

.pc-lead-success p {
  margin: 0;
  color: #526b95;
  font-size: 14px;
  line-height: 1.5;
}

body.pc-modal-open {
  overflow: hidden;
}

@keyframes pcLeadPopIn {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .pc-driver-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pc-driver-title {
    font-size: 32px;
  }

  .pc-driver-art {
    min-height: 140px;
  }

  .pc-driver-fields {
    grid-template-columns: 1fr;
  }

  .pc-driver-form button[type="submit"] {
    width: 100%;
    justify-self: stretch;
  }

  .pc-lead-box {
    width: min(94vw, 520px);
    padding: 15px;
  }

  .pc-lead-box .pc-lead-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
  }

  .pc-lead-box h3 {
    font-size: clamp(27px, 7vw, 33px);
    padding-right: 34px;
  }

  .pc-lead-box p {
    font-size: 16px;
  }
}

.pc-driver-field-only {
  position: relative;
  max-width: 760px;
  width: 100%;
  font-family: "Inter", "Poppins", sans-serif;
}

.pc-driver-field-only .pc-driver-popular {
  margin-top: 10px;
}
