/* ==========================================================================
 * Moodlogue — the cart drawer's type, on every page that has the drawer.
 * Loaded after styles.css (and site-header.css, inter.css, home.css or
 * info-page.css where a page has them).
 *
 * The heading in Anton (self-hosted, SIL Open Font License 1.1 —
 * assets/fonts/anton/; the same faces as info-page.css), everything else in
 * Inter (inter.css). Only the type changes; the drawer's layout, sizes,
 * spacing and colours are those of styles.css and site-header.css.
 * ========================================================================== */

/* latin-ext */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/anton/anton-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/anton/anton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter for all of the drawer's text; its buttons inherit it (styles.css sets
 * them to `font: inherit`). The close icon keeps its icon font. The panel is
 * plain white, with a faint neutral (not the site's pink) behind a product
 * photo while it loads and under "Explore the collection" on hover. */
.cart-panel {
  background: #ffffff;
  font-family: var(--font-inter);
}

.cart-panel .cart-line img,
.cart-panel .cart-browse-link:hover {
  background: #f8f7f6;
}

/* Checkout turns black with white text once the bag has something in it
 * (app.js / product.js disable it while the bag is empty). */
.cart-panel .checkout-button:not(:disabled) {
  background: #000000;
  color: #ffffff;
}

/* YOUR BAG: the information pages' condensed black capitals, sized to sit in
 * the header row beside the close button (40px), so the row keeps its height. */
.cart-drawer .cart-header h2 {
  color: #111111;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(30px, 1.2vw + 26px, 36px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

/* Weights: semibold for product names, the subtotal and button labels;
 * regular (inherited) for everything else. */
.cart-line h3,
.cart-total strong,
.cart-browse-link {
  font-weight: 600;
}
