@font-face {
    font-family: "readexpro";
    src: url("../font/readexpro-regular.woff2") format("truetype");
}

:root {
    --bg-page: #ffffff;
    --bg-muted: #f8fafc;
    --bg-card: #ffffff;
    --border-subtle: #e5e7eb;
    --border-strong: #d1d5db;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --primary: #1a4cff;
    --primary-soft: #e0ebff;
    --accent: #f4541d;
    --accent-soft: #ffd7ca;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.06);
    --container-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "readexpro", regular;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
}

body a {
    color: inherit;
    text-decoration: none;
}

body img {
    max-width: 100%;
    display: block;
}

body .page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body .page-shell .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

body .page-shell .top-bar {
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.78rem;
}

body .page-shell .top-bar .top-bar-inner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

body .page-shell .top-bar .top-bar-inner strong {
    color: #f9fafb;
    font-weight: 600;
}

body .page-shell .top-bar .top-bar-inner .highlight {
    color: var(--accent);
    font-weight: 600;
}

body .page-shell header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
}

body .page-shell header .header-main {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

body .page-shell header .header-main .logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

body .page-shell header .header-main .logo-area img {
    height: 50px;
}

body .page-shell header .header-main .logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
    line-height: 1.1;
}

body .page-shell header .header-main .logo-text span:first-child {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body .page-shell header .header-main .logo-text span:last-child {
    font-size: 0.75rem;
    color: var(--text-soft);
}

body .page-shell header .header-main .header-search {
    flex: 1;
    max-width: 520px;
    margin: 0 0.5rem;
}

body .page-shell header .header-main .header-search .search-wrapper {
    position: relative;
}

body .page-shell header .header-main .header-search .search-wrapper .search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.55rem 2.6rem 0.55rem 0.9rem;
    font-size: 0.9rem;
    background: var(--bg-muted);
    color: var(--text-main);
    outline: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body .page-shell header .header-main .header-search .search-wrapper .search-input::placeholder {
    color: var(--text-soft);
}

body .page-shell header .header-main .header-search .search-wrapper .search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

body .page-shell header .header-main .header-search .search-wrapper .search-icon {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-soft);
    text-decoration: none;
    border: none;
    background: none;
}

body .page-shell header .header-main .header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

body .page-shell header .header-main .header-actions .header-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

body .page-shell header .header-main .header-actions .header-link:hover {
    color: var(--primary);
}

body .page-shell header .header-main .header-actions .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 160ms ease, background 160ms ease;
}

body .page-shell header .header-main .header-actions .icon-btn i {
    font-size: 0.95rem;
    color: var(--text-soft);
}

body .page-shell header .header-main .header-actions .icon-btn:hover {
    border-color: var(--primary);
    background: #f9fafb;
}

body .page-shell header .header-main .header-actions .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0 4px;
    line-height: 1.3;
    font-weight: 600;
}

body .page-shell header .nav-tabs {
    border-bottom: 1px solid var(--border-subtle);
    background: rgb(15, 23, 42);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body .page-shell header .nav-tabs .nav-tabs-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 52px;
    padding: 0;
    flex-wrap: nowrap;
}

body .page-shell header .nav-tabs .nav-tabs-inner::-webkit-scrollbar {
    display: none;
}

body .page-shell header .nav-tabs .nav-tabs-inner .nav-pill {
    border-radius: 999px;
    border: 1px solid rgb(15, 23, 42);
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    color: #ffffff;
    background: rgb(15, 23, 42);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

body .page-shell header .nav-tabs .nav-tabs-inner .nav-pill:hover {
    border-color: var(--accent);
    color: #ffffff;
}

body .page-shell header .nav-tabs .nav-tabs-inner .nav-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: transparent;
}

body .page-shell header .nav-tabs .nav-tabs-inner .nav-pill.primary {
    margin-left: auto;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 500;
}

body .page-shell main {
    flex: 1;
    padding: 0px 10px;
}

body .page-shell main .main-layout {
    padding: 2rem 0 3rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

body .page-shell main .main-layout .sidebar {
    width: 260px;
    flex-shrink: 0;
}

body .page-shell main .main-layout .sidebar .sidebar-toggle-btn {
    display: none;
}

body .page-shell main .main-layout .sidebar .sidebar-card {
    background: rgb(15, 23, 42);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-soft);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section + .sidebar-section {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border-subtle);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.4rem 0.1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 140ms ease, color 140ms ease;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item:hover {
    color: var(--text-soft);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item .sidebar-item-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item .sidebar-item-label .sidebar-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--border-strong);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item.active .sidebar-item-label .sidebar-dot {
    background: var(--accent);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-item.active {
    color: #ffffff;
    font-weight: 500;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-count {
    font-size: 0.78rem;
    color: var(--text-soft);
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-promo {
    margin-top: 0.4rem;
    background: #fefce8;
    border-radius: var(--radius-md);
    border: 1px solid #facc15;
    padding: 0.8rem 0.9rem;
    font-size: 0.8rem;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-promo .sidebar-promo-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

body .page-shell main .main-layout .sidebar .sidebar-card .sidebar-section .sidebar-promo .badge {
    position: static;
    background: #111827;
    color: #fefce8;
    padding: 0.1rem 0.5rem;
    margin-left: 0.3rem;
}

body .page-shell main .main-layout .content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/************** CONTENT **************/
body .page-shell main .main-layout .content .auth-shell {
    min-height: calc(100vh - 70px - 34px - 120px); /* تقريباً: الشاشة ناقص الهيدر والفوتر */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

body .page-shell main .main-layout .content .auth-shell .auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Header */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-header {
    margin-bottom: 1.1rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-header .auth-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-header .auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Form */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-field label {
    color: var(--text-soft);
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-field input {
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-muted);
    color: var(--text-main);
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-field input::placeholder {
    color: var(--text-soft);
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-field input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

/* Row: remember + forgot */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.1rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-row .auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--text-muted);
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-row .auth-checkbox input {
    width: 14px;
    height: 14px;
}

/* Submit button */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-form .auth-submit-btn {
    width: 100%;
    margin-top: 0.2rem;
}

/* Footer */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-footer {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* Links */

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.82rem;
}

body .page-shell main .main-layout .content .auth-shell .auth-card .auth-link:hover {
    text-decoration: none;
}

/* Button base (لو مش معرف من قبل في هذا الملف) */

body .page-shell main .main-layout .content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    background: var(--primary);
    color: #ffffff;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

body .page-shell main .main-layout .content .btn-primary:hover {
    background: #1d4ed8;
}

/* Responsive */

@media (max-width: 640px) {
    body .page-shell main .main-layout .content .auth-shell {
        padding: 1.5rem 0.5rem 2rem;
    }

    body .page-shell main .main-layout .content .auth-shell .auth-card {
        padding: 1.4rem 1.2rem;
    }
}

body .page-shell footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    background: var(--bg-muted);
    font-size: 0.85rem;
    padding: 0px 10px;
}

body .page-shell footer .footer-inner {
    padding: 2rem 0 1.8rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

body .page-shell footer .footer-inner .footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

body .page-shell footer .footer-inner .footer-link {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

body .page-shell footer .footer-inner .footer-link:hover {
    color: var(--text-main);
}

body .page-shell footer .footer-inner .footer-country-select {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    background: #ffffff;
}

body .page-shell footer .footer-inner .footer-country-select .flag-dot {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    background: linear-gradient(90deg, #009246 0 33%, #ffffff 33% 66%, #ce2b37 66% 100%);
}

body .page-shell footer .footer-inner .footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

body .page-shell footer .footer-inner .footer-social .social-circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #ffffff;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

body .page-shell footer .footer-inner .footer-social .social-circle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f9fafb;
}

body .page-shell footer .footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 0.9rem 0;
    font-size: 0.78rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

body .page-shell footer .footer-bottom a {
    color: var(--text-soft);
}

body .page-shell footer .footer-bottom a:hover {
    color: var(--text-main);
}

body .floating-wa-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    text-decoration: none;
    
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

body .floating-wa-btn i {
    font-size: 1.4rem;
    line-height: 1;
}

body .floating-wa-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

body .page-shell .mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    body .page-shell .container {
        padding: 10px 1.1rem;
    }

    body .page-shell header .header-main {
        height: auto;
        padding: 0.9rem 10px;
        flex-wrap: wrap;
    }

    body .page-shell header .header-main .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0.3rem 0 0;
    }

    body .page-shell main .main-layout {
        padding: 10px 0px;
        flex-direction: column;
        gap: 10px;
    }

    body .page-shell main .main-layout .sidebar {
        width: 100%;
    }

    body .page-shell main .main-layout .sidebar .sidebar-card {
        display: none;
    }

    body .page-shell main .main-layout .sidebar .sidebar-card.is-open {
        display: block;
        margin-top: 0.75rem;
    }

    body .page-shell main .main-layout .sidebar .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        border-radius: 999px;
        border: 1px solid var(--border-subtle);
        padding: 0.35rem 0.8rem;
        background: #ffffff;
        font-size: 0.78rem;
        color: var(--text-muted);
        cursor: pointer;
        transition: background 140ms ease, border-color 140ms ease;
    }

    body .page-shell main .main-layout .sidebar .sidebar-toggle-btn:hover {
        background: var(--bg-muted);
        border-color: var(--primary);
    }

    body .page-shell main .main-layout .sidebar .sidebar-toggle-btn i {
        font-size: 0.85rem;
    }

    /************** CONTENT **************/

    body .page-shell header .header-main .header-actions .header-link {
        display: none;
    }

    body .page-shell header .nav-tabs .nav-tabs-inner {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    body .page-shell .container {
        padding: 10px 1rem;
    }

    body .page-shell .top-bar .top-bar-inner {
        height: auto;
        padding: 0.35rem 0.4rem;
        flex-wrap: wrap;
    }

    body .page-shell header .header-main {
        padding: 0.4rem 10px;
        gap: 0.75rem;
        align-items: center;
    }

    body .page-shell header .header-main .logo-area img {
        height: 32px;
    }

    body .page-shell header .header-main .header-actions {
        gap: 0.55rem;
        margin-left: auto;
    }

    body .page-shell header .header-main .header-actions .icon-btn {
        width: 32px;
        height: 32px;
    }

    body .page-shell .mobile-only {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body .page-shell header .nav-tabs .nav-tabs-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body .page-shell header .nav-tabs .nav-tabs-inner::-webkit-scrollbar {
        display: none;
    }

    /************** CONTENT **************/
    
    body .page-shell footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.3rem;
    }
}

@media (max-width: 640px) {
    body .page-shell .container {
        padding: 10px 0.9rem;
    }

    body .page-shell header .header-main {
        flex-wrap: wrap;
        align-items: center;
    }

    body .page-shell header .header-main .logo-area {
        flex: 1 1 auto;
    }

    body .page-shell header .header-main .header-actions {
        width: auto;
        margin-left: 0;
    }

    body .page-shell header .header-main .header-search {
        order: 3;
        margin-top: 0.4rem;
    }

    /************** CONTENT **************/

    body .page-shell footer .footer-inner {
        grid-template-columns: 1fr;
    }

    body .page-shell footer .footer-bottom {
        flex-wrap: wrap;
        text-align: center;
    }
    body .page-shell .floating-wa-btn {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }

    body .page-shell .floating-wa-btn i {
        font-size: 1.25rem;
    }
}

@media (max-width: 380px) {
    body .page-shell .container {
        padding: 10px 0.75rem;
    }

    body .page-shell .top-bar {
        font-size: 0.72rem;
    }

    body .page-shell header .header-main .header-search .search-wrapper .search-input {
        font-size: 0.82rem;
        padding: 0.5rem 2.3rem 0.5rem 0.8rem;
    }

    
    /************** CONTENT **************/

    body .page-shell main .main-layout .content .products-grid .product-card {
        padding: 0.8rem;
    }

    body .page-shell main .main-layout .content .products-grid .product-card .product-title {
        font-size: 0.9rem;
    }

    body .page-shell main .main-layout .content .products-grid .product-card .product-meta {
        font-size: 0.78rem;
    }

    body .page-shell main .main-layout .content .products-grid .product-card .product-footer .btn-primary,
    body .page-shell main .main-layout .content .products-grid .product-card .product-footer .btn-ghost {
        font-size: 13px;
        padding: 0.4rem 0.7rem;
    }
}
