/* ==========================================================================
   Al Jamal – Storefront design layer (visual only)
   Loaded LAST in layouts/user-home & layouts/user-inner. Delete the <link> to roll back.
   Brand: font Inter; primary #07509d; neutrals #222/#444/#555/#777/#eee/#f8f9fa/#fff; alert #da0006
   ========================================================================== */
:root {
    --aj-primary: #07509d;
    --aj-primary-dark: #053a73;                       /* shade of primary */
    --aj-primary-soft: rgba(7, 80, 157, .08);         /* tint of primary */
    --aj-primary-ring: rgba(7, 80, 157, .18);
    --aj-ink: #222222;
    --aj-text: #444444;
    --aj-muted: #777777;
    --aj-line: #eeeeee;
    --aj-bg: #f8f9fa;
    --aj-white: #ffffff;
    --aj-danger: #da0006;
    --aj-radius: 12px;
    --aj-radius-sm: 8px;
    --aj-shadow: 0 2px 14px rgba(34, 34, 34, .06);
    --aj-shadow-lg: 0 10px 30px rgba(34, 34, 34, .10);
    --aj-ease: .2s ease;
}

/* ---------- Base typography ---------- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--aj-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--aj-ink);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
a { transition: color var(--aj-ease); }
a:hover { color: var(--aj-primary); }
::selection { background: var(--aj-primary); color: #fff; }

.section-space-p { padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 767px) { .section-space-p { padding-top: 36px; padding-bottom: 36px; } }

/* ---------- Buttons ---------- */
.btn,
.btn-primary,
.btn-lg,
.btn-sm {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    border-radius: var(--aj-radius-sm);
    transition: background-color var(--aj-ease), border-color var(--aj-ease), color var(--aj-ease), box-shadow var(--aj-ease), transform var(--aj-ease);
}
.btn-primary,
.ec-check-order-btn .btn,
.btn-product-detail,
.btn-product-details {
    background-color: var(--aj-primary);
    border: 1px solid var(--aj-primary);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-product-detail:hover,
.btn-product-details:hover {
    background-color: var(--aj-primary-dark);
    border-color: var(--aj-primary-dark);
    color: #fff;
    box-shadow: 0 6px 16px var(--aj-primary-ring);
}
.btn:active { transform: translateY(1px); }
.btn:focus, .btn:focus-visible { box-shadow: 0 0 0 3px var(--aj-primary-ring); outline: 0; }
.btn-red, .btn-danger { border-radius: var(--aj-radius-sm); }
.btn-track { border-radius: var(--aj-radius-sm); }

/* ---------- Forms ---------- */
.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"] {
    font-family: 'Inter', sans-serif;
}
.form-control,
.form-select,
.ec-bill-wrap input,
.ec-bill-wrap select,
.ec-bill-wrap textarea,
.ec-login-wrap input[type="text"],
.ec-login-wrap input[type="email"],
.ec-login-wrap input[type="password"],
.ec-register-wrapper input {
    border: 1px solid #dfe3e8;
    border-radius: var(--aj-radius-sm);
    background-color: var(--aj-white);
    color: var(--aj-ink);
    font-size: 14px;
    padding: 10px 14px;
    min-height: 44px;
    transition: border-color var(--aj-ease), box-shadow var(--aj-ease);
}
textarea.form-control, .ec-bill-wrap textarea { min-height: 110px; }
.form-control:focus,
.form-select:focus,
.ec-bill-wrap input:focus,
.ec-bill-wrap select:focus,
.ec-bill-wrap textarea:focus,
.ec-login-wrap input:focus {
    border-color: var(--aj-primary);
    box-shadow: 0 0 0 3px var(--aj-primary-ring);
    outline: 0;
}
label { font-weight: 500; color: var(--aj-ink); font-size: 14px; }
.is-invalid, .form-control.is-invalid { border-color: var(--aj-danger); }
.invalid-feedback, .text-danger, .error { color: var(--aj-danger); font-size: 13px; }

/* ---------- Header ---------- */
.ec-header, .header { background: var(--aj-white); }
.ec-header-bottom, .header-bottom {
    border-bottom: 1px solid var(--aj-line);
    box-shadow: 0 1px 0 rgba(34, 34, 34, .02);
}
.ec-header .ec-header-bottom { padding: 12px 0; }
.header-logo img { max-height: 54px; width: auto; }
.header-search .form-control,
.header-search input[type="text"] {
    border-radius: 999px;
    background: var(--aj-bg);
    border-color: var(--aj-line);
    padding-left: 18px;
}
.ec-header-btn, .header-icon {
    transition: transform var(--aj-ease);
}
.header-icon:hover, .ec-header-btn:hover { transform: translateY(-1px); }
.header-icon i, .ec-header-bottons i { font-size: 22px !important; color: var(--aj-ink) !important; }
.header-icon:hover i, .ec-header-bottons a:hover i { color: var(--aj-primary) !important; }
.header_cart_count {
    background-color: var(--aj-primary) !important;
    width: 18px !important; height: 18px !important;
    line-height: 18px; font-weight: 600;
}
.ec-main-menu .nav-link, .ec-main-menu a, .ec-cat-menu-link {
    font-weight: 500;
    color: var(--aj-ink);
    transition: color var(--aj-ease);
}
.ec-main-menu a:hover, .ec-cat-menu-link:hover { color: var(--aj-primary); }
.ec-header-user .dropdown-menu,
.dropdown-menu {
    border: 1px solid var(--aj-line);
    border-radius: var(--aj-radius);
    box-shadow: var(--aj-shadow-lg);
    padding: 6px;
}
.ec-header-user .dropdown-menu li { border-bottom: 0 !important; }
.ec-header-user .dropdown-menu .dropdown-item,
.dropdown-item {
    border-radius: var(--aj-radius-sm);
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 9px 12px !important;
    color: var(--aj-text) !important;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--aj-primary-soft) !important; color: var(--aj-primary) !important; }

/* ---------- Breadcrumb / page title ---------- */
.ec-breadcrumb, .ec_breadcrumb_inner { background: var(--aj-bg); }
.ec-breadcrumb { padding: 20px 0; border-bottom: 1px solid var(--aj-line); }
.ec-breadcrumb-list { font-size: 13px; color: var(--aj-muted); }
.ec-breadcrumb-item a:hover { color: var(--aj-primary); }
.ec-breadcrumb-item.active { color: var(--aj-ink); font-weight: 500; }
.ec-title, .section-title, .ec-page-content h2 { font-weight: 600; color: var(--aj-ink); }

/* ---------- Product cards ---------- */
.ec-product-inner {
    background: var(--aj-white);
    border: 1px solid var(--aj-line);
    border-radius: var(--aj-radius);
    overflow: hidden;
    transition: box-shadow var(--aj-ease), transform var(--aj-ease), border-color var(--aj-ease);
}
.ec-product-inner:hover {
    box-shadow: var(--aj-shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}
.ec-pro-image-outer, .ec-pro-image { background: var(--aj-bg); }
.ec-pro-image img { transition: transform .4s ease; }
.ec-product-inner:hover .ec-pro-image img { transform: scale(1.04); }
.ec-pro-content, .ec-product-content { padding: 16px 18px 18px; }
.ec-pro-title, .ec-pro-title a { font-size: 15px; font-weight: 600; color: var(--aj-ink); }
.ec-pro-title a:hover { color: var(--aj-primary); }
.ec-pro-stitle { font-size: 12px; color: var(--aj-muted); text-transform: uppercase; letter-spacing: .06em; }
.ec-price .new-price, .new-price { font-weight: 700; color: var(--aj-primary); font-size: 16px; }
.ec-price .old-price, .old-price { color: var(--aj-muted); font-weight: 400; }
.wishlist, .wish-box { transition: transform var(--aj-ease); }
.wishlist:hover { transform: scale(1.1); }

/* ---------- Listing: sidebar + sorting ---------- */
.ec-sidebar-block, .ec-sidebar-wrap {
    background: var(--aj-white);
    border: 1px solid var(--aj-line);
    border-radius: var(--aj-radius);
    padding: 18px 20px;
    box-shadow: var(--aj-shadow);
    margin-bottom: 20px;
}
.ec-sidebar-title, .ec-sb-title h3 { font-size: 16px; font-weight: 600; color: var(--aj-ink); }
.ec-sidebar-block-item { font-size: 14px; color: var(--aj-text); }
.ec-sort-select select, .sort-by select { border-radius: var(--aj-radius-sm); border: 1px solid #dfe3e8; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--aj-primary); }

/* ---------- Product detail ---------- */
.single-slide img, .zoom-image-hover img { border-radius: var(--aj-radius); }
.ec-single-cart .btn, .btn-product-detail, .btn-product-details { padding: 12px 26px; font-weight: 600; }
.nav-tabs { border-bottom: 1px solid var(--aj-line); }
.nav-tabs .nav-link, .nav-link { color: var(--aj-text); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--aj-primary); border-color: var(--aj-line) var(--aj-line) var(--aj-white); }
.tab-content { padding-top: 18px; }

/* ---------- Tables (cart, wishlist, orders) ---------- */
.cart-table-content, .table-content { background: var(--aj-white); border: 1px solid var(--aj-line); border-radius: var(--aj-radius); overflow-x: auto; box-shadow: var(--aj-shadow); }
.table-content table, .cart-table-content table, .table { margin-bottom: 0; }
.table-content table thead th, .table thead th {
    background: var(--aj-bg);
    color: var(--aj-ink);
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--aj-line);
}
.table-content table td, .table td { padding: 16px; vertical-align: middle; border-color: var(--aj-line); }
.table-content table tbody tr:hover, .table tbody tr:hover { background: var(--aj-primary-soft); }
.ec-cart-update-bottom { padding: 16px 0; }

/* ---------- Checkout / summary / cards ---------- */
.ec-checkout-summary-total { font-weight: 700; color: var(--aj-ink); }
.ec-check-order-btn .btn { width: 100%; padding: 13px; }
.ec-side-cart { border-radius: var(--aj-radius) 0 0 var(--aj-radius); box-shadow: var(--aj-shadow-lg); }

/* ---------- Auth pages ---------- */
.ec-login-wrapper, .ec-register-wrapper {
    background: var(--aj-white);
    border: 1px solid var(--aj-line);
    border-radius: 16px;
    box-shadow: var(--aj-shadow-lg);
    padding: 36px 32px;
    max-width: 520px;
    margin-left: auto; margin-right: auto;
}
.ec-login-wrap .btn, .ec-register-wrapper .btn { width: 100%; padding: 12px; }
.ec-login-fp a { color: var(--aj-primary); font-weight: 500; }

/* ---------- Account / profile ---------- */
.ec-vendor-dashboard-card, .ec-vendor-setting-card, .ec-vendor-detail-block {
    background: var(--aj-white);
    border: 1px solid var(--aj-line);
    border-radius: var(--aj-radius);
    box-shadow: var(--aj-shadow);
}
.ec-vendor-card-body { padding: 24px; }
.ec-vendor-block-img img, .ec-vendor-block-profile img { border-radius: 50%; }

/* ---------- Modals ---------- */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--aj-shadow-lg); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--aj-line); padding: 16px 22px; }
.modal-title { font-weight: 600; color: var(--aj-ink); }
.modal-footer { border-top: 1px solid var(--aj-line); }
.swal-modal { border-radius: 16px; font-family: 'Inter', sans-serif; }

/* ---------- Pagination ---------- */
.pagination .page-link {
    border: 1px solid var(--aj-line); color: var(--aj-text);
    border-radius: var(--aj-radius-sm); margin: 0 3px; min-width: 38px; text-align: center;
}
.pagination .page-item.active .page-link, .pagination .page-link:hover {
    background: var(--aj-primary); border-color: var(--aj-primary); color: #fff;
}

/* ---------- Footer ---------- */
.ec-footer, .footer-top { background: var(--aj-bg); border-top: 1px solid var(--aj-line); }
.ec-footer-heading { font-size: 15px; font-weight: 600; color: var(--aj-ink); text-transform: uppercase; letter-spacing: .06em; }
.ec-footer-link, .ec-footer-links a { color: var(--aj-text); font-size: 14px; transition: color var(--aj-ease), padding-left var(--aj-ease); }
.ec-footer-link:hover, .ec-footer-links a:hover { color: var(--aj-primary); }
.footer-bottom { border-top: 1px solid var(--aj-line); background: var(--aj-white); }
.footer-bottom-copy { color: var(--aj-muted); font-size: 13px; }

/* ---------- Responsive safety ---------- */
img { max-width: 100%; height: auto; }
.table-responsive, .cart-table-content, .table-content { -webkit-overflow-scrolling: touch; }
@media (max-width: 991px) {
    .ec-sidebar-block, .ec-sidebar-wrap { padding: 14px 16px; }
    .ec-login-wrapper, .ec-register-wrapper { padding: 26px 20px; }
}
@media (max-width: 575px) {
    .ec-pro-content, .ec-product-content { padding: 12px; }
    .ec-pro-title, .ec-pro-title a { font-size: 14px; }
    .modal-dialog { margin: 12px; }
}

/* ==========================================================================
   Pass 2 – stronger, higher-specificity overrides (win over demo6/style.css)
   ========================================================================== */
body .ec-header { box-shadow: 0 2px 20px rgba(34,34,34,.06); position: relative; z-index: 50; }
body .ec-header .ec-header-bottom { padding: 14px 0 !important; background: #fff; border-bottom: 0; }
body .ec-header .ec-header-search .header-search input,
body .ec-header .ec-search-group-form input[type="text"] {
    height: 48px !important; border-radius: 999px !important; border: 1px solid var(--aj-line) !important;
    background: var(--aj-bg) !important; padding: 0 56px 0 22px !important; font-size: 14px;
    transition: all var(--aj-ease);
}
body .ec-header .ec-search-group-form input[type="text"]:focus { background:#fff !important; border-color: var(--aj-primary) !important; box-shadow: 0 0 0 4px var(--aj-primary-ring) !important; }
body .ec-header .ec-search-group-form button.submit {
    background: var(--aj-primary) !important; color:#fff !important; border-radius: 50% !important;
    width: 38px; height: 38px; top: 5px !important; right: 5px !important; display:flex; align-items:center; justify-content:center;
}
body .ec-header .ec-search-group-form button.submit i { color:#fff !important; font-size:15px; }
body .ec-header-bottons { display:flex; align-items:center; gap: 10px; }
body .ec-header-bottons .ec-header-btn { padding: 10px 12px; border-radius: 12px; display:inline-flex; align-items:center; }
body .ec-header-bottons .ec-header-btn:hover { background: var(--aj-primary-soft); }
body .ec-header-bottons .login-button {
    background: var(--aj-primary); color:#fff !important; padding: 10px 24px; border-radius: 999px; font-weight:600; font-size:14px;
}
body .ec-header-bottons .ec-header-user:hover .login-button { background: var(--aj-primary-dark); }

/* Desktop main menu */
body .ec-header .ec-cat-menu-link, body .ec-header .nav-desk a, body .ec-header .ec-main-menu a {
    font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--aj-ink);
}
body .ec-header .ec-cat-menu-link:hover { color: var(--aj-primary); }
body .ec-header .mega-menu, body .ec-header .sub-menu {
    border: 1px solid var(--aj-line); border-radius: 14px; box-shadow: var(--aj-shadow-lg);
}

/* Hero banner */
body .ec-main-slider { padding-top: 24px; padding-bottom: 0; }
body .ec-main-slider .ec-slider { border-radius: 20px; overflow: hidden; box-shadow: var(--aj-shadow-lg); }
body .ec-main-slider .ec-slide-item { border-radius: 20px; }
body .ec-slide-content .ec-slide-title { color:#fff; font-weight:700; letter-spacing:-.02em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
body .ec-slide-content .ec-slide-desc { color: rgba(255,255,255,.9); }
body .swiper-pagination-bullet { background:#fff; opacity:.6; width:8px; height:8px; }
body .swiper-pagination-bullet-active { opacity:1; width:26px; border-radius:6px; background:#fff; }
body .swiper-button-next, body .swiper-button-prev {
    width: 44px; height: 44px; background:#fff; border-radius:50%; color: var(--aj-primary); box-shadow: var(--aj-shadow);
}
body .swiper-button-next::after, body .swiper-button-prev::after { font-size: 16px; font-weight:700; color: var(--aj-primary); }

/* Section titles & product tabs */
body .section-space-p, body .section-space-m { padding-top: 64px; padding-bottom: 24px; }
body .ec-product-tab .nav-tabs, body .ec-product-tab .nav { gap: 8px; border: 0; justify-content: center; flex-wrap: wrap; }
body .ec-product-tab .nav-item .nav-link {
    border: 1px solid var(--aj-line) !important; border-radius: 999px !important; padding: 9px 22px !important;
    font-weight: 600; font-size: 14px; color: var(--aj-text); background:#fff; transition: all var(--aj-ease);
}
body .ec-product-tab .nav-item .nav-link:hover { border-color: var(--aj-primary) !important; color: var(--aj-primary); }
body .ec-product-tab .nav-item .nav-link.active { background: var(--aj-primary) !important; border-color: var(--aj-primary) !important; color:#fff !important; }

/* Offer banners */
body .ec-offer-section .ec-offer-inner {
    border-radius: 20px; overflow: hidden; box-shadow: var(--aj-shadow);
}
body .ec-offer-section .ec-offer-title { font-weight: 700; color: var(--aj-ink); letter-spacing: -.02em; }
body .ec-offer-section .ec-offer-btn, body .btn-blue {
    background: var(--aj-primary) !important; border-color: var(--aj-primary) !important; color:#fff !important;
    border-radius: 999px !important; padding: 11px 28px !important; font-weight: 600;
}
body .ec-offer-section .ec-offer-btn:hover, body .btn-blue:hover { background: var(--aj-primary-dark) !important; }

/* Buttons sitewide */
body .btn-primary, body .btn.btn-lg.btn-primary { border-radius: 999px; padding: 11px 28px; font-weight:600; }

/* Product cards */
body .ec-product-inner { border-radius: 16px; border: 1px solid var(--aj-line); box-shadow: none; background:#fff; }
body .ec-product-inner:hover { box-shadow: var(--aj-shadow-lg); transform: translateY(-4px); }
body .ec-product-inner .ec-pro-image-outer { border-radius: 16px 16px 0 0; background: var(--aj-bg); }
body .ec-product-inner .ec-pro-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
body .ec-product-inner .ec-pro-title a { color: var(--aj-ink); }
body .ec-product-inner .ec-price .new-price { color: var(--aj-primary); font-weight: 700; font-size: 17px; }
body .ec-product-inner .wishlist.heart { background:#fff; border-radius:50%; box-shadow: var(--aj-shadow); }

/* Footer */
body .ec-footer { background: var(--aj-ink) !important; color: rgba(255,255,255,.72); border-top: 0; padding-top: 24px; }
body .ec-footer .ec-footer-heading, body .ec-footer h4, body .ec-footer h5 { color:#fff !important; font-size: 14px; letter-spacing:.08em; }
body .ec-footer .ec-footer-link, body .ec-footer a, body .ec-footer p, body .ec-footer li { color: rgba(255,255,255,.72) !important; font-size: 14px; }
body .ec-footer a:hover, body .ec-footer .ec-footer-link:hover { color:#fff !important; }
body .ec-footer .footer-bottom, body .ec-footer .footer-bottom-copy { background: transparent; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6) !important; }
body .ec-footer .ec-footer-logo img { filter: brightness(0) invert(1); max-height: 52px; width:auto; }

@media (max-width: 991px) {
    body .ec-main-slider .ec-slider, body .ec-main-slider .ec-slide-item { border-radius: 14px; }
    body .section-space-p, body .section-space-m { padding-top: 40px; padding-bottom: 12px; }
}
