/* ═══════════════════════════════════════════════
   Remco Shop Page v1.0 — Premium Design
   ═══════════════════════════════════════════════ */

.remco-shop-page{background:#f5f5f0;font-family:'Cairo','Tajawal',sans-serif}
.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 ── */
.rcs-hero{
    background:linear-gradient(160deg,#0f261a 0%,#1a3c2a 45%,#2d6a4f 100%);
    padding:28px 0 32px;position:relative;overflow:hidden;text-align:center
}
.rcs-hero::before{
    content:'';position:absolute;inset:0;
    background:repeating-linear-gradient(45deg,transparent,transparent 50px,rgba(212,168,67,.02) 50px,rgba(212,168,67,.02) 52px);
    pointer-events:none
}

.rcs-bread{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:18px;position:relative}
.rcs-bread a{color:rgba(255,255,255,.5);font-size:12px;text-decoration:none;transition:color .2s}
.rcs-bread a:hover{color:#d4a843}
.rcs-bread-sep{color:rgba(255,255,255,.25);font-size:12px}
.rcs-bread-cur{color:#d4a843;font-size:12px;font-weight:700}

.rcs-hero-content{position:relative;margin-bottom:22px}
.rcs-hero-badge{
    display:inline-flex;align-items:center;gap:5px;
    padding:4px 14px;border-radius:14px;
    background:rgba(212,168,67,.12);border:1px solid rgba(212,168,67,.2);
    color:#d4a843;font-size:11px;font-weight:700;margin-bottom:8px
}
.rcs-hero-badge svg{width:14px;height:14px;stroke:#d4a843}
.rcs-hero-title{color:#fff;font-size:34px;font-weight:800;margin:0 0 8px}
.rcs-hero-desc{color:rgba(255,255,255,.55);font-size:14px;margin:0 auto;max-width:600px;line-height:1.7}

/* Search */
.rcs-search{
    display:flex;max-width:560px;margin:0 auto 18px;position:relative;
    border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.15)
}
.rcs-search input{
    flex:1;border:none;outline:none;padding:14px 18px;font-size:14px;
    font-family:'Cairo','Tajawal',sans-serif;direction:rtl;background:transparent
}
.rcs-search button{
    background:#d4a843;border:none;padding:0 18px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;transition:background .2s
}
.rcs-search button:hover{background:#e0b84d}
.rcs-search button svg{width:20px;height:20px;stroke:#1a3c2a}

/* Stats */
.rcs-stats{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;position:relative}
.rcs-stats span{font-size:12px;color:rgba(255,255,255,.5);display:flex;align-items:center;gap:3px}
.rcs-stats strong{color:rgba(255,255,255,.85);font-weight:700}
.rcs-stats svg{width:12px;height:12px;stroke:rgba(255,255,255,.5)}
.rcs-dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.2)}

/* ── Sections common ── */
.rcs-sec{padding:36px 0}
.rcs-h2{display:flex;align-items:center;gap:8px;font-size:20px;font-weight:700;color:#1a3c2a;margin:0 0 20px}
.rcs-h2 svg{stroke:#d4a843;flex-shrink:0;width:20px;height:20px}
.rcs-h2-count{font-size:12px;font-weight:600;color:#999;margin-right:auto}

/* ── 2. ENTRY POINTS ── */
.rcs-entry{background:#fff;border-bottom:1px solid #e8e8e3}
.rcs-entry-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.rcs-entry-card{
    display:flex;flex-direction:column;padding:22px;
    border-radius:12px;border:1px solid #e8e8e3;background:#fafaf7;
    text-decoration:none!important;transition:all .25s;position:relative;overflow:hidden
}
.rcs-entry-card:hover{border-color:#2d6a4f;transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.04)}
.rcs-entry-card--cats{border-color:rgba(45,106,79,.2);background:linear-gradient(135deg,rgba(45,106,79,.03),rgba(45,106,79,.06))}
.rcs-entry-icon{
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    border-radius:12px;background:linear-gradient(135deg,rgba(45,106,79,.08),rgba(45,106,79,.16));margin-bottom:12px
}
.rcs-entry-icon svg{width:22px;height:22px;stroke:#2d6a4f}
.rcs-entry-icon--gold{background:linear-gradient(135deg,rgba(212,168,67,.08),rgba(212,168,67,.18))}
.rcs-entry-icon--gold svg{stroke:#d4a843}
.rcs-entry-icon--blue{background:linear-gradient(135deg,rgba(45,106,159,.08),rgba(45,106,159,.18))}
.rcs-entry-icon--blue svg{stroke:#2d6a9f}
.rcs-entry-icon--green{background:linear-gradient(135deg,rgba(45,106,79,.08),rgba(45,106,79,.18))}
.rcs-entry-icon--green svg{stroke:#2d6a4f}
.rcs-entry-card h3{font-size:15px;font-weight:700;color:#1a3c2a;margin:0 0 4px}
.rcs-entry-card p{font-size:12px;color:#888;margin:0 0 12px;line-height:1.5;flex:1}
.rcs-entry-go{font-size:12px;font-weight:700;color:#d4a843}
.rcs-entry-card:hover .rcs-entry-go{color:#2d6a4f}

/* ── 3. CATEGORIES ── */
.rcs-categories{background:#f5f5f0}
.rcs-cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.rcs-cat-card{
    display:flex;align-items:center;gap:14px;padding:18px 20px;
    border-radius:12px;border:1px solid #e8e8e3;background:#fff;
    text-decoration:none!important;transition:all .25s;position:relative;overflow:hidden
}
.rcs-cat-card:hover{border-color:#2d6a4f;transform:translateY(-1px);box-shadow:0 4px 16px rgba(0,0,0,.04)}
.rcs-cat-accent{position:absolute;top:0;right:0;width:3px;height:100%}
.rcs-cat-icon{
    width:48px;height:48px;min-width:48px;display:flex;align-items:center;justify-content:center;
    border-radius:12px;flex-shrink:0
}
.rcs-cat-icon svg{width:26px;height:26px;stroke:currentColor}
.rcs-cat-info{flex:1;min-width:0}
.rcs-cat-info h3{font-size:15px;font-weight:700;color:#1a3c2a;margin:0 0 2px}
.rcs-cat-info p{font-size:12px;color:#888;margin:0;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rcs-cat-badge{display:inline-block;font-size:10px;font-weight:700;color:#2d6a4f;background:rgba(45,106,79,.07);padding:2px 8px;border-radius:10px;margin-top:4px}
.rcs-cat-arrow{color:#d4a843;flex-shrink:0;opacity:.5;transition:opacity .2s}
.rcs-cat-card:hover .rcs-cat-arrow{opacity:1}
.rcs-cat-arrow svg{width:16px;height:16px}

/* ── 4. PRODUCTS / EMPTY STATE ── */
.rcs-products{background:#f5f5f0}
.rcs-empty{text-align:center;padding:56px 24px;background:#fff;border-radius:16px;border:1px solid #e8e8e3}
.rcs-empty-icon{margin:0 auto 16px;color:rgba(45,106,79,.25)}
.rcs-empty-icon svg{width:56px;height:56px;max-width:56px;max-height:56px;stroke:rgba(45,106,79,.25)}
.rcs-empty-title{font-size:22px;font-weight:700;color:#1a3c2a;margin:0 0 8px}
.rcs-empty-desc{font-size:14px;color:#888;margin:0 0 28px;line-height:1.7;max-width:480px;margin-left:auto;margin-right:auto}
.rcs-empty-btns{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

.rcs-btn{
    display:inline-flex;align-items:center;gap:6px;
    padding:11px 22px;border-radius:8px;
    font-family:'Cairo','Tajawal',sans-serif;font-size:13px;font-weight:700;
    text-decoration:none!important;transition:all .3s;cursor:pointer;white-space:nowrap
}
.rcs-btn svg{width:16px;height:16px}
.rcs-btn-gold{background:#d4a843;color:#1a3c2a!important;border:2px solid #d4a843}
.rcs-btn-gold:hover{background:#e0b84d;border-color:#e0b84d;box-shadow:0 4px 16px rgba(212,168,67,.3)}
.rcs-btn-wh{background:#fff;color:#1a3c2a!important;border:2px solid #e8e8e3}
.rcs-btn-wh:hover{border-color:#d4a843;box-shadow:0 4px 12px rgba(0,0,0,.04)}
.rcs-btn-outline{background:transparent;color:#fff!important;border:1.5px solid rgba(255,255,255,.25)}
.rcs-btn-outline:hover{border-color:#d4a843;color:#d4a843!important}

/* ── 5. ASSISTANT ── */
.rcs-assistant{background:linear-gradient(135deg,#1a3c2a,#2d6a4f);padding:0}
.rcs-asst-inner{
    display:flex;align-items:center;justify-content:space-between;gap:24px;
    padding:32px 0;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:18px;font-weight:700;margin:0 0 6px}
.rcs-asst-title svg{stroke:#d4a843;width:22px;height:22px;max-width:22px;max-height:22px}
.rcs-asst-desc{color:rgba(255,255,255,.65);font-size:13px;margin:0;line-height:1.6}
.rcs-asst-btns{display:flex;gap:10px;flex-wrap:wrap}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px){
    .rcs-entry-grid{grid-template-columns:repeat(2,1fr)}
    .rcs-cat-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
    .rcs-hero{padding:22px 0 26px}
    .rcs-hero-title{font-size:26px}
    .rcs-hero-desc{font-size:13px}
    .rcs-search{max-width:100%}
    .rcs-entry-grid{grid-template-columns:1fr;gap:10px}
    .rcs-entry-card{padding:16px}
    .rcs-sec{padding:28px 0}
    .rcs-h2{font-size:18px}
    .rcs-asst-inner{flex-direction:column;text-align:center;padding:24px 0}
    .rcs-asst-btns{justify-content:center}
    .rcs-empty{padding:36px 16px}
}
@media(max-width:480px){
    .rcs-wrap{padding:0 16px}
    .rcs-hero-title{font-size:22px}
    .rcs-asst-btns{flex-direction:column;align-items:stretch}
    .rcs-btn{justify-content:center;width:100%}
    .rcs-empty-btns{flex-direction:column;align-items:center}
    .rcs-empty-btns .rcs-btn{width:100%}
}


/* ── 6-COLUMN PRODUCT GRID (24 PRODUCTS PER PAGE) ── */
.woocommerce ul.products,
.woocommerce-page ul.products,
.rcs-products ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 16px !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    list-style: none !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: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e3;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-sizing: border-box;
}

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

.woocommerce ul.products li.product a img,
ul.products li.product a img {
    width: 100% !important;
    height: 165px !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;
}

/* Responsive Grid 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;
    }
}
@media (max-width: 640px) {
    .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;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
 * REMCO — ULTRA-ORGANIZED PIXEL-PERFECT PRODUCT CARDS (6 COLUMNS & GRIDS)
 * ══════════════════════════════════════════════════════════════════════════ */

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

/* 2. Product Card (Equal Height & Clean Alignment) */
.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: #cbd5e1 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-4px) !important;
}

/* 3. Image Frame (Fixed 1:1 Aspect Canvas) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product > a:first-child,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link:first-child {
    position: relative !important;
    width: 100% !important;
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.woocommerce ul.products li.product a img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    transition: transform 0.35s ease !important;
    background: transparent !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.06) !important;
}

/* 4. Content / Summary Wrapper */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important;
}

/* Category Badge */
.woocommerce ul.products li.product .ast-woo-product-category {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    height: 16px !important;
    line-height: 16px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

/* 5. Normalized 2-Line Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product a {
    text-decoration: none !important;
}

/* 6. Aligned Price / RFQ Row */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px dashed #f1f5f9 !important;
    min-height: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1a3c2a !important;
}

.woocommerce ul.products li.product .price .amount {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    color: #64748b !important;
    margin-right: 2px !important;
}

/* RFQ Price Tag */
.woocommerce ul.products li.product .rc-rfq-price-tag {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

/* 7. Action Button Container (Bottom Anchored) */
.woocommerce ul.products li.product .ast-addon-cart-wrap,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.rcs-rfq-loop-btn {
    margin-top: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
    height: 38px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    font-family: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    background: #1a3c2a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 12px !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: #2d6a4f !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

/* RFQ Loop Button */
.woocommerce ul.products li.product a.rcs-rfq-loop-btn {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2) !important;
}

.woocommerce ul.products li.product a.rcs-rfq-loop-btn:hover {
    background: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
}

/* ═══ 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;
    }
}
@media (max-width: 640px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products li.product {
        padding: 10px !important;
    }
    .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
    .woocommerce ul.products li.product > a:first-child {
        height: 135px !important;
        min-height: 135px !important;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        height: 34px !important;
        min-height: 34px !important;
    }
    .woocommerce ul.products li.product .button {
        height: 34px !important;
        min-height: 34px !important;
        font-size: 11.5px !important;
    }
}
