/*
Theme Name: YundaDesk Review
Theme URI: https://yundadesk.com/
Description: A lightweight YundaDesk-branded child theme for the stable WordPress.org reviewer store.
Author: YundaDesk
Author URI: https://yundadesk.com/
Template: storefront
Version: 1.0.0
Text Domain: yundadesk-review
*/

:root {
  --yd-blue: #0566ff;
  --yd-blue-dark: #004ed1;
  --yd-blue-soft: #eaf2ff;
  --yd-ink: #080f1a;
  --yd-muted: #5f6b7a;
  --yd-line: #e6ebf2;
  --yd-surface: #ffffff;
  --yd-surface-soft: #f7faff;
  --yd-radius: 18px;
  --yd-shadow: 0 20px 60px rgba(29, 78, 216, 0.12);
}

body {
  color: var(--yd-ink);
  background: var(--yd-surface);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(5, 102, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 102, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: var(--yd-blue);
}

a:hover,
a:focus {
  color: var(--yd-blue-dark);
}

.col-full {
  max-width: 1180px;
}

.site-header {
  padding-top: 1.65rem;
  color: var(--yd-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--yd-line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.site-header .site-branding {
  margin-bottom: 1.35rem;
}

.site-branding .site-title {
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.site-branding .site-title a {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--yd-ink);
}

.site-branding .site-title a::before {
  display: inline-flex;
  width: 2.05rem;
  height: 2.05rem;
  align-items: center;
  justify-content: center;
  content: "•••";
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  background: linear-gradient(145deg, #21a2ff 0%, var(--yd-blue) 58%, #1538c9 100%);
  border-radius: 50% 50% 50% 30%;
  box-shadow: 0 8px 18px rgba(5, 102, 255, 0.28);
}

.site-branding .site-description {
  margin-top: 0.35rem;
  color: var(--yd-muted);
  font-size: 0.78rem;
}

.site-search .widget_product_search form::before {
  color: var(--yd-muted);
}

.site-search .widget_product_search input[type="search"] {
  color: var(--yd-ink);
  background: var(--yd-surface-soft);
  border: 1px solid var(--yd-line);
  border-radius: 10px;
  box-shadow: none;
}

.storefront-primary-navigation {
  background: transparent;
  border-top: 1px solid var(--yd-line);
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  padding: 1.1rem 0.9rem;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 560;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a {
  color: var(--yd-blue);
}

.site-header-cart .cart-contents {
  color: var(--yd-ink);
}

.site-header-cart .cart-contents .amount,
.site-header-cart .cart-contents .count {
  color: inherit;
  opacity: 1;
}

.site-content {
  padding-top: 2.5rem;
}

.yd-review-full-width #primary {
  width: 100%;
  margin-right: 0;
  float: none;
}

.home .site-content {
  padding-top: 1.6rem;
}

.home .entry-header {
  display: none;
}

.home .site-main,
.home .hentry {
  margin-bottom: 0;
}

.yd-review-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 3.25rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2.7rem, 6vw, 5.3rem);
  background:
    radial-gradient(circle at 88% 14%, rgba(78, 149, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #f9fbff 0%, #eef5ff 58%, #f8fbff 100%);
  border: 1px solid #dbe7fb;
  border-radius: 26px;
  box-shadow: var(--yd-shadow);
}

.yd-review-hero-copy,
.yd-review-preview {
  min-width: 0;
}

.yd-review-kicker {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.42rem 0.72rem;
  color: var(--yd-blue-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(5, 102, 255, 0.18);
  border-radius: 999px;
}

.yd-review-kicker::before {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: var(--yd-blue);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(5, 102, 255, 0.12);
}

.yd-review-hero h1 {
  max-width: 760px;
  margin: 0 0 1.25rem;
  color: var(--yd-ink);
  font-size: clamp(2.65rem, 5.3vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.yd-review-hero-copy > p {
  max-width: 690px;
  margin: 0 0 1.75rem;
  color: var(--yd-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.yd-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.yd-review-actions .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  padding: 0.82rem 1.18rem;
  color: #fff;
  font-weight: 650;
  background: var(--yd-blue);
  border: 1px solid var(--yd-blue);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(5, 102, 255, 0.2);
}

.yd-review-actions .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  color: #fff;
  background: var(--yd-blue-dark);
  border-color: var(--yd-blue-dark);
}

.yd-review-actions .button.secondary {
  color: var(--yd-ink);
  background: #fff;
  border-color: var(--yd-line);
  box-shadow: none;
}

.yd-review-actions .button.secondary:hover {
  color: var(--yd-blue);
  background: #fff;
  border-color: rgba(5, 102, 255, 0.35);
}

.yd-review-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 560;
}

.yd-review-trust span::before {
  margin-right: 0.35rem;
  content: "✓";
  color: #12a150;
  font-weight: 800;
}

.yd-review-preview {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(30, 73, 140, 0.18);
  backdrop-filter: blur(12px);
}

.yd-preview-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.2rem 0.1rem 0.85rem;
}

.yd-preview-bar i {
  width: 0.52rem;
  height: 0.52rem;
  background: #cbd5e1;
  border-radius: 999px;
}

.yd-preview-bar strong {
  margin-left: 0.45rem;
  color: #344054;
  font-size: 0.76rem;
}

.yd-preview-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: 14px;
}

.yd-preview-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 10px;
}

.yd-preview-row.active {
  background: var(--yd-blue-soft);
  box-shadow: inset 3px 0 0 var(--yd-blue);
}

.yd-preview-avatar {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 750;
  background: linear-gradient(145deg, #22a3ff, var(--yd-blue));
  border-radius: 999px;
}

.yd-preview-copy {
  min-width: 0;
}

.yd-preview-copy strong,
.yd-preview-copy span {
  display: block;
}

.yd-preview-copy strong {
  margin-bottom: 0.16rem;
  color: var(--yd-ink);
  font-size: 0.78rem;
}

.yd-preview-copy span {
  overflow: hidden;
  color: var(--yd-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yd-review-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
}

.yd-review-section-header {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.yd-review-section-header h2 {
  margin-bottom: 0.7rem;
  color: var(--yd-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.yd-review-section-header p {
  color: var(--yd-muted);
}

.yd-review-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.yd-review-feature {
  padding: 1.45rem;
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: var(--yd-radius);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.yd-review-feature b {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--yd-blue);
  font-size: 1rem;
  background: var(--yd-blue-soft);
  border-radius: 10px;
}

.yd-review-feature h3 {
  margin: 0 0 0.55rem;
  color: var(--yd-ink);
  font-size: 1.04rem;
}

.yd-review-feature p {
  margin: 0;
  color: var(--yd-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.yd-review-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  color: #344054;
  font-size: 0.83rem;
  background: var(--yd-blue-soft);
  border: 1px solid rgba(5, 102, 255, 0.16);
  border-radius: 12px;
}

.yd-review-note strong {
  color: var(--yd-blue-dark);
}

.yd-review-products ul.products,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
}

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

.yd-review-products ul.products li.product,
.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0.85rem 0.85rem 1.1rem;
  float: none !important;
  clear: none !important;
  text-align: left;
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: var(--yd-radius);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.065);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.yd-review-products ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1);
}

.yd-review-products ul.products li.product img,
.woocommerce ul.products li.product img {
  width: 100%;
  margin: 0 0 1rem;
  background: var(--yd-surface-soft);
  border-radius: 13px;
}

.yd-review-products ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 0.2rem;
  color: var(--yd-ink);
  font-size: 0.96rem;
  font-weight: 680;
}

.yd-review-products ul.products li.product .price,
.woocommerce ul.products li.product .price {
  padding: 0 0.2rem;
  color: var(--yd-blue);
  font-weight: 700;
}

.yd-review-products ul.products li.product .button,
.woocommerce ul.products li.product .button {
  margin: 0.55rem 0.2rem 0;
}

.woocommerce-breadcrumb {
  color: var(--yd-muted);
  font-size: 0.78rem;
}

.woocommerce-ordering select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
select {
  color: var(--yd-ink);
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: 8px;
  box-shadow: none;
}

.site-footer {
  margin-top: 4.5rem;
  padding: 2.4rem 0;
  color: #667085;
  background: #f8fafc;
  border-top: 1px solid var(--yd-line);
}

.site-info {
  padding: 0;
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .site-header .site-branding {
    width: 52%;
  }

  .site-header .site-search {
    width: 28%;
  }
}

@media (max-width: 900px) {
  .yd-review-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .yd-review-preview {
    max-width: 520px;
  }

  .yd-review-features,
  .yd-review-products ul.products,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .yd-review-hero {
    padding: 2rem 1.3rem;
    border-radius: 18px;
  }

  .yd-review-hero h1 {
    overflow-wrap: break-word;
    font-size: clamp(2.15rem, 10.5vw, 2.45rem);
  }

  .yd-review-actions {
    display: grid;
  }

  .yd-review-actions .button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }

  .yd-review-trust {
    align-items: flex-start;
    flex-direction: column;
  }
}
