/* MyDataTheme - product / category / value cards for the storefront.

   All three share one card language: white surface, a clear 1px border, 7px
   radius, no resting shadow. Hover strengthens the border and adds the lightest
   possible lift, so the grid reads as an even, aligned set at rest. */

/* -- Software product card ------------------------------------------------
   Digital goods, so the card leads with vendor + edition + license term, not a
   photo. Never renders a product key - keys exist only inside My Licenses. */

.md-product-card {
    display: flex;
    flex-direction: column;
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    padding: 20px;
    height: 100%;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.md-product-card:hover { border-color: var(--md-primary); box-shadow: var(--md-shadow-md); }

.md-product-card__top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.md-product-card__logo {
    width: 42px; height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: var(--md-radius-md);
    background: var(--md-primary-soft);
    border: 1px solid var(--md-primary-border);
    color: var(--md-primary-dark);
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
}
.md-product-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.md-product-card__vendor {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--md-muted);
    margin: 0 0 2px;
}
.md-product-card__name { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: 0; }
.md-product-card__name a { color: var(--md-ink); }
.md-product-card__name a:hover { color: var(--md-primary-dark); }

.md-product-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.md-product-card__specs {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--md-surface-alt);
    border-radius: var(--md-radius-md);
    font-size: 13.5px;
}
.md-product-card__spec { display: flex; justify-content: space-between; gap: 12px; }
.md-product-card__spec dt { color: var(--md-muted); margin: 0; }
.md-product-card__spec dd { margin: 0; font-weight: 600; text-align: right; color: var(--md-ink); }

.md-product-card__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--md-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.md-product-card__price { font-size: 19px; font-weight: 800; color: var(--md-primary-dark); letter-spacing: -.01em; }
.md-product-card__price small { display: block; font-size: 11.5px; font-weight: 500; color: var(--md-muted); letter-spacing: 0; }

/* -- Category card ---------------------------------------------------------
   Equal-height tiles with a leading blue rule that thickens on hover: the grid
   has to look like one aligned block, not a set of loose panels. */

.md-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 18px 20px 18px 22px;
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    color: var(--md-ink);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.md-category-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--md-primary-border);
    transition: background-color .15s ease;
}
.md-category-card:hover { text-decoration: none; border-color: var(--md-primary); box-shadow: var(--md-shadow-md); }
.md-category-card:hover::before { background: var(--md-primary); }
.md-category-card__name { font-weight: 700; font-size: 15.5px; color: var(--md-ink); }
.md-category-card__desc { font-size: 13.5px; color: var(--md-muted); line-height: 1.5; }

/* -- Value proposition card ----------------------------------------------
   Small icon, bold navy title, muted body. The icon supports the title; it is
   never the visual centre of the card. */

.md-value-card {
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    padding: 22px;
    height: 100%;
}
.md-value-card__icon {
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: var(--md-radius-sm);
    background: var(--md-primary);
    color: #fff;
    margin-bottom: 14px;
}
.md-value-card h3 { font-size: 15.5px; margin-bottom: 6px; font-weight: 700; }
.md-value-card p { margin: 0; font-size: 14px; color: var(--md-muted); line-height: 1.55; }
