/*
 * Pieces shared by the shop and the admin: wordmark, chip button, section heading,
 * status tags, photo slots. Link colours here are repeated on :hover because the
 * page stylesheets add a generic link hover colour that would otherwise win.
 */

/* ---------- Logo (Components/Brand/Wordmark.jsx, public/images/logo*.svg) ---------- */
.wordmark-with-label { display: flex; align-items: center; }
.wordmark__label {
    margin-left: 10px;
    font-family: 'Google Sans Flex', sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--light-text-muted);
}
/* The logo is 1701 × 294 (≈ 5.8 : 1): sized by width, shrinks with its column, never stretched. */
.wordmark-img { display: block; height: auto; max-width: 100%; }
.wordmark-img--header { width: 232px; }
.wordmark-img--footer { width: 300px; }
.wordmark-img--admin { width: 140px; }
.wordmark-img--auth { width: 280px; }

/* ---------- Chip button: dark button with a gradient icon square ---------- */
.chip {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-lg);
    padding: 4px 14px 4px 4px;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
}
/* Doubled class: must beat the pages' `.site :where(a)` / `.admin :where(a)` link colours. */
.chip.chip,
.chip.chip:hover { color: #ffffff; }
.chip__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 40px;
    border-radius: 7px;
}
/* sizes */
.chip--lg { gap: 14px; padding-right: 20px; font-size: 18px; }
.chip.chip--lg,
.chip.chip--lg:hover { color: #fafafa; }
.chip--lg .chip__icon { width: 60px; height: 52px; border-radius: var(--radius-lg); }
.chip--wide { padding-right: 16px; }
.chip--wide .chip__icon { width: 52px; height: 44px; border-radius: var(--radius-lg); }
.chip--pr16 { padding-right: 16px; }
.chip--grow { flex-grow: 1; white-space: nowrap; }
/* surfaces */
.chip--graphite { background: var(--dark-surface); }
.chip--smoke { background: var(--dark-surface-raised); }
.chip--ink { background: var(--dark-ground); }
/* icon fills */
.chip__icon--gradient { background: var(--gc-gradient); }
.chip__icon--short { background: var(--gc-gradient-short); }
.chip__icon--yellow { background: var(--gc-yellow); }
.chip__icon--muted { background: var(--dark-surface-raised); }

/* ---------- Section heading (Black Ops One, accent in yellow) ---------- */
.section-heading {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--dark-text);
}
.section-heading__accent { color: var(--gc-yellow); }

/* ---------- Status tags ---------- */
/* shop: availability dot */
.availability {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.availability .availability__dot { width: 8px; height: 8px; border-radius: 4px; box-sizing: border-box; }
.availability--available { color: var(--status-available); }
.availability--available .availability__dot { background: var(--status-available); }
.availability--coming-soon { color: var(--status-coming-soon); }
.availability--coming-soon .availability__dot { border: 1.5px solid var(--status-coming-soon); }

/* admin: order status pill */
.status-tag {
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}
.status-tag--paid { background: var(--status-paid-bg); color: var(--status-paid-text); }
.status-tag--pending,
.status-tag--pre-order { background: var(--status-pending-bg); color: var(--status-pending-text); }
.status-tag--shipped { background: var(--status-shipped-bg); color: var(--status-shipped-text); }
.status-tag--delivered { background: #d3e4f4; color: #163a5c; }
.status-tag--cancelled { background: #f6d5d1; color: #8a1c12; }
/* small inline variant (Top models "Pre-order") */
.status-tag--small {
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Photo slot: real image once supplied, labelled placeholder until then ---------- */
.photo-slot__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.photo-slot[data-placeholder='false'] {
    border-color: transparent !important;
    background: none !important;
}

/* Product photos sit on white, so transparent PNGs don't show the dark page through
   (cards, product page photo + thumbnails, cart and order lines, blog product box). */
.product-card__photo img,
.product-gallery__main img,
.product-gallery__thumb img,
.cart-item__photo img,
.order-line__photo img,
.post-product__photo img {
    background: #ffffff;
}
