/* ══════════════════════════════════════════════════════════════════════════
   REMCO SHOP PAGE v2.0 — LUXURY, FAST & NO-CLUTTER ARCHITECTURE
   ══════════════════════════════════════════════════════════════════════════ */

.remco-shop-page {
    background: #f8fafc;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}
.remco-shop-page svg {
    width: auto;
    height: auto;
    max-width: 24px;
    max-height: 24px;
}
.rcs-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   1. HERO SECTION (NO RAW NUMBER LEAKAGE)
   ═══════════════════════════════════════════════ */
.rcs-hero {
    background: linear-gradient(145deg, #091a11 0%, #133322 45%, #1a432e 100%);
    padding: 34px 0 38px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
}
.rcs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.rcs-bread {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
}
.rcs-bread a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.rcs-bread a:hover {
    color: #d4a843;
}
.rcs-bread-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}
.rcs-bread-cur {
    color: #d4a843;
    font-size: 13px;
    font-weight: 700;
}

.rcs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 20px;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: #d4a843;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.rcs-hero-badge svg {
    stroke: #d4a843;
}

.rcs-hero-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.rcs-hero-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin: 0 auto 24px;
    max-width: 680px;
    line-height: 1.7;
}

/* Trust & Value Badges */
.rcs-hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}
.rcs-hbadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.rcs-hbadge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a843;
}
.rcs-hbadge-icon svg {
    stroke: #d4a843;
}
.rcs-hbadge-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.4);
}

/* ═══════════════════════════════════════════════
   2. SMART TOOLBAR (SEARCH, CHIPS, SORTS)
   ═══════════════════════════════════════════════ */
.rcs-products-section {
    padding: 28px 0 48px;
}
.rcs-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

/* Toolbar Top Row: Search & Sort */
.rcs-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.rcs-search-box {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
    transition: all 0.2s;
    position: relative;
}
.rcs-search-box:focus-within {
    border-color: #d4a843;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.12);
}
.rcs-search-icon {
    stroke: #94a3b8;
    margin-left: 10px;
    flex-shrink: 0;
}
.rcs-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1e293b;
    direction: rtl;
}
.rcs-search-clear {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}
.rcs-search-clear:hover {
    color: #ef4444;
}
.rcs-search-btn {
    background: #1a3c2a;
    color: #d4a843;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.rcs-search-btn:hover {
    background: #d4a843;
    color: #1a3c2a;
}

/* Sort Select */
.rcs-sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.rcs-sort-box label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}
.rcs-sort-box label svg {
    stroke: #d4a843;
}
.rcs-select-wrap {
    position: relative;
}
.rcs-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left 12px center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px 8px 34px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 170px;
}
.rcs-sort-select:focus,
.rcs-sort-select:hover {
    border-color: #d4a843;
    background-color: #ffffff;
    outline: none;
}

/* Category Filter Chips */
.rcs-chips-row {
    margin-bottom: 14px;
}
.rcs-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.rcs-chips-scroll::-webkit-scrollbar {
    display: none;
}
.rcs-chip {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rcs-chip:hover {
    background: #fdfbf7;
    border-color: #d4a843;
    color: #1a3c2a;
    transform: translateY(-1px);
}
.rcs-chip.active {
    background: #1a3c2a;
    color: #d4a843;
    border-color: #1a3c2a;
    box-shadow: 0 4px 12px rgba(26, 60, 42, 0.2);
}

/* Status Bar */
.rcs-toolbar-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.rcs-status-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}
.rcs-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    display: inline-block;
}

/* ═══════════════════════════════════════════════
   3. PRODUCT GRID (6 COLUMNS PIXEL-PERFECT)
   ═══════════════════════════════════════════════ */
.rcs-products-wrapper {
    position: relative;
    min-height: 350px;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    margin: 16px 0 28px !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: stretch !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
ul.products li.product:hover {
    border-color: #d4a843 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07) !important;
    transform: translateY(-3px) !important;
}

.woocommerce ul.products li.product a img,
ul.products li.product a img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 10px;
    margin-bottom: 10px !important;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover a img,
ul.products li.product:hover a img {
    transform: scale(1.02);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: #1a3c2a !important;
    margin-bottom: 8px !important;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0b3c5d !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    margin-top: 0 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-align: center;
}

/* Grid Loaders */
.rcs-grid-loader {
    text-align: center;
    padding: 40px 0;
    color: #1a3c2a;
    font-weight: 700;
    font-size: 14px;
}
.rcs-spinner-lg {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(212, 168, 67, 0.2);
    border-top-color: #1a3c2a;
    border-radius: 50%;
    animation: rcsSpin 0.7s linear infinite;
    margin-bottom: 8px;
}
.rcs-empty-notice {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    margin: 20px 0;
}
.rcs-empty-notice svg {
    stroke: #94a3b8;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   4. AJAX LOAD MORE BUTTON & PAGINATION
   ═══════════════════════════════════════════════ */
.rcs-load-more-section {
    text-align: center;
    margin: 32px 0 24px;
}
.rcs-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1a3c2a;
    color: #ffffff;
    border: 2px solid #1a3c2a;
    padding: 13px 36px;
    border-radius: 30px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(26, 60, 42, 0.16);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.rcs-load-more-btn:hover {
    background: #d4a843;
    border-color: #d4a843;
    color: #1a3c2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}
.rcs-load-more-btn svg {
    stroke: currentColor;
    transition: transform 0.2s;
}
.rcs-load-more-btn:hover svg {
    transform: translateY(2px);
}
.rcs-load-more-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}
.rcs-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rcsSpin 0.7s linear infinite;
    display: inline-block;
}
@keyframes rcsSpin {
    to { transform: rotate(360deg); }
}

/* Capped Pagination Fallback Styling */
.rcs-pagination-wrap {
    margin-top: 18px;
    text-align: center;
}
.woocommerce-pagination,
.rcs-pagination-wrap .woocommerce-pagination {
    margin: 0 !important;
}
.woocommerce-pagination ul,
.rcs-pagination-wrap ul.page-numbers {
    display: inline-flex !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    list-style: none !important;
}
.woocommerce-pagination ul li,
.rcs-pagination-wrap ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.rcs-pagination-wrap ul.page-numbers a,
.rcs-pagination-wrap ul.page-numbers span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}
.woocommerce-pagination ul li a:hover,
.rcs-pagination-wrap ul.page-numbers a:hover {
    border-color: #d4a843 !important;
    color: #1a3c2a !important;
    background: #fdfbf7 !important;
}
.woocommerce-pagination ul li span.current,
.rcs-pagination-wrap ul.page-numbers span.current {
    background: #1a3c2a !important;
    border-color: #1a3c2a !important;
    color: #d4a843 !important;
}

/* ═══════════════════════════════════════════════
   5. ASSISTANT FOOTER BANNER
   ═══════════════════════════════════════════════ */
.rcs-assistant {
    background: linear-gradient(135deg, #133322 0%, #1a432e 100%);
    padding: 28px 0;
    border-radius: 20px;
    margin: 40px auto 30px;
    max-width: 1440px;
}
.rcs-asst-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.rcs-asst-txt {
    flex: 1;
    min-width: 280px;
}
.rcs-asst-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4a843;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
}
.rcs-asst-title svg {
    stroke: #d4a843;
}
.rcs-asst-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.6;
}
.rcs-asst-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rcs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s;
    cursor: pointer;
    white-space: nowrap;
}
.rcs-btn-gold {
    background: #d4a843;
    color: #1a3c2a !important;
    border: 1.5px solid #d4a843;
}
.rcs-btn-gold:hover {
    background: #e0b84d;
    border-color: #e0b84d;
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}
.rcs-btn-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.rcs-btn-outline:hover {
    border-color: #d4a843;
    color: #d4a843 !important;
}

/* ═══════════════════════════════════════════════
   6. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */
@media (max-width: 1440px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}
@media (max-width: 1200px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }
}
@media (max-width: 992px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    .rcs-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }
    .rcs-sort-box {
        justify-content: space-between;
    }
    .rcs-select-wrap, .rcs-sort-select {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .rcs-hero {
        padding: 26px 0 30px;
    }
    .rcs-hero-title {
        font-size: 24px;
    }
    .rcs-hero-desc {
        font-size: 13px;
    }
    .rcs-hero-badges {
        gap: 8px;
    }
    .rcs-hbadge {
        font-size: 11px;
        padding: 5px 10px;
    }
    .rcs-hbadge-sep {
        display: none;
    }
    .rcs-toolbar {
        padding: 14px;
        border-radius: 14px;
    }
    .rcs-asst-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    .rcs-asst-btns {
        justify-content: center;
    }
}
@media (max-width: 640px) {
    .rcs-wrap {
        padding: 0 14px;
    }
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products li.product a img,
    ul.products li.product a img {
        height: 135px !important;
    }
    .rcs-load-more-btn {
        width: 100%;
        padding: 12px 20px;
    }
}
