/* Do not turn html/body into an overflow container: that breaks the theme
   sticky header and smart-scroll behavior in Firefox. */
.gk-archive {
    overflow-x: clip;
}

.gk-archive {
    --gk-archive-bg: #f8fafc;
    --gk-archive-card: #ffffff;
    --gk-archive-text: #1f2937;
    --gk-archive-muted: #6b7280;
    --gk-archive-soft: #f3f6fb;
    --gk-archive-soft-2: #eef2f7;
    --gk-archive-border: #e8edf5;
    --gk-archive-primary: var(--gk-primary, #2563eb);
    --gk-archive-primary-2: #eff6ff;
    --gk-archive-danger: #ef4056;
    --gk-archive-success: #10b981;
    --gk-archive-warning: #f59e0b;
    --gk-archive-radius: 18px;
    --gk-archive-radius-sm: 12px;
    --gk-archive-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    --gk-archive-shadow-sm: 0 6px 18px rgba(15, 23, 42, .055);
    position: relative;
    margin: 0;
    padding: 20px 0 56px;
    background: var(--gk-archive-bg);
    color: var(--gk-archive-text);
    direction: rtl;
}

.gk-archive *,
.gk-archive *::before,
.gk-archive *::after {
    box-sizing: border-box;
}

.gk-archive a {
    color: inherit;
    text-decoration: none;
}

.gk-archive button,
.gk-archive input,
.gk-archive select,
.gk-archive textarea {
    font-family: inherit;
}

.gk-archive__inner {
    width: var(--gk-container-width, min(100% - 32px, var(--gk-site-width, 1360px)));
    margin: 0 auto;
}

.gk-archive__inner--fluid {
    width: min(100% - 32px, 1760px);
}

.gk-archive-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--gk-archive-shadow-sm);
    backdrop-filter: blur(14px);
}

.gk-archive-hero__main {
    min-width: 0;
}

.gk-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--gk-archive-muted);
    font-size: 12px;
    line-height: 1.8;
}

.gk-breadcrumb a {
    color: var(--gk-archive-muted);
}

.gk-breadcrumb a:hover {
    color: var(--gk-archive-primary);
}

.gk-breadcrumb__sep {
    color: #cbd5e1;
}

.gk-archive-hero__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gk-archive-hero__title {
    margin: 0;
    color: var(--gk-archive-text);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    line-height: 1.35;
}

.gk-archive-hero__count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gk-archive-primary-2);
    color: var(--gk-archive-primary);
    font-size: 12px;
    font-weight: 800;
}

.gk-archive-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gk-archive-primary-2);
    color: var(--gk-archive-primary);
}

.gk-archive__description {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 20px;
    background: var(--gk-archive-card);
    color: var(--gk-archive-muted);
    font-size: 14px;
    line-height: 2;
    box-shadow: var(--gk-archive-shadow-sm);
}

.gk-archive__description--top {
    margin-top: 12px;
    margin-bottom: 0;
    box-shadow: none;
}

.gk-subcats-section {
    margin-bottom: 18px;
}

.gk-subcats-scroll {
    display: flex;
    gap: 10px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gk-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 220px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 18px;
    background: var(--gk-archive-card);
    box-shadow: var(--gk-archive-shadow-sm);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gk-subcat-pill:hover {
    border-color: rgba(37, 99, 235, .32);
    box-shadow: var(--gk-archive-shadow);
    transform: translateY(-2px);
}

.gk-subcat-pill__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gk-archive-soft);
    overflow: hidden;
}

.gk-subcat-pill__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gk-subcat-pill__name {
    min-width: 0;
    color: var(--gk-archive-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-subcat-pill__count {
    margin-inline-start: auto;
    color: var(--gk-archive-muted);
    font-size: 11px;
    font-weight: 700;
}

.gk-archive__layout {
    display: grid;
    grid-template-columns: minmax(250px, 292px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.gk-layout--sidebar-left {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 292px);
}

.gk-layout--sidebar-left .gk-archive__sidebar-col {
    order: 2;
}

.gk-layout--no-sidebar {
    grid-template-columns: 1fr;
}

.gk-layout--no-sidebar .gk-archive__sidebar-col {
    display: none;
}

.gk-archive__sidebar-col {
    min-width: 0;
    align-self: stretch;
}

.gk-archive__main-col {
    min-width: 0;
}

.gk-archive__filters-wrapper {
    position: sticky;
    top: calc(var(--gk-sticky-stack-offset, 0px) + 18px);
    max-height: calc(100dvh - var(--gk-sticky-stack-offset, 0px) - 36px);
    border: 1px solid var(--gk-archive-border);
    border-radius: 22px;
    background: var(--gk-archive-card);
    box-shadow: var(--gk-archive-shadow-sm);
    overflow: hidden;
}

.gk-archive__sidebar {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.gk-archive__filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--gk-archive-border);
}

.gk-archive__filters-title {
    margin: 0;
    color: var(--gk-archive-text);
    font-size: 15px;
    font-weight: 900;
}

.gk-archive__filters-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 9px;
    border: 0;
    border-radius: 10px;
    background: var(--gk-archive-soft);
    color: var(--gk-archive-primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.gk-archive__filters-reset:hover {
    background: var(--gk-archive-primary-2);
}

.gk-archive__filters-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gk-archive__filters-footer {
    padding: 12px;
    border-top: 1px solid var(--gk-archive-border);
    background: linear-gradient(180deg, rgba(255,255,255,.8), #fff);
}

.gk-archive__filters-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--gk-archive-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
    transition: transform .15s ease, opacity .15s ease;
}

.gk-archive__filters-apply:hover {
    opacity: .92;
}

.gk-archive__filters-apply:active {
    transform: translateY(1px);
}

.gk-filter {
    margin: 0 0 10px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.gk-filter__header,
.gk-filter > .gk-filter__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    color: var(--gk-archive-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.gk-filter > .gk-filter__title {
    border-bottom: 1px solid var(--gk-archive-border);
}

.gk-filter__header {
    cursor: pointer;
}

.gk-filter__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform .18s ease;
}

.gk-filter--collapsed .gk-filter__toggle-icon {
    transform: rotate(180deg);
}

.gk-filter__body {
    padding: 10px 12px 14px;
}

.gk-filter--collapsed .gk-filter__body {
    display: none;
}

.gk-filter__search-input,
.gk-filter input[type="search"],
.gk-filter input[type="text"],
.gk-filter input[type="number"],
.gk-filter select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 14px;
    background: var(--gk-archive-soft);
    color: var(--gk-archive-text);
    padding: 9px 12px;
    font-size: 13px;
    outline: 0;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.gk-filter__search-input:focus,
.gk-filter input[type="search"]:focus,
.gk-filter input[type="text"]:focus,
.gk-filter input[type="number"]:focus,
.gk-filter select:focus {
    border-color: rgba(37, 99, 235, .45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.gk-filter__price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.gk-filter__price-row label {
    display: grid;
    gap: 6px;
    color: var(--gk-archive-muted);
    font-size: 12px;
    font-weight: 800;
}

.gk-list {
    display: grid;
    gap: 7px;
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.gk-check {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 5px 2px;
    color: var(--gk-archive-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
}

.gk-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gk-check::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1.8px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.gk-check:has(input:checked)::before {
    border-color: var(--gk-archive-primary);
    background: var(--gk-archive-primary);
    box-shadow: inset 0 0 0 4px var(--gk-archive-primary);
}

.gk-check:has(input:checked)::after {
    content: "";
    position: absolute;
    inset-inline-start: 7px;
    right: auto;
    left: auto;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
    transform-origin: center;
}


/* v1.4.2: RTL-safe selected filter checkmark. Keep the tick direction normal in mobile/archive filters. */
.gk-check.is-checked::after,
.gk-check[aria-checked="true"]::after {
    content: "";
    position: absolute;
    inset-inline-start: 7px;
    right: auto;
    left: auto;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
    transform-origin: center;
}

.gk-label,
.gk-label-text,
.gk-check > span:not(.gk-count) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-count {
    margin-inline-start: auto;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.gk-check--depth-1 {
    padding-inline-start: 14px;
}

.gk-check--depth-2 {
    padding-inline-start: 28px;
}

.gk-check--depth-3 {
    padding-inline-start: 42px;
}

.gk-archive-toolbar {
    position: sticky;
    top: calc(var(--gk-sticky-stack-offset, 0px) + 10px);
    z-index: 20;
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--gk-archive-shadow-sm);
    backdrop-filter: blur(14px);
}

.gk-archive-toolbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gk-archive-toolbar__filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 999px;
    background: #fff;
    color: var(--gk-archive-text);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.gk-archive-toolbar__count {
    color: var(--gk-archive-muted);
    font-size: 13px;
    font-weight: 800;
}

.gk-archive-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gk-archive-toolbar__sort-title {
    flex: 0 0 auto;
    color: var(--gk-archive-text);
    font-size: 13px;
    font-weight: 900;
}

.gk-archive-toolbar__sort-list {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.gk-archive-toolbar__sort-list::-webkit-scrollbar {
    display: none;
}

.gk-archive-toolbar__sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--gk-archive-muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

.gk-archive-toolbar__sort-link:hover {
    background: var(--gk-archive-soft);
    color: var(--gk-archive-text);
}

.gk-archive-toolbar__sort-link.is-active,
.gk-archive__sort-item--active .gk-archive-toolbar__sort-link {
    background: var(--gk-archive-primary);
    color: #fff;
}

.gk-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.gk-active-filters[hidden] {
    display: none !important;
}

.gk-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    background: var(--gk-archive-primary-2);
    color: var(--gk-archive-primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.gk-active-filter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    font-size: 14px;
    line-height: 1;
}

.gk-archive-products {
    position: relative;
    min-height: 260px;
}

.gk-archive-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.gk-archive-products ul.products::before,
.gk-archive-products ul.products::after {
    display: none !important;
}

.gk-archive-products ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gk-product-card {
    min-width: 0;
}

.gk-product-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 22px;
    background: var(--gk-archive-card);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gk-product-card__inner:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .09);
}

.gk-product-card__badges {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    pointer-events: none;
}

.gk-product-card__discount,
.gk-product-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(239, 64, 86, .22);
}

.gk-product-card__discount {
    background: var(--gk-archive-danger);
}

.gk-product-card__badge {
    margin-inline-start: auto;
}

.gk-product-card__badge--sale {
    background: var(--gk-archive-danger);
}

.gk-product-card__badge--dark {
    background: #1f2937;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
}

.gk-product-card__thumb {
    position: relative;
    display: block;
    height: 190px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, var(--gk-archive-soft));
    overflow: hidden;
}

.gk-product-card__image-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.gk-product-card__image,
.gk-product-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .22s ease, transform .22s ease;
}

.gk-product-card__image--hover {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    opacity: 0;
    transform: scale(.98);
}

.gk-product-card__inner:hover .gk-product-card__image--main {
    opacity: .08;
    transform: scale(1.02);
}

.gk-product-card__inner:hover .gk-product-card__image--hover {
    opacity: 1;
    transform: scale(1);
}

.gk-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 7px;
}

.gk-product-card__brand {
    display: inline-flex;
    align-items: center;
    max-width: 60%;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--gk-archive-soft);
    color: var(--gk-archive-muted);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-product-card__colors {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
}

.gk-product-card__color {
    display: inline-flex;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--gk-color);
    box-shadow: 0 0 0 1px var(--gk-archive-border);
}

.gk-product-card__title {
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--gk-archive-text);
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.8;
}

.gk-product-card__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gk-product-card__title a:hover {
    color: var(--gk-archive-primary);
}

.gk-product-card__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 26px;
    margin-top: auto;
    margin-bottom: 10px;
}

.gk-product-card__delivery,
.gk-product-card__stock,
.gk-product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gk-archive-muted);
    font-size: 11.5px;
    font-weight: 800;
}

.gk-product-card__delivery {
    color: var(--gk-archive-success);
}

.gk-product-card__stock.is-out {
    color: var(--gk-archive-danger);
}

.gk-product-card__rating {
    margin-inline-start: auto;
    color: var(--gk-archive-warning);
}

.gk-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding-top: 10px;
    border-top: 1px solid var(--gk-archive-border);
}

.gk-product-card__price {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.gk-product-card__price-label {
    color: var(--gk-archive-muted);
    font-size: 11px;
    font-weight: 700;
}

.gk-product-card__price-value {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--gk-archive-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
}

.gk-product-card__price-value .amount {
    color: var(--gk-archive-text);
    font-size: 15px;
    font-weight: 950;
}

.gk-product-card__price-value del {
    color: #a3aab8;
    font-size: 11px;
    font-weight: 700;
    opacity: 1;
}

.gk-product-card__price-value ins {
    text-decoration: none;
}

.gk-product-card__unavailable {
    color: var(--gk-archive-danger);
    font-size: 12px;
    font-weight: 900;
}

.gk-product-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--gk-archive-primary-2);
    color: var(--gk-archive-primary);
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.gk-product-card__action:hover {
    background: var(--gk-archive-primary);
    color: #fff;
    transform: translateX(-2px);
}

.gk-archive--loading,
.gk-archive-products.is-loading {
    pointer-events: none;
}

.gk-archive-products.is-loading::before {
    content: "";
    position: absolute;
    z-index: 10;
    inset: 0;
    border-radius: 22px;
    background: rgba(248, 250, 252, .58);
    backdrop-filter: blur(1px);
}

.gk-archive-products.is-loading::after {
    content: "";
    position: absolute;
    z-index: 11;
    top: 76px;
    right: 50%;
    width: 38px;
    height: 38px;
    margin-right: -19px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, .16);
    border-top-color: var(--gk-archive-primary);
    animation: gk-archive-spin .7s linear infinite;
}

@keyframes gk-archive-spin {
    to {
        transform: rotate(360deg);
    }
}

.gk-archive-pagination {
    margin-top: 24px;
}

.gk-archive-pagination .woocommerce-pagination,
.gk-archive-pagination nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
}

.gk-archive-pagination ul.page-numbers,
.gk-archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gk-archive-pagination .page-numbers li {
    margin: 0;
}

.gk-archive-pagination a.page-numbers,
.gk-archive-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 13px;
    background: #fff;
    color: var(--gk-archive-text);
    font-size: 13px;
    font-weight: 900;
}

.gk-archive-pagination span.page-numbers.current {
    border-color: var(--gk-archive-primary);
    background: var(--gk-archive-primary);
    color: #fff;
}

.gk-load-more-btn,
.gk-infinite-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 180px;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--gk-archive-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.gk-load-more-btn.loading {
    opacity: .7;
    pointer-events: none;
}

.gk-empty-state {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 360px;
    padding: 36px 20px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: var(--gk-archive-shadow-sm);
}

.gk-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 28px;
    background: var(--gk-archive-soft);
    color: var(--gk-archive-primary);
}

.gk-empty-state__img {
    max-width: 160px;
    height: auto;
}

.gk-empty-state__text h3 {
    margin: 0 0 6px;
    color: var(--gk-archive-text);
    font-size: 20px;
    font-weight: 950;
}

.gk-empty-state__text p {
    margin: 0;
    color: var(--gk-archive-muted);
    font-size: 14px;
    line-height: 1.9;
}

.gk-empty-state__search {
    display: flex;
    width: min(100%, 440px);
    gap: 8px;
}

.gk-empty-state__search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--gk-archive-border);
    border-radius: 14px;
    background: var(--gk-archive-soft);
    padding: 8px 12px;
    outline: 0;
}

.gk-empty-state__search button,
.gk-empty-state__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--gk-archive-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.gk-empty-state__back {
    background: var(--gk-archive-primary-2);
    color: var(--gk-archive-primary);
}

.gk-filters-backdrop {
    position: fixed;
    z-index: 9997;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.gk-filters-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

body.gk-filters-open {
    overflow: hidden;
}

.gk-archive .woocommerce-result-count,
.gk-archive .woocommerce-ordering {
    display: none !important;
}

.gk-archive-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(239, 64, 86, .18);
    border-radius: 16px;
    background: rgba(239, 64, 86, .06);
    color: var(--gk-archive-danger);
    font-size: 13px;
    font-weight: 900;
}

@media (min-width: 1380px) {
    .gk-archive-products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    }
}

@media (max-width: 1180px) {
    .gk-archive__layout {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 14px;
    }

    .gk-archive-products ul.products {
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
        gap: 14px;
    }

    .gk-product-card__thumb {
        height: 170px;
    }
}

@media (max-width: 991px) {
    .gk-archive {
        padding-top: 14px;
    }

    .gk-archive__inner,
    .gk-archive__inner--fluid {
        width: min(100% - 20px, 100%);
    }

    .gk-archive__layout,
    .gk-layout--sidebar-left {
        display: block;
    }

    .gk-archive-toolbar {
        top: 0;
        border-radius: 18px;
    }

    .gk-archive-toolbar__filter-btn {
        display: inline-flex;
    }

    .gk-archive-toolbar__sort {
        display: grid;
        gap: 8px;
    }

    .gk-archive-toolbar__sort-list {
        margin-inline: -2px;
    }

    .gk-archive__filters-wrapper {
        position: fixed;
        z-index: 9998;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: min(82vh, 720px);
        border-radius: 24px 24px 0 0;
        transform: translateY(105%);
        transition: transform .24s ease;
        box-shadow: 0 -18px 42px rgba(15, 23, 42, .16);
    }

    .gk-archive__filters-wrapper--open {
        transform: translateY(0);
    }

    .gk-archive__filters-header::before {
        content: "";
        position: absolute;
        top: 8px;
        right: 50%;
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #cbd5e1;
        transform: translateX(50%);
    }

    .gk-archive__filters-header {
        position: relative;
        padding-top: 22px;
    }

    .gk-archive__filters-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .gk-archive-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gk-product-card__inner {
        border-radius: 18px;
        padding: 10px;
    }

    .gk-product-card__thumb {
        height: 150px;
        border-radius: 15px;
    }

    .gk-product-card__title {
        min-height: 44px;
        font-size: 12.5px;
    }

    .gk-product-card__footer {
        min-height: 44px;
    }

    .gk-product-card__action {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .gk-archive-hero {
        min-height: auto;
        padding: 14px;
        border-radius: 18px;
    }

    .gk-archive-hero__icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .gk-archive-hero__title {
        font-size: 20px;
    }

    .gk-archive-toolbar {
        padding: 10px;
    }

    .gk-archive-toolbar__top {
        align-items: stretch;
    }

    .gk-archive-toolbar__filter-btn {
        min-height: 38px;
    }

    .gk-archive-toolbar__count {
        display: inline-flex;
        align-items: center;
        font-size: 12px;
    }

    .gk-archive-products ul.products {
        gap: 9px;
    }

    .gk-product-card__thumb {
        height: 132px;
        margin-bottom: 8px;
    }

    .gk-product-card__meta {
        min-height: 22px;
        margin-bottom: 5px;
    }

    .gk-product-card__brand {
        max-width: 100%;
        font-size: 10px;
    }

    .gk-product-card__colors {
        display: none;
    }

    .gk-product-card__info {
        margin-bottom: 8px;
    }

    .gk-product-card__delivery,
    .gk-product-card__stock,
    .gk-product-card__rating {
        font-size: 10.5px;
    }

    .gk-product-card__price-label {
        font-size: 10px;
    }

    .gk-product-card__price-value,
    .gk-product-card__price-value .amount {
        font-size: 12.5px;
    }

    .gk-empty-state__search {
        display: grid;
    }
}

@media (max-width: 390px) {
    .gk-archive-products ul.products {
        grid-template-columns: 1fr;
    }

    .gk-product-card__thumb {
        height: 185px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gk-product-card__inner,
    .gk-product-card__image,
    .gk-product-card__action,
    .gk-subcat-pill,
    .gk-archive__filters-wrapper,
    .gk-filters-backdrop {
        transition: none !important;
    }

    .gk-archive-products.is-loading::after {
        animation: none !important;
    }
}

/* GK realfix v1.3.9: reliable mobile filters */
.gk-filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(15, 23, 42, .38);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility 0s .22s;
}

.gk-filters-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease, visibility 0s;
}

body.gk-filters-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 991px) {
    .gk-archive__filters-wrapper {
        visibility: hidden;
        pointer-events: none;
        background: var(--gk-surface, #fff);
        overflow: hidden;
    }

    .gk-archive__filters-wrapper--open {
        visibility: visible;
        pointer-events: auto;
    }

    .gk-archive__sidebar {
        max-height: min(82vh, 720px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .gk-archive__filters-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .gk-archive__filters-footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(255,255,255,.88), var(--gk-surface, #fff) 35%);
        border-top: 1px solid var(--gk-border-color, #e5e7eb);
        box-shadow: 0 -10px 26px rgba(15, 23, 42, .08);
    }

    .gk-archive__filters-apply,
    [data-gk-filters-apply] {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        touch-action: manipulation;
    }

    .gk-archive__filters-apply:disabled,
    [data-gk-filters-apply]:disabled {
        opacity: .72;
        cursor: wait;
    }
}

/* GK Fix: hide mobile bottom nav while archive filter drawer is open so Apply button stays visible */
@media (max-width: 991px) {
    body.gk-filters-open .gk-bnav,
    body.gk-filters-open .gk-mobile-bottom-nav,
    body.gk-filters-open .mobile-bottom-nav,
    body.gk-filters-open [data-gk-mobile-bottom-nav] {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(calc(100% + env(safe-area-inset-bottom, 0px))) !important;
    }
}

/* GK Fix: keep archive mobile filter drawer above bottom bars and keep footer/action sticky */
@media (max-width: 991px) {
    .gk-filters-backdrop {
        z-index: 10050 !important;
    }
    .gk-archive__filters-wrapper {
        z-index: 10060 !important;
        max-height: min(88vh, 760px);
    }
    .gk-archive__sidebar {
        max-height: min(88vh, 760px);
    }
    .gk-archive__filters-footer {
        position: sticky;
        bottom: 0;
        z-index: 3;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    }
}

/* GK Fix v1.4.1: force-hide mobile bottom nav while archive filters are open.
   Uses body/html state classes + :has() fallback + direct ID selector for #gk-bottom-nav. */
@media (max-width: 991px) {
    html.gk-filters-open #gk-bottom-nav,
    body.gk-filters-open #gk-bottom-nav,
    html.gk-filters-open .gk-bnav,
    body.gk-filters-open .gk-bnav,
    html.gk-filters-open .gk-bottom-nav,
    body.gk-filters-open .gk-bottom-nav,
    html.gk-filters-open .gk-mobile-bottom-nav,
    body.gk-filters-open .gk-mobile-bottom-nav,
    html.gk-filters-open .mobile-bottom-nav,
    body.gk-filters-open .mobile-bottom-nav,
    html.gk-filters-open [data-gk-mobile-bottom-nav],
    body.gk-filters-open [data-gk-mobile-bottom-nav],
    body:has(.gk-archive__filters-wrapper--open) #gk-bottom-nav,
    body:has(.gk-archive__filters-wrapper--open) .gk-bnav,
    body:has(.gk-archive__filters-wrapper--open) .gk-bottom-nav,
    body:has(.gk-archive__filters-wrapper--open) .gk-mobile-bottom-nav,
    body:has(.gk-archive__filters-wrapper--open) .mobile-bottom-nav,
    body:has(.gk-archive__filters-wrapper--open) [data-gk-mobile-bottom-nav],
    #gk-bottom-nav.gk-bnav--filters-hidden,
    .gk-bnav.gk-bnav--filters-hidden,
    .gk-bottom-nav.gk-bnav--filters-hidden,
    .gk-mobile-bottom-nav.gk-bnav--filters-hidden,
    .mobile-bottom-nav.gk-bnav--filters-hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(0, 140%, 0) !important;
        z-index: -1 !important;
    }

    body.gk-filters-open {
        padding-bottom: 0 !important;
    }

    body.gk-filters-open .gk-archive__filters-wrapper,
    .gk-archive__filters-wrapper.gk-archive__filters-wrapper--open {
        z-index: 2147483002 !important;
    }

    body.gk-filters-open .gk-filters-backdrop,
    .gk-filters-backdrop.is-visible {
        z-index: 2147483001 !important;
    }

    body.gk-filters-open .gk-archive__filters-footer,
    .gk-archive__filters-wrapper--open .gk-archive__filters-footer {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 2147483003 !important;
    }
}



/* GK Fix v1.4.3: selected filter checkbox must stay inside the filter card.
   Draw the checkmark as a centered SVG background on the checkbox square itself
   instead of an absolutely positioned ::after pseudo-element that can overflow in RTL. */
.gk-list .gk-check,
.gk-filter .gk-check {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-inline: 0 !important;
}

.gk-list .gk-check::before,
.gk-filter .gk-check::before {
    box-sizing: border-box;
    inline-size: 18px !important;
    block-size: 18px !important;
    min-inline-size: 18px !important;
    max-inline-size: 18px !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
}

.gk-list .gk-check:has(input:checked)::before,
.gk-filter .gk-check:has(input:checked)::before,
.gk-list .gk-check.is-checked::before,
.gk-filter .gk-check.is-checked::before,
.gk-list .gk-check[aria-checked="true"]::before,
.gk-filter .gk-check[aria-checked="true"]::before {
    border-color: var(--gk-archive-primary, #00384f) !important;
    background-color: var(--gk-archive-primary, #00384f) !important;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.1 7.25L5.85 10L11.1 4.25' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.gk-list .gk-check:has(input:checked)::after,
.gk-filter .gk-check:has(input:checked)::after,
.gk-list .gk-check.is-checked::after,
.gk-filter .gk-check.is-checked::after,
.gk-list .gk-check[aria-checked="true"]::after,
.gk-filter .gk-check[aria-checked="true"]::after {
    content: none !important;
    display: none !important;
}

.gk-list .gk-label,
.gk-list .gk-label-text,
.gk-list .gk-check > span:not(.gk-count),
.gk-filter .gk-label,
.gk-filter .gk-label-text,
.gk-filter .gk-check > span:not(.gk-count) {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* GK v1.9.3: archive product image ratio + mobile single-column list layout */
.gk-archive-products ul.products {
    grid-template-columns: repeat(var(--gk-archive-cols-desktop, 4), minmax(0, 1fr)) !important;
    gap: var(--gk-archive-gap, 16px) !important;
}

.gk-product-card__thumb {
    height: auto !important;
    aspect-ratio: 1 / 1;
    background: transparent !important;
    border-radius: var(--gk-product-image-radius, var(--gk-image-radius, 18px));
    overflow: hidden;
    isolation: isolate;
}

.gk-product-card__image-wrap {
    inset: 0 !important;
    padding: 0 !important;
    border-radius: inherit;
    overflow: hidden;
    background: transparent !important;
}

.gk-product-card__image,
.gk-product-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    object-position: center center;
    border-radius: inherit;
    background: transparent !important;
}

.gk-product-card__image--hover {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.gk-product-card__thumb::before,
.gk-product-card__image-wrap::before,
.gk-product-card__image-wrap::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 1180px) {
    .gk-archive-products ul.products {
        grid-template-columns: repeat(var(--gk-archive-cols-tablet, 3), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .gk-archive-products ul.products {
        grid-template-columns: repeat(var(--gk-archive-cols-mobile, 2), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .gk-archive.gk-archive--mobile-cols-1 .gk-archive-products ul.products {
        grid-template-columns: 1fr !important;
        gap: var(--gk-archive-gap, 12px) !important;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__inner {
        display: grid;
        grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        padding: 10px;
        border-radius: 18px;
        min-height: 0;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__thumb {
        grid-column: 1;
        grid-row: 1 / span 4;
        width: 100%;
        margin: 0 !important;
        align-self: stretch;
        min-height: 112px;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__meta,
    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__title,
    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__info,
    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__footer {
        grid-column: 2;
        min-width: 0;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__meta {
        min-height: 0;
        margin: 0;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__title {
        min-height: 0;
        margin: 0;
        font-size: 13px;
        line-height: 1.7;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__info {
        min-height: 0;
        margin: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__footer {
        align-self: end;
        min-height: 0;
        margin-top: 4px;
        padding-top: 8px;
        gap: 8px;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__price-value,
    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__price-value .amount {
        font-size: 13px;
        line-height: 1.6;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-product-card__badges {
        top: 8px;
        right: 8px;
        left: auto;
        width: calc(38% - 10px);
        justify-content: flex-start;
    }
}

@media (max-width: 390px) {
    .gk-archive.gk-archive--mobile-cols-2 .gk-archive-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gk-archive.gk-archive--mobile-cols-1 .gk-archive-products ul.products {
        grid-template-columns: 1fr !important;
    }
}


/* GK v1.9.4: stable second image hover; never hide main image when no real second image exists */
.gk-product-card__image-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
}

.gk-product-card__image,
.gk-product-card__thumb img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: inherit !important;
    transform-origin: center center;
    backface-visibility: hidden;
}

.gk-product-card__image--main {
    opacity: 1 !important;
    transform: none !important;
    z-index: 1;
}

.gk-product-card__image--hover {
    opacity: 0 !important;
    transform: none !important;
    z-index: 2;
    pointer-events: none;
}

.gk-product-card__inner:not(.gk-product-card__inner--has-hover):hover .gk-product-card__image--main,
.gk-product-card__inner:not(.gk-product-card__inner--has-hover):focus-within .gk-product-card__image--main {
    opacity: 1 !important;
    transform: none !important;
}

.gk-product-card__inner.gk-product-card__inner--has-hover:hover .gk-product-card__image--main,
.gk-product-card__inner.gk-product-card__inner--has-hover:focus-within .gk-product-card__image--main {
    opacity: 0 !important;
    transform: none !important;
}

.gk-product-card__inner.gk-product-card__inner--has-hover:hover .gk-product-card__image--hover,
.gk-product-card__inner.gk-product-card__inner--has-hover:focus-within .gk-product-card__image--hover {
    opacity: 1 !important;
    transform: none !important;
}

@media (hover: none), (pointer: coarse) {
    .gk-product-card__image--main {
        opacity: 1 !important;
        transform: none !important;
    }
    .gk-product-card__image--hover {
        display: none !important;
    }
}


/* === GK Archive v1.9.10: respect the visible header/admin toolbar stack === */
.gk-archive__filters-wrapper,
.gk-archive-toolbar {
    transition: top .18s ease;
}

@supports not (height: 100dvh) {
    .gk-archive__filters-wrapper {
        max-height: calc(100vh - var(--gk-sticky-stack-offset, 0px) - 36px);
    }
}

@media (max-width: 992px) {
    .gk-archive-toolbar {
        top: calc(var(--gk-sticky-stack-offset, 0px) + 8px);
    }
}
