/* ==========================================================================
   CARDONGY - Shop Templates Styles v2.0
   Product Cards + Shop Layout
   ========================================================================== */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --shop-gold: #d4a537;
    --shop-gold-dark: #b8862c;
    --shop-gold-light: #f5d585;
    --shop-gold-grad: linear-gradient(135deg, #d4a537 0%, #b8862c 100%);
    --shop-navy: #0a1929;
    --shop-navy-light: #0f2138;
    --shop-white: #ffffff;
    --shop-text: #1a1a1a;
    --shop-text-gray: #666666;
    --shop-text-light: #999999;
    --shop-border: #e8e8e8;
    --shop-border-light: #f0f0f0;
    --shop-bg-light: #f8f9fa;
    --shop-bg-cream: #fff9ec;
    --shop-success: #10b981;
    --shop-danger: #ef4444;
    --shop-warning: #f59e0b;
    --shop-purple: #8b5cf6;
    --shop-radius: 12px;
    --shop-radius-sm: 8px;
    --shop-radius-lg: 16px;
    --shop-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shop-shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --shop-shadow-gold: 0 6px 20px rgba(212, 165, 55, 0.35);
    --shop-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Product Card - Main
   ========================================================================== */
.cardongy-product-card {
    position: relative;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: var(--shop-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--shop-border-light);
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.cardongy-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shop-shadow-hover);
    border-color: var(--shop-gold);
}

.cardongy-product-card.out-of-stock {
    opacity: 0.75;
}

.cardongy-product-card.out-of-stock:hover {
    transform: none;
    opacity: 0.85;
}

/* ==========================================================================
   Card Image Wrap
   ========================================================================== */
.card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff9ec 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.card-image-main,
.card-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-image-hover {
    opacity: 0;
}

.cardongy-product-card:hover .card-image-main {
    opacity: 0;
    transform: scale(1.05);
}

.cardongy-product-card:hover .card-image-hover {
    opacity: 1;
    transform: scale(1.05);
}

/* If no hover image, just zoom */
.cardongy-product-card:hover .card-image-main:only-child {
    opacity: 1;
    transform: scale(1.08);
}

/* ==========================================================================
   Card Badges (Top Left)
   ========================================================================== */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    line-height: 1;
    font-family: inherit;
}

.badge-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: badgePulse 2s infinite;
    font-size: 12px;
    padding: 7px 12px;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-limited {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    animation: badgeShake 3s infinite;
}

.badge-out-of-stock {
    background: var(--shop-navy);
    color: white;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 5px 20px rgba(239, 68, 68, 0.6); }
}

@keyframes badgeShake {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(-3deg); }
    10% { transform: rotate(3deg); }
    15% { transform: rotate(0deg); }
}

/* ==========================================================================
   Quick Actions (Top Right)
   ========================================================================== */
.card-quick-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--shop-transition);
}

.cardongy-product-card:hover .card-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--shop-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.25s;
    font-size: 14px;
}

.quick-action-btn:hover {
    background: var(--shop-gold);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shop-shadow-gold);
}

.quick-action-btn.wishlist-btn.active {
    background: var(--shop-danger);
    color: white;
}

.quick-action-btn.wishlist-btn.active i {
    animation: heartBeat 0.6s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.95); }
}

/* ==========================================================================
   Hover Actions (Add to Cart on Image)
   ========================================================================== */
.card-hover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--shop-transition);
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
}

.cardongy-product-card:hover .card-hover-actions {
    transform: translateY(0);
    pointer-events: auto;
}

.card-add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--shop-gold-grad);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: var(--shop-shadow-gold);
    font-family: inherit;
}

.card-add-cart-btn:hover {
    background: linear-gradient(135deg, #e5b647, #c9973d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 55, 0.5);
    color: white;
}

.card-add-cart-btn i {
    font-size: 15px;
}

/* Loading state */
.card-add-cart-btn.loading,
.card-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.card-add-cart-btn.loading::before,
.card-cart-btn.loading::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: cardSpin 0.7s linear infinite;
    margin-right: 6px;
}

@keyframes cardSpin {
    to { transform: rotate(360deg); }
}

/* Added state */
.card-add-cart-btn.added,
.card-cart-btn.added {
    background: var(--shop-success) !important;
}

/* ==========================================================================
   Card Content
   ========================================================================== */
.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Meta Top (Brand + Tournament) */
.card-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.card-brand,
.card-tournament {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1;
}

.card-brand {
    color: var(--shop-gold-dark);
    background: rgba(212, 165, 55, 0.1);
}

.card-tournament {
    color: var(--shop-navy);
    background: rgba(10, 25, 41, 0.06);
}

.card-brand i,
.card-tournament i {
    font-size: 9px;
}

/* Title */
.card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--shop-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

.card-title a:hover {
    color: var(--shop-gold-dark);
}

/* Rating */
.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.card-rating .stars {
    display: flex;
    gap: 1px;
}

.card-rating .stars i {
    color: #ddd;
    font-size: 12px;
}

.card-rating .stars i.active {
    color: var(--shop-gold);
}

.card-rating .rating-count {
    color: var(--shop-text-gray);
    font-weight: 500;
    font-size: 11px;
}

.card-rating .rating-count.no-reviews {
    font-style: italic;
    color: var(--shop-text-light);
}

/* Price */
.card-price-wrap {
    margin-top: auto;
    padding-top: 8px;
}

.card-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-old {
    color: var(--shop-text-light);
    text-decoration: line-through;
    text-decoration-color: var(--shop-danger);
    text-decoration-thickness: 2px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.price-new {
    color: var(--shop-gold-dark);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.price-single {
    color: var(--shop-navy);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.price-save {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--shop-success);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.price-save i {
    font-size: 10px;
}

/* ==========================================================================
   Card Footer (Bottom Add to Cart)
   ========================================================================== */
.card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--shop-border-light);
}

.card-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: var(--shop-navy);
    color: white;
    border: 2px solid var(--shop-navy);
    border-radius: var(--shop-radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--shop-transition);
    font-family: inherit;
}

.card-cart-btn:hover:not(.disabled) {
    background: var(--shop-gold);
    border-color: var(--shop-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-gold);
}

.card-cart-btn i {
    font-size: 13px;
}

.card-cart-btn.disabled {
    background: transparent;
    color: var(--shop-text-light);
    border-color: var(--shop-border);
    cursor: not-allowed;
}

/* ==========================================================================
   List View (Optional)
   ========================================================================== */
.shop-view-list .cardongy-product-card {
    flex-direction: row;
    max-height: 220px;
}

.shop-view-list .card-image-wrap {
    width: 220px;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.shop-view-list .card-content {
    padding: 20px 25px;
}

.shop-view-list .card-title {
    font-size: 18px;
    min-height: auto;
    -webkit-line-clamp: 2;
}

.shop-view-list .card-hover-actions {
    display: none;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.cardongy-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.cardongy-products-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cardongy-products-grid.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cardongy-products-grid.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* List Grid */
.cardongy-products-grid.shop-view-list {
    grid-template-columns: 1fr;
    gap: 15px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .cardongy-products-grid.grid-cols-5 {
        grid-template-columns: repeat(4, 1fr);
    }
    .cardongy-products-grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .cardongy-products-grid,
    .cardongy-products-grid.grid-cols-5,
    .cardongy-products-grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cardongy-products-grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Show quick actions on tablet without hover */
    .card-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Hide hover cart on tablet */
    .card-hover-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .cardongy-products-grid,
    .cardongy-products-grid.grid-cols-5,
    .cardongy-products-grid.grid-cols-4,
    .cardongy-products-grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-content {
        padding: 12px;
        gap: 8px;
    }
    
    .card-title {
        font-size: 13px;
        min-height: 36px;
        -webkit-line-clamp: 2;
    }
    
    .price-new,
    .price-single {
        font-size: 18px;
    }
    
    .price-old {
        font-size: 12px;
    }
    
    .card-cart-btn {
        padding: 9px 12px;
        font-size: 11px;
    }
    
    .card-cart-btn span {
        display: none;
    }
    
    .card-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .card-badges {
        top: 8px;
        left: 8px;
    }
    
    .card-quick-actions {
        top: 8px;
        right: 8px;
    }
    
    .quick-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Hide meta on mobile */
    .card-meta-top {
        display: none;
    }
    
    /* List view on mobile */
    .shop-view-list .cardongy-product-card {
        flex-direction: column;
        max-height: none;
    }
    
    .shop-view-list .card-image-wrap {
        width: 100%;
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .cardongy-products-grid {
        gap: 12px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .card-title {
        font-size: 12px;
        min-height: 32px;
    }
    
    .price-new,
    .price-single {
        font-size: 16px;
    }
    
    .card-rating .stars i {
        font-size: 10px;
    }
    
    .card-footer {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .card-cart-btn {
        padding: 8px 10px;
        font-size: 10px;
    }
    
    .card-cart-btn i {
        font-size: 12px;
    }
}

/* ==========================================================================
   RTL Support (Arabic)
   ========================================================================== */
.rtl .cardongy-product-card {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.rtl .card-badges {
    left: auto;
    right: 12px;
    align-items: flex-end;
}

.rtl .card-quick-actions {
    right: auto;
    left: 12px;
    transform: translateX(-20px);
}

.rtl .cardongy-product-card:hover .card-quick-actions {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .rtl .card-badges {
        left: auto;
        right: 8px;
    }
    
    .rtl .card-quick-actions {
        right: auto;
        left: 8px;
    }
}

/* ==========================================================================
   Loading Skeleton (for AJAX)
   ========================================================================== */
.cardongy-product-card.skeleton {
    pointer-events: none;
}

.cardongy-product-card.skeleton .card-image-wrap,
.cardongy-product-card.skeleton .card-title,
.cardongy-product-card.skeleton .card-price-wrap {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    color: transparent;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* ==========================================================================
   ============ SHOP HEADER ============
   ========================================================================== */

.shop-header {
    position: relative;
    background: linear-gradient(135deg, var(--shop-navy) 0%, var(--shop-navy-light) 100%);
    color: white;
    border-radius: var(--shop-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shop-shadow);
}

.shop-header.has-banner {
    min-height: 280px;
}

.shop-header-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.shop-header .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(15, 33, 56, 0.88) 100%);
    z-index: 2;
}

.shop-header-content {
    position: relative;
    z-index: 3;
    padding: 30px 40px;
}

/* Breadcrumb inside header */
.shop-breadcrumb {
    margin-bottom: 20px;
}

.shop-breadcrumb .woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.shop-breadcrumb .woocommerce-breadcrumb a {
    color: var(--shop-gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.shop-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--shop-gold);
}

.shop-breadcrumb .woocommerce-breadcrumb i {
    font-size: 10px;
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

/* Header Inner */
.shop-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

/* Icon */
.shop-header-icon {
    width: 80px;
    height: 80px;
    background: var(--shop-gold-grad);
    border-radius: var(--shop-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shop-shadow-gold);
    position: relative;
    overflow: hidden;
}

.shop-header-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: iconShine 3s infinite;
}

@keyframes iconShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Header Text */
.shop-header-text {
    flex: 1;
    min-width: 0;
}

.shop-page-title {
    font-size: 34px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: inherit;
}

.shop-page-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 700px;
}

.shop-page-desc p {
    margin: 0 0 8px 0;
}

.shop-page-desc p:last-child {
    margin-bottom: 0;
}

/* Meta (product count) */
.shop-page-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 165, 55, 0.15);
    color: var(--shop-gold-light);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(212, 165, 55, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.shop-page-meta i {
    font-size: 12px;
}

/* ==========================================================================
   ============ SHOP TOOLBAR ============
   ========================================================================== */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--shop-gold-grad);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    box-shadow: var(--shop-shadow-gold);
    font-family: inherit;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 55, 0.5);
}

/* Results Count */
.toolbar-count {
    color: var(--shop-text-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Toolbar Items */
.toolbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--shop-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.toolbar-label i {
    color: var(--shop-gold);
    font-size: 13px;
}

/* Select */
.toolbar-select {
    padding: 8px 30px 8px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    background: white;
    color: var(--shop-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M6%208.5L1.5%204h9z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.toolbar-select:focus,
.toolbar-select:hover {
    border-color: var(--shop-gold);
    outline: none;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.view-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    color: var(--shop-text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    font-size: 14px;
}

.view-btn:hover {
    color: var(--shop-gold);
}

.view-btn.active {
    background: var(--shop-gold);
    color: white;
}

/* ==========================================================================
   ============ SHOP SIDEBAR ============
   ========================================================================== */

.shop-sidebar {
    background: white;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

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

.shop-sidebar::-webkit-scrollbar-track {
    background: var(--shop-bg-light);
    border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--shop-gold);
    border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--shop-gold-dark);
}

/* Mobile Header */
.sidebar-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--shop-border-light);
}

.sidebar-mobile-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--shop-navy);
    font-size: 16px;
    font-weight: 800;
}

.sidebar-mobile-header h3 i {
    color: var(--shop-gold);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    background: var(--shop-bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-text);
    font-size: 16px;
    transition: all 0.25s;
}

.sidebar-close:hover {
    background: var(--shop-danger);
    color: white;
    transform: rotate(90deg);
}

/* Filter Widget */
.filter-widget {
    padding: 15px 0;
    border-bottom: 1px solid var(--shop-border-light);
}

.filter-widget:first-of-type {
    padding-top: 5px;
}

.filter-widget:last-of-type {
    border-bottom: none;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
    user-select: none;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--shop-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title i {
    color: var(--shop-gold);
    font-size: 13px;
}

.widget-toggle {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: var(--shop-text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 11px;
}

.filter-widget.collapsed .widget-toggle {
    transform: rotate(-90deg);
}

.filter-widget.collapsed .widget-content {
    display: none;
}

.widget-content {
    animation: slideDown 0.25s ease;
}

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

/* Active Filters Widget */
.active-filters .widget-header {
    background: linear-gradient(135deg, #fff9ec, #fff5db);
    padding: 12px;
    border-radius: var(--shop-radius-sm);
    margin-bottom: 0;
    border: 1px dashed var(--shop-gold);
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--shop-danger);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s;
}

.clear-filters:hover {
    background: #dc2626;
    transform: scale(1.05);
    color: white;
}

/* Price Range */
.price-slider-wrap {
    padding: 5px 0;
}

.price-inputs {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 11px;
    color: var(--shop-text-gray);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.price-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text);
    -moz-appearance: textfield;
    transition: border-color 0.25s;
    font-family: inherit;
}

.price-input-group input::-webkit-outer-spin-button,
.price-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input-group input:focus {
    border-color: var(--shop-gold);
    outline: none;
}

.price-separator {
    color: var(--shop-text-gray);
    padding-bottom: 8px;
    font-weight: 700;
}

.price-range-info {
    text-align: center;
    color: var(--shop-text-light);
    font-size: 11px;
}

/* Filter List */
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

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

.filter-list::-webkit-scrollbar-thumb {
    background: var(--shop-gold);
    border-radius: 10px;
}

.filter-item {
    margin-bottom: 4px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

/* Filter Link (for categories) */
.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: var(--shop-text);
    text-decoration: none;
    border-radius: var(--shop-radius-sm);
    transition: all 0.2s;
    font-size: 13px;
}

.filter-link:hover {
    background: var(--shop-bg-cream);
    color: var(--shop-gold-dark);
    padding-left: 15px;
}

.filter-item.is-current .filter-link {
    background: var(--shop-gold-grad);
    color: white;
    font-weight: 700;
}

.filter-name {
    flex: 1;
    font-weight: 500;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: var(--shop-bg-light);
    color: var(--shop-text-gray);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
}

.filter-item.is-current .filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Checkbox Filter */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: var(--shop-radius-sm);
    transition: all 0.2s;
    font-size: 13px;
    color: var(--shop-text);
    user-select: none;
}

.filter-checkbox:hover {
    background: var(--shop-bg-cream);
}

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

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--shop-border);
    border-radius: 5px;
    background: white;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.2s;
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--shop-gold);
    border-color: var(--shop-gold);
}

.filter-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.filter-checkbox input[type="checkbox"]:checked ~ .filter-name {
    color: var(--shop-gold-dark);
    font-weight: 700;
}

/* Radio Filter */
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: var(--shop-radius-sm);
    transition: all 0.2s;
    font-size: 13px;
    color: var(--shop-text);
    user-select: none;
}

.filter-radio:hover {
    background: var(--shop-bg-cream);
}

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

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--shop-border);
    border-radius: 50%;
    background: white;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s;
}

.filter-radio input[type="radio"]:checked + .radio-custom {
    background: var(--shop-gold);
    border-color: var(--shop-gold);
}

.filter-radio input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Rating Stars in Filter */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #ddd;
    font-size: 13px;
}

.rating-stars i.active {
    color: var(--shop-gold);
}

.rating-plus {
    color: var(--shop-text-gray);
    font-size: 11px;
    font-weight: 500;
}

/* Sidebar Actions */
.sidebar-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--shop-border-light);
}

.btn-apply-filters {
    flex: 1;
    padding: 12px 20px;
    background: var(--shop-gold-grad);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shop-shadow-gold);
    font-family: inherit;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 55, 0.5);
}

.btn-reset-filters {
    padding: 12px 18px;
    background: white;
    color: var(--shop-text);
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-reset-filters:hover {
    border-color: var(--shop-danger);
    color: var(--shop-danger);
    background: #fef2f2;
}

/* Sidebar Featured Products */
.sidebar-featured {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--shop-border-light);
}

.sidebar-featured .widget-title {
    margin-bottom: 15px;
}

.featured-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-mini-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: var(--shop-radius-sm);
    transition: all 0.25s;
}

.featured-mini-item:hover {
    background: var(--shop-bg-cream);
}

.mini-image {
    width: 60px;
    height: 60px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    background: var(--shop-bg-light);
    padding: 4px;
    flex-shrink: 0;
}

.mini-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.mini-title {
    color: var(--shop-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}

.mini-title:hover {
    color: var(--shop-gold-dark);
}

.mini-price {
    font-size: 13px;
    color: var(--shop-gold-dark);
    font-weight: 800;
}

.mini-price del {
    color: var(--shop-text-light);
    font-size: 11px;
    font-weight: 500;
    margin-right: 4px;
}

.mini-price ins {
    text-decoration: none;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   ============ RESPONSIVE ============
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .shop-header-content {
        padding: 25px 30px;
    }
    
    .shop-page-title {
        font-size: 28px;
    }
    
    .shop-header-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .shop-toolbar {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .toolbar-count {
        display: none;
    }
    
    /* Sidebar becomes off-canvas */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        z-index: 999;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 20px;
    }
    
    .rtl .shop-sidebar {
        left: auto;
        right: -100%;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .rtl .shop-sidebar.active {
        left: auto;
        right: 0;
    }
    
    .sidebar-mobile-header {
        display: flex;
    }
    
    .mobile-filter-toggle {
        display: inline-flex;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .shop-header-content {
        padding: 20px;
    }
    
    .shop-breadcrumb {
        margin-bottom: 15px;
    }
    
    .shop-header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .shop-header-icon {
        margin: 0 auto;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .shop-page-title {
        font-size: 22px;
    }
    
    .shop-page-desc {
        font-size: 13px;
    }
    
    .shop-page-meta {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .shop-header.has-banner {
        min-height: auto;
    }
    
    /* Toolbar */
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
        width: 100%;
    }
    
    .toolbar-item {
        flex: 1;
    }
    
    .toolbar-select {
        width: 100%;
        min-width: 0;
    }
    
    .toolbar-label span {
        display: none;
    }
    
    .toolbar-view {
        flex: 0;
    }
    
    /* View toggle - hide on mobile */
    .toolbar-view {
        display: none;
    }
}

@media (max-width: 480px) {
    .shop-header-content {
        padding: 15px;
    }
    
    .shop-page-title {
        font-size: 20px;
    }
    
    .toolbar-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .toolbar-label {
        justify-content: center;
    }
    
    .mobile-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ============ RTL SUPPORT ============
   ========================================================================== */

.rtl .shop-header-inner {
    flex-direction: row-reverse;
}

.rtl .shop-page-title,
.rtl .shop-page-desc,
.rtl .shop-page-meta {
    text-align: right;
}

.rtl .filter-link:hover {
    padding-left: 10px;
    padding-right: 15px;
}

.rtl .mini-price del {
    margin-right: 0;
    margin-left: 4px;
}

.rtl .toolbar-select {
    background-position: left 10px center;
    padding-right: 14px;
    padding-left: 30px;
}

@media (max-width: 768px) {
    .rtl .shop-header-inner {
        flex-direction: column;
    }
}
/* ==========================================================================
   ============ SHOP PAGE LAYOUT ============
   ========================================================================== */

.cardongy-shop-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

/* Shop Container: Sidebar + Main */
.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.shop-main {
    min-width: 0;
}

/* ==========================================================================
   ============ PAGINATION ============
   ========================================================================== */

.cardongy-pagination-wrap {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.cardongy-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-info {
    color: var(--shop-text-gray);
    font-size: 14px;
    font-weight: 500;
}

.pagination-info::before {
    content: '📄 ';
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: white;
    color: var(--shop-text);
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
    font-family: inherit;
}

.pagination-links .page-numbers:hover {
    background: var(--shop-gold);
    color: white;
    border-color: var(--shop-gold);
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-gold);
}

.pagination-links .page-numbers.current {
    background: var(--shop-gold-grad);
    color: white;
    border-color: var(--shop-gold);
    box-shadow: var(--shop-shadow-gold);
    cursor: default;
}

.pagination-links .page-numbers.current:hover {
    transform: none;
}

.pagination-links .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--shop-text-light);
}

.pagination-links .page-numbers.dots:hover {
    background: transparent;
    color: var(--shop-text-light);
    transform: none;
    box-shadow: none;
}

.pagination-links .page-numbers.prev,
.pagination-links .page-numbers.next {
    background: var(--shop-navy);
    color: white;
    border-color: var(--shop-navy);
}

.pagination-links .page-numbers.prev:hover,
.pagination-links .page-numbers.next:hover {
    background: var(--shop-gold);
    border-color: var(--shop-gold);
}

.pagination-links .page-numbers i {
    font-size: 12px;
}

/* ==========================================================================
   ============ NO PRODUCTS FOUND ============
   ========================================================================== */

.no-products-found {
    background: white;
    border-radius: var(--shop-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shop-shadow);
}

.no-products-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #fff9ec, #fff5db);
    border: 3px dashed var(--shop-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    color: var(--shop-gold);
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-products-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--shop-navy);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.no-products-text {
    color: var(--shop-text-gray);
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
}

.no-products-suggestions {
    background: var(--shop-bg-cream);
    border: 1px dashed var(--shop-gold);
    padding: 25px;
    border-radius: var(--shop-radius);
    margin: 30px auto;
    max-width: 400px;
    text-align: left;
}

.no-products-suggestions h3 {
    font-size: 15px;
    color: var(--shop-navy);
    margin: 0 0 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.no-products-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-products-suggestions li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--shop-text);
    font-size: 14px;
}

.no-products-suggestions li i {
    color: var(--shop-success);
    font-size: 12px;
}

.no-products-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-shop-all,
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--shop-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.25s;
    font-family: inherit;
}

.btn-shop-all {
    background: var(--shop-gold-grad);
    color: white;
    box-shadow: var(--shop-shadow-gold);
}

.btn-shop-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 165, 55, 0.5);
    color: white;
}

.btn-back-home {
    background: white;
    color: var(--shop-navy);
    border: 2px solid var(--shop-navy);
}

.btn-back-home:hover {
    background: var(--shop-navy);
    color: white;
    transform: translateY(-3px);
}

/* Featured Products in No Products */
.no-products-featured {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px dashed var(--shop-border);
    text-align: left;
}

.featured-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-navy);
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-heading i {
    color: var(--shop-gold);
}

/* ==========================================================================
   ============ RESPONSIVE ============
   ========================================================================== */

@media (max-width: 991px) {
    .shop-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cardongy-shop-page {
        padding: 20px 15px 60px;
    }
    
    .no-products-found {
        padding: 40px 25px;
    }
    
    .no-products-icon {
        width: 100px;
        height: 100px;
        font-size: 45px;
    }
    
    .no-products-title {
        font-size: 22px;
    }
    
    .cardongy-pagination-wrap {
        padding: 20px 15px;
    }
    
    .pagination-links .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .cardongy-shop-page {
        padding: 15px 10px 40px;
    }
    
    .no-products-found {
        padding: 30px 20px;
    }
    
    .no-products-icon {
        width: 80px;
        height: 80px;
        font-size: 35px;
    }
    
    .no-products-title {
        font-size: 20px;
    }
    
    .no-products-text {
        font-size: 14px;
    }
    
    .no-products-suggestions {
        padding: 20px;
    }
    
    .no-products-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-shop-all,
    .btn-back-home {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .featured-heading {
        font-size: 18px;
    }
    
    .pagination-links {
        gap: 4px;
    }
    
    .pagination-links .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }
}
/* ==========================================================================
   ============ TOAST NOTIFICATIONS ============
   ========================================================================== */

.cardongy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: var(--shop-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(500px);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Poppins', 'Cairo', sans-serif;
    border-left: 4px solid var(--shop-gold);
}

.cardongy-toast.show {
    transform: translateX(0);
}

.cardongy-toast i:first-child {
    font-size: 22px;
    flex-shrink: 0;
}

.cardongy-toast span {
    flex: 1;
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 600;
}

.toast-close {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    color: var(--shop-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s;
    font-size: 12px;
    padding: 0;
}

.toast-close:hover {
    background: var(--shop-bg-light);
    color: var(--shop-text);
}

/* Toast Types */
.cardongy-toast.toast-success {
    border-left-color: var(--shop-success);
}

.cardongy-toast.toast-success i:first-child {
    color: var(--shop-success);
}

.cardongy-toast.toast-error {
    border-left-color: var(--shop-danger);
}

.cardongy-toast.toast-error i:first-child {
    color: var(--shop-danger);
}

.cardongy-toast.toast-warning {
    border-left-color: var(--shop-warning);
}

.cardongy-toast.toast-warning i:first-child {
    color: var(--shop-warning);
}

.cardongy-toast.toast-info {
    border-left-color: #3b82f6;
}

.cardongy-toast.toast-info i:first-child {
    color: #3b82f6;
}

/* RTL Toast */
.rtl .cardongy-toast {
    right: auto;
    left: 30px;
    transform: translateX(-500px);
    border-left: none;
    border-right: 4px solid var(--shop-gold);
}

.rtl .cardongy-toast.show {
    transform: translateX(0);
}

/* Mobile Toast */
@media (max-width: 768px) {
    .cardongy-toast {
        bottom: 20px;
        right: 15px;
        left: 15px;
        min-width: 0;
        max-width: none;
    }
    
    .rtl .cardongy-toast {
        left: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   ============ FILTER SEARCH ============
   ========================================================================== */

.filter-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.filter-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 12px;
    color: var(--shop-text);
    transition: border-color 0.25s;
    font-family: inherit;
    background: white;
}

.filter-search-input:focus {
    border-color: var(--shop-gold);
    outline: none;
}

.filter-search-wrap i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--shop-text-light);
    font-size: 11px;
    pointer-events: none;
}

.rtl .filter-search-input {
    padding: 8px 32px 8px 12px;
}

.rtl .filter-search-wrap i {
    left: auto;
    right: 12px;
}

/* ==========================================================================
   ============ TOUCH HOVER ============
   ========================================================================== */

.cardongy-product-card.touch-hover .card-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.cardongy-product-card.touch-hover .card-image-hover {
    opacity: 1;
}
/* ==========================================================================
   ============ 404 PAGE ============
   ========================================================================== */

.cardongy-404-page {
    min-height: 70vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff9ec 100%);
    padding: 40px 20px;
}

.error-404-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Animated 404 Number */
.error-404-visual {
    margin-bottom: 40px;
    padding: 40px 0;
}

.error-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
}

.digit-4 {
    font-size: 180px;
    font-weight: 900;
    background: var(--shop-gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -8px;
    animation: digitBounce 2s ease-in-out infinite;
}

.digit-4:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes digitBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Playing Card */
.digit-card {
    display: inline-block;
    animation: cardFall 3s ease-in-out infinite;
}

@keyframes cardFall {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-30px); }
}

.playing-card {
    width: 130px;
    height: 180px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--shop-gold);
    position: relative;
    padding: 12px;
}

.card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.card-corner {
    position: absolute;
    color: var(--shop-navy);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.card-corner.top-left {
    top: 0;
    left: 0;
}

.card-corner.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.card-suit {
    font-size: 22px;
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: var(--shop-gold);
    animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error Content */
.error-404-content {
    max-width: 700px;
    margin: 0 auto 50px;
}

.error-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--shop-navy);
    margin: 0 0 15px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.error-subtitle {
    font-size: 20px;
    color: var(--shop-text);
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.4;
}

.error-description {
    font-size: 16px;
    color: var(--shop-text-gray);
    line-height: 1.7;
    margin: 0 0 35px 0;
}

/* Search Bar */
.error-search {
    max-width: 550px;
    margin: 0 auto 30px;
}

.error-search-form,
.try-search-form {
    width: 100%;
}

.search-input-wrap {
    position: relative;
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-input-wrap:focus-within {
    border-color: var(--shop-gold);
    box-shadow: 0 15px 50px rgba(212, 165, 55, 0.25);
}

.search-input-wrap > i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-gold);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.error-search-input,
.try-search-input {
    flex: 1;
    padding: 18px 20px 18px 55px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--shop-text);
    outline: none;
    font-family: inherit;
}

.error-search-input::placeholder,
.try-search-input::placeholder {
    color: var(--shop-text-light);
}

.error-search-btn,
.try-search-btn {
    padding: 0 32px;
    background: var(--shop-gold-grad);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.error-search-btn:hover,
.try-search-btn:hover {
    background: linear-gradient(135deg, #e5b647, #c9973d);
}

/* Action Buttons */
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--shop-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-family: inherit;
    border: 2px solid transparent;
}

.error-btn.btn-primary {
    background: var(--shop-gold-grad);
    color: white;
    box-shadow: var(--shop-shadow-gold);
}

.error-btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 165, 55, 0.5);
    color: white;
}

.error-btn.btn-secondary {
    background: var(--shop-navy);
    color: white;
}

.error-btn.btn-secondary:hover {
    background: var(--shop-gold);
    transform: translateY(-3px);
    color: white;
}

.error-btn.btn-outline {
    background: white;
    color: var(--shop-text);
    border-color: var(--shop-border);
}

.error-btn.btn-outline:hover {
    border-color: var(--shop-gold);
    color: var(--shop-gold);
    transform: translateY(-3px);
}

/* Suggestions */
.error-suggestions {
    margin: 60px auto 40px;
    max-width: 1100px;
}

.suggestions-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-navy);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestions-title i {
    color: var(--shop-gold);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: var(--shop-text);
    box-shadow: var(--shop-shadow);
    transition: all 0.3s;
    border: 1px solid var(--shop-border-light);
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-hover);
    border-color: var(--shop-gold);
    color: var(--shop-text);
}

.suggestion-image,
.suggestion-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    background: var(--shop-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-icon {
    background: var(--shop-gold-grad);
    color: white;
    font-size: 24px;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--shop-navy);
}

.suggestion-info span {
    color: var(--shop-text-gray);
    font-size: 12px;
    font-weight: 500;
}

.suggestion-arrow {
    color: var(--shop-gold);
    font-size: 16px;
    transition: transform 0.3s;
}

.suggestion-card:hover .suggestion-arrow {
    transform: translateX(6px);
}

/* Featured on 404 */
.error-featured {
    margin: 50px auto 0;
    max-width: 1200px;
}

.featured-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-navy);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title i {
    color: var(--shop-gold);
}

/* ==========================================================================
   ============ SEARCH PAGE ============
   ========================================================================== */

.cardongy-search-page .search-header {
    padding-bottom: 20px;
}

.search-query-display {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 15px 0;
}

.search-query-display .search-term {
    color: var(--shop-gold-light);
    font-weight: 700;
    background: rgba(212, 165, 55, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(212, 165, 55, 0.3);
    margin-left: 5px;
    font-family: monospace;
}

/* Header Search Form */
.header-search-form-wrap {
    margin-top: 25px;
}

.header-search-form {
    display: flex;
    max-width: 600px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-search-input {
    flex: 1;
    padding: 14px 22px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--shop-text);
    outline: none;
    font-family: inherit;
}

.header-search-btn {
    padding: 0 25px;
    background: var(--shop-gold-grad);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.header-search-btn:hover {
    background: linear-gradient(135deg, #e5b647, #c9973d);
}

/* No Results in Search */
.search-no-results {
    max-width: 900px;
    margin: 40px auto;
    padding: 60px 40px;
    background: white;
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
    text-align: center;
}

.no-results-icon {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #fff9ec, #fff5db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--shop-gold);
    box-shadow: inset 0 5px 20px rgba(212, 165, 55, 0.1);
}

.icon-decoration {
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--shop-gold);
    border-radius: 50%;
    animation: spin 15s linear infinite;
    opacity: 0.5;
}

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

.no-results-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--shop-navy);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.no-results-text {
    font-size: 16px;
    color: var(--shop-text-gray);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.no-results-text strong {
    color: var(--shop-gold-dark);
    font-weight: 700;
    background: rgba(212, 165, 55, 0.1);
    padding: 2px 10px;
    border-radius: 15px;
}

/* Try Search Form */
.no-results-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Tips */
.no-results-tips {
    background: var(--shop-bg-cream);
    border: 1px dashed var(--shop-gold);
    padding: 25px;
    border-radius: var(--shop-radius);
    margin: 30px auto;
    max-width: 450px;
    text-align: left;
}

.no-results-tips h3 {
    font-size: 15px;
    color: var(--shop-navy);
    margin: 0 0 15px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.no-results-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-results-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--shop-text);
    font-size: 13px;
    line-height: 1.5;
}

.no-results-tips li i {
    color: var(--shop-success);
    font-size: 11px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Categories Chips */
.no-results-categories {
    margin: 40px 0;
}

.no-results-categories h3 {
    font-size: 15px;
    color: var(--shop-navy);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--shop-border);
    color: var(--shop-text);
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
}

.category-chip:hover {
    background: var(--shop-gold-grad);
    color: white;
    border-color: var(--shop-gold);
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-gold);
}

.category-chip span {
    background: var(--shop-bg-light);
    color: var(--shop-text-gray);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.category-chip:hover span {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Featured on No Results */
.no-results-featured {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px dashed var(--shop-border);
    text-align: left;
}

.no-results-featured .featured-title {
    text-align: center;
}

/* ==========================================================================
   ============ RESPONSIVE ============
   ========================================================================== */

@media (max-width: 991px) {
    .digit-4 {
        font-size: 140px;
    }
    
    .playing-card {
        width: 100px;
        height: 140px;
    }
    
    .card-center {
        font-size: 45px;
    }
    
    .error-title {
        font-size: 32px;
    }
    
    .error-subtitle {
        font-size: 17px;
    }
    
    .header-search-form-wrap {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .cardongy-404-page {
        padding: 20px 15px;
    }
    
    .digit-4 {
        font-size: 100px;
    }
    
    .playing-card {
        width: 75px;
        height: 105px;
    }
    
    .card-center {
        font-size: 32px;
    }
    
    .card-corner {
        font-size: 14px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-subtitle {
        font-size: 14px;
    }
    
    .error-description {
        font-size: 13px;
    }
    
    .search-input-wrap {
        flex-direction: column;
        border-radius: var(--shop-radius);
    }
    
    .error-search-input,
    .try-search-input {
        padding: 15px 15px 15px 45px;
    }
    
    .error-search-btn,
    .try-search-btn {
        padding: 14px;
        width: 100%;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .error-btn {
        width: 100%;
        justify-content: center;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .search-no-results {
        padding: 40px 20px;
    }
    
    .no-results-icon {
        width: 100px;
        height: 100px;
        font-size: 42px;
    }
    
    .no-results-title {
        font-size: 24px;
    }
    
    .header-search-form {
        flex-direction: column;
        border-radius: var(--shop-radius);
    }
    
    .header-search-btn {
        padding: 12px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-number {
        gap: 8px;
    }
    
    .digit-4 {
        font-size: 70px;
        letter-spacing: -4px;
    }
    
    .playing-card {
        width: 55px;
        height: 78px;
        padding: 8px;
    }
    
    .card-center {
        font-size: 24px;
    }
    
    .card-corner {
        font-size: 11px;
    }
}
/* ==========================================================================
   ============ FIX 1: Full Width + Remove Black Space ============
   ========================================================================== */

/* Body Background */
body.cardongy-shop,
body.cardongy-category,
body.cardongy-brand,
body.cardongy-tournament,
body.cardongy-search,
body.cardongy-404 {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff9ec 100%);
}

/* Main page container - Full width friendly */
.cardongy-shop-page {
    max-width: 1600px; /* زيادة من 1400 إلى 1600 */
    margin: 0 auto;
    padding: 30px 40px 60px;
    background: transparent;
}

/* On very large screens, use even more space */
@media (min-width: 1800px) {
    .cardongy-shop-page {
        max-width: 1750px;
        padding: 30px 50px 60px;
    }
}

@media (min-width: 2000px) {
    .cardongy-shop-page {
        max-width: 1900px;
    }
}

/* 404 Page - Full Width */
.cardongy-404-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff9ec 100%);
    min-height: 70vh;
    padding: 60px 40px;
}

.error-404-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   ============ FIX 2: Better Grid Columns for Large Screens ============
   ========================================================================== */

/* Auto-fit grid based on screen */
@media (min-width: 1600px) {
    .cardongy-products-grid,
    .cardongy-products-grid.grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cardongy-products-grid.grid-cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1800px) {
    .cardongy-products-grid.grid-cols-4 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================================================
   ============ FIX 3: RTL Support (Complete) ============
   ========================================================================== */

/* RTL - Base Direction */
.rtl .cardongy-shop-page,
.rtl .cardongy-404-page,
.rtl .cardongy-single-product {
    direction: rtl;
    text-align: right;
}

/* ============ RTL: Shop Header ============ */
.rtl .shop-header-inner {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .shop-header-text {
    text-align: right;
}

.rtl .shop-page-title,
.rtl .shop-page-desc,
.rtl .shop-page-meta {
    text-align: right;
    direction: rtl;
}

.rtl .shop-page-meta {
    flex-direction: row-reverse;
}

/* Breadcrumb RTL */
.rtl .shop-breadcrumb .woocommerce-breadcrumb {
    direction: rtl;
    text-align: right;
}

.rtl .shop-breadcrumb .woocommerce-breadcrumb i.fa-chevron-right {
    transform: rotate(180deg);
}

.rtl .shop-breadcrumb .woocommerce-breadcrumb i.fa-house {
    margin-left: 5px;
    margin-right: 0;
}

/* ============ RTL: Toolbar ============ */
.rtl .shop-toolbar {
    flex-direction: row-reverse;
}

.rtl .toolbar-left,
.rtl .toolbar-right {
    flex-direction: row-reverse;
}

.rtl .toolbar-item {
    flex-direction: row-reverse;
}

.rtl .toolbar-label {
    flex-direction: row-reverse;
}

.rtl .toolbar-count {
    text-align: right;
    direction: rtl;
}

/* View Toggle RTL */
.rtl .view-toggle {
    flex-direction: row-reverse;
}

/* Select dropdown RTL */
.rtl .toolbar-select {
    background-position: left 10px center;
    padding-right: 14px;
    padding-left: 30px;
    text-align: right;
    direction: rtl;
}

/* ============ RTL: Sidebar ============ */
.rtl .shop-sidebar {
    direction: rtl;
}

.rtl .sidebar-mobile-header {
    flex-direction: row-reverse;
}

.rtl .sidebar-mobile-header h3 {
    flex-direction: row-reverse;
}

/* Widget Header RTL */
.rtl .widget-header {
    flex-direction: row-reverse;
}

.rtl .widget-title {
    flex-direction: row-reverse;
    text-align: right;
}

/* Filter Items RTL */
.rtl .filter-link {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .filter-link:hover {
    padding-left: 10px;
    padding-right: 15px;
}

.rtl .filter-checkbox,
.rtl .filter-radio {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .filter-name {
    text-align: right;
}

/* Price Range RTL */
.rtl .price-inputs {
    flex-direction: row-reverse;
}

.rtl .price-input-group label {
    text-align: right;
}

/* Active Filters RTL */
.rtl .active-filters .widget-header {
    flex-direction: row-reverse;
}

.rtl .clear-filters {
    flex-direction: row-reverse;
}

/* Sidebar Actions RTL */
.rtl .sidebar-actions {
    flex-direction: row-reverse;
}

.rtl .btn-apply-filters,
.rtl .btn-reset-filters {
    flex-direction: row-reverse;
}

/* Featured mini RTL */
.rtl .featured-mini-item {
    flex-direction: row-reverse;
}

.rtl .mini-price del {
    margin-right: 0;
    margin-left: 4px;
}

/* ============ RTL: Product Cards ============ */
.rtl .cardongy-product-card {
    direction: rtl;
}

.rtl .card-badges {
    left: auto;
    right: 12px;
    align-items: flex-end;
}

.rtl .card-quick-actions {
    right: auto;
    left: 12px;
    transform: translateX(-20px);
}

.rtl .cardongy-product-card:hover .card-quick-actions {
    transform: translateX(0);
}

.rtl .card-content {
    text-align: right;
}

.rtl .card-meta-top {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .card-brand,
.rtl .card-tournament {
    flex-direction: row-reverse;
}

.rtl .card-title {
    text-align: right;
}

.rtl .card-rating {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .card-prices {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rtl .price-save {
    flex-direction: row-reverse;
    float: right;
}

.rtl .card-add-cart-btn,
.rtl .card-cart-btn {
    flex-direction: row-reverse;
}

/* ============ RTL: Pagination ============ */
.rtl .cardongy-pagination {
    direction: ltr; /* Numbers stay LTR */
}

.rtl .pagination-info {
    direction: rtl;
    text-align: center;
}

.rtl .pagination-links {
    direction: ltr;
}

.rtl .pagination-links .page-numbers.prev i,
.rtl .pagination-links .page-numbers.next i {
    transform: rotate(180deg);
}

/* ============ RTL: 404 Page ============ */
.rtl .error-404-content {
    text-align: center;
    direction: rtl;
}

.rtl .error-title,
.rtl .error-subtitle,
.rtl .error-description {
    text-align: center;
    direction: rtl;
}

.rtl .error-actions {
    flex-direction: row-reverse;
    justify-content: center;
}

.rtl .error-btn {
    flex-direction: row-reverse;
}

.rtl .suggestions-title,
.rtl .featured-title {
    flex-direction: row-reverse;
    justify-content: center;
    direction: rtl;
}

.rtl .suggestion-card {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .suggestion-info h4,
.rtl .suggestion-info span {
    text-align: right;
}

.rtl .suggestion-arrow i {
    transform: rotate(180deg);
}

.rtl .suggestion-card:hover .suggestion-arrow {
    transform: translateX(-6px);
}

.rtl .search-input-wrap > i {
    left: auto;
    right: 22px;
}

.rtl .error-search-input,
.rtl .try-search-input {
    padding: 18px 55px 18px 20px;
    text-align: right;
}

.rtl .card-corner.top-left {
    top: 0;
    left: auto;
    right: 0;
}

.rtl .card-corner.bottom-right {
    bottom: 0;
    right: auto;
    left: 0;
}

/* ============ RTL: Search Page ============ */
.rtl .search-query-display {
    direction: rtl;
    text-align: right;
}

.rtl .search-query-display .search-term {
    margin-left: 0;
    margin-right: 5px;
}

.rtl .header-search-form {
    direction: rtl;
}

.rtl .header-search-input {
    text-align: right;
}

.rtl .header-search-btn {
    flex-direction: row-reverse;
}

/* No Results RTL */
.rtl .search-no-results,
.rtl .no-products-found {
    text-align: center;
    direction: rtl;
}

.rtl .no-results-title,
.rtl .no-products-title,
.rtl .no-results-text,
.rtl .no-products-text {
    text-align: center;
}

.rtl .no-results-tips,
.rtl .no-products-suggestions {
    text-align: right;
    direction: rtl;
}

.rtl .no-results-tips ul,
.rtl .no-products-suggestions ul {
    padding-right: 0;
    padding-left: 0;
}

.rtl .no-results-tips li,
.rtl .no-products-suggestions li {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .category-chips {
    direction: rtl;
}

.rtl .category-chip {
    flex-direction: row-reverse;
}

.rtl .no-products-actions {
    flex-direction: row-reverse;
    justify-content: center;
}

.rtl .btn-shop-all,
.rtl .btn-back-home {
    flex-direction: row-reverse;
}

/* ============ RTL: Pagination Fixes ============ */
.rtl .pagination-links .page-numbers.prev {
    order: 2;
}

.rtl .pagination-links .page-numbers.next {
    order: 1;
}

/* ============ RTL: Toast Notifications ============ */
.rtl .cardongy-toast {
    right: auto;
    left: 30px;
    transform: translateX(-500px);
    border-left: none;
    border-right: 4px solid var(--shop-gold);
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .cardongy-toast.show {
    transform: translateX(0);
}

/* ==========================================================================
   ============ FIX 4: Better Text Colons for RTL ============
   ========================================================================== */

/* Fix "View:" and "Sort:" for RTL */
.rtl .toolbar-label span::after {
    content: attr(data-arabic);
}

/* Adjust column labels */
.rtl .price-input-group label,
.rtl .toolbar-label,
.rtl .sidebar-mobile-header h3 {
    direction: rtl;
}

/* ==========================================================================
   ============ FIX 5: Responsive Full Width ============
   ========================================================================== */

@media (max-width: 991px) {
    .cardongy-shop-page {
        padding: 20px 15px 60px;
    }
    
    /* Reset RTL transforms on mobile */
    .rtl .card-quick-actions {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cardongy-shop-page {
        padding: 15px 10px 40px;
    }
    
    /* Mobile RTL fixes */
    .rtl .shop-header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .rtl .shop-page-title,
    .rtl .shop-page-desc,
    .rtl .shop-page-meta {
        text-align: center;
    }
    
    .rtl .toolbar-count {
        text-align: center;
    }
    
    .rtl .cardongy-toast {
        left: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   ============ FIX 6: Header/Footer Full Width ============
   ========================================================================== */

/* Make sure header and footer are full width */
header, footer, .site-header, .site-footer {
    width: 100%;
}

/* Make sure the container of shop is not too narrow */
.woocommerce-page .cardongy-shop-page,
.woocommerce .cardongy-shop-page {
    max-width: 1600px;
    width: 100%;
}

/* ==========================================================================
   ============ FIX 7: Container Wrappers ============
   ========================================================================== */

/* If theme uses container class */
.container,
.container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure the shop page uses its own container */
.cardongy-shop-page,
.cardongy-404-page {
    box-sizing: border-box;
    width: 100%;
}

/* ==========================================================================
   ============ FIX 8: Fix Card Layout for Wide Screens ============
   ========================================================================== */

/* On very large screens, prevent cards from being too big */
@media (min-width: 1400px) {
    .cardongy-product-card {
        max-width: 380px;
        margin: 0 auto;
    }
    
    .cardongy-products-grid .cardongy-product-card {
        max-width: none;
    }
}
/* ==========================================================================
   ✅ CARDONGY - Master Override v8.0 (Final Solution)
   ========================================================================== */

/* ══════════════════════════════════════════
   1. FORCE Light Background on Shop Pages
   ══════════════════════════════════════════ */
body.woocommerce,
body.woocommerce-shop,
body.woocommerce-page,
body.archive,
body.tax-product_cat,
body.tax-product_brand,
body.tax-product_tournament,
body.search,
body.search-results,
body.search-no-results,
body.error404 {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

body.woocommerce #page,
body.woocommerce-shop #page,
body.woocommerce-page #page,
body.archive #page,
body.search #page,
body.error404 #page {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

body.woocommerce .site,
body.woocommerce main,
body.woocommerce #main,
body.woocommerce .site-content,
body.woocommerce #content,
body.woocommerce #primary,
body.woocommerce .site-main,
body.woocommerce-shop .site,
body.woocommerce-shop main,
body.woocommerce-shop #main,
body.woocommerce-shop .site-content,
body.woocommerce-shop #content,
body.archive .site,
body.archive main,
body.archive #main,
body.archive .site-content,
body.search .site,
body.search main,
body.search #main,
body.error404 .site,
body.error404 main,
body.error404 #main {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

/* Cardongy Wrapper */
.cardongy-shop-page,
.cardongy-search-page,
.cardongy-404-page,
.cardongy-single-product {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
}

/* ══════════════════════════════════════════
   2. Hide Default Sidebar on Shop Pages
   ══════════════════════════════════════════ */
body.woocommerce #secondary,
body.woocommerce-shop #secondary,
body.archive #secondary,
body.search #secondary {
    display: none !important;
}

body.woocommerce #primary,
body.woocommerce-shop #primary,
body.archive #primary,
body.search #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* ══════════════════════════════════════════
   3. SHOP HEADER Border Fix for RTL
   ══════════════════════════════════════════ */
[dir="rtl"] .shop-header-inner,
.rtl .shop-header-inner {
    border-left: 1px solid var(--shop-border-light);
    border-right: 4px solid var(--shop-gold);
}

/* ══════════════════════════════════════════
   4. Sidebar Widget Headers - RTL only
   ══════════════════════════════════════════ */
[dir="rtl"] .widget-title,
.rtl .widget-title {
    text-align: right;
}

[dir="rtl"] .filter-name,
.rtl .filter-name {
    text-align: right;
}

/* ══════════════════════════════════════════
   5. Toolbar RTL Adjustments
   ══════════════════════════════════════════ */
[dir="rtl"] .toolbar-select,
.rtl .toolbar-select {
    background-position: left 10px center;
    padding-right: 14px;
    padding-left: 30px;
    text-align: right;
}

/* Rating Plus in RTL */
[dir="rtl"] .rating-plus,
.rtl .rating-plus {
    margin-left: 0;
    margin-right: auto;
}

/* Price always LTR */
[dir="rtl"] .price-range-info small,
.rtl .price-range-info small {
    direction: ltr;
    display: inline-block;
}
/* ==========================================================================
   ✅ RTL Fix for No Products Page
   ========================================================================== */

[dir="rtl"] .no-products-suggestions,
.rtl .no-products-suggestions {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .no-products-suggestions h3,
.rtl .no-products-suggestions h3 {
    text-align: center !important;
}

[dir="rtl"] .no-products-suggestions ul,
.rtl .no-products-suggestions ul {
    direction: rtl !important;
    padding: 0 !important;
}

[dir="rtl"] .no-products-suggestions li,
.rtl .no-products-suggestions li {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: right !important;
    direction: rtl !important;
    gap: 10px !important;
}

[dir="rtl"] .no-products-actions,
.rtl .no-products-actions {
    direction: rtl !important;
}

[dir="rtl"] .btn-shop-all,
[dir="rtl"] .btn-back-home,
.rtl .btn-shop-all,
.rtl .btn-back-home {
    flex-direction: row !important;
}

[dir="rtl"] .featured-heading,
.rtl .featured-heading {
    flex-direction: row !important;
    justify-content: center !important;
    text-align: center !important;
}
/* ==========================================================================
   ✅✅✅ RTL FINAL - THIS MUST BE THE LAST CSS RULE ✅✅✅
   يجب أن يكون هذا آخر شيء في الملف!
   ========================================================================== */

.rtl .shop-header-inner,
[dir="rtl"] .shop-header-inner,
html[dir="rtl"] .shop-header-inner {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    text-align: right !important;
    gap: 25px !important;
    align-items: flex-start !important;
    border: none !important;
}

.rtl .shop-header-inner .shop-header-icon,
[dir="rtl"] .shop-header-inner .shop-header-icon {
    order: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rtl .shop-header-inner .shop-header-text,
[dir="rtl"] .shop-header-inner .shop-header-text {
    order: 1 !important;
    flex: 1 !important;
    text-align: right !important;
    direction: rtl !important;
}

.rtl .shop-header-text .shop-page-title,
.rtl .shop-header-text .shop-page-desc,
.rtl .shop-header-text .shop-page-meta,
[dir="rtl"] .shop-header-text .shop-page-title,
[dir="rtl"] .shop-header-text .shop-page-desc,
[dir="rtl"] .shop-header-text .shop-page-meta {
    text-align: right !important;
    direction: rtl !important;
}

.rtl .shop-header-text .shop-page-meta,
[dir="rtl"] .shop-header-text .shop-page-meta {
    justify-content: flex-start !important;
}

/* Mobile - يعود لعمودي */
@media (max-width: 768px) {
    .rtl .shop-header-inner,
    [dir="rtl"] .shop-header-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .rtl .shop-header-text,
    [dir="rtl"] .shop-header-text {
        text-align: center !important;
    }
    
    .rtl .shop-page-title,
    .rtl .shop-page-desc,
    .rtl .shop-page-meta,
    [dir="rtl"] .shop-page-title,
    [dir="rtl"] .shop-page-desc,
    [dir="rtl"] .shop-page-meta {
        text-align: center !important;
    }
    
    .rtl .shop-page-meta,
    [dir="rtl"] .shop-page-meta {
        justify-content: center !important;
    }
}
/* ==========================================================================
   ✅ FINAL FIXES v6.0
   ========================================================================== */

/* ══════════════════════════════════════
   1. Widget Header - الأيقونة أقصى اليمين
   ══════════════════════════════════════ */

[dir="rtl"] .widget-header,
.rtl .widget-header {
    display: flex !important;
    flex-direction: row !important;  /* row مع direction:rtl = يمين لليسار */
    direction: rtl !important;
    justify-content: space-between !important;
    align-items: center !important;
}

[dir="rtl"] .widget-title,
.rtl .widget-title {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: right !important;
    margin: 0 !important;
}

/* الأيقونة داخل العنوان */
[dir="rtl"] .widget-title i,
.rtl .widget-title i {
    order: 0 !important;  /* الأيقونة أولاً في RTL = يمين */
    color: var(--shop-gold) !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

/* النص بعد الأيقونة */
[dir="rtl"] .widget-title,
.rtl .widget-title {
    text-align: right !important;
}

/* ══════════════════════════════════════
   2. إزالة الخط الذهبي الزائد
   ══════════════════════════════════════ */

[dir="rtl"] .shop-sidebar,
.rtl .shop-sidebar {
    border-left: none !important;
    border-right: none !important;
    border: none !important;
    box-shadow: var(--shop-shadow) !important;
}

/* ══════════════════════════════════════
   3. Mobile Filter Toggle - إصلاح الفتح
   ══════════════════════════════════════ */

/* التأكد من ظهور الزر */
@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: inline-flex !important;
    }
    
    /* Sidebar عندما تكون active على الموبايل */
    .shop-sidebar.active {
        left: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    [dir="rtl"] .shop-sidebar.active,
    .rtl .shop-sidebar.active {
        left: auto !important;
        right: 0 !important;
    }
    
    /* Overlay */
    .sidebar-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* منع scroll body */
    body.sidebar-open {
        overflow: hidden !important;
    }
}
/* ==========================================================================
   ✅ SIDEBAR RTL FIX v7.0 - Final
   ========================================================================== */

/* ══════════════════════════════════════
   1. Widget Title - الأيقونة يمين النص
   ══════════════════════════════════════ */

[dir="rtl"] .widget-title,
.rtl .widget-title {
    display: flex !important;
    flex-direction: row-reverse !important;  /* row-reverse مع direction:ltr */
    direction: ltr !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: right !important;
    margin: 0 !important;
    unicode-bidi: plaintext !important;
}

/* النص العربي داخل العنوان */
[dir="rtl"] .widget-title,
.rtl .widget-title {
    text-align: right !important;
}

/* الأيقونة أقصى اليمين */
[dir="rtl"] .widget-title i,
.rtl .widget-title i {
    color: var(--shop-gold) !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* Widget Header نفسه */
[dir="rtl"] .widget-header,
.rtl .widget-header {
    display: flex !important;
    flex-direction: row-reverse !important;  /* العنوان يمين، زر السهم يسار */
    direction: ltr !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ══════════════════════════════════════
   2. إزالة الخط الذهبي العمودي
   ══════════════════════════════════════ */

.shop-sidebar,
[dir="rtl"] .shop-sidebar,
.rtl .shop-sidebar {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: var(--shop-shadow) !important;
}

/* إزالة أي border من العناصر الداخلية */
[dir="rtl"] .shop-sidebar .filter-widget:first-of-type,
.rtl .shop-sidebar .filter-widget:first-of-type {
    border-top: none !important;
}

/* ══════════════════════════════════════
   3. إصلاح زر "تطبيق الفلاتر" (لا يتكسر)
   ══════════════════════════════════════ */

[dir="rtl"] .sidebar-actions,
.rtl .sidebar-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
}

[dir="rtl"] .btn-apply-filters,
.rtl .btn-apply-filters {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 15px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

[dir="rtl"] .btn-reset-filters,
.rtl .btn-reset-filters {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 15px !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

/* على الموبايل، اجعلهما فوق بعض */
@media (max-width: 480px) {
    [dir="rtl"] .sidebar-actions,
    .rtl .sidebar-actions {
        flex-direction: column !important;
    }
    
    [dir="rtl"] .btn-apply-filters,
    [dir="rtl"] .btn-reset-filters,
    .rtl .btn-apply-filters,
    .rtl .btn-reset-filters {
        width: 100% !important;
    }
}

/* ══════════════════════════════════════
   4. Active Filters (الفلاتر النشطة)
   ══════════════════════════════════════ */

[dir="rtl"] .active-filters .widget-header,
.rtl .active-filters .widget-header {
    flex-direction: row-reverse !important;
    direction: ltr !important;
}

[dir="rtl"] .clear-filters,
.rtl .clear-filters {
    flex-direction: row-reverse !important;
    direction: ltr !important;
}