/** Shopify CDN: Minification failed

Line 267:0 Unexpected "`"

**/
.cart-notification-wrapper {
  position: relative;
}

.cart-notification-wrapper .cart-notification {
  display: block;
}

.cart-notification {
  border-bottom-right-radius: var(--popup-corner-radius);
  border-bottom-left-radius: var(--popup-corner-radius);
  border-color: rgba(var(--color-foreground), var(--popup-border-opacity));
  border-style: solid;
  border-width: 0 0 var(--popup-border-width);
  padding: 2.5rem 3.5rem;
  position: absolute;
  right: 0;
  transform: translateY(-100%);
  visibility: hidden;
  width: 100%;
  box-shadow: var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
    rgba(var(--color-shadow), var(--popup-shadow-opacity));
  z-index: -1;
}

.cart-notification.focused {
  box-shadow: 0 0 0.2rem 0 rgba(var(--color-foreground), 0.3),
    var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
      rgba(var(--color-shadow), var(--popup-shadow-opacity));
}

.cart-notification:focus-visible {
  box-shadow: 0 0 0.2rem 0 rgba(var(--color-foreground), 0.3),
    var(--popup-shadow-horizontal-offset) var(--popup-shadow-vertical-offset) var(--popup-shadow-blur-radius)
      rgba(var(--color-shadow), var(--popup-shadow-opacity));
}

@media screen and (min-width: 750px) {
  .header-wrapper:not(.header-wrapper--border-bottom) + cart-notification .cart-notification {
    border-top-width: var(--popup-border-width);
  }

  .cart-notification {
    border-width: 0 var(--popup-border-width) var(--popup-border-width);
    max-width: 36.8rem;
    right: 2.2rem;
  }
}

@media screen and (min-width: 990px) {
  .cart-notification-wrapper:is(.page-width) > .cart-notification {
    right: 4rem;
  }
}

.cart-notification.animate {
  transition: transform var(--duration-short) ease, visibility 0s var(--duration-short) ease;
}

.cart-notification.active {
  transform: translateY(0);
  transition: transform var(--duration-default) ease, visibility 0s;
  visibility: visible;
}

.cart-notification__header {
  align-items: flex-start;
  display: flex;
}

.cart-notification__heading {
  align-items: center;
  display: flex;
  flex-grow: 1;
  margin-bottom: 0;
  margin-top: 0;
}

.cart-notification__heading .icon-checkmark {
  color: rgb(var(--color-foreground));
  margin-right: 1rem;
  width: 1.3rem;
}

.cart-notification__close {
  margin-top: -2rem;
  margin-right: -3rem;
}

.cart-notification__links {
  text-align: center;
}

.cart-notification__links > * {
  margin-top: 1rem;
}

.cart-notification-product {
  align-items: flex-start;
  display: flex;
  padding-bottom: 3rem;
  padding-top: 2rem;
}

.cart-notification-product dl {
  margin-bottom: 0;
  margin-top: 0;
}

.cart-notification-product__image {
  display: inline-flex;
  margin-right: 1.5rem;
  margin-top: 0.5rem;
}

.cart-notification-product__image:after {
  content: none;
}

.cart-notification-product__name {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* ============================================================================
   PREMIUM PRODUCT PREVIEW (Nike-style Toast)
   ============================================================================ */

.cn-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
}

.cn-line__img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #f6f7fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cn-line__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-line__img-placeholder::before {
  content: '';
  width: 40px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cn-line__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cn-line__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cn-line__variant {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #666666;
  margin: 0;
}

.cn-line__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cn-line__price {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.cn-line__qty {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
}

.cn-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
  margin: 0;
}

/* Mobile responsive */
@media screen and (max-width: 749px) {
  .cn-line {
    padding: 16px;
    gap: 14px;
  }

  .cn-line__img {
    width: 70px;
    height: 70px;
  }

  .cn-line__title {
    font-size: 15px;
  }

  .cn-line__variant {
    font-size: 13px;
  }

  .cn-line__price {
    font-size: 15px;
  }

  .cn-line__qty {
    font-size: 13px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cn-line * {
    transition: none !important;
  }
}
```

---

## 3. Installation Instructions

### Step 1: Update JavaScript
**File:** `assets/cart-notification.js`
- Replace entire file with the code from **Section 1** above
- Save

### Step 2: Update CSS
**File:** `assets/component-cart-notification.css` (or `assets/base.css`)
- Scroll to the **very bottom**
- Paste the CSS from **Section 2** above
- Save

### Step 3: Test
1. Go to your store
2. Add any product to cart
3. Watch for the premium toast notification in the top-right
4. Verify it shows:
   - ✅ Product image (or placeholder)
   - ✅ Product title
   - ✅ Variant info (size/color)
   - ✅ Price (formatted as $XX.XX)
   - ✅ Quantity (if > 1)

---

## What Changed

### JavaScript (`cart-notification.js`):

1. **Added `buildProductPreview(parsedState)`** (Lines 46-88)
   - Extracts product data from `/cart/add.js` response
   - Builds clean HTML preview
   - Handles missing images gracefully

2. **Added `formatMoney(cents)`** (Lines 90-97)
   - Converts cents to dollars
   - Formats as $XX.XX

3. **Added `escapeHtml(text)`** (Lines 99-103)
   - Prevents XSS attacks
   - Safely escapes product titles/variants

4. **Updated `renderContents()`** (Lines 38-65)
   - Injects product preview before opening popup
   - Skips section-based rendering for product (we build it manually)
   - Continues to update icon bubble and buttons normally

### CSS (`component-cart-notification.css`):

1. **Premium product line** (`.cn-line`)
   - Flexbox layout
   - 80px thumbnail on left
   - Product details on right
   - Clean spacing

2. **Image handling**
   - Rounded corners (8px)
   - Placeholder with subtle icon if no image
   - Proper object-fit for all image ratios

3. **Typography**
   - Bold product title (16px, 700 weight)
   - Lighter variant text (14px, 500 weight)
   - Strong price (16px, 800 weight)
   - Subtle quantity badge

4. **Divider line**
   - Gradient fade effect
   - Separates product from buttons below

5. **Mobile responsive**
   - Slightly smaller thumbnail (70px)
   - Adjusted font sizes
   - Maintains readability

---

## Visual Result

**Desktop:**
```
┌────────────────────────────────────┐
│  [IMG]  Product Title              │
│  80x80  Size: Large, Color: Black  │
│         $25.00  Qty: 2             │
├────────────────────────────────────┤
│  [View cart]  [Checkout]           │
└────────────────────────────────────┘
```

**Mobile:**
```
┌────────────────────────┐
│  [IMG]  Product Title  │
│  70x70  Size: Large    │
│         $25.00         │
├────────────────────────┤
│  [View cart]           │
└────────────────────────┘