/**
 * ASHLAR GROUP — Design System for Divi 5
 *
 * Aesthetic: Refined Industrial Minimalism
 * Fonts: DM Sans (body + headings) — set via Divi Theme Options
 * Brand Guide v1.0 (2026) — Source of Truth
 *
 * PHILOSOPHY: This file contains ONLY infrastructure CSS that cannot
 * be achieved via the Divi 5 Visual Builder. ALL visual styling
 * (typography, colors, spacing, backgrounds) is set natively in VB
 * module settings or Divi Theme Options.
 *
 * The team can change ANY text color, size, font, and weight natively
 * in the Visual Builder without touching this file.
 *
 * Sections in this file:
 *   1. Brand Design Tokens (CSS custom properties)
 *   2. VB Inheritance Fix (color:inherit for text modules)
 *   3. Eyebrow Component (::before pseudo-element pattern)
 *   4. Ghost Button Variant (CSS-class modifier)
 *   5. Dark Section Extras (button inversions, eyebrow adjustments)
 *   6. Card Interaction Effects (hover transforms, box-shadows)
 *   7. Presence Card Animation (::before width transition)
 *   8. Scroll Reveal Animation (JS-driven opacity/transform)
 *   9. Grain Texture Overlay (body::after SVG noise)
 *  10. Fluent Forms Styling (third-party plugin)
 *  11. Sticky Header + Backdrop Filter
 *  12. Service Icons (SVG sizing + hover)
 *
 * @package AshlarCore
 * @version 3.0.0
 */


/* ═══════════════════════════════════════════
   1. BRAND DESIGN TOKENS — CSS Custom Properties

   These define the ASHLAR brand palette and override Divi's
   default CSS custom properties. VB settings always win over
   these because Divi generates per-module rules with higher
   specificity.
   ═══════════════════════════════════════════ */

:root {
    /* ── ASHLAR Brand Guide v1.0 — Primary Palette ── */
    --ashlar-dark:        #4A4A4A;   /* Ashlar Dark */
    --ashlar-gray:        #808080;   /* Ashlar Gray */
    --ashlar-light:       #D0D0D0;   /* Ashlar Light */
    --ashlar-bg:          #F2F1EE;   /* Background */

    /* ── Interface Web Colours ── */
    --ashlar-header-footer: #555555; /* Header / Footer */
    --ashlar-page-bg:     #FFFFFF;   /* Page Background */
    --ashlar-alt-bg:      #F5F5F5;   /* Alternate BG (sections) */

    /* ── Derived tokens ── */
    --ashlar-mist:        #E8E8E8;   /* Borders, subtle dividers */

    /* ── Sub-brand accent colours (Brand Guide v1.0) ── */
    --ashlar-stone:       #808080;   /* ASHLAR STONE — Pedra Natural */
    --ashlar-sea:         #0099CC;   /* ASHLAR SEA — Pescas */
    --ashlar-trading:     #4CAF50;   /* ASHLAR TRADING — Comércio */
    --ashlar-waste:       #F5A623;   /* ASHLAR WASTE — Resíduos */
    --ashlar-agro:        #8D6E63;   /* ASHLAR AGRO — Agricultura */
    --ashlar-construct:   #E65100;   /* ASHLAR CONSTRUCT — Construção */
    --ashlar-concrete:    #9E9E9E;   /* ASHLAR CONCRETE — Betão */
    --ashlar-tourism:     #00ACC1;   /* ASHLAR TOURISM — Turismo */

    /* ── Divi 5 global overrides ── */
    --divi-primary-color:              var(--ashlar-dark);
    --divi-secondary-color:            var(--ashlar-gray);
    --divi-body-background-color:      var(--ashlar-page-bg);
    --divi-link-color:                 var(--ashlar-dark);
    --divi-link-color-hover:           var(--ashlar-gray);
    --divi-border-radius:              0px;
}


/* ═══════════════════════════════════════════
   2. VB INHERITANCE FIX

   Divi's base CSS sets h1{color:#333} directly on headings,
   which blocks inherited color from .et_pb_text_inner (where
   VB applies color settings). This rule forces headings and
   paragraphs inside text modules to inherit, enabling VB
   color editing.

   Specificity: (0,1,1) — beats Divi's h1 (0,0,1) but loses
   to any VB-generated per-module rule (0,2,0+).
   ═══════════════════════════════════════════ */

.et_pb_text_inner h1,
.et_pb_text_inner h2,
.et_pb_text_inner h3,
.et_pb_text_inner h4,
.et_pb_text_inner h5,
.et_pb_text_inner h6,
.et_pb_text_inner p {
    color: inherit;
}


/* ═══════════════════════════════════════════
   3. EYEBROW COMPONENT

   Reusable section label pattern with ::before line.
   This uses a pseudo-element (not achievable in VB).
   Apply via CSS class: ashlar-eyebrow
   ═══════════════════════════════════════════ */

.ashlar-eyebrow {
    margin-bottom: 16px;
}

.ashlar-eyebrow p,
.et_pb_text.ashlar-eyebrow p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.ashlar-eyebrow p::before,
.et_pb_text.ashlar-eyebrow p::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ashlar-light);
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   4. GHOST BUTTON VARIANT

   CSS-class modifier for transparent/outline buttons.
   Apply via CSS class: ashlar-btn-ghost
   ═══════════════════════════════════════════ */

.ashlar-btn-ghost .et_pb_button,
.et_pb_button_module_wrapper.ashlar-btn-ghost .et_pb_button {
    background: transparent !important;
    border: 1px solid var(--ashlar-mist) !important;
    color: var(--ashlar-dark) !important;
}

.ashlar-btn-ghost .et_pb_button:hover {
    background: var(--ashlar-dark) !important;
    border-color: var(--ashlar-dark) !important;
    color: #FFFFFF !important;
}


/* ═══════════════════════════════════════════
   5. DARK SECTION EXTRAS

   Text colors on dark sections are handled natively by
   Divi's et_pb_bg_layout_dark class. These rules only
   handle extras not covered by VB.
   ═══════════════════════════════════════════ */

/* Eyebrow line on dark backgrounds */
:where(.ashlar-dark) .ashlar-eyebrow p::before,
:where(.ashlar-dark) .et_pb_text.ashlar-eyebrow p::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Inverted buttons on dark sections */
:where(.ashlar-dark) .et_pb_button,
:where(.ashlar-dark) a.et_pb_button {
    background-color: #FFFFFF;
    color: var(--ashlar-dark);
}

:where(.ashlar-dark) .et_pb_button:hover {
    background-color: var(--ashlar-bg);
}


/* ═══════════════════════════════════════════
   6. CARD INTERACTION EFFECTS

   Hover transforms, box-shadows, and border transitions
   for unit cards, product cards, and service cards.
   These interactions are not available in VB.

   NOTE: Card padding, background, font-size are set
   natively in VB on each module. Only interaction
   effects are in CSS.
   ═══════════════════════════════════════════ */

/* Button hover lift */
.et_pb_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Unit cards */
/* Card image consistency — keeps all card images the same aspect ratio
   regardless of source dimensions. Infrastructure CSS (VB cannot do object-fit). */
.ashlar-unit-card .et_pb_image_wrap img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    display: block;
}

.ashlar-unit-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ashlar-mist);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ashlar-unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Sub-brand accent bar — Brand Guide colours */
.ashlar-accent-stone    { border-top: 3px solid var(--ashlar-stone) !important; }
.ashlar-accent-sea      { border-top: 3px solid var(--ashlar-sea) !important; }
.ashlar-accent-trading  { border-top: 3px solid var(--ashlar-trading) !important; }
.ashlar-accent-construct{ border-top: 3px solid var(--ashlar-construct) !important; }
.ashlar-accent-concrete { border-top: 3px solid var(--ashlar-concrete) !important; }
.ashlar-accent-waste    { border-top: 3px solid var(--ashlar-waste) !important; }
.ashlar-accent-agro     { border-top: 3px solid var(--ashlar-agro) !important; }
.ashlar-accent-tourism  { border-top: 3px solid var(--ashlar-tourism) !important; }

/* Product cards */
.ashlar-product-card {
    border-right: 1px solid var(--ashlar-mist);
    border-bottom: 1px solid var(--ashlar-mist);
    border-left: 1px solid var(--ashlar-mist);
    border-top: 1px solid var(--ashlar-mist);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.ashlar-product-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
/* Icon sizing — constrains SVG icons to 56px inside product cards */
.ashlar-product-card .et_pb_image {
    max-width: 56px !important;
    margin: 0 0 8px !important;
}
.ashlar-product-card .et_pb_image_wrap img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
}
.ashlar-product-card .et_pb_image_wrap {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.ashlar-product-card:hover .et_pb_image_wrap {
    opacity: 1;
}
/* Product category label */
.ashlar-product-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ashlar-gray);
    margin-bottom: 2px;
}
/* Product origin */
.ashlar-product-origin {
    font-size: 0.8rem;
    color: var(--ashlar-gray);
    margin-top: 4px;
}
.ashlar-product-origin strong {
    color: var(--ashlar-dark);
    font-weight: 600;
}

/* Product meta block */
.ashlar-product-meta {
    background: var(--ashlar-alt-bg);
    border-left: 3px solid var(--ashlar-mist);
}

/* Service cards — border-right separator pattern */
.ashlar-service-card {
    border-right: 1px solid var(--ashlar-mist);
    transition: all 0.4s ease;
}

.ashlar-service-card:last-child {
    border-right: none;
}

.ashlar-service-card:hover {
    background: var(--ashlar-alt-bg);
}

/* Product grid — blog module cards */
.ashlar-product-grid .et_pb_post {
    border: 1px solid var(--ashlar-mist);
    transition: all 0.3s ease;
}

.ashlar-product-grid .et_pb_post:hover {
    border-color: var(--ashlar-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}


/* ═══════════════════════════════════════════
   7. PRESENCE CARD ANIMATION

   Complex ::before width transition on hover.
   Not achievable in VB.
   ═══════════════════════════════════════════ */

.ashlar-presence-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ashlar-presence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ashlar-sea);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ashlar-presence-card:hover {
    transform: translateY(-4px);
}

.ashlar-presence-card:hover::before {
    width: 100%;
}


/* ═══════════════════════════════════════════
   8. SCROLL REVEAL ANIMATION

   JS-driven entrance animation. Applied via class:
   ashlar-reveal → .visible on scroll.
   ═══════════════════════════════════════════ */

.ashlar-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ashlar-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ashlar-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ═══════════════════════════════════════════
   9. GRAIN TEXTURE OVERLAY

   Subtle SVG noise texture over the entire page.
   Not achievable in VB.
   ═══════════════════════════════════════════ */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
}


/* ═══════════════════════════════════════════
   10. FLUENT FORMS STYLING

   Third-party plugin — cannot be styled via Divi VB.
   CSS is the only option for Fluent Forms.
   ═══════════════════════════════════════════ */

.fluentform .ff-el-input--label label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ashlar-gray);
}

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform textarea,
.fluentform select {
    font-family: 'DM Sans', sans-serif;
    border: 1px solid var(--ashlar-mist);
    border-radius: 0;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
    border-color: var(--ashlar-dark);
    box-shadow: none;
}

.fluentform .ff-btn-submit {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--ashlar-dark);
    color: #FFFFFF;
    border-radius: 0;
    padding: 14px 32px;
    border: none;
    transition: all 0.3s ease;
}

.fluentform .ff-btn-submit:hover {
    background: var(--ashlar-header-footer);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════
   11. STICKY HEADER + BACKDROP FILTER

   Structural positioning and glassmorphism effect
   for the sticky header. Not achievable in VB.
   ═══════════════════════════════════════════ */

.ashlar-tb-header-injection {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

#main-header,
.et-l--header {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.et-fixed-header #main-header,
.et-fixed-header .et-l--header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}


/* ═══════════════════════════════════════════
   12. SERVICE ICONS (SVG inline)

   SVG icon sizing and hover color change.
   Not achievable in VB.
   ═══════════════════════════════════════════ */

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--ashlar-dark);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    transition: color 0.3s ease;
}

.ashlar-service-card:hover .service-icon svg {
    color: var(--ashlar-sea);
}

.subbrand-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.subbrand-icon svg {
    width: 100%;
    height: auto;
}


/* ═══════════════════════════════════════════
   13. HEADER DARK SECTION EXTRAS

   Mobile menu and dropdown styling for the dark
   header section. These are edge cases not easily
   controlled via VB module settings.
   ═══════════════════════════════════════════ */

.ashlar-header-section .mobile_menu_bar:before {
    color: #FFFFFF;
}

.ashlar-header-section .et_mobile_menu {
    background-color: var(--ashlar-header-footer);
}

.ashlar-header-section .et_mobile_menu a {
    color: #FFFFFF;
    border-bottom-color: rgba(255,255,255,0.1);
}

.ashlar-header-section .et_pb_menu__wrap .sub-menu,
.ashlar-header-section .et_pb_fullwidth_menu .sub-menu {
    background-color: #4A4A4A;
    border: 1px solid rgba(255,255,255,0.1);
}

.ashlar-header-section .sub-menu a {
    color: #FFFFFF;
}


/* ═══════════════════════════════════════════
   14. RESPONSIVE STRUCTURAL ADJUSTMENTS

   Only structural changes that can't be set in VB
   responsive mode (border pattern changes).
   ═══════════════════════════════════════════ */

@media (max-width: 980px) {
    .ashlar-service-card {
        border-right: none;
        border-bottom: 1px solid var(--ashlar-mist);
    }
}


/* ================================================
   WORLD MAP — Presença Global section background
   ================================================ */
.ashlar-presence-map.et_pb_section {
    position: relative;
    overflow: hidden;
}
.ashlar-presence-map.et_pb_section .ashlar-world-map-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ashlar-presence-map.et_pb_section .ashlar-world-map-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ashlar-presence-map.et_pb_section > .et_pb_row {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   ASHLAR News Grid — [ashlar_news_grid] shortcode
   ========================================================================== */

/* --- Filter Pills --------------------------------------------------------- */
.ashlar-news-wrap {
    width: 100%;
}

.ashlar-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.ashlar-filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #D0D0D0;
    border-radius: 2px;
    background: transparent;
    color: #808080;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    transition: all 220ms ease;
}

.ashlar-filter-btn:hover,
.ashlar-filter-btn:focus {
    border-color: #4A4A4A;
    color: #4A4A4A;
    text-decoration: none;
    outline: none;
}

.ashlar-filter-btn.is-active {
    background: #4A4A4A;
    border-color: #4A4A4A;
    color: #FFFFFF;
}

/* --- News Grid ------------------------------------------------------------ */
.ashlar-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 980px) {
    .ashlar-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 580px) {
    .ashlar-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- News Card ------------------------------------------------------------ */
.ashlar-news-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}

.ashlar-news-card:hover {
    border-color: #4A4A4A;
    box-shadow: 0 8px 28px -6px rgba(74, 74, 74, 0.14);
    transform: translateY(-3px);
}

/* Thumbnail */
.ashlar-news-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.ashlar-news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.ashlar-news-card:hover .ashlar-news-card__img {
    transform: scale(1.04);
}

/* Card Body */
.ashlar-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 24px;
    gap: 12px;
}

/* Meta row — category + date */
.ashlar-news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ashlar-news-card__category {
    display: inline-block;
    padding: 4px 10px;
    background: #F2F1EE;
    color: #4A4A4A;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    transition: background 200ms ease;
}

.ashlar-news-card__category:hover {
    background: #D0D0D0;
    text-decoration: none;
    color: #4A4A4A;
}

.ashlar-news-card__date {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #808080;
    letter-spacing: 0.02em;
}

/* Title */
.ashlar-news-card__title {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #4A4A4A;
}

.ashlar-news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.ashlar-news-card__title a:hover {
    color: #808080;
    text-decoration: none;
}

/* Excerpt */
.ashlar-news-card__excerpt {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #808080;
    flex: 1;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA link */
.ashlar-news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A4A4A;
    text-decoration: none;
    border-bottom: 1px solid #D0D0D0;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: border-color 200ms ease, color 200ms ease;
}

.ashlar-news-card__cta:hover {
    color: #808080;
    border-color: #808080;
    text-decoration: none;
}

/* Empty state */
.ashlar-news-empty {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #808080;
    padding: 48px 0;
    text-align: center;
}

/* --- Single Post styles (basic readability) ------------------------------- */
.single .entry-content,
.single .et_pb_post_content {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #4A4A4A;
    max-width: 720px;
    margin: 0 auto;
}

.single .entry-content h2,
.single .et_pb_post_content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #4A4A4A;
}

.single .entry-content p,
.single .et_pb_post_content p {
    margin-bottom: 20px;
}


/* ═══════════════════════════════════════════
   21. SINGLE PRODUTO — META SIDEBAR
   ═══════════════════════════════════════════ */

/* Background applied via D5 native; reinforce padding inside text inner */
.ashlar-produto-meta-box .et_pb_text_inner {
    padding: 24px;
}

/* Label + value stack */
.ashlar-produto-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Label (small uppercase) */
.ashlar-produto-meta__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ashlar-gray);
    margin: 16px 0 4px;
}

.ashlar-produto-meta__label:first-child {
    margin-top: 0;
}

/* Value */
.ashlar-produto-meta__value {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ashlar-dark);
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ashlar-border);
}

.ashlar-produto-meta p:last-of-type.ashlar-produto-meta__value {
    border-bottom: none;
    padding-bottom: 0;
}

/* ═══════════════════════════════════════════
   22. PRODUCT ARCHIVE — CATALOG GRID
   ═══════════════════════════════════════════ */

/* Responsive: sidebar stacks below content on tablet/mobile */
@media (max-width: 980px) {
    .ashlar-produto-meta-box .et_pb_text_inner {
        margin-top: 32px;
    }
}

/* ═════════════════════════════════════════════
   23. PRODUCTS GRID — [ashlar_products_grid]
   ═════════════════════════════════════════════ */

/* Grid wrapper — 3 equal columns, 24px gap */
.ashlar-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* <a> wrapper: block, no underline, inherits text color */
.ashlar-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.ashlar-product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Ensure card fills the link wrapper height */
.ashlar-product-card-link .ashlar-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ashlar-product-card-link .ashlar-product-card__body {
    flex: 1;
}

/* Product icon inside shortcode grid */
.ashlar-product-icon {
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 16px;
}

/* Card body typography (mirrors static Divi card) */
.ashlar-product-card__body .ashlar-product-category {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ashlar-gray);
    margin: 0 0 8px;
}

.ashlar-product-card__body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ashlar-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.ashlar-product-card__body .ashlar-product-origin {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--ashlar-gray);
    margin: 0;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 980px) {
    .ashlar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
    .ashlar-products-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════
   24. PRODUCT CARD — SPACING & POLISH
   ═══════════════════════════════════════════ */

/* Core card padding — 32px vertical, 28px horizontal */
.ashlar-product-card {
    padding: 32px 28px;
}

/* Ensure card fills link wrapper and uses flex column */
.ashlar-product-card-link .ashlar-product-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Icon: slightly larger bottom margin for breathing room */
.ashlar-product-icon {
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Category label: tight to h3 (label + title are a unit) */
.ashlar-product-card__body .ashlar-product-category {
    margin-bottom: 4px;
}

/* H3 title: more space below before origin */
.ashlar-product-card__body h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.35;
}

/* Origin: push to bottom of card */
.ashlar-product-card__body .ashlar-product-origin {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ashlar-border, #e8e6e3);
    font-size: 0.8rem;
}

/* Body takes all remaining height */
.ashlar-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Hover: lift + stronger border */
.ashlar-product-card-link:hover .ashlar-product-card {
    border-color: var(--ashlar-dark, #4A4A4A);
    box-shadow: 0 8px 32px rgba(74, 74, 74, 0.08);
    transform: translateY(-2px);
}

/* Responsive: tighten padding on tablet/mobile */
@media (max-width: 980px) {
    .ashlar-product-card-link .ashlar-product-card,
    .ashlar-product-card {
        padding: 24px 20px;
    }
}
