/* Safqa-owned Fashion catalog cards. No UniTheme2 product-card selectors are used here. */
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-catalog #categories_view_pagination_contents.safqa-fashion-catalog__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    direction: rtl;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card:hover {
    border-color: #a6a6a6;
    box-shadow: 0 3px 10px rgba(15, 17, 17, .09);
    transform: translateY(-1px);
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__form,
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__media {
    position: relative;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    background: #eee;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__image-link,
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__image {
    display: block;
    width: 100%;
    height: 100%;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__image {
    object-fit: cover;
    transition: transform .3s ease;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card:hover .safqa-fashion-card__image { transform: scale(1.025); }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #69727b;
    font-size: 12px;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    inset-inline-start: 9px;
    padding: 3px 7px;
    border-radius: 3px;
    background: #9a4738;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__wish {
    position: absolute;
    z-index: 3;
    top: 8px;
    inset-inline-end: 8px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(213, 217, 217, .92);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #30343a;
    cursor: pointer;
    text-decoration: none;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__wish:hover,
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__wish.is-active { color: #b42336; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__wish i { font-size: 16px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__quick-view {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    min-height: 33px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    background: rgba(19, 30, 41, .93);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    opacity: 0;
    text-decoration: none;
    transform: translateY(7px);
    transition: .18s ease;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card:hover .safqa-fashion-card__quick-view { opacity: 1; transform: none; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__info { padding: 11px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__brand {
    min-height: 14px;
    margin-bottom: 3px;
    color: #565959;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__name {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #0f1111;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.55;
    text-decoration: none;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__name:hover { color: #c7511f; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__rating {
    display: flex;
    min-height: 17px;
    align-items: center;
    margin: 5px 0;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__rating a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #007185;
    font-size: 9px;
    text-decoration: none;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__stars { color: #de7921; letter-spacing: 1px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__variants {
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__swatch {
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #b9bcbe;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__swatch.is-active { box-shadow: 0 0 0 2px #145a4a; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__price {
    display: flex;
    min-height: 27px;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
    color: #0f1111;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__price strong {
    font-family: Outfit, "Noto Sans Arabic", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__price del { color: #7b7e80; font-size: 10px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__delivery {
    min-height: 15px;
    margin-top: 3px;
    color: #565959;
    font-size: 9.5px;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__delivery strong { color: #007e68; font-weight: 800; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__availability { display: none; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__availability.is-out-of-stock { color: #b42318; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__action { margin-top: 9px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__action-button {
    display: flex;
    width: 100%;
    height: 33px;
    min-height: 33px;
    max-height: 33px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #fcd200 !important;
    border-radius: 999px;
    background: #ffd814 !important;
    color: #111 !important;
    cursor: pointer;
    font-family: "Noto Sans Arabic", sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__action-button:hover { background: #f7ca00 !important; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__action-button:disabled { cursor: not-allowed; opacity: .6; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    min-height: 170px;
    overflow: hidden;
    margin: 3px 0;
    border-radius: 8px;
    background: #d8dfd0;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 30px;
    color: #18231e;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy > span {
    color: #9a4738;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy h3 {
    margin: 4px 0 6px;
    color: #18231e;
    font-size: 22px;
    line-height: 1.3;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy p {
    margin: 0 0 12px;
    color: #465049;
    font-size: 10.5px;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy a {
    width: fit-content;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    color: #18231e;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial > img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px 0 0;
    direction: rtl;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination__pages { display: flex; align-items: center; gap: 5px; }

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination__page,
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination__control {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d5d9d9;
    border-radius: 5px;
    background: #fff;
    color: #0f1111;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination__control { min-width: 34px; padding: 0 10px; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination a:hover { border-color: #214e3d; background: #f4f2ed; color: #214e3d; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination .is-current { border-color: #214e3d; background: #214e3d; color: #fff; }
html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination .is-disabled { color: #a1a9b1; cursor: default; opacity: .58; }

@media (max-width: 1199px) {
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-catalog #categories_view_pagination_contents.safqa-fashion-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-catalog #categories_view_pagination_contents.safqa-fashion-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__info { padding: 10px; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-card__name { font-size: 11px; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination { gap: 5px; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-pagination__control { min-width: auto; padding: 0 9px; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial { grid-template-columns: 1fr; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial > img { min-height: 150px; order: -1; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy { padding: 18px 16px; }
    html body.theme-safqa:has(.sq-fashion-category) .safqa-fashion-editorial__copy h3 { font-size: 18px; }
}
