/* =====================================================
   SHOP PAGE — Full shop layout
   Component: Category pills, filter bar, product grid,
   sort controls, pagination. Matches Figma design.
===================================================== */

/* =========================
   1. Hero banner
   ========================= */

.ga-shop-hero {
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: var(--ga-16) 0;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

.ga-shop-hero[hidden] {
    display: none;
}

.ga-shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 37, 60, 0.55);
}

.ga-shop-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--ga-container);
    margin: 0 auto;
    padding: 0 var(--ga-4);
}

.ga-shop-hero__title {
    font-family: var(--ga-font-serif);
    font-weight: 700;
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

/* =========================
   2. Category tiles
   ========================= */

.ga-shop-cats {
    background: #ffffff;
    padding: var(--ga-10) 0 var(--ga-8);
    margin: 0 calc(50% - 50vw);
    width: 100vw;
}

.ga-shop-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ga-4);
}

.ga-shop-cats__tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5 / 4;
    border: none;
    border-radius: var(--ga-radius-md);
    background: var(--ga-navy);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.ga-shop-cats__tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ga-shop-cats__tile--active {
    box-shadow: 0 0 0 3px var(--ga-red), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ga-shop-cats__tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.ga-shop-cats .ga-shop-cats__tile-img {
    height: 100% !important;
    object-fit: cover;
}

.ga-shop-cats__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--ga-radius-md);
    z-index: 1;
    transition: background 0.2s ease;
}

.ga-shop-cats__tile:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.ga-shop-cats__tile-label {
    position: relative;
    z-index: 2;
    font-family: var(--ga-font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* =========================
   2b. Category header + subcategory pills
   ========================= */

.ga-shop-cat-header {
    padding-top: var(--ga-6);
    padding-bottom: var(--ga-2);
}

.ga-shop-cat-header[hidden] {
    display: none;
}

.ga-shop-cat-header__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-sm);
    color: var(--ga-text);
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: var(--ga-4);
}

.ga-shop-cat-header__back:hover {
    color: var(--ga-text);
    background: none;
}

.ga-shop-cat-header__title-row {
    display: flex;
    align-items: baseline;
    gap: var(--ga-2);
}

.ga-shop-cat-header__title {
    font-family: var(--ga-font-serif);
    font-weight: 700;
    font-size: 2.5rem;
    color: #222;
    margin: 0;
    line-height: 1.2;
}

.ga-shop-cat-header__count {
    font-family: var(--ga-font-sans);
    font-weight: 400;
    font-size: var(--ga-text-sm);
    color: #888;
}

/* Subcategory pills */
.ga-shop-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ga-3);
    padding-top: var(--ga-4);
    padding-bottom: var(--ga-2);
}

.ga-shop-subcats[hidden] {
    display: none;
}

.ga-shop-subcats__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--ga-olive);
    border-bottom: 3px solid var(--ga-olive);
    border-radius: var(--ga-radius-sm);
    background: #fff;
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-md);
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    min-width: 140px;
    justify-content: center;
}

.ga-shop-subcats__pill:hover {
    color: var(--ga-text-opposite);
    background: var(--ga-olive);
}

.ga-shop-subcats__pill--active {
    border-color: var(--ga-olive);
    background: var(--ga-olive);
    color: #fff;
}

.ga-shop-subcats__pill--active:hover {
    background: var(--ga-olive);
    border-color: var(--ga-olive);
    color: #fff;
}

.ga-shop-subcats__pill-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ga-shop-subcats__pill--active .ga-shop-subcats__pill-chevron {
    transform: rotate(180deg);
}

.ga-shop-subcats__pill--expanded .ga-shop-subcats__pill-chevron {
    transform: rotate(180deg);
}

/* Subcategory item wrapper (pill + dropdown) */
.ga-shop-subcats__item {
    position: relative;
}

/* Dropdown for nested subcategories (1st level, opens below pill) */
.ga-shop-subcats__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    margin-top: 0;
    min-width: 100%;
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: var(--ga-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ga-shop-subcats__dropdown[hidden],
.ga-shop-subcats__flyout[hidden] {
    display: none;
}

/* Menu item wrapper (button + optional flyout) */
.ga-shop-subcats__menu-item {
    position: relative;
}

.ga-shop-subcats__menu-item + .ga-shop-subcats__menu-item {
    border-top: 1px solid #e5e5e5;
}

/* Dropdown / flyout button */
.ga-shop-subcats__dropdown-item {
    align-items: center;
    width: 100%;
    padding: 5px 10px;
    border: none;
    background: none;
    text-align: center;
    font-size: var(--ga-text-sm);
    color: var(--ga-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.ga-shop-subcats__dropdown-item:hover {
    background: var(--ga-olive);
    color: #fff;
}

/* Highlight parent item when its flyout is open */
.ga-shop-subcats__menu-item--open > .ga-shop-subcats__dropdown-item {
    background: var(--ga-olive);
    color: #fff;
}

/* Right arrow icon for items with children */
.ga-shop-subcats__flyout-arrow {
    flex-shrink: 0;
    margin-left: 10px;
}

/* Flyout submenu (opens to the right) */
.ga-shop-subcats__flyout {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 21;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--ga-olive);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hide category tiles when hidden attr is set */
.ga-shop-cats[hidden] {
    display: none;
}

/* =========================
   3. Filter bar + search
   ========================= */

.ga-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ga-4);
    padding-top: var(--ga-6);
    padding-bottom: var(--ga-3);
    border-bottom: 1px solid #e5e5e5;
}

/* Filter button — pill shape with olive icon */
.ga-shop-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ga-2);
    padding: 5px 10px;
    border: 1.5px solid #bbb;
    border-radius: 999px;
    background: #fff;
    font-family: var(--ga-font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ga-shop-filter-btn:hover {
    border-color: #999;
    background: #fafafa;
}

.ga-shop-filter-btn[aria-expanded="true"] {
    border-color: var(--ga-red);
    color: var(--ga-red);
}

.ga-shop-filter-btn svg:first-child {
    color: var(--ga-olive);
    width: 18px;
    height: 18px;
}

.ga-shop-filter-btn svg {
    width: 14px;
    height: 14px;
}

.ga-shop-filter-btn__chevron {
    transition: transform 0.2s ease;
}

.ga-shop-filter-btn[aria-expanded="true"] .ga-shop-filter-btn__chevron {
    transform: rotate(180deg);
}

/* Search input — gray background, no border */
.ga-shop-search {
    position: relative;
    width: 280px;
}

.ga-shop-search__input,
.woocommerce .ga-shop-search__input,
.woocommerce-page .ga-shop-search__input {
    width: 100%;
    height: 42px;
    padding: 0 var(--ga-4) 0 38px;
    border: none;
    border-radius: var(--ga-radius-sm);
    background: #f0f0f0;
    font-family: var(--ga-font-sans);
    font-size: var(--ga-text-sm);
    color: #333 !important;
    outline: none;
    transition: background 0.2s ease;
}

.ga-shop-search__input::placeholder {
    color: #999;
}

.ga-shop-search__input:focus {
    background: #e8e8e8;
    border: none;
}

.ga-shop-search__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* =========================
   Filter panel (expandable)
   ========================= */

.ga-shop-filters {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ga-shop-filters[hidden] {
    display: none;
}

.ga-shop-filters__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ga-6);
    padding: var(--ga-4) 0;
    border-top: 1px solid #eee;
}

.ga-shop-filters__group {
    min-width: 180px;
    flex: 1;
    max-width: 300px;
}

.ga-shop-filters__group-title {
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-sm);
    color: #333;
    margin: 0 0 var(--ga-2);
}

.ga-shop-filters__options {
    display: flex;
    flex-direction: column;
    gap: var(--ga-1);
    max-height: 180px;
    overflow-y: auto;
}

.ga-shop-filters__option {
    display: flex;
    align-items: center;
    gap: var(--ga-2);
    font-family: var(--ga-font-sans);
    font-size: var(--ga-text-sm);
    color: #555;
    cursor: pointer;
}

.ga-shop-filters__option input[type="checkbox"] {
    accent-color: var(--ga-red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ga-shop-filters__count {
    color: #999;
    font-size: var(--ga-text-xs);
    margin-left: auto;
}

.ga-shop-filters__empty {
    color: #999;
    font-size: var(--ga-text-sm);
    font-style: italic;
    padding: var(--ga-2) 0;
}

.ga-shop-filters__actions {
    display: flex;
    gap: var(--ga-3);
    padding: var(--ga-3) 0 var(--ga-4);
    border-top: 1px solid #eee;
}

.ga-shop-filters__apply {
    padding: var(--ga-2) var(--ga-6);
    border: none;
    border-radius: var(--ga-radius-sm);
    background: var(--ga-red);
    color: #fff;
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ga-shop-filters__apply:hover {
    background: var(--ga-red-hover);
}

.ga-shop-filters__clear {
    padding: var(--ga-2) var(--ga-6);
    border: 1px solid #ccc;
    border-radius: var(--ga-radius-sm);
    background: #fff;
    color: #555;
    font-family: var(--ga-font-sans);
    font-weight: 500;
    font-size: var(--ga-text-sm);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ga-shop-filters__clear:hover {
    border-color: #999;
}

/* =========================
   4. Sort bar + view toggle
   ========================= */

.ga-shop-sortbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--ga-4);
    padding-bottom: var(--ga-4);
}

.ga-shop-sort__select {
    appearance: none;
    -webkit-appearance: none;
    padding: var(--ga-2) var(--ga-8) var(--ga-2) 0;
    border: none;
    background: transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
        no-repeat right 4px center;
    font-family: var(--ga-font-sans);
    font-weight: 700;
    font-size: var(--ga-text-lg);
    color: #222;
    cursor: pointer;
}

.ga-shop-sortbar__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ga-shop-view-label {
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-md);
    color: #333;
    margin-right: var(--ga-2);
}

/* View toggle buttons */
.ga-shop-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    transition: color 0.15s ease;
}

.ga-shop-view-btn:hover {
    color: #888;
}

.ga-shop-view-btn--active {
    color: var(--ga-olive);
}

.ga-shop-view-btn--active svg {
    color: var(--ga-olive);
}

/* Divider between view buttons */
.ga-shop-view-divider {
    width: 1px;
    height: 22px;
    background: #ccc;
    margin: 0 2px;
}

/* =========================
   5. Product grid
   ========================= */

.ga-shop-grid {
    padding-bottom: var(--ga-8);
}

.ga-shop-grid__products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ga-6);
}

/* List view */
.ga-shop-grid--list .ga-shop-grid__products {
    grid-template-columns: 1fr;
}

.ga-shop-grid--list .ga-shop-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--ga-4);
}

.ga-shop-grid--list .ga-shop-card__image-wrap {
    aspect-ratio: 1 / 1;
}

/* Product card */
.ga-shop-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--ga-radius-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.ga-shop-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.ga-shop-card__image-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8e8e8;
}

.ga-shop-card__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    height: 88%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ga-shop-card:hover .ga-shop-card__image {
    transform: translate(-50%, -50%) scale(1.04);
}

.ga-shop-card__body {
    padding: var(--ga-3) var(--ga-4) var(--ga-4);
}

/* Badge + Price row */
.ga-shop-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ga-2);
    margin-bottom: var(--ga-2);
}

/* Badge */
.ga-shop-card__badge {
    display: inline-block;
    font-family: var(--ga-font-sans);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    border-radius: 3px;
    background: var(--ga-olive);
    color: #fff;
    flex-shrink: 0;
}

/* Price */
.ga-shop-card__price {
    font-family: var(--ga-font-sans);
    font-weight: 700;
    font-size: var(--ga-text-lg);
    color: #222;
    margin: 0;
    line-height: 1.3;
}

.ga-shop-card__price-sale {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    font-size: var(--ga-text-sm);
    margin-left: var(--ga-2);
}

/* Product name */
.ga-shop-card__name {
    font-family: var(--ga-font-sans);
    font-weight: 700;
    font-size: var(--ga-text-sm);
    line-height: 1.3;
    color: var(--ga-red);
    margin: 0 0 var(--ga-1);
}

.ga-shop-card__name a {
    color: inherit;
    text-decoration: none;
}

.ga-shop-card__name a:hover {
    text-decoration: underline;
}

/* Description / specs */
.ga-shop-card__desc {
    font-family: var(--ga-font-sans);
    font-weight: 400;
    font-size: var(--ga-text-xs);
    line-height: 1.45;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   Card actions row (Add to Cart + Wishlist)
   ========================= */

.ga-shop-card__actions {
    display: flex;
    align-items: center;
    gap: var(--ga-2);
    margin-top: var(--ga-3);
    flex-wrap: wrap;
}

/* Add to Cart / Read more button */
.ga-shop-card__actions > a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 14px;
    border: none;
    border-radius: var(--ga-radius-sm);
    background: var(--ga-red);
    color: #fff !important;
    font-family: var(--ga-font-sans);
    font-weight: 600;
    font-size: var(--ga-text-xs);
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.ga-shop-card__actions > a.button:hover {
    background: var(--ga-red-hover);
    transform: translateY(-1px);
}

/* Out of stock "Read more" button — subdued style */
.ga-shop-card--oos .ga-shop-card__actions > a.button {
    background: #666;
}

.ga-shop-card--oos .ga-shop-card__actions > a.button:hover {
    background: #555;
}

/* Non-member: "Members Only" CTA banner */
.ga-shop-card__membership-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: var(--global-palette1, #c21c27);
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}
.ga-shop-card__membership-cta:hover {
    background: var(--global-palette2, #95161e);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* WooCommerce loading state (added by WC JS after click) */
.ga-shop-card__actions > a.button.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* WooCommerce "added" state */
.ga-shop-card__actions > a.button.added::after {
    content: '✓';
    margin-left: 6px;
}

/* TI Wishlist button inside card actions — compact icon style */
.ga-shop-card__actions .tinvwl-loop-button-wrapper {
    flex: 0 0 auto;
}

/* Hide clearfix divs that create unwanted lines */
.ga-shop-card__actions .tinv-wishlist-clear {
    display: none !important;
}

/* Remove any border/separator from the wishlist wrapper */
.ga-shop-card__actions .tinv-wraper {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.ga-shop-card__actions .tinvwl_add_to_wishlist_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 0 !important;
    font-size: 0 !important;
}

.ga-shop-card__actions .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text {
    display: none;
}

.ga-shop-card__actions .tinvwl_add_to_wishlist_button:hover {
    background: #fff !important;
    transform: scale(1.1);
    border-color: var(--ga-red);
}

.ga-shop-card__actions .tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
    border-color: var(--ga-red);
}

/* Out of stock overlay */
.ga-shop-card--oos {
    opacity: 0.6;
}

.ga-shop-card__oos-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--ga-font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 2;
}

/* (Wishlist button moved to .ga-shop-card__actions row) */

/* =========================
   Loading skeleton
   ========================= */

.ga-shop-grid__loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ga-6);
}

.ga-shop-grid__loading[hidden] {
    display: none;
}

.ga-shop-skeleton {
    background: #e8e8e8;
    border-radius: var(--ga-radius-sm);
    overflow: hidden;
}

.ga-shop-skeleton__img {
    aspect-ratio: 1 / 1;
    background: linear-gradient(110deg, #e8e8e8 30%, #f5f5f5 50%, #e8e8e8 70%);
    background-size: 200% 100%;
    animation: ga-shimmer 1.5s ease-in-out infinite;
}

.ga-shop-skeleton__badge,
.ga-shop-skeleton__price,
.ga-shop-skeleton__title,
.ga-shop-skeleton__desc {
    margin: var(--ga-2) var(--ga-4);
    border-radius: 3px;
    background: linear-gradient(110deg, #ddd 30%, #eee 50%, #ddd 70%);
    background-size: 200% 100%;
    animation: ga-shimmer 1.5s ease-in-out infinite;
}

.ga-shop-skeleton__badge { width: 70px; height: 18px; }
.ga-shop-skeleton__price { width: 60px; height: 20px; }
.ga-shop-skeleton__title { width: 80%; height: 16px; }
.ga-shop-skeleton__desc  { width: 95%; height: 36px; margin-bottom: var(--ga-4); }

@keyframes ga-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================
   6. Pagination
   ========================= */

.ga-shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ga-2);
    padding-bottom: var(--ga-12);
}

.ga-shop-pagination[hidden] {
    display: none;
}

.ga-shop-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--ga-2);
    border: none;
    border-radius: 4px;
    background: transparent;
    font-family: var(--ga-font-sans);
    font-weight: 500;
    font-size: var(--ga-text-sm);
    color: #555;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ga-shop-pagination__btn:hover {
    background: #f0f0f0;
    color: #222;
}

.ga-shop-pagination__btn--active {
    background: var(--ga-navy);
    color: #fff;
    font-weight: 700;
}

.ga-shop-pagination__btn--active:hover {
    background: var(--ga-navy);
    color: #fff;
}

.ga-shop-pagination__ellipsis {
    font-family: var(--ga-font-sans);
    font-size: var(--ga-text-sm);
    color: #999;
    padding: 0 var(--ga-1);
}

/* =========================
   Empty state
   ========================= */

.ga-shop-grid__empty {
    text-align: center;
    padding: var(--ga-12) var(--ga-4);
    color: #666;
    font-family: var(--ga-font-sans);
    font-size: var(--ga-text-md);
}

.ga-shop-grid__empty[hidden] {
    display: none;
}

/* =========================
   Responsive — Tablet
   ========================= */

@media (max-width: 1024px) {
    .ga-shop-grid__products {
        grid-template-columns: repeat(2, 1fr);
    }

    .ga-shop-grid__loading {
        grid-template-columns: repeat(2, 1fr);
    }

    .ga-shop-cats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--ga-3);
    }

    .ga-shop-cats__tile-label {
        font-size: 1.25rem;
    }

    .ga-shop-cat-header__title {
        font-size: 2rem;
    }

    .ga-shop-subcats__pill {
        min-width: 120px;
        padding: 8px 18px;
        font-size: var(--ga-text-sm);
    }
}

/* =========================
   Responsive — Mobile
   ========================= */

@media (max-width: 640px) {
    .ga-shop-hero {
        padding: var(--ga-10) 0 var(--ga-8);
        min-height: 180px;
    }

    .ga-shop-hero__title {
        font-size: 2.25rem;
    }

    .ga-shop-cats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ga-3);
    }

    .ga-shop-cats__tile {
        aspect-ratio: 4 / 3;
    }

    .ga-shop-cats__tile-label {
        font-size: 1.125rem;
    }

    .ga-shop-cat-header__title {
        font-size: 1.75rem;
    }

    .ga-shop-subcats {
        gap: var(--ga-2);
    }

    .ga-shop-subcats__pill {
        min-width: 0;
        flex: 1 1 calc(33.33% - var(--ga-2));
        padding: 8px 12px;
        font-size: var(--ga-text-sm);
    }

    .ga-shop-grid__products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ga-3);
    }

    .ga-shop-grid__loading {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ga-3);
    }

    .ga-shop-grid--list .ga-shop-grid__products {
        grid-template-columns: 1fr;
    }

    .ga-shop-grid--list .ga-shop-card {
        grid-template-columns: 120px 1fr;
    }

    .ga-shop-toolbar {
        flex-wrap: wrap;
    }

    .ga-shop-search {
        width: 100%;
        order: -1;
    }

    .ga-shop-filters__inner {
        flex-direction: column;
    }

    .ga-shop-card__body {
        padding: var(--ga-2) var(--ga-3) var(--ga-3);
    }

    .ga-shop-card__meta {
        flex-wrap: wrap;
        gap: var(--ga-1);
    }

    .ga-shop-card__price {
        font-size: var(--ga-text-md);
    }

    .ga-shop-card__name {
        font-size: var(--ga-text-xs);
    }

    .ga-shop-card__desc {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }

    .ga-shop-card__actions > a.button {
        padding: 6px 10px;
        font-size: 10px;
    }

    .ga-shop-card__actions .tinvwl_add_to_wishlist_button {
        width: 30px;
        height: 30px;
    }
}

/* Remove top margin/padding on shop page */
.ga-shop-page .content-area,
.ga-shop-page .site-main {
    margin-top: 0;
    padding-top: 0;
}

/* Make hero flush with header */
.ga-shop-hero {
    min-height: 360px;
    padding: var(--ga-16) 0 var(--ga-8);
}

@media (max-width: 1024px) {
    .ga-shop-hero {
        margin-top: -3rem;
    }
}

@media (max-width: 640px) {
    .ga-shop-hero {
        margin-top: -2rem;
    }
}

.ga-shop-page .content-area {
    margin-top: 0;
}
.ga-shop-page #inner-wrap {
    margin-top: 0;
    padding-top: 0;
}


.ga-shop-page #inner-wrap,
.ga-shop-page .wrap.kt-clear {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.post-type-archive-product #wrapper {
    background: var(--ga-navy, #0f253c) !important;
}

.post-type-archive-product {
    background: var(--ga-navy, #0f253c) !important;
}

.post-type-archive-product #wrapper {
    background: #fff !important;
}

.ga-shop-view-btn,
.ga-shop-view-btn:hover,
.ga-shop-view-btn:focus,
.ga-shop-view-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    min-height: auto !important;
    line-height: 1 !important;
}