/* ============================================================================
   Veras — Minimal product card + catalog bar (shared)
   Extracted from veras-hp.css so the front page and the shop archive render
   an identical card. Deliberately UNSCOPED: enqueued only on the templates
   that use these classes (front page + shop), and the class names are
   card-specific enough not to collide.

   Page-specific sizing overrides (grid widths, image scale, breakpoints) stay
   in veras-hp.css / veras-shop-2026.css, which load after this file.
   ========================================================================== */

/* ─── Catalog bar: result count + price sort ────────────────────────────── */
.home-catalog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.home-catalog-count {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.15vw, 22px);
    color: rgba(26, 27, 30, 0.75);
}
.home-catalog-sort {
    /* width/flex pinned explicitly so a global `select { width: 100% }` from
       WooCommerce or a plugin can't stretch it across the bar. color-scheme
       keeps the native dropdown light against the white catalog. */
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    color-scheme: light;
    font-family: var(--font-body);
    font-size: clamp(12px, 1vw, 19px);
    color: rgba(26, 27, 30, 0.85);
    background: #FFFFFF;
    border: 1px solid rgba(26, 27, 30, 0.22);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

/* ─── Minimal product card ──────────────────────────────────────────────── */
.home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 28px 20px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    background-color: transparent;
    overflow: hidden;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.home-product-card:hover {
    background-color: #ffffff;
    border-color: var(--v-champagne);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.home-product-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent 15%, rgba(197, 168, 128, 0.5) 50%, transparent 85%);
    pointer-events: none;
    z-index: 3;
}
.home-product-card:hover::after {
    animation: veras-card-shine 0.9s ease forwards;
}
@keyframes veras-card-shine {
    from { left: -60%; }
    to   { left: 130%; }
}
.home-product-img {
    position: relative;
    display: block;
    width: min(500px, 26vw);
    max-width: 100%;
}
.home-product-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.18));
}
.home-product-ruo {
    position: absolute;
    top: 4px;
    left: -6px;
    z-index: 2;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    background: var(--v-teal-light);
    border-radius: 3px;
    padding: 4px 8px;
}
.home-product-name {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: clamp(16px, 1.35vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1A1B1E;
    text-decoration: none;
    margin-top: 20px;
    line-height: 1.35;
    max-width: 360px;
    min-height: 72px;
}
.home-product-name:hover { opacity: 0.75; }
.home-product-price {
    font-family: var(--font-ui);
    font-size: clamp(18px, 1.55vw, 30px);
    font-weight: 700;
    color: var(--v-champagne);
    margin-top: 8px;
}
.home-product-price .woocommerce-Price-amount {
    color: var(--v-champagne) !important;
}
.home-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: clamp(8px, .65vw, 12px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--v-teal-light);
    border-radius: 10px;
    padding: 4px 12px;
    margin-top: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.home-product-tag:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ─── Optional card actions (shop): Add to Order + COA ──────────────────── */
.home-product-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    margin-top: 20px;
}
.home-product-add,
.home-product-coa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    border-radius: 26px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}
.home-product-add {
    background: var(--v-champagne);
    border: 1px solid var(--v-champagne);
    color: #1A1B1E;
}
.home-product-add:hover {
    background: var(--v-champagne-light);
    border-color: var(--v-champagne-light);
    transform: translateY(-1px);
}
.home-product-add--soldout,
.home-product-add:disabled {
    background: rgba(26, 27, 30, 0.08);
    border-color: rgba(26, 27, 30, 0.18);
    color: rgba(26, 27, 30, 0.45);
    cursor: not-allowed;
    transform: none;
}
.home-product-coa {
    background: transparent;
    border: 1px solid rgba(26, 27, 30, 0.22);
    color: rgba(26, 27, 30, 0.78);
}
.home-product-coa:hover {
    border-color: var(--v-teal-light);
    color: var(--v-teal-light);
    transform: translateY(-1px);
}
.home-product-actions svg {
    flex-shrink: 0;
}

/* Search filter (shared with .veras-product-card on legacy templates) */
.veras-search-hidden { display: none !important; }

@media (max-width: 560px) {
    .home-product-actions {
        max-width: 100%;
        margin-top: 14px;
        gap: 8px;
    }
    .home-product-add,
    .home-product-coa {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }
}
