/* ========================================
   MOCA Typography - Księga Znaku 2026
   Font: URW DIN Cond (Black + Regular)
   Fallback: Barlow Condensed (Google Fonts)
   ======================================== */

/*
 * URW DIN Cond — @font-face declarations
 * Upload font files to: /impreza-child/fonts/
 * Supported formats: woff2 (preferred), woff (fallback)
 *
 * Required files:
 *   - URWDINCond-Black.woff2
 *   - URWDINCond-Black.woff
 *   - URWDINCond-Regular.woff2
 *   - URWDINCond-Regular.woff
 *   - URWDINCond-Bold.woff2 (optional)
 *   - URWDINCond-Bold.woff (optional)
 */

@font-face {
  font-family: 'URW DIN Cond';
  src: url('../fonts/URWDINCond-Regular.woff2') format('woff2'),
       url('../fonts/URWDINCond-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'URW DIN Cond';
  src: url('../fonts/URWDINCond-Bold.woff2') format('woff2'),
       url('../fonts/URWDINCond-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'URW DIN Cond';
  src: url('../fonts/URWDINCond-Black.woff2') format('woff2'),
       url('../fonts/URWDINCond-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Global Typography Application
   ======================================== */

/*
 * Apply URW DIN Cond to the entire WooCommerce store.
 * Falls back to Barlow Condensed (Google Fonts), then system sans-serif.
 */

.woocommerce,
.woocommerce-page,
.ca-shop-wrapper,
.ca-single-product,
.ca-shop-hero,
body.single-product,
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  font-family: 'URW DIN Cond', 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
}

/* Headings — URW DIN Cond Black (weight 900) */
.ca-shop-hero__title,
.ca-product-info__title,
.ca-related-products__title,
.ca-product-tabs__nav-link,
.woocommerce div.product .product_title,
.woocommerce.single-product .related.products > h2,
.woocommerce div.product .related.products > h2,
.woocommerce div.product .woocommerce-tabs .panel h2,
.ca-product-card__title,
.ca-rlz__card-name,
h1.page-title,
.woocommerce-loop-product__title {
  font-family: 'URW DIN Cond', 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-weight: 900 !important;
}

/* Labels, badges, buttons — URW DIN Cond Black */
.ca-btn,
.ca-btn--primary,
.ca-badge,
.ca-info-badge__label,
.ca-swatch,
.woocommerce button.button,
.woocommerce .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.ca-product-info__category,
.ca-filter__label,
.ca-shop-sort__label {
  font-family: 'URW DIN Cond', 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-weight: 700;
}

/* Body text — URW DIN Cond Regular (weight 400) */
.ca-product-tabs__description p,
.woocommerce-product-details__short-description p,
.woocommerce div.product .woocommerce-tabs .panel p,
.ca-info-badge__value,
.ca-product-card__info,
.woocommerce table td {
  font-family: 'URW DIN Cond', 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-weight: 400;
}
