﻿/*
Theme Name: Nasaqone Template
Theme URI: https://nasaqone.com/
Author: Nasaqone
Author URI: https://nasaqone.com/
Description: Exact visual template from local "موقع كتب جديد" React build.
Version: 1.0.0
Text Domain: nasaqone-template
*/

.nq-page-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 72px;
  color: #09090b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nq-page-content__header {
  margin-bottom: 28px;
}

.nq-page-content__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.nq-page-content .woocommerce,
.nq-page-content .woocommerce-page {
  width: 100%;
}

.nq-wc-page {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
  color: #09090b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nq-wc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr minmax(190px, 300px) auto;
  align-items: center;
  gap: 26px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: #111827;
  color: #fff;
}

.nq-wc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.nq-wc-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nq-wc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nq-wc-nav a {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.nq-wc-nav a.is-active,
.nq-wc-nav a:hover {
  color: #fff;
}

.nq-wc-search input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 16px;
  font-size: 12px;
}

.nq-wc-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  text-decoration: none;
}

.nq-wc-cart-link span {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 9px;
  font-weight: 900;
}

.nq-wc-store-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.nq-wc-store-head h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.nq-wc-store-head p {
  margin: 0;
  max-width: 620px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.nq-wc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.nq-wc-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 22px;
  border: 1px solid #09090b;
  border-radius: 999px;
  color: #09090b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.nq-wc-pills a:first-child {
  border-color: transparent;
  padding-left: 0;
}

.nq-wc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.nq-book-card,
.nq-book-card * {
  box-sizing: border-box;
}

.nq-book-card {
  min-width: 0;
  color: #09090b;
}

.nq-book-card a {
  color: inherit;
  text-decoration: none;
}

.nq-book-card__cover-wrap {
  position: relative;
  margin-bottom: 28px;
}

.nq-book-card__cover-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
}

.nq-book-card__shadow {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(24px);
  transition: all 0.45s ease;
}

.nq-book-card__cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.nq-book-card:hover .nq-book-card__cover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}

.nq-book-card:hover .nq-book-card__shadow {
  height: 44px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(30px);
}

.nq-book-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.nq-book-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(55deg, transparent 25%, rgba(255, 255, 255, 0.2), transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.nq-book-card:hover .nq-book-card__shine {
  transform: translateX(120%);
}

.nq-book-card__badges {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.nq-book-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
}

.nq-book-card__badge--dark {
  background: rgba(24, 24, 27, 0.92);
}

.nq-book-card__badge--sale {
  background: #ef233c;
}

.nq-book-card__body {
  display: grid;
  gap: 8px;
}

.nq-book-card__category {
  min-height: 14px;
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nq-book-card__title-link h3 {
  min-height: 24px;
  margin: 0;
  overflow: hidden;
  color: #09090b;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nq-book-card__body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #71717a;
  font-size: 13px;
  line-height: 1.55;
}

.nq-book-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid #f4f4f5;
}

.nq-book-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 35px;
}

.nq-book-card__price,
.nq-book-card__price .woocommerce-Price-amount,
.nq-book-card__price .amount {
  color: #09090b;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.nq-book-card__regular,
.nq-book-card__regular .woocommerce-Price-amount,
.nq-book-card__regular .amount {
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: line-through;
}

.nq-book-card__access {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nq-book-card__access span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.nq-book-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 68px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #09090b;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.nq-book-card__button:hover {
  background: #27272a;
}

.nq-wc-pagination {
  margin-top: 48px;
}

.nq-wc-single {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 72px;
  align-items: start;
}

.nq-wc-product-page {
  padding-top: 76px;
}

.nq-wc-back {
  display: inline-flex;
  margin-bottom: 44px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nq-wc-back::before {
  content: "<";
  margin-right: 10px;
}

.nq-wc-single-rich {
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 62px;
}

.nq-wc-single-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.nq-wc-download-box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.nq-wc-download-box svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  background: #111113;
  color: #fff;
}

.nq-wc-download-box strong,
.nq-wc-download-box span {
  display: block;
}

.nq-wc-download-box strong {
  color: #18181b;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.nq-wc-download-box span {
  margin-top: 4px;
  color: #71717a;
  font-size: 13px;
}

.nq-wc-single-summary h1 {
  margin: 14px 0 22px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.nq-wc-category {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nq-wc-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.nq-wc-price-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.nq-wc-single-price {
  margin-bottom: 0;
  font-size: 42px;
  font-weight: 900;
}

.nq-wc-format-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-left: 24px;
  border-left: 1px solid #e5e7eb;
  color: #71717a;
  font-size: 14px;
  font-weight: 700;
}

.nq-wc-single-summary p {
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.nq-wc-product-desc {
  max-width: 720px;
}

.nq-wc-buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  margin: 30px 0 42px;
  padding: 0 42px;
  border: 0;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.nq-wc-buy-now:hover {
  background: #27272a;
}

.nq-wc-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 42px;
}

.nq-wc-specs span,
.nq-wc-specs strong {
  display: block;
}

.nq-wc-specs span {
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nq-wc-specs strong {
  margin-top: 8px;
  color: #18181b;
  font-size: 14px;
  font-weight: 900;
}

.nq-wc-info-section {
  margin-top: 34px;
}

.nq-wc-info-section h2,
.nq-wc-important h2 {
  margin: 0 0 18px;
  color: #18181b;
  font-size: 24px;
  font-weight: 900;
}

.nq-wc-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nq-wc-audience span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #eeeeef;
  border-radius: 10px;
  background: #fafafa;
  color: #52525b;
  font-size: 15px;
  font-weight: 600;
}

.nq-wc-audience span::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 12px;
  border: 2px solid #71717a;
  border-radius: 50%;
}

.nq-wc-lessons {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: nq-lessons;
  list-style: none;
}

.nq-wc-lessons li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #52525b;
  font-size: 15px;
}

.nq-wc-lessons li::before {
  counter-increment: nq-lessons;
  content: counter(nq-lessons);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.nq-wc-important {
  margin-top: 48px;
  padding: 34px 38px;
  border-radius: 22px;
  background: #18181b;
  color: #d4d4d8;
}

.nq-wc-important h2 {
  color: #fff;
}

.nq-wc-important ul {
  margin: 0;
  padding-left: 20px;
}

.nq-wc-important li {
  margin-top: 14px;
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.6;
}

.nq-checkout-open {
  overflow: hidden;
}

.nq-checkout-modal[hidden] {
  display: none;
}

.nq-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.nq-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.nq-checkout-modal__panel {
  position: relative;
  width: min(620px, 100%);
  height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.nq-checkout-modal__panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.nq-checkout-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111113;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.nq-wc-cart {
  margin: 34px 0 20px;
}

.nq-wc-cart .button,
.nq-wc-cart button {
  min-height: 58px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: #09090b;
  color: #fff;
  font-weight: 900;
}

.nq-wc-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 700;
}

.nq-wc-details {
  margin-top: 64px;
}

.nq-wc-details-card {
  max-width: 860px;
  padding: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 32px;
  background: #fff;
}

@media (max-width: 1024px) {
  .nq-wc-header {
    grid-template-columns: auto 1fr auto;
  }

  .nq-wc-nav {
    display: none;
  }

  .nq-wc-search {
    justify-self: end;
    width: min(260px, 100%);
  }

  .nq-wc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nq-wc-page {
    width: min(100% - 28px, 1200px);
    padding-top: 64px;
  }

  .nq-wc-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 14px;
  }

  .nq-wc-search {
    display: none;
  }

  .nq-wc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .nq-wc-single {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nq-wc-price-row,
  .nq-wc-specs {
    align-items: flex-start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-wrap: wrap;
  }

  .nq-wc-format-line {
    padding-left: 0;
    border-left: 0;
  }

  .nq-wc-audience {
    grid-template-columns: 1fr;
  }

  .nq-wc-buy-now {
    width: 100%;
    padding: 0 22px;
    font-size: 16px;
  }

  .nq-checkout-modal {
    padding: 10px;
  }

  .nq-checkout-modal__panel {
    height: calc(100vh - 20px);
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  .nq-wc-grid {
    grid-template-columns: 1fr;
  }
}
