/* Trimzee Shop catalog and cart layout. */
.store-main { width: min(1120px, calc(100% - 28px)); margin: 18px auto 110px; }
.store-heading, .page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.store-heading h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.store-eyebrow, .product-category { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.store-cart-link { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.store-search { display: flex; gap: 8px; margin: 20px 0 12px; }
.store-search input, .store-field input, .store-field select, .cart-quantity input { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.store-search input { flex: 1; }
.store-search button { padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 800; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -2px 18px; padding: 3px 2px 10px; scrollbar-width: thin; }
.category-chip { flex: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.category-chip.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.product-photo, .product-detail-photo { position: relative; display: grid; min-height: 150px; place-items: center; overflow: hidden; background: linear-gradient(140deg, #f3f5f5, #fff); color: #7b8588; font-size: 2rem; text-decoration: none; }
.product-photo img, .product-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo img { position: absolute; inset: 0; }
.discount-badge { position: absolute; top: 8px; left: 8px; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: white; font-size: .73rem; font-weight: 800; }
.product-card-info { display: grid; gap: 7px; padding: 12px; }
.product-card-info h2, .product-card-info h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.product-card-info h2 a, .product-card-info h3 a, .cart-item-main h2 a { color: var(--ink); text-decoration: none; }
.product-price { margin: 0; font-size: 1.05rem; font-weight: 900; }
.product-price del { margin-left: 5px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.stock-badge { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #fff4d8; color: #8a5700; font-size: .75rem; font-weight: 800; }
.stock-badge.out { background: #fee2e2; color: #991b1b; }
.product-add { width: 100%; margin-top: 2px; }
.product-card .btn:disabled, .product-buy-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.store-empty { display: grid; justify-items: center; gap: 10px; padding: 42px 18px; border: 1px dashed var(--line); border-radius: 18px; background: var(--paper); text-align: center; }
.store-notice { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff4d8; color: #754d00; font-weight: 700; }
.cart-sticky { position: fixed; z-index: 45; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px 15px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 6px 24px #0003; font-size: .88rem; text-decoration: none; }
.cart-sticky strong { font-size: 1rem; }
.product-detail { display: grid; gap: 18px; margin-top: 12px; }
.product-detail-photo { min-height: min(85vw, 420px); border-radius: 20px; font-size: 4rem; }
.product-detail-info { display: grid; align-content: start; gap: 12px; }
.product-detail-info h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.product-price.large { font-size: 1.35rem; }
.product-description { color: var(--muted); line-height: 1.6; white-space: pre-line; }
.store-field { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.store-field select { width: 100%; }
.product-buy-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quantity-stepper { grid-column: 1 / -1; display: inline-flex; width: fit-content; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.quantity-stepper button { width: 44px; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; }
.quantity-stepper button:disabled { color: #aab1b3; }
.quantity-stepper output { min-width: 38px; text-align: center; font-weight: 800; }
.delivery-note, .summary-hint { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.related-products { margin-top: 36px; }
.related-products h2 { margin: 0 0 14px; font-size: 1.25rem; }
.cart-layout { display: grid; gap: 18px; margin-top: 18px; }
.cart-items { display: grid; align-content: start; gap: 10px; }
.cart-item { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.cart-item-photo { display: grid; width: 78px; height: 84px; place-items: center; overflow: hidden; border-radius: 12px; background: var(--bg); color: var(--muted); text-decoration: none; }
.cart-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main { min-width: 0; display: grid; align-content: start; gap: 6px; padding-right: 50px; }
.cart-item-main h2 { margin: 0; font-size: .98rem; }
.cart-item-main .product-price { font-size: .95rem; }
.cart-item-main .message { margin: 0; padding: 8px; font-size: .78rem; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 3px; }
.cart-quantity { display: flex; gap: 6px; align-items: center; }
.cart-quantity input { width: 66px; padding: 8px; }
.cart-quantity .btn { padding: 8px 10px; }
.link-button { padding: 4px 0; border: 0; background: transparent; color: #8b1c1c; font: inherit; font-size: .85rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cart-line-total { position: absolute; top: 14px; right: 12px; font-size: .9rem; }
.cart-summary { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.cart-summary h2 { margin: 0; font-size: 1.15rem; }
.coupon-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.coupon-form button { min-height: 44px; }
.coupon-error { margin: 0; color: #991b1b; font-size: .86rem; font-weight: 700; }
.applied-coupon, .summary-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.applied-coupon { padding: 9px 10px; border-radius: 10px; background: #ecfdf5; color: #166534; font-weight: 800; font-size: .85rem; }
.applied-coupon form { margin: 0; }
.applied-coupon .link-button { color: #166534; }
.summary-hint { margin: -5px 0 0; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1rem; }
.checkout-button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 620px) {
    .store-main { width: min(1120px, calc(100% - 40px)); margin-top: 28px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .product-photo { min-height: 210px; }
    .product-card-info { padding: 15px; }
    .cart-item { grid-template-columns: 104px minmax(0, 1fr); padding: 14px; }
    .cart-item-photo { width: 104px; height: 112px; }
    .cart-item-main { padding-right: 70px; }
    .cart-line-total { right: 15px; }
}
@media (min-width: 960px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 34px; align-items: start; }
    .product-detail-photo { min-height: 480px; }
    .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .cart-summary { position: sticky; top: 82px; }
}
.admin-shop h1 { margin: 0 0 16px; }
.admin-shop-nav { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 20px; padding: 3px 1px 9px; }
.admin-shop-nav a { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .85rem; font-weight: 750; text-decoration: none; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin: 16px 0; }
.admin-stat-grid article { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.admin-stat-grid article span, .admin-stat-grid article strong { font-size: .92rem; }
.admin-stat-grid article strong { font-size: 1.45rem; }
.admin-columns { display: grid; gap: 14px; margin: 16px 0; }
.admin-simple-list, .admin-sales-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.admin-simple-list li, .admin-sale-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.admin-simple-list a { color: var(--ink); }
.admin-sale-bar { flex: 1; align-self: center; height: 10px; overflow: hidden; border-radius: 999px; background: var(--bg); }
.admin-sale-bar i { display: block; height: 100%; border-radius: inherit; background: #216b55; }
.admin-shop .panel { background: var(--paper); }
.admin-search { max-width: 760px; }
.admin-filter-form, .admin-bulk-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.admin-filter-form .store-field { flex: 1 1 145px; }
.admin-filter-form button, .admin-filter-form .btn { flex: 0 0 auto; }
.admin-bulk-bar label, .admin-stock-adjust { display: grid; gap: 5px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-bulk-bar select, .admin-bulk-bar input { min-width: 130px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; }
.admin-bulk-bar [hidden] { display: none; }
.admin-stock-adjust { display: flex; align-items: end; gap: 8px; }
.admin-table { min-width: 700px; }
.admin-table td small, .admin-table th small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.admin-row-actions form { margin: 0; }
.admin-inline-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.admin-inline-edit input { width: 82px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.admin-inline-edit small { flex-basis: 100%; }
.admin-inline-edit .small-btn { font-size: .72rem; }
.admin-form { display: grid; gap: 14px; padding: 18px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.admin-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 18px; }
.admin-checks label, .admin-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.admin-product-preview { max-width: 180px; max-height: 180px; object-fit: cover; border-radius: 12px; }
.admin-variants { padding-top: 12px; border-top: 1px solid var(--line); }
.admin-variants .section-head { align-items: center; }
.admin-variants h2 { margin: 0; font-size: 1.1rem; }
.admin-variant-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: end; gap: 9px; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.admin-variant-row input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.admin-category-list { display: grid; align-content: start; gap: 10px; }
.admin-category-card { display: grid; gap: 10px; padding: 14px; }
.admin-category-card form:first-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; gap: 9px; }
.admin-category-card input { min-width: 0; width: 100%; }
.admin-category-card form:last-child { display: flex; align-items: center; gap: 10px; }
.admin-danger-action { margin-top: 14px; }
.admin-refund-confirm { max-width: 720px; margin: 28px auto; }
.admin-refund-confirm h1 { margin-top: 0; }
.coupon-warning { color: #8a5700; font-size: .8rem; font-weight: 800; }
.btn.danger, .small-btn.danger { border-color: #9b2626; background: #9b2626; color: #fff; }
@media (min-width: 760px) {
    .admin-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .admin-category-card { grid-template-columns: 1fr auto; align-items: end; }
}
.order-progress-panel, .order-history { margin: 14px 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.order-progress-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.order-progress-heading h2 { margin: 3px 0 0; font-size: 1.15rem; }
.order-progress-heading > .muted { max-width: 360px; text-align: right; }
.order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.order-progress-step { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.order-progress-step:not(:last-child)::after { position: absolute; z-index: 0; top: 16px; left: calc(50% + 17px); width: calc(100% - 26px); height: 2px; background: var(--line); content: ""; }
.order-progress-step.is-complete:not(:last-child)::after { background: #216b55; }
.progress-marker { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); font-size: .82rem; font-weight: 850; }
.is-complete .progress-marker, .is-current .progress-marker { border-color: #216b55; background: #216b55; color: #fff; }
.is-current .progress-marker { box-shadow: 0 0 0 4px #216b5522; }
.progress-copy { display: grid; gap: 3px; font-size: .82rem; }
.progress-copy .muted { font-size: .75rem; }
.progress-copy p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.order-status-notice { margin: 0; padding: 14px; border-radius: 12px; background: #fff4d8; color: #754d00; line-height: 1.5; }
.order-status-notice.is-error { background: #fee2e2; color: #991b1b; }
.order-history summary { cursor: pointer; font-weight: 800; }
.order-history .order-timeline { margin-top: 16px; }
.order-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.order-card h2 { margin: 3px 0; font-size: 1.05rem; }
.order-card h2 a { color: var(--ink); text-decoration: none; }
.order-card-right { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card-right strong { font-size: 1.05rem; }
.order-status { display: inline-flex; width: fit-content; padding: 6px 10px; border-radius: 999px; background: #e8f4ee; color: #216b55; font-size: .78rem; font-weight: 800; }
.order-card .muted { margin: 0; font-size: .84rem; }
.order-confirmation { width: min(440px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: auto; padding: 26px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 24px 80px #0005; }
.order-confirmation::backdrop { background: #10191dbb; backdrop-filter: blur(3px); }
.order-confirmation h1 { margin: 6px 0 10px; font-size: clamp(1.6rem, 6vw, 2rem); }
.success-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #e8f4ee; color: #216b55; font-size: 1.8rem; font-weight: 900; }
.confirmation-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (min-width: 620px) {
    .order-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .order-card-right { grid-column: 2; justify-content: end; }
    .order-card > .btn { grid-column: 2; justify-self: end; }
}
@media (max-width: 420px) {
    .order-progress-panel, .order-history { padding: 14px; }
    .order-progress-heading { display: grid; gap: 6px; }
    .order-progress-heading > .muted { text-align: left; }
    .progress-copy { font-size: .74rem; }
    .progress-copy .muted { font-size: .68rem; }
}
