:root {
  --breece-color-white: #ffffff;
  --breece-color-gray-100: #f3f4f6;
  --breece-color-gray-200: #e5e7eb;
  --breece-color-gray-400: #9ca3af;
  --breece-color-gray-600: #6b7280;
  --breece-color-black: #111827;
  --breece-color-error: #ef4444;
  --breece-color-success: #16a34a;
  --breece-color-info: #3b82f6;
  --breece-font-size-h1: clamp(44px, 6.4vw, 6.4vw);
  --breece-font-size-h2: clamp(36px, 4.0vw, 4.0vw);
  --breece-font-size-h3: clamp(26px, 2.8vw, 2.8vw);
  --breece-font-size-h4: clamp(22px, 2.0vw, 2.0vw);
  --breece-font-size-h5: clamp(20px, 1.5vw, 1.5vw);
  --breece-font-size-h6: clamp(18px, 1.25vw, 1.25vw);
  --breece-font-size-medium: clamp(16px, 1.0vw, 1.0vw);
  --breece-font-size-small: clamp(15px, 0.95vw, 0.95vw);
  --breece-font-size-mini: clamp(14px, 0.9vw, 0.9vw);
  --space-base: 0.4rem; /* 4px */
  --space-0_5: calc(var(--space-base) * 0.5); /* 2px */
  --space-1: calc(var(--space-base) * 1); /* 4px */
  --space-1_5: calc(var(--space-base) * 1.5); /* 6px */
  --space-2: calc(var(--space-base) * 2); /* 8px */
  --space-3: calc(var(--space-base) * 3); /* 12px */
  --space-4: calc(var(--space-base) * 4); /* 16px */
  --space-6: calc(var(--space-base) * 6); /* 24px */
  --space-8: calc(var(--space-base) * 8); /* 32px */
  --space-10: calc(var(--space-base) * 10); /* 40px */
  --space-12: calc(var(--space-base) * 12); /* 48px */
  --space-16: calc(var(--space-base) * 16); /* 64px */
  --space-20: calc(var(--space-base) * 20); /* 80px */
  --space-24: calc(var(--space-base) * 24); /* 96px */
  --space-32: calc(var(--space-base) * 32); /* 128px */
  --space-40: calc(var(--space-base) * 40); /* 160px */
}

.breece-store-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--breece-color-black);
  color: var(--breece-color-white);
  font-size: var(--breece-font-size-small);
  font-weight: 400;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.breece-store-btn:hover:not(:disabled) {
  background: var(--breece-color-gray-600);
}
.breece-store-btn:disabled {
  background: var(--breece-color-gray-200);
  color: var(--breece-color-gray-400);
  cursor: not-allowed;
}
.breece-store-btn.is--loading {
  opacity: 0.6;
  cursor: wait;
}
.breece-store-btn.is--added {
  background: var(--breece-color-success);
}
.breece-store-btn--bordered {
  background: transparent;
  color: var(--breece-color-black);
  border: 1px solid var(--breece-color-gray-400);
}
.breece-store-btn--bordered:hover:not(:disabled) {
  background: transparent;
  color: var(--breece-color-gray-400);
}
.breece-store-btn--bordered.is-active {
  background: var(--breece-color-black) !important;
  border-color: var(--breece-color-black) !important;
  color: var(--breece-color-white) !important;
}

.breece-store-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: var(--breece-font-size-small);
  font-weight: 600;
}
.breece-store-price__original {
  text-decoration: line-through;
  color: var(--breece-color-gray-400);
  font-weight: 400;
}

.breece-store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

[data-breece-tab].is-hidden {
  display: none;
}

.breece-store-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breece-store-products__empty {
  color: var(--breece-color-gray-600);
  margin: 0;
}

.breece-store-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: var(--breece-color-white);
  border: 1px solid var(--breece-color-gray-200);
  transition: box-shadow 0.15s ease;
}
.breece-store-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.breece-store-product-card--out-of-stock {
  opacity: 0.65;
}

.breece-store-product-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--breece-color-gray-100);
  text-decoration: none;
}

.breece-store-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.breece-store-product-card:hover .breece-store-product-card__image {
  transform: scale(1.03);
}
.breece-store-product-card__image--placeholder {
  background: var(--breece-color-gray-200);
}

.breece-store-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: var(--breece-font-size-mini);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.breece-store-product-card__badge--sale {
  background: var(--breece-color-error);
  color: var(--breece-color-white);
}
.breece-store-product-card__badge--sold-out {
  background: var(--breece-color-gray-600);
  color: var(--breece-color-white);
}

.breece-store-product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  flex: 1;
}

.breece-store-product-card__brand {
  font-size: var(--breece-font-size-mini);
  font-weight: 600;
  color: var(--breece-color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.breece-store-product-card__title {
  margin: 0;
  font-size: var(--breece-font-size-medium);
  line-height: 1.4;
}
.breece-store-product-card__title a {
  color: inherit;
  text-decoration: none;
}
.breece-store-product-card__title a:hover {
  text-decoration: underline;
}

.breece-store-product-card__price {
  margin-top: auto;
  padding-top: 4px;
}

.breece-store-product-card__add-to-cart {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.breece-store-product-card__add-to-cart-added {
  display: none;
}
.breece-store-product-card__add-to-cart.is--added .breece-store-product-card__add-to-cart-label {
  display: none;
}
.breece-store-product-card__add-to-cart.is--added .breece-store-product-card__add-to-cart-added {
  display: inline;
}

.breece-store-cart {
  max-width: 640px;
  margin: 0 auto;
}
.breece-store-cart__title {
  font-size: var(--breece-font-size-h2);
  font-weight: 700;
  margin: 0 0 var(--space-8);
}

.breece-store-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-size: var(--breece-font-size-small);
}

.breece-store-cart-items__group-title {
  margin: var(--space-8) 0 var(--space-3);
  font-size: var(--breece-font-size-medium);
  font-weight: 600;
}
.breece-store-cart-items__group-title:first-child {
  margin-top: 0;
}

.breece-store-cart-items + .breece-store-cart-items {
  margin-top: var(--space-8);
}

.breece-store-cart-items__item {
  display: flex;
  gap: var(--space-4);
}

.breece-store-cart-items__image-link {
  display: block;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--breece-color-gray-100);
}

.breece-store-cart-items__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.breece-store-cart-items__image--placeholder {
  background: var(--breece-color-gray-200);
}

.breece-store-cart-items__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.breece-store-cart-items__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.breece-store-cart-items__title {
  font-weight: 600;
}

.breece-store-cart-items__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--breece-color-gray-200);
  border-radius: 50%;
  color: var(--breece-color-gray-600);
  font-size: var(--breece-font-size-small);
  line-height: 1;
  cursor: pointer;
}
.breece-store-cart-items__remove:hover {
  border-color: var(--breece-color-gray-400);
  color: var(--breece-color-black);
}

.breece-store-cart-items__variation {
  margin: 0;
  color: var(--breece-color-gray-600);
}
.breece-store-cart-items__variation strong {
  color: var(--breece-color-black);
}

.breece-store-cart-items__footer {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.breece-store-cart-items__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.breece-store-cart-items__qty--locked {
  color: var(--breece-color-gray-600);
}

.breece-store-cart-items__qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--breece-color-gray-200);
  border-radius: 4px;
  color: var(--breece-color-black);
  line-height: 1;
  cursor: pointer;
}
.breece-store-cart-items__qty-btn:hover {
  border-color: var(--breece-color-gray-400);
}
.breece-store-cart-items__qty-btn:disabled {
  color: var(--breece-color-gray-400);
  cursor: not-allowed;
}

.breece-store-cart-items__qty-value {
  min-width: 1.5em;
  text-align: center;
}

.breece-store-cart-items__price {
  font-weight: 600;
}

.breece-store-cart-items__message {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.breece-store-cart-items__message textarea {
  resize: vertical;
}

.breece-store-cart-totals {
  margin-top: var(--space-4);
}

.breece-store-cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--breece-font-size-small);
  margin-bottom: var(--space-4);
}

.breece-store-cart-totals__label {
  color: var(--breece-color-gray-600);
}

.breece-store-cart-totals__value {
  font-weight: 600;
}

.breece-store-cart-totals__checkout {
  display: block;
  width: 100%;
}

.breece-store-checkout {
  max-width: 1140px;
  margin: 0 auto;
}
.breece-store-checkout__columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
.breece-store-checkout__customer {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.breece-store-checkout-form {
  display: contents;
}
.breece-store-checkout-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .breece-store-checkout-form__row {
    grid-template-columns: 1fr;
  }
}
.breece-store-checkout-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.breece-store-checkout-form__required {
  color: var(--breece-color-error);
}
.breece-store-checkout-form__checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--breece-font-size-small);
  cursor: pointer;
}
.breece-store-checkout-form__checkbox input {
  width: auto;
}

.breece-store-checkout-delivery,
.breece-store-checkout-payment {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.breece-store-checkout-delivery__title,
.breece-store-checkout-payment__title {
  font-size: var(--breece-font-size-medium);
  font-weight: 700;
  margin: 0;
}
.breece-store-checkout-delivery__options,
.breece-store-checkout-payment__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.breece-store-checkout-delivery__option,
.breece-store-checkout-payment__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--breece-font-size-small);
  cursor: pointer;
}
.breece-store-checkout-delivery__option input,
.breece-store-checkout-payment__option input {
  width: auto;
}
.breece-store-checkout-delivery__option.is-disabled,
.breece-store-checkout-payment__option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.breece-store-checkout-form__errors {
  grid-column: 1/-1;
  background: color-mix(in srgb, var(--breece-color-error) 10%, var(--breece-color-white));
  border: 1px solid var(--breece-color-error);
  border-radius: 4px;
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-4);
}
.breece-store-checkout-form__errors p {
  margin: 0;
  color: var(--breece-color-error);
  font-size: var(--breece-font-size-small);
}
.breece-store-checkout-form__errors p + p {
  margin-top: var(--space-1);
}

.breece-store-checkout__success {
  max-width: 640px;
  margin: var(--space-12) auto;
  padding: var(--space-8);
  text-align: center;
  background: var(--breece-color-gray-100);
  border-radius: 8px;
  font-size: var(--breece-font-size-medium);
}

.breece-store-checkout__error {
  max-width: 640px;
  margin: var(--space-12) auto;
  padding: var(--space-8);
  text-align: center;
  background: color-mix(in srgb, var(--breece-color-error) 8%, var(--breece-color-white));
  border: 1px solid var(--breece-color-error);
  color: var(--breece-color-error);
  border-radius: 8px;
  font-size: var(--breece-font-size-medium);
}
.breece-store-checkout__error p {
  margin: 0 0 var(--space-8);
}
.breece-store-checkout__error .breece-store-order-view__retry {
  display: inline-block;
}

.breece-store-order-view {
  max-width: 640px;
  margin: 0 auto;
}
.breece-store-order-view__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.breece-store-order-view__title {
  margin: 0;
  font-size: var(--breece-font-size-h6);
}
.breece-store-order-view__date {
  color: var(--breece-color-gray-600);
  font-size: var(--breece-font-size-small);
}
.breece-store-order-view__status {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--breece-font-size-mini);
  font-weight: 600;
  background: var(--breece-color-gray-100);
}
.breece-store-order-view__status--paid {
  background: color-mix(in srgb, #15803d 15%, transparent);
  color: #15803d;
}
.breece-store-order-view__status--payment_cancelled {
  background: color-mix(in srgb, var(--breece-color-error) 15%, transparent);
  color: var(--breece-color-error);
}
.breece-store-order-view__status--refunded, .breece-store-order-view__status--delivered {
  background: var(--breece-color-gray-200);
  color: var(--breece-color-gray-600);
}
.breece-store-order-view__group-title {
  font-size: var(--breece-font-size-medium);
  margin: var(--space-16) 0 var(--space-4);
}
.breece-store-order-view__message {
  color: var(--breece-color-gray-600);
  font-size: var(--breece-font-size-small);
  margin: 0 0 var(--space-8);
}
.breece-store-order-view__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.breece-store-order-view__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--breece-color-gray-100);
  font-size: var(--breece-font-size-small);
}
.breece-store-order-view__total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--breece-color-gray-200);
  font-weight: 600;
}
.breece-store-order-view__meta {
  margin: var(--space-16) 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-8);
  font-size: var(--breece-font-size-small);
}
.breece-store-order-view__meta dt {
  color: var(--breece-color-gray-600);
}
.breece-store-order-view__meta dd {
  margin: 0;
}

.breece-store-registry {
  max-width: 1280px;
  margin: 0 auto;
}
.breece-store-registry__closed-notice {
  margin: var(--space-4) 0 0;
  background: var(--breece-color-gray-100);
  border-radius: 4px;
  color: var(--breece-color-gray-600);
  font-size: var(--breece-font-size-medium);
}
.breece-store-registry__hero {
  display: grid;
  grid-template-columns: minmax(240px, 640px) 1fr;
  align-items: center;
  gap: 40px;
}
@media (max-width: 720px) {
  .breece-store-registry__hero {
    grid-template-columns: 1fr;
  }
}
.breece-store-registry__hero__supertitle {
  font-weight: 500;
  color: var(--breece-color-gray-600);
  margin-bottom: var(--space-2);
}
.breece-store-registry__hero__title {
  margin: 0 0 var(--space-12);
}
.breece-store-registry__hero__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.breece-store-registry__hero__media {
  position: relative;
}
@media (max-width: 720px) {
  .breece-store-registry__hero__media {
    order: -1;
  }
}
.breece-store-registry__hero__image {
  position: relative;
  z-index: 1;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--breece-color-gray-100);
}
.breece-store-registry__hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.breece-store-registry__products {
  margin-top: var(--space-24);
}

.breece-store-registry-search__form {
  display: flex;
  gap: var(--space-8);
}
.breece-store-registry-search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: var(--breece-font-size-small);
  border: 1px solid var(--breece-color-gray-200);
  border-radius: 6px;
}
.breece-store-registry-search__input:focus {
  outline: none;
  border-color: var(--breece-color-gray-600);
}
.breece-store-registry-search__results {
  margin-top: var(--space-16);
}
.breece-store-registry-search__empty {
  color: var(--breece-color-gray-600);
}
.breece-store-registry-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.breece-store-registry-search__link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.breece-store-registry-search__link:hover {
  background: var(--breece-color-gray-100);
}
.breece-store-registry-search__thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.breece-store-registry-search__thumb--placeholder {
  background: var(--breece-color-gray-100);
}
.breece-store-registry-search__title {
  font-weight: 600;
}
