.wclg-dynamic-grid {
    display: grid;
    gap: 20px;
}

.wclg-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.wclg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wclg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wclg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wclg-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wclg-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.wclg-loop-item > .elementor {
    width: 100%;
}

/* Sidebar Widget Styling */
.wclg-sidebar-filter-widget {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wclg-filter-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Live Search Input Styling */
.wclg-search-box-wrap {
    position: relative;
    margin-bottom: 20px;
}

.wclg-filter-search-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.wclg-filter-search-input:focus {
    border-color: #111111;
}

.wclg-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
}

.wclg-search-clear:hover {
    color: #111111;
}

.wclg-sidebar-swatch-group {
    margin-bottom: 18px;
}

.wclg-sidebar-group-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.wclg-swatch-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wclg-swatch-item {
    padding: 6px 14px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wclg-swatch-item.wclg-color-swatch {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #dddddd;
}

.wclg-swatch-item.active,
.wclg-swatch-item:hover {
    border-color: #111111;
    background-color: #111111;
    color: #ffffff;
}

.wclg-swatch-item.wclg-color-swatch.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
}

/* Header & Grid Layout */
.wclg-layout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.wclg-result-count {
    font-size: 15px;
    color: #555555;
}

.wclg-orderby-select {
    padding: 8px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

/* Pagination Styles */
.wclg-pagination-container {
    margin-top: 35px;
    text-align: center;
}

.wclg-pagination-nav .wclg-pagination-list {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.wclg-pagination-list li a,
.wclg-pagination-list li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wclg-pagination-list li.active span,
.wclg-pagination-list li a:hover {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.wclg-loadmore-btn {
    padding: 12px 30px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.wclg-loadmore-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.wclg-infinite-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.wclg-infinite-loader.is-active {
    display: flex;
}

.wclg-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #111111;
    animation: wclg-spin 0.8s linear infinite;
}

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

.wclg-scroll-trigger {
    width: 100%;
    height: 1px;
    visibility: hidden;
}

.wclg-loop-item.wclg-skeleton {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.sk-img {
    height: 200px;
    background: #eeeeee;
    margin-bottom: 15px;
    border-radius: 4px;
}

.sk-text {
    height: 15px;
    background: #eeeeee;
    margin-bottom: 10px;
    border-radius: 3px;
    width: 100%;
}

.sk-text.short { width: 60%; }

.sk-img, .sk-text {
    position: relative;
    overflow: hidden;
}

.sk-img::after, .sk-text::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0));
    animation: wclg-shimmer 1.5s infinite;
}

@keyframes wclg-shimmer {
    100% { transform: translateX(100%); }
}
