.shop-header-actions { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.shop-header-actions button { color: var(--lilac); min-height: 43px; border-radius: 3px; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.shop-account { background: none; border: 0; padding: .45rem; }
.shop-account:hover { color: var(--peach); }
.shop-cart-button { display: flex; align-items: center; gap: .4rem; padding: .4rem .65rem; background: none; border: 1px solid #90769d; }
.shop-cart-button:hover { background: #42304c; }
.shop-cart-button svg { width: 19px; height: 19px; }
.shop-cart-button span { min-width: 1.34rem; text-align: center; color: var(--plum); background: var(--peach); border-radius: 1rem; font-size: .77rem; line-height: 1.34rem; }
.store { background: #f6eefa; }
.store-heading, .store-tools { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.store-heading { margin-bottom: 1.6rem; }
.store-heading p { margin-top: .72rem; color: var(--soft-plum); }
.store-search { display: grid; gap: .25rem; width: min(100%, 280px); }
.store-search span, .store-sort span { font-size: .85rem; font-weight: 700; }
.store-sort { display: flex; align-items: center; gap: .6rem; }
.store-search input, .store-sort select, .shop-field input, .shop-field select, .shop-field textarea { width: 100%; border: 1px solid #a995b6; border-radius: 3px; padding: .58rem .7rem; min-height: 44px; background: #fbf5ff; color: var(--plum); }
.store-tools { border-block: 1px solid var(--line); padding-block: .85rem; }
.store-message { color: var(--soft-plum); padding-block: .82rem; }
.store-message:empty { display: none; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.15rem; }
.product { border-bottom: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.product-image { border: 0; padding: 0; width: 100%; background: #d8c5df; color: var(--plum); border-radius: 3px; overflow: hidden; }
.product-image img { width: 100%; height: auto; aspect-ratio: 1.14; object-fit: cover; }
.product-copy { padding: .75rem 0 .95rem; flex: 1; display: flex; flex-direction: column; }
.product-material { color: var(--soft-plum); font-size: .85rem; }
.product h3 { margin: .27rem 0 .75rem; font: 600 clamp(1.45rem, 2.15vw, 2.02rem)/1 var(--display); }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: .45rem; flex-wrap: wrap; margin-top: auto; }
.product-price { font-size: .93rem; font-weight: 700; }
.product-action, .shop-secondary { border: 1px solid #ab94ba; border-radius: 3px; color: var(--plum); background: transparent; padding: .43rem .65rem; min-height: 40px; font-weight: 700; font-size: .88rem; }
.product-action:hover, .shop-secondary:hover { background: #e6d7f3; }
.product-action[disabled] { cursor: default; opacity: .62; }
.product-action[disabled]:hover { background: transparent; }
.shop-help { background: #eee6fa; }
.shop-questions details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.shop-questions details:first-child { border-top: 1px solid var(--line); }
.shop-questions summary { cursor: pointer; font-weight: 700; }
.shop-questions details p { margin: .6rem 0 .3rem; color: var(--soft-plum); }

.shop-dialog { width: min(calc(100% - 1.5rem), 700px); max-height: 92dvh; }
.shop-panel { padding: clamp(1rem, 3vw, 1.85rem); }
.shop-panel-header { display: flex; justify-content: space-between; align-items: start; gap: .7rem; margin-bottom: 1rem; }
.shop-panel-header h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.shop-close { border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--plum); flex: 0 0 44px; height: 44px; font-size: 1.5rem; line-height: 1; }
.shop-close:hover { background: #ded0e8; }
#panel-icerik { display: grid; gap: .85rem; }
.shop-panel h3 { font: 600 1.8rem/1.05 var(--display); }
.panel-muted { color: var(--soft-plum); }
.panel-error { color: #8e2746; font-weight: 650; }
.panel-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.shop-detail-image { width: 100%; max-height: 43dvh; object-fit: cover; border-radius: 3px; }
.cart-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; gap: .65rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.cart-row img { width: 65px; height: 60px; object-fit: cover; border-radius: 3px; }
.cart-row small { display: block; color: var(--soft-plum); }
.cart-controls { display: flex; align-items: center; gap: .35rem; }
.cart-controls .shop-secondary { width: 38px; padding-inline: 0; }
.cart-controls .shop-secondary:disabled { opacity: .5; cursor: default; }
.cart-quantity { text-align: center; min-width: 1.35rem; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: .7rem; font-weight: 700; }
.shop-form { display: grid; gap: .65rem; padding-block: .35rem; }
.shop-field { display: grid; gap: .22rem; font-weight: 650; }
.shop-field textarea { resize: vertical; }
.shop-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.shop-order { border: 1px solid var(--line); border-radius: 4px; padding: .85rem; display: grid; gap: .4rem; overflow-wrap: anywhere; }
.shop-order ul { padding-left: 1.15rem; margin: .2rem 0; }
.shop-order-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.order-status { color: #593b69; background: #e2d2ef; border-radius: 2rem; padding: .12rem .62rem; font-size: .85rem; font-weight: 700; }
@media (max-width: 1050px) {
  .header-layout { grid-template-columns: auto 1fr auto; }
  .navigation { justify-content: center; gap: 1.2rem; }
}
@media (max-width: 850px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-header-actions { gap: .38rem; }
}
@media (max-width: 760px) {
  .header-layout { grid-template-columns: 1fr auto; }
  .navigation { justify-content: start; }
}
@media (max-width: 530px) {
  .store-heading, .store-tools { align-items: start; flex-direction: column; }
  .store-search { width: 100%; }
  .store-grid { gap: .8rem; }
  .product-image img { aspect-ratio: 1; }
  .product-bottom { align-items: start; flex-direction: column; }
  .shop-header-actions button { font-size: .82rem; }
  .shop-cart-button { padding-inline: .5rem; }
  .shop-cart-button svg { display: none; }
  .navigation { gap: 1.4rem; }
  .cart-row { grid-template-columns: 50px minmax(0, 1fr); }
  .cart-row img { width: 50px; height: 50px; }
  .cart-controls { grid-column: 2; }
}
@media (max-width: 351px) {
  .shop-form-pair { grid-template-columns: 1fr; }
  .shop-header-actions { gap: .2rem; }
  .shop-header-actions button { padding-inline: .3rem; }
  .wordmark img { width: 22px; height: 22px; }
  .wordmark { font-size: 1rem; }
}
.shop-admin-orders { display: grid; gap: .55rem; }

.floating-cart {
  position: fixed; z-index: 5; right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.4rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .65rem; min-height: 62px; max-width: calc(100vw - 2rem);
  padding: .62rem .75rem .62rem .85rem; text-align: left;
  border: 1px solid #6e557a; border-radius: 10px; background: var(--plum); color: var(--lilac);
  box-shadow: 0 8px 24px #26192b45;
}
.floating-cart:hover { background: #493550; }
.floating-cart:focus-visible { outline-color: #8a4165; }
.floating-cart-icon { flex: 0 0 23px; width: 23px; height: 23px; color: var(--peach); }
.floating-cart-label { display: grid; line-height: 1.25; }
.floating-cart-label small { color: var(--lilac-text); font-size: .8rem; }
.floating-cart-label small:empty { display: none; }
.floating-cart-count { flex: none; border-radius: 2rem; background: var(--peach); color: var(--plum); padding: .24rem .55rem; font-size: .85rem; font-weight: 700; }
.cart-present .site-footer { padding-bottom: 6.2rem; }
@media (max-width: 550px) {
  .floating-cart { right: max(.85rem, env(safe-area-inset-right)); bottom: max(.8rem, env(safe-area-inset-bottom)); }
}
