/* Reflow Toolkit v2 — VIBEAM Editorial Animations & Theme Overrides */

@keyframes reflowWidgetEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reflowImageSwap {
  from {
    opacity: 0.45;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-reflow-type] {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #141413;
}

/* Smooth fade-in once Reflow hydrates real content (never apply transform/animation-fill-mode to .reflow-product-list wrapper so .ref-product-preview stays viewport-fixed) */
.reflow-product-list .ref-products > .ref-product,
.ref-product-list .ref-products > .ref-product,
.ref-shopping-cart,
.ref-order-status,
.ref-category-list {
  animation: reflowWidgetEnter 420ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Product Grid & Cards */
.reflow-product-list .ref-products,
.ref-product-list .ref-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
}

.reflow-product-list .ref-products > .ref-product,
.ref-product-list .ref-products > .ref-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  text-decoration: none;
  color: #141413;
  padding-bottom: 0.75rem;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reflow-product-list .ref-products > .ref-product:hover,
.ref-product-list .ref-products > .ref-product:hover {
  transform: translateY(-4px);
}

.reflow-product-list .ref-products > .ref-product .ref-product-data,
.ref-product-list .ref-products > .ref-product .ref-product-data {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}

.reflow-product-list .ref-products > .ref-product .ref-product-info {
  min-width: 0;
}

.reflow-product-list .ref-product-photo,
.ref-product-list .ref-product-photo,
.reflow-product-list .ref-products > .ref-product .ref-media {
  background-color: #f7f6f3;
  border: 1px solid #e6e3dd;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border-radius: 0 !important;
  transition: border-color 240ms ease, box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reflow-product-list .ref-products > .ref-product .ref-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.reflow-product-list .ref-product:hover .ref-product-photo,
.ref-product-list .ref-product:hover .ref-product-photo {
  border-color: #cfc8bc;
  box-shadow: 0 12px 28px rgba(20, 20, 19, 0.06);
}

.reflow-product-list .ref-product-photo img,
.ref-product-list .ref-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reflow-product-list .ref-product:hover .ref-product-photo img,
.ref-product-list .ref-product:hover .ref-product-photo img {
  transform: scale(1.04);
}

.reflow-product-list .ref-products > .ref-product .ref-name,
.reflow-product-list .ref-name,
.ref-product-list .ref-name {
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  min-height: calc(1.4em * 2);
  color: #141413;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: normal;
  transition: opacity 180ms ease;
}

.reflow-product-list .ref-products > .ref-product .ref-excerpt {
  font-size: 0.82rem;
  color: #64625d;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.reflow-product-list .ref-product:hover .ref-name,
.ref-product-list .ref-product:hover .ref-name {
  opacity: 0.78;
}

/* Product Detail Page & Preview Drawer Headings */
.reflow-product .ref-product-data h2,
.reflow-product .ref-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.24;
  color: #141413;
  overflow-wrap: break-word;
  margin-bottom: 0.5rem;
}

.ref-product-preview .reflow-product .ref-product-data h2,
.ref-product-preview .reflow-product .ref-name {
  font-size: 1.28rem !important;
  line-height: 1.28 !important;
}

/* Always display Add to Cart button on product cards (override Reflow hover-only hiding) */
.reflow-product-list.ref-cards .ref-product .ref-addons,
.reflow-product-list .ref-product .ref-addons,
.ref-product-list .ref-product .ref-addons {
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: auto !important;
  margin-left: 0 !important;
  padding-top: 0.75rem;
}

.reflow-product-list.ref-cards .ref-product .ref-addons .ref-button,
.reflow-product-list .ref-product .ref-addons .ref-button,
.ref-product-list .ref-product .ref-addons .ref-button {
  width: 100%;
  text-align: center;
}

/* Shop Pagination (shown automatically by Reflow only when products > perpage) */
.vibeam-no-pagination .ref-pagination,
.vibeam-no-pagination [data-reflow-type="pagination"] {
  display: none !important;
}

.vibeam-shop-product-list [data-reflow-type="pagination"]:empty,
.vibeam-shop-product-list .ref-pagination:empty {
  display: none !important;
}

.vibeam-shop-product-list .ref-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 2rem 0 0 0;
  margin: 3rem 0 0 0;
  border-top: 1px solid #e6e3dd;
}

.vibeam-shop-product-list .ref-pagination .ref-page-item,
.vibeam-shop-product-list .ref-pagination .ref-prev-btn,
.vibeam-shop-product-list .ref-pagination .ref-next-btn {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vibeam-shop-product-list .ref-pagination .ref-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  margin: 0;
  border: 1px solid #e6e3dd;
  border-radius: 0 !important;
  background-color: #ffffff;
  color: #141413;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.vibeam-shop-product-list .ref-pagination .ref-page-link svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  display: block;
}

.vibeam-shop-product-list .ref-pagination .ref-page-link:hover {
  background-color: #f7f6f3;
  border-color: #141413;
  color: #141413;
}

.vibeam-shop-product-list .ref-pagination .ref-page-item.active .ref-page-link {
  background-color: #141413 !important;
  border-color: #141413 !important;
  color: #ffffff !important;
  cursor: default;
}

.vibeam-shop-product-list .ref-pagination .ref-page-item.disabled .ref-page-link {
  opacity: 0.35;
  pointer-events: none;
  background-color: #faf9f6;
}

.ref-product-list .ref-price,
.ref-product .ref-price,
.ref-shopping-cart .ref-price,
.ref-order-status .ref-price {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64625d;
}

/* Product Detail Gallery & Thumbnails */
.ref-product .ref-product-preview img {
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-product .ref-product-preview img.is-swapping {
  animation: reflowImageSwap 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ref-product .ref-thumbnails .ref-thumbnail {
  border: 1px solid #e6e3dd;
  opacity: 0.72;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.ref-product .ref-thumbnails .ref-thumbnail:hover,
.ref-product .ref-thumbnails .ref-thumbnail.active {
  opacity: 1;
  border-color: #141413;
  transform: translateY(-2px);
}

/* Quantity Selector Micro-interactions & Clear Number Display */
[data-reflow-type] .ref-quantity-widget {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #141413;
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: none;
  height: 44px;
  width: fit-content;
}

.reflow-shopping-cart .ref-quantity-widget,
.ref-summary .ref-quantity-widget {
  height: 36px;
}

.ref-quantity-widget button,
.ref-quantity-widget .ref-decrease,
.ref-quantity-widget .ref-increase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  padding: 0 !important;
  background-color: #f7f6f3;
  color: #141413;
  border-color: #e6e3dd;
  transition: background-color 160ms ease, transform 130ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-quantity-widget .ref-decrease:hover,
.ref-quantity-widget .ref-increase:hover {
  background-color: #efede8;
}

.ref-quantity-widget button:active,
.ref-quantity-widget .ref-decrease:active,
.ref-quantity-widget .ref-increase:active {
  transform: scale(0.92);
}

[data-reflow-type] .ref-quantity-widget input,
[data-reflow-type] .ref-quantity-widget input[type="number"],
[data-reflow-type] .ref-quantity-widget input[type="text"] {
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 0.35rem !important;
  margin: 0 !important;
  min-width: 52px !important;
  width: 52px !important;
  max-width: 76px !important;
  height: 100% !important;
  background-color: #ffffff !important;
  color: #141413 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2 !important;
  text-align: center !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

[data-reflow-type] .ref-quantity-widget input::-webkit-inner-spin-button,
[data-reflow-type] .ref-quantity-widget input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Reflow Buttons */
[data-reflow-type] .ref-button,
[data-reflow-type] button.ref-button {
  background-color: #141413;
  color: #ffffff;
  border: 1px solid #141413;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  transition:
    background-color 200ms cubic-bezier(0.16, 1, 0.3, 1),
    color 200ms ease,
    transform 140ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms ease;
}

[data-reflow-type] .ref-button:hover,
[data-reflow-type] button.ref-button:hover {
  background-color: #2c2c29;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 20, 19, 0.12);
}

[data-reflow-type] .ref-button:active,
[data-reflow-type] button.ref-button:active {
  transform: scale(0.985) translateY(0);
}

[data-reflow-type] .ref-button.ref-secondary {
  background-color: transparent;
  color: #141413;
}

[data-reflow-type] .ref-button.ref-secondary:hover {
  background-color: #141413;
  color: #ffffff;
}

/* Reflow Inputs (quantity stepper inputs are overridden above with higher specificity) */
[data-reflow-type] input[type="text"],
[data-reflow-type] input[type="search"],
[data-reflow-type] input[type="email"],
[data-reflow-type] select {
  border-radius: 0;
  border: 1px solid #d7d3cb;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #141413;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

[data-reflow-type] input:focus,
[data-reflow-type] select:focus {
  border-color: #141413;
  outline: none;
  box-shadow: none;
}

/* Category List & Category Icons */
[data-reflow-type="category-list"] ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

[data-reflow-type="category-list"] ul ul {
  padding-left: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

[data-reflow-type="category-list"] li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  color: #64625d;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #efede8;
  transition: color 180ms ease, padding-left 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reflow-type="category-list"] li a:hover,
[data-reflow-type="category-list"] li a.active {
  color: #141413;
  font-weight: 600;
  padding-left: 6px;
}

.vibeam-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #141413;
  font-size: 1rem;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease;
}

.vibeam-cat-label {
  flex: 1 1 auto;
}

.vibeam-cat-arrow {
  opacity: 0;
  transform: translateX(-4px);
  font-size: 0.85rem;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reflow-type="category-list"] li a:hover .vibeam-cat-icon {
  transform: scale(1.1);
}

/* Categories Directory Page Grid */
.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul,
.vibeam-categories-page [data-reflow-type="category-list"] > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li {
  background-color: #f7f6f3;
  border: 1px solid #e6e3dd;
  display: flex;
  flex-direction: column;
  transition:
    border-color 220ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 240ms ease;
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li:hover,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li:hover {
  border-color: #141413;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(20, 20, 19, 0.07);
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li > a,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li > a {
  padding: 1.35rem 1.4rem;
  font-weight: 600;
  color: #141413;
  font-size: 0.98rem;
  border-bottom: 0;
  gap: 0.85rem;
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li > a .vibeam-cat-icon,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li > a .vibeam-cat-icon {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #e6e3dd;
  font-size: 1.15rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li > a:hover,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li > a:hover {
  padding-left: 1.4rem;
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li:hover > a .vibeam-cat-icon,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li:hover > a .vibeam-cat-icon {
  background-color: #141413;
  border-color: #141413;
  color: #ffffff;
  transform: scale(1.06);
}

.vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li:hover > a .vibeam-cat-arrow,
.vibeam-categories-page [data-reflow-type="category-list"] > ul > li:hover > a .vibeam-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.vibeam-categories-page [data-reflow-type="category-list"] ul ul {
  padding: 0 1.4rem 1.15rem 1.4rem;
  margin: 0;
  border-top: 1px solid #e6e3dd;
  background-color: #ffffff;
}

.vibeam-categories-page [data-reflow-type="category-list"] ul ul li a {
  padding: 0.5rem 0;
  font-size: 0.84rem;
}

/* View Cart Badge in Navbar */
[data-reflow-type="view-cart"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}

.reflow-cart-toggler:before {
  background-color: #141413 !important;
  color: #ffffff !important;
}

[data-reflow-type="view-cart"]:hover {
  transform: translateY(-1px) scale(1.05);
  opacity: 0.75;
}

[data-reflow-type="view-cart"] .ref-cart-icon {
  display: inline-flex;
  align-items: center;
}

/* Reflow Slide-Over Drawers (.ref-product-preview & .ref-summary) */
.ref-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(20, 20, 19, 0.38) !important;
  backdrop-filter: blur(2px);
  z-index: 1055 !important;
  cursor: pointer !important;
}

.ref-product-preview,
.ref-summary:not(.dropdown) {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(420px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff !important;
  border-left: 1px solid #e6e3dd !important;
  box-shadow: -16px 0 44px rgba(20, 20, 19, 0.14) !important;
  z-index: 1060 !important;
  overflow: hidden !important;
}

.ref-summary.left:not(.dropdown) {
  left: 0 !important;
  right: auto !important;
  border-left: 0 !important;
  border-right: 1px solid #e6e3dd !important;
}

.ref-product-preview-header,
.ref-summary:not(.dropdown) .ref-summary-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem !important;
  border-bottom: 1px solid #e6e3dd;
  background-color: #ffffff;
}

.ref-product-preview-header .ref-title,
.ref-summary-header .ref-summary-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: #141413;
  line-height: 1.2;
}

.ref-product-preview-header .ref-close-button,
.ref-summary-header .ref-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 1.5rem !important;
  line-height: 1;
  color: #141413;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ref-product-preview-header .ref-close-button:hover,
.ref-summary-header .ref-close-button:hover {
  background-color: #f7f6f3;
  border-color: #e6e3dd;
}

.ref-product-preview-content,
.ref-summary:not(.dropdown) .ref-summary-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1.25rem 1.35rem 2rem !important;
}

.ref-product-preview .reflow-product {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
}

.ref-product-preview .ref-media,
.ref-product-preview .ref-product-data {
  width: 100% !important;
  padding: 0 !important;
}

.ref-product-preview .ref-media .ref-preview .ref-image {
  height: auto !important;
  max-height: 260px;
  width: 100%;
  object-fit: contain;
  background-color: #f7f6f3;
}

.ref-product-preview .ref-product-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ref-product-preview .ref-add-to-cart,
.ref-product-preview .ref-button {
  width: 100%;
  text-align: center;
}

/* Shopping Cart & Order Tables */
.ref-shopping-cart,
.ref-order-status {
  background-color: #ffffff;
}

.ref-shopping-cart table {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .reflow-product-list .ref-products,
  .ref-product-list .ref-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.35rem 0.75rem !important;
  }

  .reflow-product-list .ref-products > .ref-product {
    padding-bottom: 0.25rem;
  }

  .reflow-product-list .ref-products > .ref-product .ref-media,
  .reflow-product-list .ref-product-photo {
    margin-bottom: 0.6rem !important;
  }

  .reflow-product-list .ref-products > .ref-product .ref-name {
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reflow-product-list .ref-products > .ref-product .ref-description,
  .reflow-product-list .ref-products > .ref-product .ref-excerpt {
    display: none !important;
  }

  .reflow-product-list .ref-products > .ref-product .ref-price {
    font-size: 0.84rem !important;
  }

  .reflow-product-list .ref-products > .ref-product .ref-addons {
    padding-top: 0.6rem !important;
  }

  .reflow-product-list .ref-products > .ref-product .ref-addons .ref-button {
    padding: 0.65rem 0.45rem !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.08em !important;
    min-height: 40px;
  }

  .vibeam-shop-product-list .ref-pagination {
    gap: 0.3rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .vibeam-shop-product-list .ref-pagination .ref-page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    font-size: 0.82rem;
  }

  .vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul,
  .vibeam-categories-page [data-reflow-type="category-list"] > ul {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .vibeam-categories-page [data-reflow-type="category-list"] .ref-category-list > ul > li > a,
  .vibeam-categories-page [data-reflow-type="category-list"] > ul > li > a {
    padding: 1rem 1.1rem !important;
    min-height: 56px;
  }

  .vibeam-categories-page .vibeam-cat-arrow {
    opacity: 0.55;
    transform: none;
  }

  .reflow-product .ref-media {
    margin-bottom: 1.25rem !important;
  }

  .reflow-product .ref-media .ref-preview .ref-image {
    height: 320px !important;
  }

  .reflow-product .ref-media .ref-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .reflow-product .ref-add-to-cart .ref-button {
    width: 100%;
    min-height: 48px;
  }

  .reflow-shopping-cart .ref-cart .ref-footer {
    align-items: stretch !important;
    gap: 1.25rem;
  }

  .reflow-shopping-cart .ref-cart .ref-totals {
    width: 100%;
    text-align: left !important;
  }

  .reflow-shopping-cart .ref-cart .ref-checkout-buttons {
    width: 100%;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .reflow-shopping-cart .ref-cart .ref-checkout-buttons .ref-standard-checkout-button,
  .reflow-shopping-cart .ref-cart .ref-checkout-buttons .ref-paypal-express-checkout-holder > div {
    width: 100% !important;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ref-product-preview,
  .ref-summary:not(.dropdown) {
    width: 100vw !important;
    border-left: 0 !important;
  }

  .ref-product-preview-header,
  .ref-summary:not(.dropdown) .ref-summary-header {
    padding: 0.9rem 1rem !important;
  }

  .ref-product-preview-content,
  .ref-summary:not(.dropdown) .ref-summary-body {
    padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-product-list,
  .ref-product,
  .ref-shopping-cart,
  .ref-order-status,
  .ref-category-list,
  .ref-product .ref-product-preview img.is-swapping {
    animation: none !important;
  }
}
