:root {
    --shop-bg: #ffffff;
    --shop-card: #ffffff;
    --shop-text: #111827;
    --shop-muted: #6b7280;
    --shop-line: #e5e7eb;
    --shop-soft: #f7f8fa;
    --shop-primary: #111827;
    --shop-primary-hover: #374151;
    --shop-accent: #0ea5e9;
    --shop-danger: #dc2626;
    --shop-success: #16a34a;
    --shop-radius: 18px;
    --shop-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--shop-bg);
    color: var(--shop-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body a {
    color: inherit;
    text-decoration: none;
}

.shop-app,
.client-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.shop-header,
.client-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -16px -16px 14px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.shop-brand,
.brand-link {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: #111827;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.shop-brand span,
.brand-link span {
    color: var(--shop-accent);
}

.shop-header-icons,
.client-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.shop-icon,
.round-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: var(--shop-card);
    color: var(--shop-text);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
    font-size: 0;
}

.shop-icon svg,
.round-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.round-icon:not(:has(svg)) {
    font-size: 18px;
}

.shop-cart-count,
.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--shop-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.shop-page-title,
.page-title-small {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-strip,
.category-filter-panel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -16px 14px;
    padding: 0 16px 4px;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar,
.category-filter-panel::-webkit-scrollbar {
    display: none;
}

.category-chip,
.category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: var(--shop-soft);
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.category-chip.active,
.category-pill.active {
    border-color: var(--shop-primary);
    background: var(--shop-primary);
    color: #fff;
}

.category-toggle,
.catalog-hero,
.eyebrow {
    display: none !important;
}

.catalog-toolbar {
    margin: 0 0 12px;
}

.search-box input,
.shop-input,
.input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--shop-line);
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
    color: var(--shop-text);
    font: inherit;
    outline: none;
}

textarea.shop-input,
textarea.input {
    padding-top: 12px;
    resize: vertical;
}

.search-box input:focus,
.shop-input:focus,
.input:focus {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.product-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card,
.catalog-card {
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius);
    background: var(--shop-card);
    box-shadow: var(--shop-shadow);
}

.product-card-image,
.catalog-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    background: var(--shop-soft);
    color: var(--shop-muted);
    font-weight: 900;
}

.product-card-image img,
.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-body,
.catalog-card-body {
    padding: 12px;
}

.product-card-title,
.catalog-card-title {
    display: -webkit-box;
    min-height: 38px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--shop-text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-price,
.catalog-card-footer strong {
    margin-bottom: 10px;
    color: var(--shop-text);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.product-card-price span,
.product-detail-price span {
    color: var(--shop-muted);
    font-size: 12px;
    font-weight: 700;
}

.product-preorder,
.preorder-label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
}

.product-card-actions,
.product-detail-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.product-qty,
.qty-control {
    display: inline-flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 12px;
    background: #fff;
}

.product-qty button,
.qty-control button {
    width: 34px;
    height: 100%;
    border: none;
    background: #fff;
    color: var(--shop-text);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.product-qty input {
    width: 36px;
    height: 100%;
    border: 0;
    border-left: 1px solid var(--shop-line);
    border-right: 1px solid var(--shop-line);
    text-align: center;
    font-weight: 850;
    outline: none;
}

.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.shop-add-button,
.shop-primary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--shop-primary);
    color: #fff;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.shop-add-button:hover,
.shop-primary-button:hover,
.primary-button:hover {
    background: var(--shop-primary-hover);
    color: #fff;
}

.shop-card,
.client-card,
.product-detail,
.product-detail-card {
    border: 1px solid var(--shop-line);
    border-radius: 22px;
    background: var(--shop-card);
    box-shadow: var(--shop-shadow);
    padding: 18px;
}

.product-detail,
.product-detail-card {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 22px;
}

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--shop-soft);
    color: var(--shop-muted);
    font-weight: 900;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-body h1,
.shop-card h1,
.shop-card h2,
.client-card h1,
.client-card h2 {
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}

.product-detail-price,
.detail-price {
    margin: 12px 0;
    font-size: 30px;
    font-weight: 950;
}

.product-detail-description,
.detail-description {
    color: var(--shop-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.product-qty-large {
    height: 46px;
}

.product-qty-large button {
    width: 42px;
}

.product-qty-large input {
    width: 48px;
}

.checkout-grid,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
}

.shop-form,
.client-form {
    display: grid;
    gap: 12px;
}

.shop-form label span,
.client-form label span {
    display: block;
    margin-bottom: 6px;
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 750;
}

.receipt-list,
.checkout-list {
    display: grid;
    gap: 10px;
}

.receipt-row,
.checkout-list > div,
.checkout-total,
.cart-footer > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.receipt-row span {
    color: var(--shop-muted);
}

.receipt-subtotal {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--shop-line);
}

.receipt-total,
.checkout-total,
.cart-footer {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--shop-line);
    font-size: 18px;
    font-weight: 950;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--shop-line);
}

.cart-row-image {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--shop-soft);
}

.cart-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-row h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.cart-row p,
.order-meta,
.shop-section-head p,
.section-head p {
    margin: 0;
    color: var(--shop-muted);
}

.remove-button {
    color: var(--shop-danger) !important;
}

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.shop-empty,
.empty-state {
    padding: 24px;
    border: 1px dashed var(--shop-line);
    border-radius: 18px;
    background: var(--shop-soft);
    text-align: center;
}

.shop-empty h1,
.shop-empty h2,
.empty-state h2 {
    margin: 0 0 8px;
}

.shop-empty p,
.empty-state p {
    color: var(--shop-muted);
}

.shop-section-head,
.section-head {
    margin-bottom: 16px;
}

.shop-section-head h1,
.section-head h1 {
    margin: 0 0 6px;
}

.order-card {
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    margin-bottom: 12px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.order-card-header span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 850;
}

.order-items-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.shop-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
}

.shop-message.is-success {
    background: #dcfce7;
    color: #166534;
}

.shop-message.is-error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 980px) {
    .product-grid,
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail,
    .product-detail-card,
    .checkout-grid,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shop-app,
    .client-shell {
        padding: 12px;
    }

    .shop-header,
    .client-topbar {
        margin: -12px -12px 12px;
        padding: 12px;
    }

    .shop-brand,
    .brand-link {
        font-size: 27px;
    }

    .shop-icon,
    .round-icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .shop-icon svg,
    .round-icon svg {
        width: 20px;
        height: 20px;
    }

    .category-strip,
    .category-filter-panel {
        margin: 0 -12px 12px;
        padding: 0 12px 4px;
    }

    .category-chip,
    .category-pill {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .product-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-card,
    .catalog-card {
        border-radius: 16px;
    }

    .product-card-image,
    .catalog-card-image {
        aspect-ratio: 1 / 0.75;
    }

    .product-card-body,
    .catalog-card-body {
        padding: 9px;
    }

    .product-card-title,
    .catalog-card-title {
        min-height: 34px;
        font-size: 13px;
    }

    .product-card-price,
    .catalog-card-footer strong {
        font-size: 14px;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
    }

    .product-qty {
        width: 100%;
        justify-content: space-between;
    }

    .product-qty input {
        flex: 1;
        width: 100%;
    }

    .shop-add-button,
    .shop-primary-button,
    .primary-button {
        width: 100%;
        min-height: 38px;
        font-size: 13px;
    }

    .cart-row {
        grid-template-columns: 64px 1fr;
    }

    .cart-row > strong {
        grid-column: 2;
    }

    .cart-row-image {
        width: 64px;
        height: 64px;
    }

    .cart-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    min-height: 42px;
}

.product-card-price {
    margin-top: 6px;
}

.product-card-badge-row {
    min-height: 28px;
    margin-top: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-card-actions {
    margin-top: auto;
}

.product-preorder-badge,
.preorder-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff3df;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-qty-btn:hover {
    background: #f3f4f6;
}

.cart-qty-value {
    min-width: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid #fee2e2;
    border-radius: 999px;
    background: #fff5f5;
    color: #dc2626;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-remove-btn:hover {
    background: #fee2e2;
}

@media (max-width: 520px) {
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .cart-qty-control {
        gap: 6px;
    }

    .cart-qty-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .cart-remove-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}

.cart-row-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 110px;
}

.cart-row-total span {
    font-size: 12px;
    color: #6b7280;
}

.cart-row-total strong {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.cart-row-price {
    margin: 4px 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.cart-row-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    border-radius: 12px;
}

@media (max-width: 520px) {
    .cart-row {
        align-items: flex-start;
    }

    .cart-row-total {
        width: 100%;
        align-items: flex-start;
        margin-top: 8px;
    }
}


.shop-search-section {
    position: relative;
    margin: 0 0 14px;
}

.shop-search-form {
    position: relative;
}

.shop-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.shop-search-box svg {
    width: 20px;
    height: 20px;
    margin-left: 16px;
    color: #9ca3af;
    flex-shrink: 0;
}

.shop-search-box input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 42px 0 10px;
    color: var(--shop-text);
    font: inherit;
}

.shop-search-box:focus-within {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.shop-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.shop-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
    padding: 6px;
}

.shop-search-suggestions.is-open {
    display: block;
}

.shop-search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 14px;
}

.shop-search-suggestion:hover {
    background: #f9fafb;
}

.shop-search-suggestion-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3f4f6;
    overflow: hidden;
}

.shop-search-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-search-suggestion-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-search-suggestion-main strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-search-suggestion-main small {
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
}

.shop-search-suggestion-empty {
    padding: 13px 14px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 520px) {
    .shop-search-section {
        margin-bottom: 12px;
    }

    .shop-search-box {
        min-height: 46px;
    }

    .shop-search-suggestions {
        max-height: 300px;
    }
}

/* Cart state and order success modal */
.shop-add-button.is-in-cart,
.shop-add-button.is-in-cart:hover,
.shop-add-button:disabled.is-in-cart {
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
    cursor: default;
}

.shop-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.shop-secondary-button:hover {
    background: #f9fafb;
    color: #111827;
}

.order-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.order-success-modal.is-open {
    display: flex;
}

.order-success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    backdrop-filter: blur(3px);
}

.order-success-modal-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    padding: 26px 22px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

.order-success-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.order-success-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 30px;
    font-weight: 950;
}

.order-success-modal-card h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.order-success-modal-card p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 15px;
}

.order-success-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 16px 0 20px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f9fafb;
}

.order-success-number span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.order-success-number strong {
    color: #111827;
    font-size: 22px;
    font-weight: 950;
}

.order-success-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 420px) {
    .order-success-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* Product unit options: compact card view */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-image {
    aspect-ratio: 1 / 0.72;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.product-card-title {
    min-height: 34px;
    margin-bottom: 6px;
    font-size: 14px;
}

.product-card-price {
    margin-bottom: 6px;
    font-size: 15px;
}

.product-unit-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin: 0 0 6px;
}

.product-unit-switcher-detail {
    margin: 6px 0 14px;
}

.product-unit-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.product-unit-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-unit-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--shop-line);
    border-radius: 999px;
    background: #fff;
    color: var(--shop-muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.product-unit-option.active span,
.product-unit-option input:checked + span {
    border-color: var(--shop-primary);
    background: var(--shop-primary);
    color: #fff;
}

.product-card-badge-row {
    min-height: 24px;
    margin-bottom: 6px;
}

.product-card-actions {
    margin-top: auto;
}

.category-modal,
.category-modal.is-open,
.category-drawer,
.category-drawer.is-open {
    display: none !important;
}

@media (max-width: 760px) {
    .product-grid,
    .catalog-grid {
        gap: 10px;
    }

    .product-card-body {
        padding: 9px;
    }

    .product-card-title {
        min-height: 32px;
        font-size: 13px;
    }

    .product-card-price {
        font-size: 14px;
    }

    .product-unit-option span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }
}

/* Admin product unit modal */
.transfer-units-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.sale-units-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sale-unit-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.unit-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.unit-modal.is-open {
    display: block;
}

.unit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.unit-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.unit-modal-header,
.unit-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.unit-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
    border-bottom: 0;
}

.unit-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.unit-modal-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.unit-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 24px;
    line-height: 1;
}

.unit-modal-body {
    padding: 18px;
}

.unit-helper-box {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.unit-options-table input {
    min-width: 120px;
}

.order-card-date {
    display: inline-block;
    margin-left: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.order-card .shop-secondary-button {
    margin-top: 10px;
    width: 100%;
}

.product-card {
    min-height: 0;
}

.product-unit-switcher {
    gap: 5px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.product-unit-option span {
    padding: 5px 8px;
    font-size: 12px;
}
