.category-view,
.search-results-view {
    display: grid;
    gap: 18px;
}

.category-floating-ui {
    position: fixed;
    right: 12px;
    bottom: 34px;
    z-index: 26;
    display: none;
    gap: 8px;
    pointer-events: none;
    justify-items: end;
}

body.category-open .category-floating-ui {
    display: grid;
}

.floating-back-button,
.floating-category-pill {
    pointer-events: auto;
}

.floating-back-button {
    width: 64px;
    height: 50px;
    border: 0;
    border-radius: 18px;
    background: var(--green-800);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 99, 65, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
}

.floating-back-button:hover {
    background: var(--green-900);
    transform: translateY(-2px);
}

.floating-category-pill {
    max-width: 240px;
    width: max-content;
    min-height: 38px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--green-900);
    font-size: 0.92rem;
    font-weight: 700;
}

.category-summary,
.search-summary {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.category-summary h2,
.search-summary h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.3rem, 2vw, 2rem);
    color: var(--green-900);
}

.category-summary p,
.search-summary p {
    color: var(--muted);
    line-height: 1.5;
}

.category-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--green-900);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.product-card {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-card--compact {
    justify-content: space-between;
}

.product-card-media {
    aspect-ratio: 4 / 3;
    padding: 20px;
    background: linear-gradient(180deg, rgba(212, 233, 226, 0.82), rgba(255, 255, 255, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-media.image-fallback {
    background: linear-gradient(180deg, rgba(15, 61, 46, 0.08), rgba(255, 255, 255, 0.98));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.12));
}

.product-card-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.product-category {
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-heading h3 {
    font-size: 1.28rem;
    color: var(--green-900);
    line-height: 1.25;
}

.product-detail {
    color: var(--green-800);
    font-weight: 700;
    margin-top: 4px;
}

.product-description {
    color: var(--muted);
    line-height: 1.55;
    min-height: 3.2em;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-900);
    font-size: 0.82rem;
    font-weight: 700;
}

.inline-category-link {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--green-800);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.price-block {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.price-title {
    color: var(--green-900);
    font-weight: 700;
}

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

.price-chip {
    border-radius: var(--radius-md);
    background: var(--cream);
    border: 1px solid rgba(0, 99, 65, 0.1);
    padding: 12px;
    display: grid;
    gap: 6px;
}

.price-label {
    color: var(--muted);
    font-size: 0.84rem;
}

.price-chip strong {
    font-size: 1.05rem;
    color: var(--green-900);
}

.empty-state {
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--muted);
    grid-column: 1 / -1;
}

.empty-state h3 {
    color: var(--green-900);
    margin-bottom: 8px;
}

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

@media (max-width: 640px) {
    .product-grid,
    .price-grid,
    .price-grid--interactive {
        grid-template-columns: 1fr;
    }

    .category-summary,
    .search-summary {
        padding: 18px;
        border-radius: 22px;
    }

    .floating-back-button {
        width: 60px;
        height: 48px;
    }

    .floating-category-pill {
        max-width: min(70vw, 220px);
        font-size: 0.88rem;
        padding: 9px 12px;
    }
}


@media (max-width: 768px) {
    .floating-back-button {
        width: 60px;
        height: 48px;
    }

    .floating-category-pill {
        font-size: 0.86rem;
        max-width: 180px;
    }
}


.sales-home-view,
.sales-results-view {
    display: grid;
    gap: 18px;
}

.sales-home-header,
.sales-summary {
    display: grid;
    gap: 8px;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sales-home-header h2,
.sales-summary h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--green-900);
}

.sales-home-header p,
.sales-summary p {
    color: var(--muted);
    line-height: 1.5;
}

.sales-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sales-category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-strong);
    color: var(--green-900);
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.sales-category-button strong {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
}

.product-card--sales .product-card-body {
    gap: 12px;
}

.product-card--sales .product-heading h3 {
    font-size: 1.15rem;
}

.price-grid--interactive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-chip--button {
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.price-chip--button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 99, 65, 0.28);
}

.price-chip--button:active {
    transform: translateY(0);
}

.category-floating-ui {
    right: 12px;
    left: auto;
    bottom: 34px;
    justify-items: end;
}

.floating-category-pill {
    text-align: center;
}

@media (max-width: 900px) {
    .sales-category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .category-floating-ui {
        right: 8px;
        left: auto;
        bottom: 72px;
        justify-items: end;
    }

    .sales-home-header,
    .sales-summary {
        padding: 18px;
    }
}


.sales-home-view--minimal {
    display: grid;
    gap: 16px;
    align-content: start;
}

.sales-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sales-action-button {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.94);
    color: var(--green-900);
    font: inherit;
    font-weight: 700;
    text-align: left;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.sales-action-button.is-disabled,
.sales-action-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.sales-category-panel {
    padding: 18px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.orders-toolbar {
    display: grid;
    gap: 10px;
}

@media (max-width: 640px) {
    .sales-action-grid {
        grid-template-columns: 1fr;
    }
}
