/**
 * TrailLab Shop Page Styles
 * Styled according to design with red theme color
 */

:root {
    --primary-color: #D32F2F;
    --primary-hover: #B71C1C;
    --background-light: #f8fafc;
    --text-dark: #0f172a;
    --border-light: #e2e8f0;
}

/* Shop Hero Section - Full width like events archive */
.traillab-shop-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 450px;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    display: block;
    background: #F5F5F5;
}

.traillab-shop-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Optimize image rendering for smooth, high-quality scaling */
    image-rendering: -webkit-optimize-contrast; /* Safari - smooth scaling */
    image-rendering: smooth; /* Standard - smooth scaling for photos */
    image-rendering: auto; /* Fallback */
    -ms-interpolation-mode: bicubic; /* IE/Edge - smooth interpolation */
    /* Force hardware acceleration for smoother rendering */
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.traillab-shop-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Optimize image rendering for smooth, high-quality scaling */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.traillab-shop-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.traillab-shop-hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

@media (min-width: 640px) {
    .traillab-shop-hero-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .traillab-shop-hero-content {
        padding: 0 2rem;
    }
}

.traillab-shop-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.traillab-shop-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: white;
}

@media (min-width: 768px) {
    .traillab-shop-hero-title {
        font-size: 4.5rem;
    }
}

.traillab-shop-hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .traillab-shop-hero-description {
        font-size: 1.25rem;
    }
}

.traillab-shop-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .traillab-shop-hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

.traillab-shop-hero-btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.traillab-shop-hero-btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.traillab-shop-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.traillab-shop-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Shop Header and Filters */
.traillab-shop-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .traillab-shop-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        padding: 4rem 1.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .traillab-shop-header {
        padding: 4rem 2rem 3rem;
    }
}

.traillab-shop-header-left {
    flex: 1;
}

.traillab-shop-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.traillab-shop-title-accent {
    color: var(--primary-color);
}

.traillab-shop-title-underline {
    height: 4px;
    width: 5rem;
    background: var(--primary-color);
}

/* Header Right (sort + filter toggle) */
.traillab-shop-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.traillab-shop-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.traillab-shop-filter-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.traillab-shop-filter-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.traillab-shop-filter-toggle .material-icons {
    font-size: 1.125rem;
}

.traillab-shop-sort-select {
    padding: 0.625rem 2rem 0.625rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f172a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.traillab-shop-sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Quick Category Filters */
.traillab-shop-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

@media (min-width: 768px) {
    .traillab-shop-quick-filters {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .traillab-shop-quick-filters {
        padding: 0 2rem 1.5rem;
    }
}

.traillab-shop-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: white;
    border: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.traillab-shop-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.traillab-shop-filter-active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Advanced Filters Panel */
.traillab-shop-filters-panel {
    max-width: 1280px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    animation: slideDown 0.3s ease;
}

@media (min-width: 768px) {
    .traillab-shop-filters-panel {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .traillab-shop-filters-panel {
        padding: 0 2rem;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.traillab-filters-form {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.traillab-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .traillab-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .traillab-filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.traillab-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.traillab-filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0;
}

.traillab-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.traillab-filter-options::-webkit-scrollbar {
    width: 4px;
}

.traillab-filter-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

/* Checkbox Filter */
.traillab-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

.traillab-filter-checkbox input[type="checkbox"] {
    display: none;
}

.traillab-checkbox-mark {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}

.traillab-filter-checkbox input:checked + .traillab-checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.traillab-filter-checkbox input:checked + .traillab-checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.traillab-filter-count {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Color Swatch Filter */
.traillab-color-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.traillab-filter-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.traillab-filter-color input[type="checkbox"] {
    display: none;
}

.traillab-color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.traillab-filter-color input:checked + .traillab-color-swatch {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.traillab-color-name {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

/* Price Range */
.traillab-price-range {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.traillab-price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traillab-price-field {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
    flex: 1;
}

.traillab-price-currency {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.traillab-price-field input {
    border: none;
    padding: 0.5rem;
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-dark);
    outline: none;
}

.traillab-price-separator {
    color: #94a3b8;
    flex-shrink: 0;
}

/* Context label shown inside the filter panel */
.traillab-filter-context-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem 0;
    display: none; /* shown via JS */
}

/* Empty state text inside a filter group */
.traillab-filter-empty {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}

/* Filter Actions */
.traillab-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.traillab-filter-clear {
    padding: 0.625rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.traillab-filter-clear:hover {
    border-color: #94a3b8;
    color: var(--text-dark);
}

.traillab-filter-apply {
    padding: 0.625rem 1.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.traillab-filter-apply:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* WooCommerce Product Grid Override */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem 4rem;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem 4rem;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2rem 4rem;
    }
}

@media (min-width: 1280px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================
   Product Card
   ======================== */
.woocommerce ul.products li.product {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: transparent;
}

/* ---- Thumbnail Area ---- */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    flex-shrink: 0;
    width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-loop-product__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap .woocommerce-loop-product__link img {
    transform: scale(1.06);
}

/* Astra on-card overlay button (bag icon) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button:not(.ast-onsale-card) {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    padding: 0;
    z-index: 5;
    border: none;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap .ast-on-card-button:not(.ast-onsale-card) {
    opacity: 1;
    transform: translateY(0);
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button:not(.ast-onsale-card):hover {
    background: var(--primary-color);
    color: white;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button .ast-card-action-tooltip {
    display: none;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-on-card-button .ahfb-svg-iconset svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Sale Badge */
.woocommerce ul.products li.product .ast-onsale-card,
.woocommerce span.onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.625rem;
    border-radius: 0.25rem;
    z-index: 5;
    line-height: 1.4;
    min-width: auto;
    min-height: auto;
    margin: 0;
    width: auto;
    height: auto;
    display: inline-block;
}

/* ---- Summary Area ---- */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    gap: 0;
}

/* Hide Astra's built-in category (we have our own) */
.woocommerce ul.products li.product .astra-shop-summary-wrap > .ast-woo-product-category {
    display: none;
}

/* Our Category Badge */
.woocommerce ul.products li.product .traillab-product-category {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.375rem;
    padding: 0;
    line-height: 1;
}

/* Title link wrapper (Astra) */
.woocommerce ul.products li.product .ast-loop-product__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.2s ease;
    margin: 0 0 0.5rem;
    padding: 0;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--primary-color);
}

/* Our Custom Rating */
.traillab-product-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.traillab-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
}

.traillab-rating-stars .material-icons {
    font-size: 0.8125rem;
}

.traillab-star-filled {
    color: #fbbf24;
}

.traillab-star-empty {
    color: #e2e8f0;
}

.traillab-rating-text {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
}

/* Hide Astra's built-in review-rating (we have our own) */
.woocommerce ul.products li.product .astra-shop-summary-wrap > .review-rating {
    display: none;
}

/* Price */
.woocommerce ul.products li.product .astra-shop-summary-wrap .price {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
    padding: 0;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price .amount {
    color: var(--text-dark);
}

.woocommerce ul.products li.product .price ins {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-right: 0.375rem;
}

/* Add to Cart / Read More Button (in summary) */
.woocommerce ul.products li.product .astra-shop-summary-wrap > a.button,
.woocommerce ul.products li.product .astra-shop-summary-wrap > a.add_to_cart_button {
    display: block;
    width: 100%;
    margin: auto 0 0;
    padding: 0.6875rem 1rem;
    background: var(--text-dark);
    color: white !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap > a.button:hover,
.woocommerce ul.products li.product .astra-shop-summary-wrap > a.add_to_cart_button:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Out of stock badge */
.woocommerce ul.products li.product .ast-shop-product-out-of-stock {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    z-index: 5;
}

/* Registration Status Badges (on thumbnail, like Sale badge) */
.traillab-registration-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.625rem;
    border-radius: 0.25rem;
    z-index: 5;
    line-height: 1.4;
}

.traillab-badge-closed {
    background: red !important;
}

.traillab-badge-upcoming {
    background: blue !important;
}

.traillab-badge-paused {
    background: yellow !important;
}

.traillab-badge-closed {
    background: #475569;
    color: white;
}

.traillab-badge-upcoming {
    background: #2563eb;
    color: white;
}

.traillab-badge-paused {
    background: #d97706;
    color: white;
}

/* Load More Section */
.traillab-shop-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5rem 0;
    padding: 0 1rem;
}

.traillab-shop-load-more-text {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.traillab-shop-progress-bar {
    width: 16rem;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.traillab-shop-progress-fill {
    width: 25%;
    height: 100%;
    background: var(--primary-color);
}

.traillab-shop-load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-dark);
    border-radius: 0.75rem;
    font-weight: 700;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.traillab-shop-load-more-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.traillab-shop-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.traillab-shop-load-more-btn .material-icons {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.traillab-shop-load-more-btn:hover:not(:disabled) .material-icons {
    transform: translateX(4px);
}

.traillab-shop-load-more-btn.loading .material-icons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Features Section */
.traillab-shop-features {
    background: #f1f5f9;
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.traillab-shop-features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .traillab-shop-features-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .traillab-shop-features-container {
        padding: 0 2rem;
    }
}

.traillab-shop-feature {
    display: flex;
    gap: 1rem;
}

.traillab-shop-feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.traillab-shop-feature-icon .material-icons {
    font-size: 1.5rem;
}

.traillab-shop-feature-content {
    flex: 1;
}

.traillab-shop-feature-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.traillab-shop-feature-text {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}


/* Hide default WooCommerce elements */
.woocommerce .woocommerce-breadcrumb {
    display: none;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: none;
}

/* Ensure main content wrapper doesn't interfere */
.woocommerce-page .site-main {
    padding-top: 0;
}

/* Custom scrollbar */
.traillab-shop-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.traillab-shop-custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.traillab-shop-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* AJAX loading state                                                  */
/* ------------------------------------------------------------------ */

/* Fade-out the grid while new products are loading */
.woocommerce ul.products.traillab-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Empty state */
.traillab-no-products {
    list-style: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Skeleton cards                                                       */
/* ------------------------------------------------------------------ */

@keyframes traillabShimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.traillab-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 600px 100%;
    animation: traillabShimmer 1.4s infinite linear;
    border-radius: 4px;
}

.traillab-skeleton-card {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 0 16px !important;
    pointer-events: none;
}

.traillab-skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    flex-shrink: 0;
}

.traillab-skeleton-title {
    height: 16px;
    width: 70%;
    margin: 0 16px;
}

.traillab-skeleton-price {
    height: 14px;
    width: 40%;
    margin: 0 16px;
}
