/**
 * My Colorings page styles
 */
.togbow-my-colorings {
  margin: 1em 0;
}

.togbow-empty-state {
  text-align: center;
  padding: 2em;
  background: #f6f7f7;
  border-radius: 4px;
}

.togbow-empty-state p {
  margin-bottom: 1.25em;
}

.togbow-empty-state .button,
.togbow-empty-state .btn {
  margin-top: 0.5em;
}

.togbow-section {
  margin-bottom: 2em;
}

.togbow-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.5em;
}

.togbow-section-header .togbow-section-title {
  margin: 0;
}

.togbow-section h2 {
  margin-bottom: 0.5em;
}

.togbow-section:not(.togbow-section-saved) .togbow-section-header + * {
  margin-top: 0;
}

/* Green primary button (align with theme .btn.btn-primary) */
.togbow-my-colorings .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 1.5em;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}

.togbow-my-colorings .btn.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.togbow-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5em;
}

.togbow-card {
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: opacity 0.3s, transform 0.3s;
}

.togbow-card-thumb {
  aspect-ratio: 1;
  background: #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.togbow-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.togbow-card-placeholder {
  color: #c3c4c7;
}

.togbow-card-placeholder svg {
  width: 48px;
  height: 48px;
}

.togbow-card-body {
  padding: 1em;
}

.togbow-card-body h3 {
  margin: 0 0 0.25em;
  font-size: 1.1em;
}

.togbow-card-meta {
  font-size: 0.8em;
  color: #646970;
  margin: 0 0 0.25em;
}

.togbow-card-date {
  font-size: 0.9em;
  color: #646970;
  margin: 0 0 0.75em;
}

.togbow-card-actions {
  --togbow-btn-size: 2.5em;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5em;
  margin-top: 6px;
}

.togbow-card-actions .button,
.togbow-card-actions .togbow-btn-edit {
  min-height: var(--togbow-btn-size);
  box-sizing: border-box;
}

.togbow-btn-edit {
  flex: 1 1 0%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  text-decoration: none;
  background: #3D8A5A;
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 0 0.75em;
  font-size: 0.9em;
  font-weight: 600;
  transition: filter 0.2s;
}

.togbow-btn-edit:hover {
  filter: brightness(1.08);
  color: #fff;
}

.togbow-btn-edit--icon-only {
  flex: 0 0 var(--togbow-btn-size);
  width: var(--togbow-btn-size);
  min-width: var(--togbow-btn-size);
  padding: 0;
  background: #D89575;
}

.togbow-btn-edit--icon-only:hover {
  filter: brightness(1.05);
  color: #fff;
}

.togbow-btn-add-cart {
  flex: 1 1 0%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  background: #3D8A5A;
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 0 0.75em;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.togbow-btn-add-cart:hover {
  filter: brightness(1.08);
  color: #fff;
}

.togbow-btn-add-cart:disabled {
  opacity: 0.7;
  cursor: wait;
}

.togbow-btn-edit svg,
.togbow-btn-add-cart svg {
  flex-shrink: 0;
}

.togbow-card {
  position: relative;
}

.togbow-card-badge {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  z-index: 2;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  pointer-events: none;
}

.togbow-card-badges {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  align-items: flex-end;
  pointer-events: none;
}

.togbow-card-badges .togbow-card-badge {
  position: static;
  pointer-events: auto;
}

.togbow-card-badge--in-cart {
  background: #3D8A5A;
  color: #fff;
}

.togbow-card-badge--order {
  background: #646970;
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.togbow-card-badge--order:hover {
  background: #50575e;
  color: #fff;
}

.togbow-card-badge--status {
  background: #2c3338;
  color: #fff;
}

.togbow-card-actions .button {
  font-size: 0.9em;
}

.togbow-btn-delete {
  flex: 0 0 var(--togbow-btn-size);
  width: var(--togbow-btn-size);
  min-width: var(--togbow-btn-size);
  height: var(--togbow-btn-size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b32d2e;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s;
}

.togbow-btn-delete:hover {
  filter: brightness(1.1);
  color: #fff;
}

.togbow-btn-delete svg {
  flex-shrink: 0;
}


.togbow-btn-link {
  background: none;
  border: none;
  color: #b32d2e;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.togbow-no-items {
  color: #646970;
  font-style: italic;
}

.togbow-order-status {
  font-size: 0.85em;
  color: #646970;
}

.togbow-btn-primary {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.togbow-btn-secondary {
  background: #f6f7f7;
  border-color: #c3c4c7;
}
