.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.fabric-placeholder {
  position: relative;
  overflow: hidden;
  background-color: #d8ccb9;
  isolation: isolate;
}

.fabric-placeholder::before,
.fabric-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fabric-placeholder::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.13) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(62, 43, 29, 0.08) 4px 5px);
  mix-blend-mode: soft-light;
}

.fabric-placeholder::after {
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.3), transparent 42%);
}

[class*="fabric-beige-linen"] {
  background: linear-gradient(135deg, #c8b69d, #e2d6c4 48%, #bba78d);
}

[class*="fabric-charcoal-velours"] {
  background: linear-gradient(145deg, #232525, #56534e 46%, #292827);
}

[class*="fabric-navy-wool"] {
  background: linear-gradient(145deg, #1f3041, #465a69 48%, #172431);
}

[class*="fabric-terracotta-cotton"] {
  background: linear-gradient(145deg, #a85f45, #d09272 48%, #8e4935);
}

[class*="fabric-cream-silk"] {
  background: linear-gradient(120deg, #e5ddca, #fffaf0 44%, #cfc4ac 72%, #f4ecdd);
}

[class*="fabric-green-jacquard"] {
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(215, 200, 155, 0.12) 12px 18px),
    linear-gradient(135deg, #274638, #5e7660 50%, #263d32);
}

[class*="fabric-blush-pink"] {
  background: linear-gradient(135deg, #c99186, #e7c3b7 50%, #b8766d);
}

[class*="fabric-anthracite-wool"] {
  background: linear-gradient(135deg, #353638, #666464 50%, #292a2b);
}

.cart-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  display: inline-flex;
  width: 3.75rem;
  height: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 14px 32px rgba(48, 34, 24, 0.28);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cart-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(48, 34, 24, 0.34);
}

.cart-count {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 2px solid var(--background);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.cart-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  justify-content: flex-end;
}

.cart-layer.is-open {
  display: flex;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 15, 0.58);
  cursor: pointer;
}

.cart-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 28rem);
  height: 100%;
  flex-direction: column;
  background: var(--background);
  box-shadow: -20px 0 50px rgba(31, 22, 16, 0.24);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 1.5rem;
}

.cart-head h2 {
  color: var(--foreground);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.cart-head button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  color: var(--foreground);
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
}

.cart-head button:hover {
  background: var(--secondary);
}

.cart-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.cart-empty {
  display: grid;
  min-height: 18rem;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--muted-foreground);
  text-align: center;
}

.cart-empty svg {
  width: 2.25rem;
  height: 2.25rem;
}

.cart-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.cart-line:first-child {
  padding-top: 0;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.2rem;
}

.cart-quantity button {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: calc(var(--radius) - 2px);
  background: var(--secondary);
  cursor: pointer;
}

.cart-quantity b {
  min-width: 1rem;
  text-align: center;
}

.cart-remove {
  flex: 0 0 auto;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cart-remove:hover {
  color: var(--foreground);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 1rem;
  font-size: 1.05rem;
}

.cart-total strong {
  color: var(--primary);
  font-size: 1.25rem;
}

.cart-request {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary);
  padding: 0.85rem 1rem;
  color: var(--primary-foreground);
  font-weight: 600;
}

.cart-request:hover {
  opacity: 0.92;
}

.cart-hint {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 3px;
}

@media (max-width: 40rem) {
  .cart-toggle {
    right: 1rem;
    bottom: 1rem;
  }
}
