:root {
    --ks-accent: #6f42c1;
    --ks-accent-dark: #5a32a8;
    --ks-bg: #f4f5f7;
    --ks-card-border: #ececec;
    --ks-text: #222;
    --ks-muted: #6b7280;
    --ks-star: #f5b400;
}

* { box-sizing: border-box; }

.ks-page {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.ks-body .app-content {
    background: var(--ks-bg);
}

body.ks-body .app-content > main.container-fluid {
    padding: 0 !important;
}

.ks-searchbar {
    background: var(--ks-accent);
    width: 100%;
    padding: 16px 24px 18px;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    --ks-searchbar-sticky-height: 78px;
}

.ks-crumb-bar {
    position: sticky;
    top: var(--ks-searchbar-sticky-height, 78px);
    z-index: 1019;
    width: 100%;
    background: var(--ks-bg);
    border-bottom: 1px solid var(--ks-card-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ks-crumb-bar-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 24px;
}

.ks-crumb-bar:not(:has(.app-crumb)) {
    display: none;
}

.ks-crumb-bar .app-crumb.ks-crumb,
.ks-crumb-bar .app-crumb {
    margin-bottom: 0;
}

.ks-searchbar-inner {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.ks-logo {
    font-weight: 800;
    font-size: 1.45rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.ks-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 999px;
    overflow: hidden;
    min-height: 44px;
    width: 100%;
}

.ks-search input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    background: transparent;
    min-width: 0;
}

.ks-search button {
    border: 0;
    background: transparent;
    color: var(--ks-accent);
    width: 48px;
    height: 44px;
    cursor: pointer;
    font-size: 1.05rem;
}

.ks-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    text-decoration: none;
}

.ks-icon-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.ks-listing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.ks-listing-head h1 {
    margin: 0;
    font-size: 1.3rem;
}

.ks-cat-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ks-cat-filters {
    position: sticky;
    top: calc(var(--ks-searchbar-sticky-height, 78px) + 48px);
    max-height: calc(100vh - var(--ks-searchbar-sticky-height, 78px) - 64px);
    overflow: auto;
}

.ks-filters {
    background: #fff;
    border: 1px solid var(--ks-card-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ks-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ks-filters-title {
    margin: 0;
    font-size: 1rem;
}

.ks-filters-clear {
    border: 0;
    background: transparent;
    color: var(--ks-accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.ks-filter-group {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 12px;
}

.ks-filter-group-title {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.ks-filter-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

[data-ks-filter-group="brand"] .ks-filter-options {
    max-height: 220px;
    overflow: auto;
}

.ks-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
}

.ks-filter-check.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ks-filter-label {
    flex: 1;
}

.ks-filter-count {
    color: var(--ks-muted);
    font-size: 0.82rem;
}

.ks-filter-price-values {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--ks-muted);
    margin-bottom: 10px;
}

.ks-filter-price-label {
    color: var(--ks-text);
    font-weight: 600;
}

.ks-filter-price-hint {
    font-size: 0.78rem;
    color: var(--ks-muted);
}

.ks-filter-price {
    display: block;
}

.ks-filter-price input[data-ks-price-min] {
    display: none !important;
}

.ks-filter-range {
    width: 100%;
    display: block;
    accent-color: var(--ks-accent);
    margin: 0;
}

.ks-skel-filters {
    min-height: 320px;
    border-radius: 12px;
}

.ks-filters-toggle {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1030;
    border: 0;
    border-radius: 999px;
    background: var(--ks-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ks-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 24px 48px;
}

.ks-hero {
    background: linear-gradient(90deg, #efe7fb 0%, #f7f0ff 55%, #fff 100%);
    border-radius: 16px;
    padding: 40px 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 28px;
}

.ks-hero h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.ks-hero p {
    margin: 0 auto;
    color: #444;
    max-width: 640px;
}

.ks-btn {
    display: inline-block;
    background: var(--ks-accent);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ks-btn:hover { background: var(--ks-accent-dark); }

.ks-btn-lg {
    padding: 14px 22px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.ks-cat-carousel {
    position: relative;
    margin-bottom: 12px;
}

.ks-cat-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 28px 8px;
    margin-bottom: 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.ks-cat-strip::-webkit-scrollbar {
    display: none;
}

.ks-cat-item {
    flex: 0 0 110px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.ks-cat-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ks-cat-circle img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.ks-cat-item span {
    font-size: 0.8rem;
    color: #333;
}

.ks-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 18px 0 12px;
}

.ks-row-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.ks-row-head h2 .ks-row-title {
    color: inherit;
    text-decoration: none;
}

.ks-row-head h2 .ks-row-title:hover,
.ks-row-head h2 .ks-row-title:focus-visible {
    color: var(--ks-accent);
}

.ks-row-head h2 .ks-row-count {
    margin-left: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ks-muted, #6c757d);
}

.ks-see-more {
    color: var(--ks-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

.ks-row {
    position: relative;
    margin-bottom: 8px;
}

.ks-row-carousel {
    position: relative;
}

.ks-row-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 8px 12px;
}

.ks-row-track::-webkit-scrollbar {
    display: none;
}

.ks-row-track .ks-card {
    flex: 0 0 calc((100% - 48px) / 4.35);
    scroll-snap-align: start;
}

.ks-row-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #444;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.ks-row-arrow:hover {
    background: #fff;
    color: #111;
}

.ks-row-prev { left: -8px; }
.ks-row-next { right: -8px; }

.ks-row-arrow[hidden] {
    display: none !important;
}

.ks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ks-card {
    background: #fff;
    border: 1px solid var(--ks-card-border);
    border-radius: 12px;
    padding: 12px 14px 16px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.ks-card-heart {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #c5c5c5;
    text-decoration: none;
    font-size: 1.1rem;
    z-index: 1;
}

.ks-card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ks-card-image {
    height: 160px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 8px 8px;
    contain: layout style paint;
}

.ks-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ks-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 8px 0 12px;
    min-height: 3.9em;
}

.ks-card-meta {
    margin-top: auto;
}

.ks-from {
    font-weight: 500;
    margin-right: 4px;
}

.ks-price {
    font-size: 1.05rem;
}

.ks-stores, .ks-shop-name {
    color: var(--ks-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.ks-listing-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ks-admin-batch-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ks-admin-batch-move-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(100%, 320px);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--ks-card-border);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ks-admin-batch-move-panel select {
    width: 100%;
    font-size: 0.88rem;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ks-admin-batch-move-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ks-card-select {
    position: absolute;
    right: 10px;
    bottom: 12px;
    z-index: 3;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ks-admin-selection-toast-wrap {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1085;
    pointer-events: none;
}

.ks-admin-selection-toast {
    min-width: min(92vw, 360px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.ks-admin-selection-toast .toast-body {
    font-weight: 600;
    text-align: center;
}

.ks-cat-page--admin .ks-admin-product-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--ks-card-border);
    border-radius: 12px;
}

.ks-admin-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ks-admin-product-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fafafa;
    color: var(--ks-muted);
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ks-card-border);
    white-space: nowrap;
    font-size: calc(0.92rem * 0.78);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ks-admin-product-row {
    height: 75px;
    max-height: 75px;
}

.ks-admin-product-row td {
    padding: 4px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.ks-admin-product-row.is-selected {
    background: #f5f3ff;
}

.ks-admin-product-row.is-selected td {
    box-shadow: inset 0 0 0 1px rgba(111, 66, 193, 0.25);
}

.ks-admin-product-col-thumb {
    width: 56px;
}

.ks-admin-product-col-price,
.ks-admin-product-col-stores {
    width: 120px;
    white-space: nowrap;
}

.ks-admin-product-col-tools {
    width: 140px;
}

.ks-admin-product-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.ks-admin-product-thumb img {
    display: block;
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ks-admin-product-thumb-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ddd;
    font-size: 1.1rem;
}

.ks-admin-product-name a {
    color: var(--ks-text);
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-size: 0.88rem;
}

.ks-admin-product-name a:hover {
    color: var(--ks-accent);
}

.ks-admin-product-price .ks-from {
    display: block;
    font-size: 0.78rem;
    color: var(--ks-muted);
}

.ks-admin-product-stores {
    color: var(--ks-muted);
    font-size: 0.84rem;
}

.ks-admin-product-tools {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 120px;
}

.ks-admin-product-tools .ks-card-admin {
    position: static;
    opacity: 1;
    display: inline-flex;
}

.ks-admin-product-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.ks-admin-product-tools .ks-card-admin-move {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    min-width: 220px;
}

.ks-card.is-selected {
    outline: 2px solid var(--ks-accent);
    outline-offset: 0;
}

.ks-card-admin {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.ks-card:hover .ks-card-admin,
.ks-card:focus-within .ks-card-admin {
    opacity: 1;
}

.ks-card-admin-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ks-card-admin-btn:hover {
    color: var(--ks-accent);
}

.ks-card-admin-btn.is-danger:hover {
    color: #c0392b;
}

.ks-card-admin-move {
    position: absolute;
    top: 42px;
    left: 8px;
    right: 8px;
    z-index: 3;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--ks-card-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ks-card-admin-move.is-open {
    display: flex;
}

.ks-card-admin-move select {
    width: 100%;
    font-size: 0.82rem;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ks-card-admin-move-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ks-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ks-sort {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: #444;
}

.ks-crumb,
.app-crumb.ks-crumb {
    color: var(--ks-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.ks-crumb a,
.app-crumb.ks-crumb a {
    color: var(--ks-accent);
    text-decoration: none;
}

.ks-crumb a:hover,
.app-crumb.ks-crumb a:hover {
    text-decoration: underline;
}

.ks-product {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
}

.ks-product-media {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ks-product-media--with-thumbs {
    align-items: stretch;
}

.ks-product-thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ks-product-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.ks-product-thumb.is-active {
    border-color: #f97316;
}

.ks-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ks-product-image {
    flex: 1;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-product-main-trigger {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ks-product-image img,
.ks-product-main-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.ks-product h1 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.ks-actions-row {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.ks-offer-box {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
}

.ks-offer-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 8px 0 16px;
}

.ks-variant-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 18px;
}

.ks-variant-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}

.ks-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ks-swatch {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #cfcfcf;
    background: var(--ks-swatch, #d1d5db);
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ks-swatch.is-selected {
    outline: 2px solid var(--ks-accent);
    outline-offset: 2px;
    border-color: var(--ks-accent);
}

.ks-variant-select {
    width: 100%;
    max-width: 280px;
    height: 40px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 0 36px 0 12px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M1 1l5 5 5-5'/></svg>") no-repeat right 12px center;
    appearance: none;
    font-size: 0.95rem;
    color: #222;
}

.ks-btn-lg.is-unavailable {
    opacity: 0.45;
    pointer-events: none;
}

.ks-trust {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    color: #666;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.ks-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #ddd;
    margin: 28px 0 16px;
    background: #f0f0f0;
    padding: 0 16px;
    border-radius: 8px 8px 0 0;
}

.ks-tabs a, .ks-tabs span {
    padding: 12px 0;
    text-decoration: none;
    color: #444;
    font-weight: 600;
}

.ks-tabs .is-active {
    color: #111;
    border-bottom: 3px solid #111;
}

.ks-section-title {
    font-size: 1.05rem;
    margin: 8px 0 14px;
}

.ks-offer-row {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ks-offer-logo {
    width: 72px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ks-accent);
    font-weight: 800;
    font-size: 1.4rem;
    background: #f6f3fb;
    border-radius: 8px;
    overflow: hidden;
}

.ks-offer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ks-offer-title {
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 4px;
}

.ks-offer-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ks-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.ks-offer-shop:hover {
    color: var(--ks-accent);
    text-decoration: underline;
}

.ks-offer-amount {
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.ks-offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #efe7fb;
    color: var(--ks-accent-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ks-offer-cta:hover {
    background: #e2d6f7;
    color: var(--ks-accent-dark);
}

.ks-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 16px;
    flex-wrap: wrap;
}

.ks-page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
}

.ks-page-btn.is-active {
    background: var(--ks-accent);
    border-color: var(--ks-accent);
    color: #fff;
}

.ks-ellipsis { padding: 8px 4px; color: #888; }

.ks-filters-fab {
    display: flex;
    justify-content: center;
    margin: 8px 0 24px;
}

.ks-filters-fab button {
    background: var(--ks-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 700;
    cursor: default;
}

.ks-shop-head {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ks-shop-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ks-shop-logo {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    background: #f6f3fb;
    color: var(--ks-accent);
    font-weight: 800;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ks-shop-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ks-shop-head h1 {
    margin: 0;
    font-size: 1.6rem;
}

.ks-dept-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ks-dept-cat-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8e2f4;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.ks-dept-cat-card:hover {
    border-color: var(--ks-accent);
}

.ks-dept-cat-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f6f3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ks-dept-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-dept-cat-body h2 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.ks-dept-cat-sub {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
}

.ks-skel {
    background: linear-gradient(90deg, #f3eef8 25%, #ebe4f5 37%, #f3eef8 63%);
    background-size: 400% 100%;
    animation: ks-skel 1.2s ease-in-out infinite;
    border-radius: 12px;
}

.ks-skel-cat {
    height: 96px;
}

.ks-skel-title {
    height: 22px;
    width: 42%;
    margin-bottom: 12px;
}

.ks-skel-track {
    height: 220px;
}

.ks-skel-cat-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes ks-skel {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.ks-empty {
    text-align: center;
    color: var(--ks-muted);
    padding: 48px 16px;
}

.ks-note {
    font-size: 0.8rem;
    color: var(--ks-muted);
    margin-top: 8px;
}

.ks-footer {
    background: #5d2678;
    color: #fff;
    padding: 18px 24px;
    text-align: center;
    font-size: 0.85rem;
}

.ks-footer a { color: #fff; }

@media (max-width: 1100px) {
    .ks-grid { grid-template-columns: repeat(3, 1fr); }
    .ks-product { grid-template-columns: 1fr; }
    .ks-row-track .ks-card { flex-basis: calc((100% - 32px) / 3.25); }
}

@media (max-width: 900px) {
    .ks-cat-layout {
        grid-template-columns: 1fr;
    }
    .ks-cat-filters {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 92vw);
        max-height: none;
        z-index: 1040;
        transform: translateX(110%);
        transition: transform 0.2s ease;
        background: rgba(0, 0, 0, 0.2);
        padding: 0;
    }
    .ks-cat-filters.is-open {
        transform: translateX(0);
    }
    .ks-cat-filters .ks-filters {
        height: 100%;
        border-radius: 0;
        overflow: auto;
    }
    .ks-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 800px) {
    .ks-searchbar-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
    .ks-grid { grid-template-columns: repeat(2, 1fr); }
    .ks-row-track .ks-card { flex-basis: calc((100% - 16px) / 2.2); }
    .ks-offer-row {
        grid-template-columns: 56px 1fr;
    }
    .ks-offer-price-col,
    .ks-offer-cta-wrap {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .ks-grid { grid-template-columns: 1fr; }
    .ks-row-track .ks-card { flex-basis: 82%; }
}
