/**
 * ARI shop — WooCommerce pages dressed in the site's own type and colour.
 * Loaded only on shop pages (see ari_shop_assets in functions.php).
 */

.ari-shop-main {
  width: var(--page, min(100% - 48px, 1480px));
  max-width: 1120px;
  margin: 0 auto;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  font-family: var(--sans, "Manrope", sans-serif);
  color: var(--ink, #1a1a18);
}

/* ------------------------------------------------------------- typography */

.ari-shop-main h1,
.ari-shop-main .product_title {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy, #153564);
  margin: 0 0 0.75rem;
}

.ari-shop-main h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  color: var(--navy, #153564);
  margin: 2.25rem 0 0.75rem;
}

.ari-shop-main p,
.ari-shop-main li { font-size: 1.0125rem; line-height: 1.75; }

.ari-shop-main .woocommerce-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted, #736d5a);
  margin-bottom: 2rem;
}
.ari-shop-main .woocommerce-breadcrumb a { color: inherit; }

/* --------------------------------------------------------- single product */

/* Salient wraps the gallery and the summary in .nectar-prod-wrap and floats
   them; the float is replaced with a two-column grid so the summary sits
   beside the photograph instead of under it. */
.ari-shop-main .nectar-prod-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.ari-shop-main .nectar-prod-wrap > .single-product-main-image,
.ari-shop-main .nectar-prod-wrap > .summary {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ari-shop-main div.product .woocommerce-tabs,
.ari-shop-main div.product .related,
.ari-shop-main div.product .up-sells { margin-top: clamp(2rem, 5vw, 3.5rem); }

.ari-shop-main .woocommerce-product-gallery img { border-radius: 2px; }

.ari-shop-main .summary .price,
.ari-shop-main .summary .price .amount {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.75rem;
  color: var(--green, #436c40);
  font-weight: 400;
}

.ari-shop-main .summary .woocommerce-product-details__short-description {
  color: #4a4740;
  margin-bottom: 1.5rem;
}

/* The quantity box is the point of this shop: one unit is one tree. */
.ari-shop-main form.cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin: 1.5rem 0 0; }

.ari-shop-main .quantity input.qty {
  width: 5.5rem;
  height: 50px;
  padding: 0 0.5rem;
  border: 1px solid var(--line, #c8bea4);
  border-radius: 2px;
  font: 600 1rem var(--sans, "Manrope", sans-serif);
  text-align: center;
  background: #fff;
  color: var(--ink, #1a1a18);
}

.ari-shop-main .button,
.ari-shop-main button.button,
.ari-shop-main a.button,
.ari-shop-main input.button,
.ari-shop-main .checkout-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--gold, #d6a23e);
  color: var(--navy-deep, #0d2446);
  font: 700 14px var(--sans, "Manrope", sans-serif);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 180ms ease;
}

.ari-shop-main .button:hover,
.ari-shop-main button.button:hover,
.ari-shop-main a.button:hover,
.ari-shop-main .checkout-button:hover { background: #e4b653; }

.ari-shop-main .button.alt,
.ari-shop-main button.button.alt { background: var(--navy, #153564); color: #fff; }
.ari-shop-main .button.alt:hover,
.ari-shop-main button.button.alt:hover { background: #1d4379; }

/* A quiet unit hint under the add-to-cart row, filled by ari_unit_hint. */
.ari-shop-main .ari-unit-hint {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted, #736d5a);
}

/* ------------------------------------------------------------- catalogue */

.ari-shop-main ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ari-shop-main ul.products li.product {
  margin: 0;
  width: auto;
  float: none;
  background: #fff;
  border: 1px solid var(--line, #c8bea4);
  border-radius: 2px;
  padding: 1.25rem;
}

.ari-shop-main ul.products li.product h2,
.ari-shop-main ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.4rem;
}

/* ---------------------------------------------------- cart and checkout */

.ari-shop-main table.shop_table,
.ari-shop-main table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ari-shop-main table.shop_table th,
.ari-shop-main table.shop_table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line, #c8bea4);
  text-align: start;
}

.ari-shop-main .cart_totals h2,
.ari-shop-main #order_review_heading { margin-top: 0; }

.ari-shop-main .woocommerce-billing-fields input,
.ari-shop-main .woocommerce-checkout input[type="text"],
.ari-shop-main .woocommerce-checkout input[type="email"],
.ari-shop-main .woocommerce-checkout input[type="tel"],
.ari-shop-main .woocommerce-checkout textarea,
.ari-shop-main .woocommerce-checkout select,
.ari-shop-main .select2-selection {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line, #c8bea4);
  border-radius: 2px;
  background: #fff;
  font: 400 1rem var(--sans, "Manrope", sans-serif);
  color: var(--ink, #1a1a18);
}

.ari-shop-main label { font-size: 0.875rem; font-weight: 600; color: var(--navy-deep, #0d2446); }

.ari-shop-main .woocommerce-info,
.ari-shop-main .woocommerce-message,
.ari-shop-main .woocommerce-error {
  border-top: 2px solid var(--gold, #d6a23e);
  background: #fbf9f5;
  padding: 1rem 1.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
}
.ari-shop-main .woocommerce-error { border-top-color: #b3261e; }

/* Prices and quantities read left-to-right even in Arabic. */
.ari-shop-main .amount,
.ari-shop-main .quantity,
.ari-shop-main .woocommerce-Price-amount { direction: ltr; unicode-bidi: isolate; }

/* ------------------------------------------------------- arabic specifics */

.ari-live-home-ar .ari-shop-main { direction: rtl; text-align: right; }
.ari-live-home-ar .ari-shop-main table.shop_table th,
.ari-live-home-ar .ari-shop-main table.shop_table td { text-align: right; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .ari-shop-main div.product { grid-template-columns: 1fr; }
  .ari-shop-main div.product .woocommerce-product-gallery,
  .ari-shop-main div.product .summary { grid-column: 1; }
}

/* The cart count in the header. */
.ari-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-end: 0.75rem;
  font: 600 13px var(--sans, "Manrope", sans-serif);
  color: var(--navy, #153564);
  text-decoration: none;
}
.ari-cart-link[hidden] { display: none; }
.ari-cart-link__count {
  min-width: 1.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--gold, #d6a23e);
  color: var(--navy-deep, #0d2446);
  text-align: center;
}

/* -------------------------------------------- pre-launch payment notice */

.ari-shop-notice {
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  background: #fbf9f5;
  border-top: 2px solid var(--gold, #d6a23e);
  color: #4a4740;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ari-shop-soon {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  background: #fbf9f5;
  border: 1px solid var(--line, #c8bea4);
  border-radius: 2px;
  font-size: 0.9375rem;
}
.ari-shop-soon strong { color: var(--navy-deep, #0d2446); }
