/**
 * WS Card Extensions - Frontend Styles
 */

/* Variables */
:root {
    --wsce-primary-color: #DA6E5C;
    --wsce-primary-shadow: rgba(218, 110, 92, 0.08);
    --wsce-primary-shadow-hover: rgba(218, 110, 92, 0.15);
    --wsce-text-color: #333;
    --wsce-text-muted: #666;
    --wsce-border-color: #e0e0e0;
    --wsce-bg-light: #f8f9fa;
    --wsce-sidebar-width: 220px;
    --wsce-card-ratio: 141.67%; /* 420x595 = 1.4167 */
}

/* Shop Wrapper */
.wsce-shop-wrapper,
.wsce-category-wrapper {
    width: 100%;
    transform-style: flat; /* Prevent 3D transforms from propagating */
}

/* Search Bar - Modern Style */
.wsce-search-bar {
    margin-bottom: 30px;
}

.wsce-search-input-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.wsce-search-input-wrapper:focus-within {
    background: #fff;
    box-shadow: 0 4px 20px rgba(218, 110, 92, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.wsce-search-icon {
    width: 20px;
    height: 20px;
    color: var(--wsce-text-muted);
    flex-shrink: 0;
    opacity: 0.6;
}

.wsce-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 15px;
    background: transparent;
    color: var(--wsce-text-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.wsce-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.wsce-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--wsce-primary-color) 0%, #C45A48 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 110, 92, 0.2);
}

.wsce-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(218, 110, 92, 0.25);
}

.wsce-search-submit svg {
    width: 18px;
    height: 18px;
    color: #fff;
    display: block;
}

/* Shop Content Layout */
.wsce-shop-content {
    display: flex;
    gap: 30px;
}

.wsce-shop-content.wsce-has-sidebar .wsce-products-area {
    flex: 1;
    min-width: 0;
}

/* Mobile Filter Toggle */
.wsce-mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    color: var(--wsce-text-color);
}

.wsce-mobile-filter-toggle:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wsce-mobile-filter-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

/* Sidebar */
.wsce-sidebar {
    width: var(--wsce-sidebar-width);
    flex-shrink: 0;
}

.wsce-sidebar-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--wsce-border-color);
}

.wsce-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.wsce-sidebar-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.wsce-sidebar-close svg {
    width: 24px;
    height: 24px;
}

.wsce-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Sidebar Header */
.wsce-sidebar > h3,
.wsce-categories-list > h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wsce-text-muted);
    margin: 0 0 16px 0;
    padding: 0 4px;
}

/* Categories List */
.wsce-categories-list {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.wsce-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    background: transparent;
}

.wsce-category-item:hover {
    background: linear-gradient(135deg, rgba(218, 110, 92, 0.1) 0%, rgba(218, 110, 92, 0.05) 100%);
}

.wsce-category-item.wsce-category-active {
    background: linear-gradient(135deg, rgba(218, 110, 92, 0.15) 0%, rgba(218, 110, 92, 0.08) 100%);
}

.wsce-category-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.wsce-category-item:hover .wsce-category-checkbox {
    border-color: var(--wsce-primary-color);
}

.wsce-category-item.wsce-category-active .wsce-category-checkbox {
    border-color: var(--wsce-primary-color);
    background: var(--wsce-primary-color);
}

.wsce-category-item.wsce-category-active .wsce-category-checkbox::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Selected categories move to top */
.wsce-categories-list {
    display: flex;
    flex-direction: column;
}

.wsce-category-item.wsce-category-active {
    order: -1;
}

.wsce-category-item[data-category="0"] {
    order: -2;
}

/* Child categories */
.wsce-child-categories {
    display: none;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
    margin-top: 4px;
    margin-bottom: 8px;
}

.wsce-child-categories.wsce-visible {
    display: block;
    animation: wsce-slideDown 0.2s ease;
}

.wsce-child-categories .wsce-category-item {
    padding: 10px 12px;
}

.wsce-child-categories .wsce-category-name {
    font-size: 13px;
}

.wsce-category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--wsce-text-color);
    transition: color 0.2s ease;
}

.wsce-category-item.wsce-category-active .wsce-category-name {
    color: var(--wsce-primary-color);
}

.wsce-category-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.wsce-category-item.wsce-category-active .wsce-category-count {
    background: rgba(218, 110, 92, 0.2);
    color: var(--wsce-primary-color);
}

/* More Categories Toggle */
.wsce-more-categories-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--wsce-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wsce-more-categories-toggle:hover {
    border-color: var(--wsce-primary-color);
    color: var(--wsce-primary-color);
    background: rgba(218, 110, 92, 0.05);
}

.wsce-toggle-icon {
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.3s ease;
    line-height: 1;
}

.wsce-more-categories-toggle.wsce-expanded .wsce-toggle-icon {
    transform: rotate(45deg);
}

/* Secondary Categories */
.wsce-secondary-categories {
    display: none;
    padding-top: 8px;
    margin-top: 0;
    animation: wsce-slideDown 0.3s ease;
}

.wsce-secondary-categories.wsce-visible {
    display: block;
}

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

/* Sidebar Tabs */
.wsce-sidebar-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.wsce-sidebar-tab {
    flex: 1;
    background: transparent !important;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #888 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wsce-sidebar-tab:hover {
    color: #555 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.wsce-sidebar-tab.wsce-tab-active {
    background: var(--wsce-primary-color) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tab Content */
.wsce-tab-content {
    display: none !important;
}

.wsce-tab-content.wsce-tab-visible {
    display: flex !important;
    flex-direction: column;
    animation: wsce-slideDown 0.2s ease;
}

/* Filter Heading */
.wsce-filter-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wsce-text-muted);
    margin: 0 0 16px 0;
    padding: 0 4px;
}

/* Tags List */
.wsce-tags-list {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.wsce-tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    background: transparent;
}

.wsce-tag-item:hover {
    background: linear-gradient(135deg, rgba(218, 110, 92, 0.1) 0%, rgba(218, 110, 92, 0.05) 100%);
}

.wsce-tag-item.wsce-tag-active {
    background: linear-gradient(135deg, rgba(218, 110, 92, 0.15) 0%, rgba(218, 110, 92, 0.08) 100%);
}

.wsce-tag-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: #fff;
}

.wsce-tag-item:hover .wsce-tag-checkbox {
    border-color: var(--wsce-primary-color);
}

.wsce-tag-item.wsce-tag-active .wsce-tag-checkbox {
    border-color: var(--wsce-primary-color);
    background: var(--wsce-primary-color);
}

.wsce-tag-item.wsce-tag-active .wsce-tag-checkbox::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Selected tags move to top */
.wsce-tags-list {
    display: flex;
    flex-direction: column;
}

.wsce-tag-item.wsce-tag-active {
    order: -1;
}

.wsce-tag-item[data-tag="0"] {
    order: -2;
}

.wsce-tag-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--wsce-text-color);
    transition: color 0.2s ease;
}

.wsce-tag-item.wsce-tag-active .wsce-tag-name {
    color: var(--wsce-primary-color);
}

.wsce-tag-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.wsce-tag-item.wsce-tag-active .wsce-tag-count {
    background: rgba(218, 110, 92, 0.2);
    color: var(--wsce-primary-color);
}

/* No Tags Notice */
.wsce-no-tags-notice {
    padding: 16px;
    text-align: center;
    color: var(--wsce-text-muted);
    font-size: 13px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 0;
}

/* Subcategories Navigation */
.wsce-subcategories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.wsce-subcategory-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wsce-bg-light);
    border: 1px solid var(--wsce-border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wsce-subcategory-item:hover,
.wsce-subcategory-item.wsce-subcategory-active {
    background: var(--wsce-primary-color);
    border-color: var(--wsce-primary-color);
    color: #fff;
}

.wsce-subcategory-item.wsce-subcategory-active .wsce-subcat-count,
.wsce-subcategory-item:hover .wsce-subcat-count {
    color: rgba(255, 255, 255, 0.8);
}

.wsce-subcat-count {
    font-size: 12px;
    color: var(--wsce-text-muted);
}

/* Products Grid */
.wsce-products-area {
    position: relative;
}

.wsce-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--wsce-columns, 6), 1fr);
    gap: 25px 30px;
    transform-style: flat; /* Prevent 3D transform propagation */
    overflow: visible;
}

/* Product Card */
.wsce-product-card {
    position: relative;
    border-radius: 4px;
    overflow: visible;
}

.wsce-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wsce-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: var(--wsce-card-ratio);
    background: var(--wsce-bg-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 12px 3px var(--wsce-primary-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Tiltable card wrapper - only this element gets 3D effect */
.wsce-card-image-wrapper.wsce-tiltable {
    transform-style: preserve-3d;
}


.wsce-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Hover Button - No Overlay */
.wsce-card-overlay {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.wsce-product-card:hover .wsce-card-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wsce-card-overlay-text {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--wsce-primary-color) 0%, #C45A48 100%);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(218, 110, 92, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wsce-card-overlay-text:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(218, 110, 92, 0.3);
}

/* Mobile Button - Hidden on Desktop */
.wsce-card-mobile-btn {
    display: none;
}

.wsce-card-title {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    font-size: 13px;
    text-align: center;
    color: var(--wsce-text-color);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide titles option */
.wsce-hide-titles .wsce-card-title {
    display: none;
}

/* Floor Glow Effect - ecardforest style (floating shadow) */
.wsce-product-card {
    padding-bottom: 70px; /* Space for floor glow */
}

.wsce-product-card:hover .wsce-card-image-wrapper {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 12px 35px var(--wsce-primary-shadow-hover);
}

.wsce-product-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15%;
    right: 15%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(218, 110, 92, 0.40) 0%, rgba(218, 110, 92, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wsce-product-card:hover::after {
    bottom: 5px;
    left: 10%;
    right: 10%;
    opacity: 0.9;
    filter: blur(18px);
}

/* VanillaTilt Glare */
.wsce-product-card .js-tilt-glare {
    border-radius: 4px;
}

/* Pagination */
.wsce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.wsce-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--wsce-border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wsce-page-btn:hover:not(:disabled) {
    border-color: var(--wsce-primary-color);
    color: var(--wsce-primary-color);
}

.wsce-page-btn.wsce-page-active {
    background: var(--wsce-primary-color);
    border-color: var(--wsce-primary-color);
    color: #fff;
}

.wsce-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wsce-page-btn svg {
    width: 16px;
    height: 16px;
}

.wsce-page-dots {
    color: var(--wsce-text-muted);
}

/* Load More Button */
.wsce-load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 14px 24px;
    background: var(--wsce-primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.wsce-load-more-btn:hover {
    opacity: 0.85;
}

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

/* Loading Spinner */
.wsce-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.wsce-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--wsce-border-color);
    border-top-color: var(--wsce-primary-color);
    border-radius: 50%;
    animation: wsce-spin 0.8s linear infinite;
}

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

/* No Results */
.wsce-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--wsce-text-muted);
}

.wsce-no-results svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wsce-no-results p {
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   Single Product Image Widget
   ========================================================================== */

.wsce-single-image-container {
    display: flex;
    justify-content: center;
}

.wsce-single-image-link {
    display: block;
    text-decoration: none;
    position: relative;
    padding-bottom: 60px; /* Space for floor glow */
}

.wsce-single-image-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wsce-single-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.wsce-single-image-wrapper .wsce-card-overlay {
    border-radius: inherit;
}

/* Hover Button for Single Image */
.wsce-single-image-link:hover .wsce-card-overlay,
.wsce-single-image-wrapper:hover .wsce-card-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Button Always Visible Override */
.wsce-button-always-visible .wsce-card-overlay {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Floor Glow for Single Image */
.wsce-single-image-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 15%;
    right: 15%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(218, 110, 92, 0.40) 0%, rgba(218, 110, 92, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wsce-single-image-link:hover::after {
    bottom: 3px;
    left: 10%;
    right: 10%;
    opacity: 0.9;
    filter: blur(18px);
}

.wsce-single-image-link:hover .wsce-single-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--wsce-primary-shadow-hover);
}

/* Floor glow without link */
.wsce-single-image-container:not(:has(.wsce-single-image-link)) {
    position: relative;
    padding-bottom: 60px;
}

.wsce-single-image-container:not(:has(.wsce-single-image-link))::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 15%;
    right: 15%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(218, 110, 92, 0.40) 0%, rgba(218, 110, 92, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wsce-single-image-container:not(:has(.wsce-single-image-link)):hover::after {
    bottom: 3px;
    left: 10%;
    right: 10%;
    opacity: 0.9;
    filter: blur(18px);
}

.wsce-single-image-container:not(:has(.wsce-single-image-link)):hover .wsce-single-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--wsce-primary-shadow-hover);
}

/* VanillaTilt Glare for Single Image */
.wsce-single-image-wrapper .js-tilt-glare {
    border-radius: inherit;
}

/* No floor glow variant for Single Image */
.wsce-single-image-container.wsce-no-floor-glow {
    padding-bottom: 0;
}

.wsce-single-image-container.wsce-no-floor-glow .wsce-single-image-link {
    padding-bottom: 0;
}

.wsce-single-image-container.wsce-no-floor-glow::after,
.wsce-single-image-container.wsce-no-floor-glow .wsce-single-image-link::after {
    display: none;
}

.wsce-single-image-container.wsce-no-floor-glow:hover .wsce-single-image-wrapper {
    transform: none;
    box-shadow: none;
}

.wsce-editor-notice {
    padding: 40px;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================================================
   Related Products Widget
   ========================================================================== */

.wsce-related-wrapper {
    width: 100%;
}

.wsce-related-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--wsce-text-color);
    margin: 0 0 30px 0;
}

.wsce-related-grid {
    display: grid;
    grid-template-columns: repeat(var(--wsce-columns, 4), 1fr);
    gap: 20px;
}

.wsce-related-card {
    position: relative;
    padding-bottom: 70px; /* Space for floor glow */
}

.wsce-related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wsce-related-card-image {
    position: relative;
    overflow: visible;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wsce-related-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.wsce-related-card-image .wsce-card-overlay {
    border-radius: inherit;
}

/* Floor Glow for Related Products */
.wsce-related-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15%;
    right: 15%;
    height: 35px;
    background: radial-gradient(ellipse at center, rgba(218, 110, 92, 0.40) 0%, rgba(218, 110, 92, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wsce-related-card:hover::after {
    bottom: 5px;
    left: 10%;
    right: 10%;
    opacity: 0.9;
    filter: blur(18px);
}

.wsce-related-card:hover .wsce-related-card-image {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 12px 35px var(--wsce-primary-shadow-hover);
}

/* No floor glow variant */
.wsce-no-floor-glow .wsce-related-card {
    padding-bottom: 0;
}

.wsce-no-floor-glow .wsce-related-card::after {
    display: none;
}

.wsce-no-floor-glow .wsce-related-card:hover .wsce-related-card-image {
    transform: scale(1.02);
}

/* Card Info */
.wsce-related-card-info {
    margin-top: 12px;
    text-align: center;
}

.wsce-related-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--wsce-text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsce-related-card-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--wsce-primary-color);
}

.wsce-related-card-price del {
    color: var(--wsce-text-muted);
    font-weight: 400;
    margin-right: 6px;
}

.wsce-related-card-price ins {
    text-decoration: none;
}

/* Hide titles variant */
.wsce-hide-titles .wsce-related-card-title {
    display: none;
}

/* VanillaTilt Glare for Related Products */
.wsce-related-card .js-tilt-glare {
    border-radius: inherit;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .wsce-related-grid {
        --wsce-columns: 3 !important;
    }
}

/* Responsive - Mobile (< 52rem = 832px) */
@media (max-width: 52rem) {
    .wsce-mobile-filter-toggle {
        display: inline-flex;
        background: linear-gradient(135deg, var(--wsce-primary-color) 0%, #C45A48 100%);
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 12px 20px;
        box-shadow: 0 4px 15px rgba(218, 110, 92, 0.2);
    }

    .wsce-products-area {
        width: 100%;
    }

    .wsce-sidebar-overlay.wsce-visible {
        display: block;
    }

    .wsce-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
    }

    .wsce-sidebar.wsce-sidebar-open {
        left: 0;
    }

    .wsce-sidebar-header {
        display: flex;
        padding: 0 0 20px 0;
        border-bottom: none;
        margin-bottom: 10px;
    }

    .wsce-sidebar-header h3 {
        font-size: 18px;
        font-weight: 600;
    }

    .wsce-categories-list {
        padding: 0;
    }

    .wsce-products-grid {
        gap: 15px 12px;
    }

    /* Hide overlay on mobile, show button instead */
    .wsce-card-overlay {
        display: none;
    }

    .wsce-card-mobile-btn {
        display: block;
        position: relative;
        margin: 8px auto 0;
        background: linear-gradient(135deg, var(--wsce-primary-color) 0%, #C45A48 100%);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        padding: 8px 20px;
        border-radius: 20px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(218, 110, 92, 0.2);
        white-space: nowrap;
        text-align: center;
        width: fit-content;
    }

    /* Fix: Put image back in normal flow so grid/container compute correct height */
    .wsce-products-grid .wsce-card-image-wrapper {
        padding-bottom: 0 !important;
        overflow: hidden;
    }

    .wsce-products-grid .wsce-card-image {
        position: relative !important;
        width: 100%;
        height: auto !important;
        aspect-ratio: 420 / 595;
    }

    /* Disable floor glow on mobile — no hover, saves space */
    .wsce-product-card {
        padding-bottom: 15px;
    }

    .wsce-products-grid .wsce-product-card::after {
        display: none;
    }

    /* Disable 3D transforms on mobile to prevent height/scroll issues */
    .wsce-products-grid .wsce-card-image-wrapper.wsce-tiltable {
        transform-style: flat;
        transform: none !important;
        will-change: auto !important;
    }

    .wsce-search-input-wrapper {
        padding: 4px 6px 4px 16px;
    }

    .wsce-search-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .wsce-search-submit {
        padding: 10px 18px;
    }

    .wsce-pagination {
        gap: 4px;
    }

    .wsce-page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .wsce-related-grid {
        --wsce-columns: 2 !important;
    }

    .wsce-related-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .wsce-related-card {
        padding-bottom: 15px;
    }

    .wsce-related-grid .wsce-card-image-wrapper {
        padding-bottom: 0 !important;
        overflow: hidden;
    }

    .wsce-related-grid .wsce-card-image {
        position: relative !important;
        width: 100%;
        height: auto !important;
        aspect-ratio: 420 / 595;
    }

    .wsce-related-grid .wsce-product-card::after {
        display: none;
    }

    .wsce-related-grid .wsce-card-image-wrapper.wsce-tiltable {
        transform-style: flat;
        transform: none !important;
        will-change: auto !important;
    }

    .wsce-card-title {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .wsce-card-title {
        font-size: 12px;
    }

    .wsce-subcategory-item {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Swap Icon Button Widget
   ========================================================================== */

.wsce-swap-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.wsce-swap-button-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
}

.wsce-swap-button-text {
    white-space: nowrap;
    line-height: 1;
    align-self: center;
}

/* Icon Wrapper */
.wsce-swap-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 400px;
    transition: width 0.3s ease, margin 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}

.wsce-swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* FontAwesome and other icon fonts */
.wsce-swap-button .wsce-swap-icon i {
    line-height: 1 !important;
}

.wsce-swap-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.wsce-icon-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* ==========================================================================
   Hover-Only Icon (No Normal Icon - grows on hover)
   ========================================================================== */

.wsce-swap-icon-wrapper.wsce-icon-hover-only {
    width: 0;
    overflow: hidden;
    margin: 0 !important;
    /* Don't collapse height - stay aligned with text */
    align-self: stretch;
    display: flex;
    align-items: center;
}

.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only {
    width: auto;
    overflow: visible;
}

/* Add spacing when icon appears on hover */
[data-icon-position="start"] .wsce-icon-hover-only {
    margin-right: 0 !important;
}

.wsce-swap-button:hover [data-icon-position="start"] .wsce-icon-hover-only {
    margin-right: 8px !important;
}

[data-icon-position="end"] .wsce-icon-hover-only {
    margin-left: 0 !important;
}

.wsce-swap-button:hover [data-icon-position="end"] .wsce-icon-hover-only {
    margin-left: 8px !important;
}

/* Hover-only icon visibility - override ALL positioning and animations */
.wsce-swap-icon-wrapper.wsce-icon-hover-only .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="fade"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="flip-h"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="flip-v"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-left"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-right"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-up"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-down"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="rotate"] .wsce-icon-hover,
.wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="scale"] .wsce-icon-hover {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s !important;
}

.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="fade"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="flip-h"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="flip-v"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-left"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-right"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-up"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="slide-down"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="rotate"] .wsce-icon-hover,
.wsce-swap-button:hover .wsce-swap-icon-wrapper.wsce-icon-hover-only[data-animation="scale"] .wsce-icon-hover {
    opacity: 1;
    transform: none !important;
}

/* ==========================================================================
   Animation: Fade
   ========================================================================== */

[data-animation="fade"] .wsce-icon-normal {
    opacity: 1;
}

[data-animation="fade"] .wsce-icon-hover {
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="fade"] .wsce-icon-normal {
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="fade"] .wsce-icon-hover {
    opacity: 1;
}

/* ==========================================================================
   Animation: Flip Horizontal
   ========================================================================== */

[data-animation="flip-h"] .wsce-icon-normal {
    transform: rotateY(0deg);
    opacity: 1;
}

[data-animation="flip-h"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotateY(-90deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="flip-h"] .wsce-icon-normal {
    transform: rotateY(90deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="flip-h"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotateY(0deg);
    opacity: 1;
}

/* ==========================================================================
   Animation: Flip Vertical
   ========================================================================== */

[data-animation="flip-v"] .wsce-icon-normal {
    transform: rotateX(0deg);
    opacity: 1;
}

[data-animation="flip-v"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotateX(90deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="flip-v"] .wsce-icon-normal {
    transform: rotateX(-90deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="flip-v"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotateX(0deg);
    opacity: 1;
}

/* ==========================================================================
   Animation: Slide Left
   ========================================================================== */

[data-animation="slide-left"] .wsce-icon-normal {
    transform: translateX(0);
    opacity: 1;
}

[data-animation="slide-left"] .wsce-icon-hover {
    transform: translate(calc(-50% + 20px), -50%);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-left"] .wsce-icon-normal {
    transform: translateX(-20px);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-left"] .wsce-icon-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ==========================================================================
   Animation: Slide Right
   ========================================================================== */

[data-animation="slide-right"] .wsce-icon-normal {
    transform: translateX(0);
    opacity: 1;
}

[data-animation="slide-right"] .wsce-icon-hover {
    transform: translate(calc(-50% - 20px), -50%);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-right"] .wsce-icon-normal {
    transform: translateX(20px);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-right"] .wsce-icon-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ==========================================================================
   Animation: Slide Up
   ========================================================================== */

[data-animation="slide-up"] .wsce-icon-normal {
    transform: translateY(0);
    opacity: 1;
}

[data-animation="slide-up"] .wsce-icon-hover {
    transform: translate(-50%, calc(-50% + 20px));
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-up"] .wsce-icon-normal {
    transform: translateY(-20px);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-up"] .wsce-icon-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ==========================================================================
   Animation: Slide Down
   ========================================================================== */

[data-animation="slide-down"] .wsce-icon-normal {
    transform: translateY(0);
    opacity: 1;
}

[data-animation="slide-down"] .wsce-icon-hover {
    transform: translate(-50%, calc(-50% - 20px));
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-down"] .wsce-icon-normal {
    transform: translateY(20px);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="slide-down"] .wsce-icon-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ==========================================================================
   Animation: Rotate
   ========================================================================== */

[data-animation="rotate"] .wsce-icon-normal {
    transform: rotate(0deg);
    opacity: 1;
}

[data-animation="rotate"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotate(-180deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="rotate"] .wsce-icon-normal {
    transform: rotate(180deg);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="rotate"] .wsce-icon-hover {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
}

/* ==========================================================================
   Animation: Scale
   ========================================================================== */

[data-animation="scale"] .wsce-icon-normal {
    transform: scale(1);
    opacity: 1;
}

[data-animation="scale"] .wsce-icon-hover {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="scale"] .wsce-icon-normal {
    transform: scale(0);
    opacity: 0;
}

.wsce-swap-button:hover [data-animation="scale"] .wsce-icon-hover {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ==========================================================================
   Swap Button Hover Effects (Particles)
   ========================================================================== */

.wsce-swap-button.wsce-has-hover-effect {
    position: relative;
    overflow: visible;
}

.wsce-hover-effect-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
    z-index: -1;
}

.wsce-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: -1;
}

/* Sparkle Effect */
.wsce-particle-sparkle {
    width: 8px;
    height: 8px;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Firework Effect */
.wsce-particle-firework {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Confetti Effect */
.wsce-particle-confetti {
    width: 10px;
    height: 6px;
    background: currentColor;
    border-radius: 1px;
}

/* Hearts Effect */
.wsce-particle-hearts {
    width: 12px;
    height: 12px;
    font-size: 12px;
    line-height: 1;
}

.wsce-particle-hearts::before {
    content: '\2665';
    color: currentColor;
}

/* Stars Effect */
.wsce-particle-stars {
    width: 10px;
    height: 10px;
    background: currentColor;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Bubbles Effect */
.wsce-particle-bubbles {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid currentColor;
    opacity: 0.8;
}

/* Rays Effect */
.wsce-particle-rays {
    width: 3px;
    height: 20px;
    background: linear-gradient(to top, currentColor, transparent);
    border-radius: 2px;
    transform-origin: center bottom;
}

/* Particle Animations */
@keyframes wsce-particle-sparkle {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(180deg);
        opacity: 0;
    }
}

@keyframes wsce-particle-firework {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes wsce-particle-confetti {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5);
        opacity: 0;
    }
}

@keyframes wsce-particle-hearts {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(calc(var(--tx) / 2), calc(var(--ty) / 2)) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.8);
        opacity: 0;
    }
}

@keyframes wsce-particle-stars {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1) rotate(360deg);
        opacity: 0;
    }
}

@keyframes wsce-particle-bubbles {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 0;
    }
}

@keyframes wsce-particle-rays {
    0% {
        transform: rotate(var(--angle)) scaleY(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(var(--angle)) scaleY(1) translateY(-30px);
        opacity: 0;
    }
}

/* ==========================================================================
   WooCommerce Product Page Buttons
   ========================================================================== */

.woocommerce div.product form.cart,
form.cart {
    flex-wrap: wrap !important;
}

.woocommerce div.product form.cart .quantity {
    width: 100% !important;
    margin-bottom: 12px !important;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button.button.alt {
    flex: 0 0 100% !important;
    width: 100% !important;
    background: var(--wsce-primary-color) !important;
    background-color: var(--wsce-primary-color) !important;
    border: 2px solid var(--wsce-primary-color) !important;
    color: #fff !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button::before,
.woocommerce .single_add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart .button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button.button.alt:hover {
    background: #C45A48 !important;
    background-color: #C45A48 !important;
    border-color: #C45A48 !important;
    color: #fff !important;
}

/* ==========================================================================
   "More" Link for Homepage/Compact Mode
   ========================================================================== */

.wsce-more-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.wsce-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--wsce-primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(218, 110, 92, 0.2);
    transition: all 0.3s ease;
}

.wsce-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(218, 110, 92, 0.25);
}

.wsce-more-link svg {
    transition: transform 0.3s ease;
}

.wsce-more-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Compact Mode (Homepage)
   ========================================================================== */

.wsce-shop-wrapper.wsce-compact-mode .wsce-shop-content {
    display: block;
}

.wsce-shop-wrapper.wsce-compact-mode .wsce-products-area {
    width: 100%;
}

/* No floor glow in compact mode */
.wsce-shop-wrapper.wsce-compact-mode .wsce-product-card {
    padding-bottom: 25px;
}

.wsce-shop-wrapper.wsce-compact-mode .wsce-product-card::after {
    display: none;
}

.wsce-shop-wrapper.wsce-compact-mode .wsce-product-card:hover .wsce-card-image-wrapper {
    transform: scale(1.03);
}

/* Responsive adjustments for more link */
@media (max-width: 52rem) {
    .wsce-more-link-wrapper {
        margin-top: 30px;
    }

    .wsce-more-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Quantity Discount Banner (Cart & Checkout)
   ========================================================================== */

.wsce-discount-info {
    position: relative;
    margin-bottom: 30px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--wsce-primary-color) 0%, #c45a48 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(218, 110, 92, 0.25);
    overflow: hidden;
}

/* Decorative background pattern */
.wsce-discount-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.wsce-discount-info::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.wsce-discount-active {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
}

.wsce-discount-active i {
    font-size: 20px;
}

.wsce-discount-active:last-child {
    margin-bottom: 0;
}

.wsce-discount-hint {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.wsce-discount-hint i {
    color: rgba(255, 255, 255, 0.7);
}

/* Discount in WooCommerce Cart */
.woocommerce-cart .wsce-discount-info,
.woocommerce-checkout .wsce-discount-info {
    max-width: 100%;
}

/* Fee styling in cart totals */
.woocommerce-cart .cart-discount .amount,
.woocommerce-checkout .cart-discount .amount {
    color: #22863a;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 52rem) {
    .wsce-discount-info {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .wsce-discount-active {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .wsce-discount-active i {
        font-size: 18px;
    }

    .wsce-discount-hint {
        font-size: 12px;
    }
}
