:root {
  --shop-content-width: 1160px;
}

/* Tablets use their full canvas while keeping the touch navigation. */
@media (min-width: 481px) {
  .experience { max-width: none; box-shadow: none; }
  .cp-bottom-nav, .cp-checkout-bar, .cp-purchase-bar { width: 100%; }
}

@media (min-width: 600px) and (max-width: 799px) {
  .cp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 800px) {
  :root { background: white; }
  .cp-app { padding-bottom: 0; }
  .cp-bottom-nav { display: none; }
  .cp-shortcuts { display: none; }

  .cp-products-section, .cp-browse-page, .cp-detail-main {
    width: min(calc(100% - 48px), var(--shop-content-width));
    margin-inline: auto;
  }
  .cp-products-section { padding: 40px 0 64px; scroll-margin-top: 24px; }
  .cp-main > .cp-products-section:first-child { padding-top: 36px; }
  .cp-section-heading { margin-bottom: 20px; align-items: center; }
  .cp-section-heading h2 { font-size: 27px; letter-spacing: -1.2px; }
  .cp-app .cp-sort { font-size: 13px !important; padding: 8px 0 8px 14px; }
  .cp-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
  .cp-product-title { font-size: 14px; height: 42px; }
  .cp-product-visual { border-radius: 6px; }
  .cp-product-link:hover img { transform: scale(1.035); }
  .cp-product-copy:hover .cp-product-title { text-decoration: underline; }
  .cp-price strong { font-size: 23px; }
  .cp-wish { right: 8px; bottom: 8px; width: 36px; height: 36px; }

  .cp-detail-main {
    display: grid;
    max-width: 1040px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "photo summary" "photo shipping" "photo options"
                         "photo purchase" "description description";
    column-gap: clamp(32px, 4vw, 66px);
    padding: 36px 0 72px;
  }
  .cp-detail-image { grid-area: photo; align-self: start; border-radius: 8px; overflow: hidden; }
  .cp-detail-summary { grid-area: summary; padding: 0 0 16px; }
  .cp-detail-title-row h1 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 650; }
  .cp-delivery-panel { grid-area: shipping; padding: 15px 0 0; }
  .cp-delivery-perks { margin-top: 10px; padding: 12px 0; }
  .cp-options { grid-area: options; padding: 16px 0; border: 0; border-top: 1px solid #e8eae9; }
  .cp-purchase-bar {
    grid-area: purchase; position: static; transform: none; width: auto; padding: 0;
    border: 0; align-self: end; z-index: auto;
  }
  .cp-detail-description {
    grid-area: description; margin-top: 42px; padding: 32px 0 0; border-top: 1px solid #ddd;
  }
  .cp-detail-description h2 { font-size: 22px; }
  .cp-detail-description > img { height: 380px; max-height: none; }
  .cp-product-facts { font-size: 13px; }

  .cp-browse-page { padding: 28px 0 64px; }
  .cp-category-list { grid-template-columns: repeat(3, 1fr); }
  .cp-app .cp-category-tile { padding: 16px; }
  .cp-category-tile img { width: 56px; height: 56px; }
  .cp-orders-page, .cp-search-page, .cp-cart-page, .cp-checkout-page, .cp-checkout-bar {
    width: min(calc(100% - 48px), 800px); margin-inline: auto;
  }
  .cp-search-page { padding: 28px 0 50px; }
  .cp-orders-page, .cp-cart-page, .cp-checkout-page { margin-top: 26px; min-height: 0; border-radius: 8px; }
  .cp-cart-page, .cp-checkout-page { padding: 8px; background: #f4f6f5; }
  .cp-orders-page { padding: 28px 26px; }
  .cp-check-section, .cp-receipt-intro { padding: 22px 26px; }
  .cp-check-section:last-child { margin-bottom: 0; }
  .cp-checkout-bar {
    position: static; transform: none; padding: 18px 0 48px; border: none;
  }
  .cp-checkout-bar > .cp-primary { width: min(100%, 400px); margin-inline: auto; }
  .cp-order-line img { width: 74px; height: 74px; }
  .cp-receipt-actions { justify-content: center; }
  .cp-receipt-actions > button { flex: 0 1 220px; }
  #art-sheet { inset: 0; margin: auto; width: min(480px, 80vw); border-radius: 12px; }
  .sheet-handle { display: none; }
}

@media (min-width: 1160px) {
  .cp-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
