/*
 Theme Name: Blocksy Child
 Theme URI: https://pastienak.com/
 Description: Clean, minimal Blocksy child theme with essential overrides only
 Author: PT. Pasti Enak
 Author URI: https://pastienak.com/
 Template: blocksy
 Version: 1.0.1
 Text Domain: blocksy
 Requires Theme: blocksy
*/

/* --------------------------------------------------------------
   BRAND PALETTE OVERRIDE
-------------------------------------------------------------- */

:root {
  --theme-palette-color-1: #145A2D;
  --theme-palette-color-2: #0F4A24;
  --theme-palette-color-3: #003F63;
  --theme-palette-color-4: #FFFDD0;
  --theme-palette-color-5: #111111;
  --theme-palette-color-6: #555555;
  --theme-palette-color-7: #FFFFFF;
  --theme-palette-color-8: #111111; /* Intentional duplicate OK */
}

/* --------------------------------------------------------------
   PRODUCT GRID — RESPONSIVE SQUARE IMAGES
-------------------------------------------------------------- */

.woocommerce ul.products li.product .ct-media-container {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.woocommerce ul.products li.product .ct-media-container img.wp-post-image {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Responsive max-widths */
@media (min-width: 600px) {
  .woocommerce ul.products li.product .ct-media-container {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products li.product .ct-media-container {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------
   REMOVE SALE BADGE
-------------------------------------------------------------- */

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
  display: none !important;
}

/* --------------------------------------------------------------
   REMOVE PRODUCT CATEGORIES / META
-------------------------------------------------------------- */

.woocommerce ul.products li.product .entry-meta,
.woocommerce ul.products li.product .ct-product-categories,
.woocommerce ul.products li.product .product_meta,
.woocommerce ul.products li.product .posted_in {
  display: none !important;
}

/* --------------------------------------------------------------
   NAV MENU SPACING (Elementor)
-------------------------------------------------------------- */

.elementor-nav-menu--main .elementor-nav-menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* ============================================
   FONT PERFORMANCE FIX
   Forces Elementor fonts to use font-display: swap
   ============================================ */

@font-face {
    font-family: 'eicons';
    src: url('/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 5 Brands';
    src: url('/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-brands-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 5 Free';
    src: url('/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Custom Font Registration — Local WOFF2 Files
   Source: /wp-content/uploads/fonts/
   Registered for Blocksy Child Theme — Pastienak.com
   Last updated: 2025-12-11
   ========================================================================== */

/* Montserrat Regular */
@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/uploads/fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Medium */
@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/uploads/fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Bold */
@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/uploads/fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Montserrat Underline Regular — custom variant */
@font-face {
    font-family: 'MontserratUnderline';
    src: url('/wp-content/uploads/fonts/MontserratUnderline-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Roboto Regular */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/uploads/fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Roboto Medium */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/uploads/fonts/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Roboto Bold */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/uploads/fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

button, .button, .wp-block-button__link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
