.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.button--secondary {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.button--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
}

.button--danger {
  border-color: #efc7c3;
  background: #fff5f4;
  color: var(--color-danger);
}

.button--small {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(217, 223, 227, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px rgba(23, 31, 38, 0.04);
  backdrop-filter: blur(12px);
}

.header-main {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 60px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand span {
  color: var(--color-text-muted);
  font-size: 0.71rem;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  padding: 10px 52px 10px 18px;
}

.header-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
}

.budget-link {
  white-space: nowrap;
}

.account-link {
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  flex-wrap: nowrap;
}

.budget-count {
  min-width: 24px;
  border-radius: 99px;
  background: white;
  color: var(--color-primary);
  padding: 2px 7px;
  font-size: 0.74rem;
}

.header-nav {
  border-top: 1px solid var(--color-border);
}

.header-nav__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.header-nav .back-link {
  margin-left: auto;
  color: var(--color-text-muted);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
}

.site-footer {
  background: var(--color-graphite);
  color: #d8dde2;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.store-footer-brand {
  display: flex;
  margin-bottom: 18px;
  gap: 14px;
  align-items: center;
}

.store-footer-brand img {
  width: 58px;
  height: 72px;
  padding: 5px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.store-footer-brand h2,
.store-footer-brand p {
  margin: 0;
}

.store-footer-brand p {
  margin-top: 4px;
}

.site-footer h2,
.site-footer h3 {
  color: white;
}

.site-footer h3 {
  font-size: 0.95rem;
}

.site-footer a {
  color: #e6eaed;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  border-top: 1px solid #434b53;
  padding-top: 22px;
  color: #aeb7bf;
  font-size: 0.82rem;
}

.footer-credit {
  flex: 0 0 auto;
  white-space: nowrap;
}

.footer-credit a {
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 760;
}

.badge--success {
  background: #e5f5ee;
  color: var(--color-success);
}

.badge--warning {
  background: #fff3db;
  color: var(--color-warning);
}

.badge--muted {
  background: var(--color-surface-strong);
  color: var(--color-text-muted);
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #c4ccd2;
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: #f9fafb;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(179, 54, 41, 0.06) 47% 53%, transparent 53%),
    var(--color-surface);
  color: var(--color-text-muted);
  text-align: center;
}

.product-placeholder strong {
  color: var(--color-primary);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.product-card__body {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 18px;
}

.product-card__brand {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__title {
  margin: 8px 0 5px;
  font-size: 1rem;
  line-height: 1.35;
}

.product-card__sku {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.product-card__price {
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-graphite);
  font-size: 1.16rem;
  font-weight: 800;
}

.product-card__previous-price {
  display: block;
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: line-through;
}

.price-usd {
  display: block;
  color: var(--color-graphite);
  font-weight: 850;
}

.price-pyg {
  display: block;
  margin-top: 4px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 750;
}

.price-pyg small {
  color: var(--color-text-muted);
  font-size: inherit;
  font-weight: 600;
}

.price-login-link {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.notice {
  margin: 18px 0;
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: 14px 16px;
}

.notice--success {
  border-left-color: var(--color-success);
  background: #f0faf6;
}

.notice--warning {
  border-left-color: var(--color-warning);
  background: #fffaf0;
}

.notice--error {
  border-left-color: var(--color-danger);
  background: #fff5f4;
}

.form-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  padding: 10px 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(179, 54, 41, 0.1);
  outline: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 560;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.loading {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--color-text-muted);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  color: var(--color-text-muted);
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: inherit;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
}

.pagination button[aria-current="page"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}
