/* ============================================================
   COMTOIS COLLECTIVE — WooCommerce + Sunshine Photo Cart skin
   Carries the brand system (comtois.css tokens) onto the store,
   client account, cart, checkout and gallery pages.
   ============================================================ */

/* Give store/account/gallery pages room under the fixed nav and a
   comfortable content width. WooCommerce shortcode pages render inside
   the theme's page template, these rules brand the inner content. */
.woocommerce,
.woocommerce-page,
.sunshine {
  font-family: var(--font-sans);
  color: var(--fg);
}

/* ---------- Headings ---------- */
.woocommerce h1, .woocommerce h2, .woocommerce h3,
.woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3,
.sunshine h1, .sunshine h2, .sunshine h3 {
  font-family: var(--font-serif);
  font-weight: var(--serif-wght);
  letter-spacing: var(--serif-tighten);
  line-height: 1.04;
  color: var(--fg);
}

/* ---------- Buttons (match .btn-primary) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #respond input#submit,
.woocommerce-page .button,
.sunshine .button,
.sunshine-button,
.wc-block-components-button,
.wp-block-button__link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-fg);
  transition: all .35s var(--ease);
  cursor: pointer;
  line-height: 1.1;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page .button:hover,
.sunshine .button:hover,
.wc-block-components-button:hover,
.wp-block-button__link:hover {
  background: var(--accent-deep);
  color: var(--accent-fg);
  transform: translateY(-2px);
  opacity: 1;
}

/* Secondary / outline buttons (e.g. "View cart", alt actions) */
.woocommerce a.button.wc-forward.wc-block-components-button--outlined,
.woocommerce .button.alt--outlined,
.woocommerce-message a.button,
.woocommerce-info a.button {
  background: transparent;
  color: var(--fg);
  border-color: var(--edge);
}

/* ---------- Form fields (match the contact form) ---------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page select,
.woocommerce-page textarea,
.sunshine input[type="text"],
.sunshine input[type="email"],
.sunshine input[type="password"],
.wc-block-components-text-input input {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-page input:focus,
.woocommerce-page select:focus,
.woocommerce-page textarea:focus,
.wc-block-components-text-input input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.woocommerce form .form-row label,
.woocommerce-page label,
.wc-block-components-checkout-step__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Links & accents ---------- */
.woocommerce a,
.woocommerce-page a,
.sunshine a {
  color: var(--fg);
}
.woocommerce a:hover,
.woocommerce-page a:hover,
.sunshine a:hover {
  color: var(--accent);
}
.woocommerce .amount,
.woocommerce-Price-amount,
.woocommerce span.price,
.woocommerce ins {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- My Account (client login area) ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 14px;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--fg-faint);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  border-radius: 8px;
  border-top: 3px solid var(--accent);
  background: var(--bg-2);
  color: var(--fg);
  font-size: 15px;
}

/* ---------- Tables (cart, orders, downloads) ---------- */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  border: 1px solid var(--edge);
  border-radius: 8px;
  border-collapse: separate;
}
.woocommerce table.shop_table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- Product grid (if a shop/catalog page is used) ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif);
  font-weight: var(--serif-wght);
  letter-spacing: var(--serif-tighten);
}
.woocommerce ul.products li.product img {
  border-radius: 4px;
}

/* ---------- Sunshine Photo Cart galleries ---------- */
.sunshine-image-grid img,
.sunshine-gallery img {
  border-radius: 4px;
}
.sunshine-gallery-title,
.sunshine h1 {
  font-family: var(--font-serif);
}
