/* WooCommerce — тот же стиль долины, что и лендинг. */

body.nv-theme .woocommerce,
body.nv-theme .nv-store,
body.nv-theme .nv-cart,
body.nv-theme .nv-checkout,
body.nv-theme .nv-product {
  color: var(--ink);
}

body.nv-theme .woocommerce-message,
body.nv-theme .woocommerce-info,
body.nv-theme .woocommerce-error,
body.nv-theme .woocommerce-notices-wrapper .woocommerce-message {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 107, 46, 0.2);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

body.nv-theme .woocommerce a.button,
body.nv-theme .woocommerce button.button,
body.nv-theme .woocommerce input.button,
body.nv-theme .woocommerce #respond input#submit,
body.nv-theme .woocommerce .single_add_to_cart_button,
body.nv-theme .checkout-button,
body.nv-theme .woocommerce-checkout .button {
  font-family: var(--font-display);
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(180deg, #f0a15a, var(--orange));
  color: #fff !important;
  box-shadow: 0 5px 0 var(--orange-deep), 0 10px 20px rgba(200, 100, 30, 0.25);
}

body.nv-theme .woocommerce a.button:hover,
body.nv-theme .woocommerce button.button:hover,
body.nv-theme .woocommerce .single_add_to_cart_button:hover {
  filter: brightness(1.05);
}

body.nv-theme .nv-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 2px solid rgba(139, 94, 60, 0.12);
  box-shadow: var(--shadow);
}

body.nv-theme .nv-product-media {
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(107, 184, 74, 0.25), transparent 55%),
    linear-gradient(180deg, #eef6e8, #f7f1df);
}

body.nv-theme .nv-product-media img,
body.nv-theme .nv-product-media .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.nv-theme .nv-product-summary .product_title {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0.4rem 0 0.75rem;
}

body.nv-theme .nv-product-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--orange-deep);
  font-weight: 700;
}

body.nv-theme .nv-product-description {
  margin-top: 2.5rem;
}

body.nv-theme .nv-product-description h2 {
  font-family: var(--font-display);
  color: var(--grass-deep);
}

body.nv-theme .flex-control-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  margin: 0.75rem 0 0;
}

body.nv-theme .flex-control-nav img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(139, 94, 60, 0.15);
}

body.nv-theme .nv-cart table.cart,
body.nv-theme .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.nv-theme .shop_table th,
body.nv-theme .shop_table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(139, 94, 60, 0.1);
  text-align: left;
  vertical-align: middle;
}

body.nv-theme .shop_table th {
  font-family: var(--font-display);
  color: var(--grass-deep);
  background: #f3f9ec;
}

body.nv-theme .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
}

body.nv-theme .nv-cart .cart-collaterals,
body.nv-theme .cart_totals,
body.nv-theme .nv-checkout #order_review {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(232, 135, 58, 0.2);
}

body.nv-theme .nv-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

body.nv-theme .woocommerce-billing-fields,
body.nv-theme .woocommerce-shipping-fields,
body.nv-theme .woocommerce-additional-fields {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

body.nv-theme .woocommerce-billing-fields h3,
body.nv-theme .woocommerce-shipping-fields h3,
body.nv-theme #order_review_heading {
  font-family: var(--font-display);
  color: var(--grass-deep);
}

body.nv-theme .woocommerce form .form-row label,
body.nv-theme .woocommerce-checkout label {
  font-weight: 700;
  color: var(--ink);
}

body.nv-theme .woocommerce form .input-text,
body.nv-theme .woocommerce form select,
body.nv-theme .woocommerce form textarea,
body.nv-theme .select2-container--default .select2-selection--single {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(61, 107, 46, 0.2);
  background: var(--mist);
  color: var(--ink);
  width: 100%;
}

body.nv-theme .woocommerce form .input-text:focus,
body.nv-theme .woocommerce form select:focus,
body.nv-theme .woocommerce form textarea:focus {
  outline: none;
  border-color: var(--grass);
  box-shadow: 0 0 0 3px rgba(107, 184, 74, 0.25);
  background: #fff;
}

body.nv-theme .woocommerce-checkout-payment {
  background: #f3f9ec !important;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

body.nv-theme .woocommerce-checkout-payment .wc_payment_method label {
  font-family: var(--font-display);
  color: var(--grass-deep);
}

body.nv-theme .nv-thankyou,
body.nv-theme .nv-cart-empty {
  text-align: center;
  padding: 2rem 0 3rem;
}

body.nv-theme .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Каталог: сбросить ширины колонок Woo (22% / 48% / 100%) */
body.nv-theme.woocommerce ul.products::before,
body.nv-theme.woocommerce ul.products::after,
body.nv-theme.woocommerce-page ul.products::before,
body.nv-theme.woocommerce-page ul.products::after {
  display: none;
}

body.nv-theme.woocommerce ul.products li.product,
body.nv-theme.woocommerce-page ul.products li.product,
body.nv-theme.woocommerce ul.products li.product.first,
body.nv-theme.woocommerce ul.products li.product.last {
  width: auto !important;
  max-width: 300px !important;
  float: none !important;
  clear: none !important;
}

@media (max-width: 800px) {
  body.nv-theme .nv-product-grid,
  body.nv-theme .nv-checkout-grid {
    grid-template-columns: 1fr;
  }
}
