/**
 * FILE: assets/css/style.css
 * Matjar El Kotobia - PRD Naming Standardized UI
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --carbon-black: #171711;
    --alice-blue: #eaf6ff;
    /* --brand-color: #670d0c; */
    --brand-color: #960c0c;
    --princeton-orange: #FF6C0C;
    --medium-jungle: #089b43;
    --deep-crimson: #90141e;
    --white: #ffffff;
    --gray-light: #fcfcfc;
    --header-h: 70px;
    
    /* PRD Mapped Variables */
    --color-primary        : var(--medium-jungle);
    --color-primary-dark   : #067a35;
    --color-primary-light  : var(--alice-blue);
    --color-accent-brand  : #670d0c;
    --color-accent-red     : var(--deep-crimson);
    --color-text-dark      : var(--carbon-black);
    --color-whatsapp       : #25D366;
    --color-white          : #FFFFFF;
    --color-gray-light     : #F5F5F5;
    --color-gray-medium    : #9E9E9E;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--gray-light);
    color: var(--carbon-black);
    -webkit-tap-highlight-color: transparent;
    font-size: 0.95rem;
    overflow-x: hidden;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
}

/* --- Global Layout --- */
.hri-navbar {
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hri-btn-brand{
    background: var(--brand-color);
    color: var(--white);
}

#hri-main-wrapper {
    transition: filter 0.4s ease, transform 0.4s ease;
    min-height: calc(100vh - var(--header-h));
}

body.is-processing #hri-main-wrapper {
    filter: blur(8px) brightness(0.9);
    transform: scale(0.98);
    pointer-events: none;
}

/* --- 1. HERO HOME LOADER (Initial Scan) --- */
#hri-home-loader {
    position: fixed; inset: 0; background: var(--white); z-index: 20000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.barcode-wrap { text-align: center; position: relative; }
.laser {
    position: absolute; top: 0; left: -10%; width: 120%; height: 3px;
    background: var(--brand-color); box-shadow: 0 0 10px var(--brand-color);
    animation: scan-loop 0.8s infinite alternate ease-in-out;
}
@keyframes scan-loop { from { top: 0%; } to { top: 100%; } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* --- 2. MICRO DATA LOADER (Processing State) --- */
#hri-data-handler {
    position: fixed; inset: 0; z-index: 11000;
    display: none; align-items: center; justify-content: center;
    pointer-events: none;
}
#hri-data-handler.is-active { display: flex; }

.loading-center-icon {
    background: var(--white); width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); color: var(--brand-color);
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.pulse-ring {
    position: absolute; width: 80px; height: 80px;
    border: 2px solid var(--brand-color); border-radius: 50%;
    animation: ring-pulse 1s infinite;
}
@keyframes ring-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

/* Top Progress Bar */
#hri-top-bar {
    position: fixed; top: 0; left: 0; height: 4px; width: 0%;
    background: var(--brand-color); z-index: 12000;
    transition: width 0.4s ease; opacity: 0;
}
#hri-top-bar.is-visible { opacity: 1; }

/* --- 3. SEARCH EXPERIENCE --- */
.hri-search-trigger {
    background: #f4f4f4; border-radius: 12px; display: flex; align-items: center;
    padding: 10px 15px; gap: 10px; color: #888; cursor: pointer; flex-grow: 1;
    max-width: 500px; transition: background 0.2s;
}
.hri-search-trigger:hover { background: #eee; }

#hri-search-overlay {
    position: fixed; inset: 0; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 15000; display: none; flex-direction: column; padding: 20px;
    animation: fadeIn 0.3s ease;
}
#hri-search-overlay.is-active { display: flex; }

.search-top { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.full-search-input { width: 100%; border: none; background: transparent; font-size: 24px; font-weight: 800; outline: none; color: var(--carbon-black); padding-right: 40px; }
[dir="rtl"] .full-search-input { padding-right: 0; padding-left: 40px; }
.search-action-btn { position: absolute; right: 0; cursor: pointer; color: var(--brand-color); transition: transform 0.2s; }
[dir="rtl"] .search-action-btn { right: auto; left: 0; }
.search-action-btn:hover { transform: scale(1.1); }
.close-search { cursor: pointer; color: var(--carbon-black); }

.results-container { flex-grow: 1; overflow-y: auto; padding-bottom: 40px; }
.result-item {
    display: flex; align-items: center; gap: 15px; padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); animation: slideUp 0.4s ease forwards;
    opacity: 0; cursor: pointer; text-decoration: none; color: inherit;
}
.result-img { width: 55px; height: 55px; background: var(--alice-blue); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.result-img img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.result-info b { display: block; font-size: 16px; margin-bottom: 2px; }
.result-info span { font-size: 13px; color: var(--brand-color); font-weight: 700; }

#hri-search-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; }
#hri-search-loader.is-visible { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes hri-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin { animation: hri-spin 1s linear infinite; }

/* --- Layout Components --- */
.icon-trigger { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: none; padding: 0; color: var(--carbon-black); }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--carbon-black); display: flex; align-items: center; }
.logo span { color: var(--brand-color); }

/* Drawer */
.hri-drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1100; display: none; }
.hri-drawer { position: fixed; top: 0; left: -300px; width: 300px; height: 100%; background: var(--white); z-index: 1200; box-shadow: 15px 0 30px rgba(0,0,0,0.1); transition: left 0.3s ease; overflow-y: auto; }
body.drawer-open { overflow: hidden; }
body.drawer-open .hri-drawer-overlay { display: block; }
body.drawer-open .hri-drawer { left: 0; }
[dir="rtl"] .hri-drawer { left: auto; right: -300px; transition: right 0.3s ease; }
[dir="rtl"] body.drawer-open .hri-drawer { right: 0; }

.hri-drawer-header { height: var(--header-h); border-bottom: 1px solid #f0f0f0; padding: 0 15px; display: flex; align-items: center; gap: 10px; }
.hri-drawer-content { padding: 20px; }
.hri-drawer-section-title { font-size: 11px; color: #999; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.hri-drawer-item { display: flex; align-items: center; padding: 12px 0; text-decoration: none; color: inherit; font-weight: 600; border-bottom: 1px solid #f9f9f9; }
.hri-drawer-item i { margin-right: 15px; width: 20px; color: var(--brand-color); font-size: 1.1rem; }
[dir="rtl"] .hri-drawer-item i { margin-right: 0; margin-left: 15px; }

/* --- Category Bar --- */
.hri-category-bar { display: flex; gap: 20px; padding: 20px 0; overflow-x: auto; scrollbar-width: none; }
.hri-category-bar::-webkit-scrollbar { display: none; }
.hri-category-bar__item { text-align: center; text-decoration: none; min-width: 80px; display: flex; flex-direction: column; align-items: center; }
.hri-category-bar__icon { width: 70px; height: 70px; border-radius: 40%; box-shadow: 0 10px 20px rgba(0,0,0,0.05); background: var(--color-accent-brand); margin-bottom: 8px; border: 2px solid transparent; transition: 0.2s; display: flex; align-items: center; justify-content: center; overflow: hidden; color:white; font-size: 22px;}
.hri-category-bar__icon img { width: 100%; height: 100%; object-fit: cover; }
.hri-category-bar__item:hover .hri-category-bar__icon { border-color: var(--brand-color); transform: translateY(-3px); }
.hri-category-bar__label { font-size: 12px; font-weight: 700; color: var(--carbon-black); }

/* --- Product Cards --- */
.hri-product-card { background: var(--white); border-radius: 18px; padding: 12px; border: 1px solid #f0f0f0; position: relative; transition: 0.2s; height: 100%; display: flex; flex-direction: column; }
.hri-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.hri-product-card__image { width: 100%; aspect-ratio: 1/1; background: #f9f9f9; border-radius: 12px; margin-bottom: 10px; overflow: hidden; display: block; }
.hri-product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hri-product-card__content { flex-grow: 1; display: flex; flex-direction: column; }
.hri-product-card__title { font-size: 14px; font-weight: 600; margin: 0 0 5px 0; height: 38px; overflow: hidden; color: var(--carbon-black); text-decoration: none; line-height: 1.4; display: block; }
.hri-product-card__price { font-weight: 700; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.hri-product-card__price .original { font-size: 11px; color: #dc3545; text-decoration: line-through; font-weight: 700; }
.hri-product-card__actions { height: 40px; position: relative; overflow: hidden; border-radius: 10px; margin-top: auto; }
.hri-product-card__btn-cart { width: 100%; height: 100%; background: var(--brand-color); color: white; border: none; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.3s; }
.hri-product-card__qty-box { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--alice-blue); display: flex; align-items: center; justify-content: space-between; transform: translateY(100%); transition: 0.3s ease; }
.hri-product-card.is-active .hri-product-card__qty-box { transform: translateY(0); }
.hri-product-card.is-active .hri-product-card__btn-cart { transform: translateY(-100%); }
.qty-btn { width: 40px; height: 100%; border: none; background: transparent; cursor: pointer; font-weight: 800; color: var(--carbon-black); font-size: 18px; }
.qty-num { font-weight: 800; color: var(--carbon-black); }
.hri-product-card__badge { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; z-index: 10; }
.hri-product-card__badge--sale { background: #dc3545; color: white; }
.hri-product-card__badge--featured { background: var(--princeton-orange); color: white; }

/* Product Detail Specifics */
.hri-product-img-container { width: 100%; aspect-ratio: 1/0.8; background: #f8f9fa; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.hri-product-img-container img { width: 100%; height: 100%; object-fit: contain; }
.hri-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 2100; }
.hri-lightbox.open { display: flex; }
.hri-lightbox img { max-width: 90%; max-height: 80%; border-radius: 8px; }
.hri-lightbox__close { position: absolute; top: 20px; right: 20px; color: white; cursor: pointer; }
.hri-detail-sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 15px 20px; box-sizing: border-box; display: flex; gap: 12px; box-shadow: 0 -10px 30px rgba(0,0,0,0.08); z-index: 1000; }
.hri-btn-call { width: 54px; height: 54px; background: var(--alice-blue); color: var(--carbon-black); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.2s; }
.hri-detail-action-wrapper { flex-grow: 1; height: 54px; position: relative; overflow: hidden; border-radius: 12px; }
.hri-btn-acheter { width: 100%; height: 100%; background: var(--brand-color); color: white; border: none; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform 0.3s; }
.hri-detail-qty-controls { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--medium-jungle); color: white; display: flex; align-items: center; justify-content: space-between; transform: translateY(100%); transition: 0.3s ease; }
.hri-detail-action-wrapper.is-active .hri-btn-acheter { transform: translateY(-100%); }
.hri-detail-action-wrapper.is-active .hri-detail-qty-controls { transform: translateY(0); }
.hri-detail-qty-btn { width: 50px; height: 100%; border: none; background: rgba(0,0,0,0.1); color: white; font-size: 22px; font-weight: 800; cursor: pointer; }
.hri-detail-qty-num { font-weight: 800; }

/* Sections */
.hri-section-header { margin: 30px 0 15px; display: flex; justify-content: space-between; align-items: center; }
.hri-section-title { font-weight: 800; font-size: 20px; color: var(--carbon-black); margin: 0; }
.view-all { font-size: 13px; color: var(--brand-color); text-decoration: none; font-weight: 700; }

/* Hero Banner (responsive) */
.hri-hero-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 240px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hri-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hri-hero-banner__content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }

@media (max-width: 600px) {
    .hri-hero-banner {
        max-height: 220px;
        aspect-ratio: 2 / 1;
    }
}

/* Services Grid - New Design */
.hri-services-wrapper {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 15px;
}

.hri-services-header {
    text-align: center;
    margin-bottom: 40px;
}

.hri-services-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--carbon-black);
    letter-spacing: -0.5px;
}

.hri-services-badge {
    display: inline-block;
    background: rgba(103, 13, 12, 0.1);
    color: var(--brand-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hri-services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.hri-service-card-new {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.hri-service-card-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(103, 13, 12,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
}

.hri-service-card-new:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.07);
    border-color: rgba(103, 13, 12,0.2);
}

.hri-service-card-new:hover::before {
    opacity: 1;
}

.hri-service-icon {
    width: 70px;
    height: 70px;
    background: var(--alice-blue);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--carbon-black);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.hri-service-icon i {
    font-size: 1.5rem;
}

.hri-service-card-new:hover .hri-service-icon {
    background: var(--brand-color);
    color: var(--white);
    border-radius: 50%;
    transform: rotate(10deg);
}

.hri-service-info h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--carbon-black);
}

.hri-service-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .hri-service-card-new {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 25px;
    }
    .hri-service-icon {
        margin: 0 20px 0 0;
        min-width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
}

/* RTL Support */
[dir="rtl"] .hri-service-card-new {
    text-align: center;
}
@media (max-width: 600px) {
    [dir="rtl"] .hri-service-card-new {
        text-align: right;
    }
    [dir="rtl"] .hri-service-icon {
        margin: 0 0 0 20px;
    }
}


/* Footer */
.hri-footer { background: #171711; color: var(--white); padding: 50px 0 30px; margin-top: 50px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #ccc; text-decoration: none; transition: 0.2s; font-size: 0.85rem; }
.footer-links a:hover { color: var(--brand-color); }
.footer h6 { color: var(--white); font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.footer-contact li { display: flex; align-items: flex-start; margin-bottom: 10px; font-size: 0.85rem; color: #ccc; }
.footer-contact i { margin-top: 3px; }

/* Utilities */
.hri-flash-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; background: var(--medium-jungle); color: white; padding: 12px; font-weight: 700; text-align: center; display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.badge-cart { background: var(--brand-color); color: white; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; position: absolute; top: -5px; right: -5px; font-weight: 800; }
.bottom-spacer { height: 80px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* RTL Fixes */
/* --- PRD Section 6.4: Cart Experience (New Design) --- */
.hri-cart-delivery-card {
    background: white; margin: 15px; padding: 15px; border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.hri-cart-progress-track { height: 6px; background: var(--alice-blue); border-radius: 10px; margin: 10px 0; }
.hri-cart-progress-fill { height: 100%; background: var(--medium-jungle); border-radius: 10px; transition: 0.5s; }

.hri-cart-item {
    background: white; margin: 0 15px 12px; padding: 12px; border-radius: 16px;
    display: flex; gap: 12px; align-items: center; border: 1px solid transparent; transition: 0.2s;
}
.hri-cart-item:hover { border-color: rgba(0,0,0,0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.hri-cart-item__thumb { min-width: 70px; width: 70px; height: 70px; background: var(--gray-light); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hri-cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.hri-cart-item__details { flex-grow: 1; }
.hri-cart-item__name { font-weight: 800; font-size: 14px; margin-bottom: 4px; display: block; color: var(--carbon-black); text-decoration: none; }
.hri-cart-item__price { color: var(--princeton-orange); font-weight: 800; font-size: 15px; }

.hri-cart-qty-picker {
    display: flex; align-items: center; background: var(--alice-blue);
    border-radius: 10px; padding: 3px; gap: 12px;
}
.hri-cart-qty-btn {
    width: 30px; height: 30px; border: none; background: white;
    border-radius: 8px; font-weight: 800; cursor: pointer; color: var(--carbon-black);
    display: flex; align-items: center; justify-content: center;
}

.hri-cart-footer {
    position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 15px 20px; box-sizing: border-box; display: flex;
    align-items: center; justify-content: space-between; border-top: 1px solid #eee;
    z-index: 900;
}
.hri-cart-btn-order {
    background: var(--brand-color); color: white; border: none;
    padding: 14px 10px; border-radius: 14px; font-weight: 800;
    box-shadow: 0 5px 15px rgba(103, 13, 12,0.3); text-decoration: none;
}
/* --- PRD Section 6.5: Profile & Orders (New Design) --- */
.hri-profile-hero {
    background: var(--white); padding: 40px 20px 30px; text-align: center;
    border-bottom: 1px solid #eee; border-radius: 0 0 30px 30px; margin-bottom: 25px;
}
.hri-avatar-container {
    width: 100px; height: 100px; background: var(--alice-blue);
    border-radius: 35% 65% 60% 40% / 40% 35% 65% 60%; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-color); font-weight: 800; font-size: 32px;
    position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.hri-summary-card {
    background: white; border-radius: 12px; overflow: hidden;
    margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); border: 1px solid #eee;
}
.hri-summary-header {
    background: #f8f8f8; padding: 12px 20px; font-size: 13px; font-weight: 800;
    color: #717171; text-transform: uppercase; border-bottom: 1px solid #eee; letter-spacing: 0.5px;
}
[dir="rtl"] .hri-summary-header { text-align: right; }

.hri-info-row { display: flex; flex-direction: column; padding: 15px 20px; border-bottom: 1px solid #f9f9f9; }
.hri-info-row:last-child { border-bottom: none; }
.hri-row-label { font-size: 11px; font-weight: 800; color: #717171; text-transform: uppercase; margin-bottom: 4px; }
.hri-row-input { border: none; padding: 0; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--carbon-black); width: 100%; outline: none; background: transparent; }
[dir="rtl"] .hri-info-row { text-align: right; }

.hri-express-widget { background: #fff9f2; padding: 15px 20px; border-top: 1px solid #ffe8d1; }
.hri-express-text { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.hri-express-text span { color: var(--brand-color); }
.hri-brand-footer { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 12px; font-style: italic; }

/* Orders List */
.hri-tabs-container { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.hri-tabs-container::-webkit-scrollbar { display: none; }
.hri-tab-item { padding: 10px 20px; border-radius: 12px; background: white; font-size: 13px; font-weight: 800; color: #717171; white-space: nowrap; border: 1px solid #eee; cursor: pointer; }
.hri-tab-item.is-active { background: var(--carbon-black); color: white; border-color: var(--carbon-black); }

.hri-order-card { background: white; border-radius: 20px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #eee; }
.hri-order-header { padding: 15px 20px; border-bottom: 1px solid #f9f9f9; display: flex; justify-content: space-between; align-items: center; }
.hri-order-id { font-size: 12px; font-weight: 800; color: #717171; }
.hri-order-date { font-size: 12px; color: #717171; }
.hri-order-body { padding: 15px 20px; display: flex; gap: 15px; align-items: center; }
.hri-item-stack { display: flex; position: relative; width: 60px; height: 60px; }
.hri-item-thumb { width: 50px; height: 50px; background: var(--alice-blue); border-radius: 12px; border: 2px solid white; display: flex; align-items: center; justify-content: center; }
.hri-stack-count { position: absolute; bottom: 0; right: 0; background: var(--carbon-black); color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; }
[dir="rtl"] .hri-stack-count { right: auto; left: 0; }

.hri-order-info { flex-grow: 1; }
.hri-order-total { font-weight: 900; font-size: 16px; display: block; }
.hri-order-items-summary { font-size: 12px; color: #717171; }
.hri-status-badge { font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.hri-status-delivered { background: #eefdf3; color: var(--medium-jungle); }
.hri-status-pending { background: #eaf6ff; color: #007aff; }
.hri-status-shipped { background: #fff9f2; color: var(--brand-color); }
.hri-status-cancelled { background: #fff5f5; color: var(--deep-crimson); }

.hri-order-footer { padding: 12px 20px; background: #fafafa; display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }
.hri-details-link { font-size: 13px; font-weight: 800; color: var(--brand-color); display: flex; align-items: center; gap: 4px; text-decoration: none; }

.hri-action-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; padding: 20px; box-sizing: border-box;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    display: flex; justify-content: center; z-index: 1000;
}
.hri-btn-save {
    background: var(--brand-color); color: white; border: none;
    width: 100%; max-width: 600px; padding: 16px; border-radius: 14px;
    font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(103, 13, 12,0.25);
    cursor: pointer; transition: transform 0.2s, opacity 0.2s;
}
.hri-btn-save:active { transform: scale(0.98); opacity: 0.9; }

/* --- Order Details Page --- */
.hri-detail-header {
    background: var(--white);
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hri-back-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: var(--carbon-black);
    text-decoration: none;
    transition: background 0.2s;
}
.hri-back-btn:hover { background: #f1f5f9; }

.hri-status-hero {
    background: var(--carbon-black);
    color: white;
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.hri-status-hero::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: var(--princeton-orange);
    filter: blur(50px);
    opacity: 0.3;
}

.hri-status-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 35% 65% 60% 40% / 40% 35% 65% 60%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    color: var(--princeton-orange);
}

.hri-status-label { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.hri-status-time { font-size: 13px; opacity: 0.7; font-weight: 500; }

.hri-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
}
.hri-product-item:last-child { border-bottom: none; }

.hri-product-img-qty {
    width: 55px; height: 55px;
    background: var(--alice-blue);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--princeton-orange);
    font-weight: 800;
}

.hri-product-info { flex: 1; }
.hri-product-name { font-weight: 700; font-size: 14px; display: block; }
.hri-product-meta { font-size: 12px; color: var(--color-gray-medium); font-weight: 500; }
.hri-product-price { font-weight: 800; font-size: 14px; color: var(--carbon-black); }

.hri-info-content { padding: 20px; }
.hri-info-row { display: flex; gap: 12px; margin-bottom: 15px; }
.hri-info-row:last-child { margin-bottom: 0; }
.hri-info-icon { color: var(--brand-color); flex-shrink: 0; }
.hri-info-text b { display: block; font-size: 11px; text-transform: uppercase; color: var(--color-gray-medium); }
.hri-info-text p { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; }

.hri-summary-box { padding: 20px; background: #fffdfa; }
.hri-summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.hri-summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hri-total-amount { font-size: 22px; font-weight: 900; color: var(--princeton-orange); }

.hri-express-badge-dark {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-style: italic;
    font-size: 12px;
    padding: 15px 20px;
    background: var(--carbon-black);
    color: white;
    justify-content: center;
}

.pagination {
  --bs-pagination-color: var(--brand-color);
  --bs-pagination-hover-color: var(--brand-color);
  --bs-pagination-active-color: var(--alice-blue);
  --bs-pagination-active-bg: var(--brand-color);
  --bs-pagination-active-border-color: var(--brand-color);
  --bs-pagination-focus-color: var(--brand-color);
  --bs-pagination-focus-box-shadow: 0 0 0 0.2px var(--bs-pagination-focus-color);
  
}   